BAPS/src/BAPBase.cpp

00001 /******************************************************************
00002  *
00003  * Filename    : BAPBase.cpp
00004  * Author      : David Ong Tat-Wee
00005  *
00006  * Version     : 1.0b
00007  * Date        : 11 Feb 98
00008  *
00009  * Description : Implements the generic BAP base class.  All objects of
00010  *               BAP domain inherit from this class.
00011  *
00012  * Reference   : nil
00013  *
00014  * Notes       : nil
00015  *
00016  * Changes     : nil
00017  *
00018  * Copyright   : Copyright (c) 1998
00019  *               All rights reserved by
00020  *               Resource Allocation and Scheduling Group
00021  *               Department of Information Systems and Computer Science
00022  *               National University of Singapore
00023  *
00024  ******************************************************************/
00025 
00026 
00027 #include "BAPBase.h"
00028 using namespace std;
00029 
00030 BAPBase::BAPBase() : mID(0), mName("Nameless")
00031 {
00032 }
00033 
00034 
00035 BAPBase::BAPBase(long aID, leda::string aName)
00036 : mID(aID), mName(aName)
00037 {
00038 }
00039 
00040 
00041 BAPBase::~BAPBase()
00042 {
00043 }
00044 
00045 
00046 long   BAPBase::ID() const { return mID; }
00047 
00048 leda::string BAPBase::Name() const { return mName; }
00049 
00050 leda::string BAPBase::Name(leda::string aName)
00051 {
00052    leda::string   temp = mName;
00053    mName = aName;
00054    return temp;
00055 }

Generated on Tue Sep 9 15:40:10 2008 for BAP by  doxygen 1.5.3