Drools :: Core 6.1.0.Beta1

org.drools.core.time.impl
Class DurationTimer

java.lang.Object
  extended by org.drools.core.rule.ConditionalElement
      extended by org.drools.core.time.impl.BaseTimer
          extended by org.drools.core.time.impl.DurationTimer
All Implemented Interfaces:
Externalizable, Serializable, Cloneable, RuleConditionElement, RuleComponent, Timer

public class DurationTimer
extends BaseTimer
implements Timer, Externalizable

See Also:
Serialized Form

Constructor Summary
DurationTimer()
           
DurationTimer(long duration)
           
 
Method Summary
 ConditionalElement clone()
          Returns a clone from itself
 Trigger createTrigger(Activation item, InternalWorkingMemory wm)
           
 Trigger createTrigger(long timestamp, LeftTuple leftTuple, DefaultJobHandle jh, String[] calendarNames, org.kie.api.runtime.Calendars calendars, Declaration[][] declrs, InternalWorkingMemory wm)
           
 Trigger createTrigger(long timestamp, String[] calendarNames, org.kie.api.runtime.Calendars calendars)
           
 boolean equals(Object obj)
           
 long getDuration()
           
 Declaration getEventFactHandleDeclaration()
           
 Declaration[][] getTimerDeclarations(Map<String,Declaration> outerDeclrs)
           
 int hashCode()
           
 void readExternal(ObjectInput in)
           
 void setEventFactHandle(Declaration eventFactHandle)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class org.drools.core.time.impl.BaseTimer
getInnerDeclarations, getNestedElements, getOuterDeclarations, isPatternScopeDelimiter, resolveDeclaration, sortDeclarations
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.drools.core.rule.RuleConditionElement
getInnerDeclarations, getNestedElements, getOuterDeclarations, isPatternScopeDelimiter, resolveDeclaration
 

Constructor Detail

DurationTimer

public DurationTimer()

DurationTimer

public DurationTimer(long duration)
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

getDuration

public long getDuration()

getTimerDeclarations

public Declaration[][] getTimerDeclarations(Map<String,Declaration> outerDeclrs)
Specified by:
getTimerDeclarations in class BaseTimer

createTrigger

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

createTrigger

public Trigger createTrigger(long timestamp,
                             LeftTuple leftTuple,
                             DefaultJobHandle jh,
                             String[] calendarNames,
                             org.kie.api.runtime.Calendars calendars,
                             Declaration[][] declrs,
                             InternalWorkingMemory wm)
Specified by:
createTrigger in interface Timer

createTrigger

public Trigger createTrigger(long timestamp,
                             String[] calendarNames,
                             org.kie.api.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

clone

public ConditionalElement clone()
Description copied from interface: RuleConditionElement
Returns a clone from itself

Specified by:
clone in interface RuleConditionElement
Specified by:
clone in class ConditionalElement
Returns:

setEventFactHandle

public void setEventFactHandle(Declaration eventFactHandle)

getEventFactHandleDeclaration

public Declaration getEventFactHandleDeclaration()

Drools :: Core 6.1.0.Beta1

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