org.simulator.sbml
Class ConstraintEvent

java.lang.Object
  extended by java.util.EventObject
      extended by 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

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ConstraintEvent(Constraint source, double violationTime)
          Creates a new ConstraintEvent for the given Constraint and the given point in time.
 
Method Summary
 Constraint getSource()
           
 double getTime()
           
 
Methods inherited from class java.util.EventObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

getTime

public double getTime()
Returns:
the point in time at which this violation occurred.

getSource

public Constraint getSource()
Overrides:
getSource in class EventObject

Generated at April 19 2013
Version 1.3 Revision 424