public class TimerNode extends LeftTupleSource implements LeftTupleSinkNode, MemoryFactory<TimerNode.TimerNodeMemory>
| Modifier and Type | Class and Description |
|---|---|
static class |
TimerNode.TimerNodeMemory |
leftInput, sinkassociations, id, partitionId, partitionsEnabled| Constructor and Description |
|---|
TimerNode() |
TimerNode(int id,
LeftTupleSource tupleSource,
Timer timer,
String[] calendarNames,
Declaration[][] declarations,
BuildContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
assertLeftTuple(LeftTuple leftTuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
Assert a new
ReteTuple. |
void |
attach(BuildContext context)
Attaches the node into the network.
|
LeftTuple |
createLeftTuple(InternalFactHandle factHandle,
LeftTuple leftTuple,
Sink sink) |
LeftTuple |
createLeftTuple(InternalFactHandle factHandle,
Sink sink,
boolean leftTupleMemoryEnabled) |
LeftTuple |
createLeftTuple(LeftTuple leftTuple,
RightTuple rightTuple,
LeftTuple currentLeftChild,
LeftTuple currentRightChild,
Sink sink,
boolean leftTupleMemoryEnabled) |
LeftTuple |
createLeftTuple(LeftTuple leftTuple,
RightTuple rightTuple,
Sink sink) |
LeftTuple |
createLeftTuple(LeftTuple leftTuple,
Sink sink,
PropagationContext pctx,
boolean leftTupleMemoryEnabled) |
TimerNode.TimerNodeMemory |
createMemory(RuleBaseConfiguration config,
InternalWorkingMemory wm) |
LeftTuple |
createPeer(LeftTuple original) |
protected boolean |
doRemove(RuleRemovalContext context,
ReteooBuilder builder,
InternalWorkingMemory[] workingMemories)
Removes the node from teh network.
|
boolean |
equals(Object object) |
String[] |
getCalendarNames() |
Declaration[][] |
getDeclarations() |
LeftTupleSource |
getLeftTupleSource() |
LeftTupleSinkNode |
getNextLeftTupleSinkNode()
Returns the next node
|
protected ObjectTypeNode |
getObjectTypeNode() |
LeftTupleSinkNode |
getPreviousLeftTupleSinkNode()
Returns the previous node
|
Timer |
getTimer() |
short |
getType() |
int |
hashCode()
The hashCode return is simply the unique id of the node.
|
boolean |
isLeftTupleMemoryEnabled() |
void |
modifyLeftTuple(InternalFactHandle factHandle,
ModifyPreviousTuples modifyPreviousTuples,
PropagationContext context,
InternalWorkingMemory workingMemory) |
void |
modifyLeftTuple(LeftTuple leftTuple,
PropagationContext context,
InternalWorkingMemory workingMemory) |
void |
networkUpdated(UpdateContext updateContext)
A method that is called for all nodes whose network below them
changed, after the change is complete, providing them with an oportunity
for state update
|
void |
readExternal(ObjectInput in) |
void |
retractLeftTuple(LeftTuple leftTuple,
PropagationContext context,
InternalWorkingMemory workingMemory) |
void |
setLeftTupleMemoryEnabled(boolean tupleMemoryEnabled) |
void |
setNextLeftTupleSinkNode(LeftTupleSinkNode next)
Sets the next node
|
void |
setPreviousLeftTupleSinkNode(LeftTupleSinkNode previous)
Sets the previous node
|
String |
toString()
Produce a debug string.
|
void |
updateSink(LeftTupleSink sink,
PropagationContext context,
InternalWorkingMemory workingMemory) |
void |
writeExternal(ObjectOutput out) |
addTupleSink, addTupleSink, addTupleSink, getLeftDeclaredMask, getLeftInferredMask, getLeftInputOtnId, getLeftNegativeMask, getObjectType, getPositionInPath, getSinkPropagator, initDeclaredMask, initInferredMask, initMasks, isInUse, removeTupleSink, setLeftInferredMask, setLeftInputOtnId, setLeftListenedProperties, setLeftTupleSourceaddAssociation, addAssociation, getAssociatedRuleSize, getAssociationsSize, getAssociationsSize, getId, getPartitionId, isAssociatedWith, isStreamMode, remove, removeAssociation, setId, setPartitionId, setStreamModeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetLeftInferredMask, getLeftInputOtnId, setLeftInputOtnIdgetPositionInPath, getSinkPropagatorgetAssociatedRuleSize, getAssociationsSize, getAssociationsSize, getId, getPartitionId, isAssociatedWithgetIdpublic TimerNode()
public TimerNode(int id,
LeftTupleSource tupleSource,
Timer timer,
String[] calendarNames,
Declaration[][] declarations,
BuildContext context)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class LeftTupleSourceIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class LeftTupleSourceIOExceptionpublic void attach(BuildContext context)
BaseNodeObjectSource or TupleSourcepublic void networkUpdated(UpdateContext updateContext)
BaseNodenetworkUpdated in class BaseNodepublic Timer getTimer()
public String[] getCalendarNames()
public Declaration[][] getDeclarations()
public LeftTupleSource getLeftTupleSource()
getLeftTupleSource in interface LeftTupleNodegetLeftTupleSource in class LeftTupleSourcepublic String toString()
public int hashCode()
BaseNodepublic TimerNode.TimerNodeMemory createMemory(RuleBaseConfiguration config, InternalWorkingMemory wm)
createMemory in interface MemoryFactory<TimerNode.TimerNodeMemory>public LeftTuple createPeer(LeftTuple original)
createPeer in interface LeftTupleSinkcreatePeer in class LeftTupleSourceprotected boolean doRemove(RuleRemovalContext context, ReteooBuilder builder, InternalWorkingMemory[] workingMemories)
BaseNodeObjectSource or TupleSourcepublic boolean isLeftTupleMemoryEnabled()
isLeftTupleMemoryEnabled in interface LeftTupleSinkisLeftTupleMemoryEnabled in class LeftTupleSourcepublic void setLeftTupleMemoryEnabled(boolean tupleMemoryEnabled)
setLeftTupleMemoryEnabled in interface LeftTupleSinkpublic LeftTupleSinkNode getNextLeftTupleSinkNode()
getNextLeftTupleSinkNode in interface LeftTupleSinkNodepublic void setNextLeftTupleSinkNode(LeftTupleSinkNode next)
setNextLeftTupleSinkNode in interface LeftTupleSinkNodenext - The next TupleSinkNodepublic LeftTupleSinkNode getPreviousLeftTupleSinkNode()
getPreviousLeftTupleSinkNode in interface LeftTupleSinkNodepublic void setPreviousLeftTupleSinkNode(LeftTupleSinkNode previous)
setPreviousLeftTupleSinkNode in interface LeftTupleSinkNodeprevious - The previous TupleSinkNodepublic short getType()
getType in interface NetworkNodegetType in class LeftTupleSourcepublic LeftTuple createLeftTuple(InternalFactHandle factHandle, Sink sink, boolean leftTupleMemoryEnabled)
createLeftTuple in interface LeftTupleSinkpublic LeftTuple createLeftTuple(InternalFactHandle factHandle, LeftTuple leftTuple, Sink sink)
createLeftTuple in interface LeftTupleSinkpublic LeftTuple createLeftTuple(LeftTuple leftTuple, Sink sink, PropagationContext pctx, boolean leftTupleMemoryEnabled)
createLeftTuple in interface LeftTupleSinkpublic LeftTuple createLeftTuple(LeftTuple leftTuple, RightTuple rightTuple, Sink sink)
createLeftTuple in interface LeftTupleSinkpublic LeftTuple createLeftTuple(LeftTuple leftTuple, RightTuple rightTuple, LeftTuple currentLeftChild, LeftTuple currentRightChild, Sink sink, boolean leftTupleMemoryEnabled)
createLeftTuple in interface LeftTupleSinkprotected ObjectTypeNode getObjectTypeNode()
getObjectTypeNode in class LeftTupleSourcepublic void updateSink(LeftTupleSink sink, PropagationContext context, InternalWorkingMemory workingMemory)
updateSink in class LeftTupleSourcepublic void assertLeftTuple(LeftTuple leftTuple, PropagationContext context, InternalWorkingMemory workingMemory)
LeftTupleSinkReteTuple.assertLeftTuple in interface LeftTupleSinkleftTuple - The ReteTuple to propagate.context - The PropagationContext of the WorkingMemory actionworkingMemory - the WorkingMemory session.public void retractLeftTuple(LeftTuple leftTuple, PropagationContext context, InternalWorkingMemory workingMemory)
retractLeftTuple in interface LeftTupleSinkpublic void modifyLeftTuple(LeftTuple leftTuple, PropagationContext context, InternalWorkingMemory workingMemory)
modifyLeftTuple in interface LeftTupleSinkpublic void modifyLeftTuple(InternalFactHandle factHandle, ModifyPreviousTuples modifyPreviousTuples, PropagationContext context, InternalWorkingMemory workingMemory)
modifyLeftTuple in interface LeftTupleSinkCopyright © 2001–2016 JBoss by Red Hat. All rights reserved.