public class ReplaceAtom extends FSMActivity
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TYPENAME |
Constructor and Description |
---|
ReplaceAtom(HyperGraphPeer thisPeer,
HGHandle atomHandle,
java.lang.Object value,
HGHandle typeHandle,
HGPeerIdentity target) |
ReplaceAtom(HyperGraphPeer thisPeer,
java.util.UUID id) |
Modifier and Type | Method and Description |
---|---|
HGHandle |
getAtomHandle() |
boolean |
getReplaced() |
HGPeerIdentity |
getTarget() |
java.lang.String |
getType()
Return the type name of this activity.
|
java.lang.Object |
getValue() |
void |
initiate()
Empty method - override to implement activity initiation.
|
WorkflowStateConstant |
onAtomReplaced(Json msg) |
WorkflowStateConstant |
onReplaceAtom(Json msg) |
void |
setAtomHandle(HGHandle atomHandle) |
void |
setTarget(HGPeerIdentity target) |
void |
setValue(java.lang.Object value) |
handleMessage, onPeerFailure, onPeerNotUnderstand
public static final java.lang.String TYPENAME
public ReplaceAtom(HyperGraphPeer thisPeer, java.util.UUID id)
public ReplaceAtom(HyperGraphPeer thisPeer, HGHandle atomHandle, java.lang.Object value, HGHandle typeHandle, HGPeerIdentity target)
public void initiate()
FSMActivity
Empty method - override to implement activity initiation.
initiate
in class FSMActivity
public WorkflowStateConstant onReplaceAtom(Json msg) throws java.lang.Throwable
java.lang.Throwable
public WorkflowStateConstant onAtomReplaced(Json msg) throws java.lang.Throwable
java.lang.Throwable
public boolean getReplaced()
public HGHandle getAtomHandle()
public void setAtomHandle(HGHandle atomHandle)
public java.lang.Object getValue()
public void setValue(java.lang.Object value)
public HGPeerIdentity getTarget()
public void setTarget(HGPeerIdentity target)
public java.lang.String getType()
Activity
Return the type name of this activity. By the default to fully-qualified class name is returned. This method can be overridden by sub-classes to provide a short and/or more human-readable type name.