org.drools.time.impl
Class ExpressionIntervalTimer

java.lang.Object
  extended by org.drools.time.impl.ExpressionIntervalTimer
All Implemented Interfaces:
Externalizable, Serializable, Timer

public class ExpressionIntervalTimer
extends Object
implements Timer, Externalizable

See Also:
Serialized Form

Constructor Summary
ExpressionIntervalTimer()
           
ExpressionIntervalTimer(Date startTime, Date endTime, int repeatLimit, MVELObjectExpression delay, MVELObjectExpression period)
           
 
Method Summary
 Trigger createTrigger(Activation item, WorkingMemory wm)
           
 Trigger createTrigger(long timestamp, String[] calendarNames, org.drools.runtime.Calendars calendars)
           
 boolean equals(Object obj)
           
 MVELObjectExpression getDelay()
           
 MVELCompilationUnit getDelayMVELCompilationUnit()
           
 Date getEndTime()
           
 MVELObjectExpression getPeriod()
           
 MVELCompilationUnit getPeriodMVELCompilationUnit()
           
 Date getStartTime()
           
 int hashCode()
           
 void readExternal(ObjectInput in)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpressionIntervalTimer

public ExpressionIntervalTimer()

ExpressionIntervalTimer

public ExpressionIntervalTimer(Date startTime,
                               Date endTime,
                               int repeatLimit,
                               MVELObjectExpression delay,
                               MVELObjectExpression period)
Method Detail

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

getDelayMVELCompilationUnit

public MVELCompilationUnit getDelayMVELCompilationUnit()

getPeriodMVELCompilationUnit

public MVELCompilationUnit getPeriodMVELCompilationUnit()

getStartTime

public Date getStartTime()

getEndTime

public Date getEndTime()

getDelay

public MVELObjectExpression getDelay()

getPeriod

public MVELObjectExpression getPeriod()

createTrigger

public Trigger createTrigger(Activation item,
                             WorkingMemory wm)
Specified by:
createTrigger in interface Timer

createTrigger

public Trigger createTrigger(long timestamp,
                             String[] calendarNames,
                             org.drools.runtime.Calendars calendars)
Specified by:
createTrigger in interface Timer

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.