org.jactr.core.queue.timedevents
Class BlockingTimedEvent

java.lang.Object
  extended by org.jactr.core.queue.timedevents.AbstractTimedEvent
      extended by org.jactr.core.queue.timedevents.BlockingTimedEvent
All Implemented Interfaces:
ITimedEvent

public class BlockingTimedEvent
extends AbstractTimedEvent

BlockingTimedEvent sits on the TimedEventQueue and when it fires, it will block the running of the IModel. This is used to prevent a IModel running beyond when it should. Once the BlockingTimedEvent.abort() method is called, the block will pass and the IModel will resume.

Author:
harrison

Constructor Summary
BlockingTimedEvent(java.lang.Object owner, double sTime, double eTime)
          Constructor for the BlockingTimedEvent object
 
Method Summary
 void abort()
          Description of the Method
 void fire(double now)
          Description of the Method
 java.lang.Object getOwner()
           
 
Methods inherited from class org.jactr.core.queue.timedevents.AbstractTimedEvent
getEndTime, getStartTime, hasAborted, hasFired, setTimes, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BlockingTimedEvent

public BlockingTimedEvent(java.lang.Object owner,
                          double sTime,
                          double eTime)
Constructor for the BlockingTimedEvent object

Parameters:
sTime - Description of the Parameter
eTime - Description of the Parameter
Method Detail

getOwner

public java.lang.Object getOwner()

fire

public void fire(double now)
Description of the Method

Specified by:
fire in interface ITimedEvent
Overrides:
fire in class AbstractTimedEvent
Parameters:
now - Description of the Parameter

abort

public void abort()
Description of the Method

Specified by:
abort in interface ITimedEvent
Overrides:
abort in class AbstractTimedEvent