Package jadex.bridge
Class Cause
- java.lang.Object
- 
- jadex.bridge.Cause
 
- 
 public class Cause extends java.lang.ObjectA cause is used to link events. It has a source and a target id that can be used to chain the events. Events roll the causes by using the target as source and creating a new target etc.
- 
- 
Constructor SummaryConstructors Constructor Description Cause()Create a new cause.Cause(Cause other)Create a new cause as clone of the other.Cause(Cause old, java.lang.String targetname)Create a new cause rolling old one.Cause(java.lang.String sourcename, java.lang.String targetname)Create a new cause.Cause(java.lang.String sourceid, java.lang.String targetid, java.lang.String sourcename, java.lang.String targetname)Create a new cause.Cause(java.lang.String chainid, java.lang.String sourceid, java.lang.String targetid, java.lang.String sourcename, java.lang.String targetname)Create a new cause.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description CausecreateNext()Create the next cause.java.lang.StringcreateUniqueId()Create a unique id.protected java.lang.StringcreateUniqueId(int len)Create a unique id.booleanequals(java.lang.Object obj)Test for equality.java.lang.StringgetOrigin()Get the chain id.java.lang.StringgetSourceId()Get the sourceId.java.lang.StringgetTargetId()Get the targetId.inthashCode()Get the hash code.voidsetOrigin(java.lang.String callid)Set the chain id.voidsetSourceId(java.lang.String sourceid)Set the sourceId.voidsetTargetId(java.lang.String targetid)Set the targetId.java.lang.StringtoString()Get the string representation.
 
- 
- 
- 
Constructor Detail- 
Causepublic Cause() Create a new cause.
 - 
Causepublic Cause(java.lang.String sourcename, java.lang.String targetname)Create a new cause.
 - 
Causepublic Cause(java.lang.String sourceid, java.lang.String targetid, java.lang.String sourcename, java.lang.String targetname)Create a new cause.
 - 
Causepublic Cause(java.lang.String chainid, java.lang.String sourceid, java.lang.String targetid, java.lang.String sourcename, java.lang.String targetname)Create a new cause.
 - 
Causepublic Cause(Cause old, java.lang.String targetname) Create a new cause rolling old one.
 - 
Causepublic Cause(Cause other) Create a new cause as clone of the other.
 
- 
 - 
Method Detail- 
createNextpublic Cause createNext() Create the next cause.- Parameters:
- targetname- The new target name.
 
 - 
createUniqueIdpublic java.lang.String createUniqueId() Create a unique id.
 - 
createUniqueIdprotected java.lang.String createUniqueId(int len) Create a unique id.
 - 
getOriginpublic java.lang.String getOrigin() Get the chain id.- Returns:
- The chain id.
 
 - 
setOriginpublic void setOrigin(java.lang.String callid) Set the chain id.- Parameters:
- origin- The chainid to set.
 
 - 
getSourceIdpublic java.lang.String getSourceId() Get the sourceId.- Returns:
- The sourceId.
 
 - 
setSourceIdpublic void setSourceId(java.lang.String sourceid) Set the sourceId.- Parameters:
- sourceid- The sourceId to set.
 
 - 
getTargetIdpublic java.lang.String getTargetId() Get the targetId.- Returns:
- The targetId.
 
 - 
setTargetIdpublic void setTargetId(java.lang.String targetid) Set the targetId.- Parameters:
- targetid- The targetId to set.
 
 - 
toStringpublic java.lang.String toString() Get the string representation.- Overrides:
- toStringin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() Get the hash code.- Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) Test for equality.- Overrides:
- equalsin class- java.lang.Object
 
 
- 
 
-