Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
DETarget Class Reference
Inheritance diagram for DETarget:

Public Types

enum  Default_DE_Schedulers {
  CQ_ID = 0,
  MUTABLE_CQ_ID = 1,
  RC_ID = 2,
  PRIORITY_FREE_ID = 3,
  PRIORITY_ID = 4,
  SIMPLE_ID = 5
}
 Available scheduler for default-DE target. Given integer values are used as enumeration value that is stored in model description. Therefore, you can delete or add new elements, but you MUST NOT change the given integer values for the elements. More...
 

Public Member Functions

 DETarget ()
 
 ~DETarget ()
 
void begin ()
 
int isMutable ()
 
Block * makeNew () const
 
int run ()
 
void setStopTime (double pStopTime)
 

Protected Member Functions

void setup ()
 

Protected Attributes

FloatState timeScale
 
EnumState usedScheduler
 
int selfFiringRequested ()
 
double nextFiringTime ()
 
double mNextFiringTime
 
bool mRefiringRequested
 

Member Enumeration Documentation

Available scheduler for default-DE target. Given integer values are used as enumeration value that is stored in model description. Therefore, you can delete or add new elements, but you MUST NOT change the given integer values for the elements.

Enumerator
CQ_ID 

Calendar queue scheduler

SIMPLE_ID 

Basic DE scheduler

Constructor & Destructor Documentation

DETarget::DETarget ( )

constructor

DETarget::~DETarget ( )

destructor

Member Function Documentation

void DETarget::begin ( )

call the begin method on the galaxy

int DETarget::isMutable ( )

Return TRUE if the MutableCalendarQueue is being used

Block * DETarget::makeNew ( ) const

return a new copy

int DETarget::run ( )

Overloads Target::run(). Handles refiring requests from inside a wormhole.

int DETarget::selfFiringRequested ( )

Multi-domain support Return whether (and when) this target requires am refiring from an outer domain.

See Also
Target
void DETarget::setStopTime ( double  pStopTime)

Set the stopping condition for an simulation run. Overloaded to support infinite runlength.

Parameters
pStopTimeEnd condition for an simulation run, if set to <0.0, simulation will be infinite.

Member Data Documentation

double DETarget::mNextFiringTime
protected

Multi-Domain support Stores the time of the next internal event. This information is needed if the DE target runs inside another timed domain.

bool DETarget::mRefiringRequested
protected

Flag to signal whether the target has unconsumed events and has to be reinvoked by an outer domain

FloatState DETarget::timeScale
protected

relative time scale for interface with another timed domain.

EnumState DETarget::usedScheduler
protected

Specifies the scheduler to be used for simulation.