NULL
, sets the internal state flag to TRUE
, and sets the index value to -1
.
int run();Execute the Star. This method also interfaces to the SimControl class to provide for control over simulations. All derived classes that override this method must invoke
Star::run.
StringList print(int verbose = 0) const;Print out info on the star.
Star& asStar();These simply return a reference to
const Star& asStar() const;
this,
overriding Block::asStar.
int index() const;Return the index value for this star. Index values are a feature that assists with certain schedulers; the idea is to assign a numeric index to each star at any level of a particular Universe or Galaxy.
virtual void setTarget(Target* t);Set the target associated with this star.
void noInternalState();Declare that this star has no internal state (This function may change to protected in future Ptolemy releases).
int hasInternalState();Return
TRUE
if this star has internal state, FALSE
if it doesn't. Useful in parallel scheduling.
virtual void go();This is a method that is intended to be overridden to provide the principal action of executing this block. It is protected and is intended to be called from the
run()
member function. The separation is so that actions common to a domain can be provided in the run function, leaving the writer of a functional block to only implement go().