org.drools.common
Class DisconnectedFactHandle
java.lang.Object
org.drools.common.DisconnectedFactHandle
- All Implemented Interfaces:
- Externalizable, Serializable, Cloneable, InternalFactHandle, org.drools.runtime.rule.FactHandle
public class DisconnectedFactHandle
- extends Object
- implements InternalFactHandle, Externalizable
- See Also:
- Serialized Form
|
Constructor Summary |
DisconnectedFactHandle()
|
DisconnectedFactHandle(int id,
int identityHashCode,
int objectHashCode,
long recency)
|
DisconnectedFactHandle(int id,
int identityHashCode,
int objectHashCode,
long recency,
Object object)
|
DisconnectedFactHandle(int id,
int identityHashCode,
int objectHashCode,
long recency,
String entryPointId,
Object object)
|
DisconnectedFactHandle(String externalFormat)
|
DisconnectedFactHandle
public DisconnectedFactHandle()
DisconnectedFactHandle
public DisconnectedFactHandle(int id,
int identityHashCode,
int objectHashCode,
long recency,
String entryPointId,
Object object)
DisconnectedFactHandle
public DisconnectedFactHandle(int id,
int identityHashCode,
int objectHashCode,
long recency,
Object object)
DisconnectedFactHandle
public DisconnectedFactHandle(int id,
int identityHashCode,
int objectHashCode,
long recency)
DisconnectedFactHandle
public DisconnectedFactHandle(String externalFormat)
getId
public int getId()
- Specified by:
getId in interface InternalFactHandle
getIdentityHashCode
public int getIdentityHashCode()
- Specified by:
getIdentityHashCode in interface InternalFactHandle
getObjectHashCode
public int getObjectHashCode()
- Specified by:
getObjectHashCode in interface InternalFactHandle
getRecency
public long getRecency()
- Specified by:
getRecency in interface InternalFactHandle
getLastLeftTuple
public LeftTuple getLastLeftTuple()
- Specified by:
getLastLeftTuple in interface InternalFactHandle
getObject
public Object getObject()
- Specified by:
getObject in interface InternalFactHandle
getEntryPoint
public org.drools.runtime.rule.WorkingMemoryEntryPoint getEntryPoint()
- Specified by:
getEntryPoint in interface InternalFactHandle
getEqualityKey
public EqualityKey getEqualityKey()
- Specified by:
getEqualityKey in interface InternalFactHandle
getRightTuple
public RightTuple getRightTuple()
invalidate
public void invalidate()
- Specified by:
invalidate in interface InternalFactHandle
isEvent
public boolean isEvent()
- Description copied from interface:
InternalFactHandle
- Returns true if this FactHandle represents
and Event or false if this FactHandle represents
a regular Fact
- Specified by:
isEvent in interface InternalFactHandle
- Returns:
isValid
public boolean isValid()
- Specified by:
isValid in interface InternalFactHandle
setEntryPoint
public void setEntryPoint(org.drools.runtime.rule.WorkingMemoryEntryPoint ep)
- Specified by:
setEntryPoint in interface InternalFactHandle
setEqualityKey
public void setEqualityKey(EqualityKey key)
- Specified by:
setEqualityKey in interface InternalFactHandle
setFirstLeftTuple
public void setFirstLeftTuple(LeftTuple leftTuple)
setObject
public void setObject(Object object)
- Specified by:
setObject in interface InternalFactHandle
setRecency
public void setRecency(long recency)
- Specified by:
setRecency in interface InternalFactHandle
setRightTuple
public void setRightTuple(RightTuple rightTuple)
clone
public DefaultFactHandle clone()
- Specified by:
clone in interface InternalFactHandle- Overrides:
clone in class Object
toExternalForm
public String toExternalForm()
- Specified by:
toExternalForm in interface InternalFactHandle- Specified by:
toExternalForm in interface org.drools.runtime.rule.FactHandle
getExternalForm
public String getExternalForm()
getFirstLeftTuple
public LeftTuple getFirstLeftTuple()
- Specified by:
getFirstLeftTuple in interface InternalFactHandle
getFirstRightTuple
public RightTuple getFirstRightTuple()
- Specified by:
getFirstRightTuple in interface InternalFactHandle
getLastRightTuple
public RightTuple getLastRightTuple()
- Specified by:
getLastRightTuple in interface InternalFactHandle
toTupleTree
public String toTupleTree(int indent)
- Specified by:
toTupleTree in interface InternalFactHandle
isDisconnected
public boolean isDisconnected()
- Specified by:
isDisconnected in interface InternalFactHandle
disconnect
public void disconnect()
- Specified by:
disconnect in interface InternalFactHandle
addLastLeftTuple
public void addLastLeftTuple(LeftTuple leftTuple)
- Specified by:
addLastLeftTuple in interface InternalFactHandle
removeLeftTuple
public void removeLeftTuple(LeftTuple leftTuple)
- Specified by:
removeLeftTuple in interface InternalFactHandle
clearLeftTuples
public void clearLeftTuples()
- Specified by:
clearLeftTuples in interface InternalFactHandle
clearRightTuples
public void clearRightTuples()
- Specified by:
clearRightTuples in interface InternalFactHandle
addFirstRightTuple
public void addFirstRightTuple(RightTuple rightTuple)
- Specified by:
addFirstRightTuple in interface InternalFactHandle
addLastRightTuple
public void addLastRightTuple(RightTuple rightTuple)
- Specified by:
addLastRightTuple in interface InternalFactHandle
removeRightTuple
public void removeRightTuple(RightTuple rightTuple)
- Specified by:
removeRightTuple in interface InternalFactHandle
getEntryPointId
public String getEntryPointId()
newFrom
public static DisconnectedFactHandle newFrom(org.drools.runtime.rule.FactHandle handle)
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
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.