|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.simulator.math.odes.EventInProgress
public class EventInProgress
This class represents a compilation of the values and execution times during simulation concerning events.
Field Summary | |
---|---|
protected Map<Integer,Double> |
assignments
|
protected LinkedList<Double> |
execTimes
|
protected boolean |
fired
|
protected double |
lastTimeExecuted
|
protected double |
lastTimeFired
|
protected double |
lastTimeRecovered
|
protected LinkedList<Double[]> |
values
|
Constructor Summary | |
---|---|
EventInProgress(boolean fired)
Creates a new EventInProcess with the given boolean value indicating whether or not it can fire at the initial time point. |
Method Summary | |
---|---|
void |
aborted(double time)
The event has been aborted between trigger and execution. |
void |
addAssignment(int index,
double value)
Adds an event assignment. |
void |
addValues(Double[] values,
double time)
The event associated with this class has been triggered. |
void |
clearAssignments()
Clears all event assignments. |
void |
executed(double time)
The event associated with this class has been executed therefore reset some values. |
void |
fired(double time)
Associated event has triggered therefore current value of fired to true |
Map<Integer,Double> |
getAssignments()
Returns all event assignments as a map. |
boolean |
getFireStatus(double time)
Returns a boolean value indication if the associated event has recently been triggered / fired |
double |
getLastTimeExecuted()
Returns the last time the event has been executed. |
double |
getLastTimeFired()
Returns the last time the event has been fired. |
double |
getTime()
Return the next time of execution of the associated event. |
Double[] |
getValues()
Return the values used in the next execution of the associated event. |
boolean |
hasExecutionTime()
Returns true if the event is supposed to be executed at some time. |
boolean |
hasMoreAssignments(double time)
Checks if this event has still assignments to perform for the given point in time |
void |
recovered(double time)
The trigger of the associated event has made a transition from true to false, so the event can be triggered again. |
void |
refresh(boolean fired)
|
void |
refresh(double currentTime)
Refreshes the status of the event regarding the current time. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean fired
protected double lastTimeFired
protected double lastTimeRecovered
protected double lastTimeExecuted
protected LinkedList<Double> execTimes
protected LinkedList<Double[]> values
protected Map<Integer,Double> assignments
Constructor Detail |
---|
public EventInProgress(boolean fired)
fired
- Method Detail |
---|
public void refresh(boolean fired)
fired
- public void aborted(double time)
public void addValues(Double[] values, double time)
values
- time
- public void executed(double time)
public void fired(double time)
public boolean getFireStatus(double time)
public double getTime()
public boolean hasExecutionTime()
public Double[] getValues()
public void recovered(double time)
public boolean hasMoreAssignments(double time)
time
-
public double getLastTimeFired()
public double getLastTimeExecuted()
public void refresh(double currentTime)
currentTime
- public void clearAssignments()
public void addAssignment(int index, double value)
index
- value
- public Map<Integer,Double> getAssignments()
|
Generated December 13 2012 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |