SBMLEventInProgresspublic class EventInProgress extends Object
| Modifier and Type | Field | Description | 
|---|---|---|
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 | Description | 
|---|---|
EventInProgress(boolean fired) | 
 Creates a new EventInProcess with the given boolean value indicating
 whether or not it can fire at the initial time point. 
 | 
| Modifier and Type | Method | Description | 
|---|---|---|
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. 
 | 
protected boolean fired
protected double lastTimeFired
protected double lastTimeRecovered
protected double lastTimeExecuted
protected LinkedList<Double> execTimes
protected LinkedList<Double[]> values
public EventInProgress(boolean fired)
fired - 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 - Copyright © 2007–2018. All rights reserved.