Generic simulated resource
Inheritance:
Public Methods
-
SimObj(const string newName = "", const ID newId = 0)
- Default constructor
-
virtual ~SimObj()
- Destructor
-
string getName(void) const
- Gets the name of the simulation object
-
ID getID(void) const
- Gets the internal simulation ID
-
void setName(const string newName)
- Set the name of the simulation object to any string
-
void setID(const ID newID)
- Set the ID of the simulation object
-
virtual void clear(void)
- Reset data members to their default values
-
virtual string toString(void) const
- Pack up a description of the object in a string
-
virtual bool activate(void)
- Makes the object ready for simulation
Documentation
Every resource in the simulator has certain shared characteristics.
This parent class is responsible for them.
SimObj(const string newName = "", const ID newId = 0)
-
virtual ~SimObj()
-
string getName(void) const
-
- Returns:
- a string
ID getID(void) const
-
- Returns:
- a ID number
void setName(const string newName)
-
void setID(const ID newID)
-
virtual void clear(void)
-
virtual string toString(void) const
-
virtual bool activate(void)
-
- Direct child classes:
- Thread
System
Resource
RAM
Process
Network
Computer
- Author:
- John Oleszkiewicz
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.