org.simulator.sbml
Class ConstraintEvent
java.lang.Object
java.util.EventObject
org.simulator.sbml.ConstraintEvent
- All Implemented Interfaces:
- Serializable
public class ConstraintEvent
- extends EventObject
This class represents the violation of a Constraint
during
simulation.
- Since:
- 1.3
- Version:
- $Rev: 391 $
- Author:
- Alexander Dörr, Andreas Dräger
- See Also:
- Serialized Form
ConstraintEvent
public ConstraintEvent(Constraint source,
double violationTime)
- Creates a new
ConstraintEvent
for the given Constraint
and the given point in time.
- Parameters:
source
- the Constraint
, whose condition has been violated.violationTime
- the simulation time, at which the violation occurred.
getTime
public double getTime()
- Returns:
- the point in time at which this violation occurred.
getSource
public Constraint getSource()
- Overrides:
getSource
in class EventObject