Universe.h.
Constructors:
Runnable(Target* tar, const char* ty, Galaxy* g);This function initializes target and/or generates the schedule.
Runnable(const char* targetname, const char* dom, Galaxy* g);
void initTarget();
int run();This function causes the object to run, until the stopping condition is reached.
virtual void setStopTime(double stamp);This function sets stop time. The default implementation just calls the identical function in the target.
StringList displaySchedule();Display schedule, if appropriate (some types of schedulers will return a string saying that compile-time scheduling is not performed, e.g. DE and DDF schedulers).
virtual ~Runnable();The destructor deletes the Target.
A Runnable object has the following protected data members:
const char* type;As a rule, when used as one of the base classes for multiple inheritance, the
Galaxy* galP;
galP
pointer will point to the galaxy provided by the other half of the object.A Runnable object has the private data member:
Target* target;