|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.googlecode.sarasvati.hib.HibTokenSet
public class HibTokenSet
Constructor Summary | |
---|---|
HibTokenSet(HibGraphProcess process,
String name,
int maxMemberIndex)
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
Set<ArcToken> |
getActiveArcTokens(Engine engine)
Returns the list of active (non-completed) arc tokens which are members of this token set. |
Set<NodeToken> |
getActiveNodeTokens(Engine engine)
Returns the list of active (non-completed) node tokens which are members of this token set. |
Set<ArcTokenSetMember> |
getArcTokenSetMembers()
|
Map<String,String> |
getAttrMap()
|
Env |
getEnv()
A token set provides an environment into which attributes can be stored. |
Long |
getId()
|
int |
getMaxMemberIndex()
Returns the maximum member index that a member of this token set may have. |
Set<HibTokenSetMemberAttribute> |
getMemberAttributes()
|
TokenSetMemberEnv |
getMemberEnv()
In addition to provide an environment which is shared across all members of the token set (see TokenSet.getEnv() ), the token set also
provides an environment which allows setting attributes per member index. |
String |
getName()
Returns the name given to this token set. |
Set<NodeTokenSetMember> |
getNodeTokenSetMembers()
|
HibGraphProcess |
getProcess()
Returns the process that this token set belongs to. |
int |
hashCode()
|
boolean |
isComplete()
Returns true if the token set has been join on and contains no more active tokens, and false otherwise. |
void |
markComplete(Engine engine)
Marks this token set as being complete, in the sense that a token set join has been performed on the token set. |
void |
reactivateForBacktrack(Engine engine)
If a node or arc token in a previously completed token set is backtracked into, the token set should be marked as incomplete again. |
void |
setArcTokenSetMembers(Set<ArcTokenSetMember> arcTokenSetMembers)
|
void |
setAttrMap(Map<String,String> attrMap)
|
void |
setComplete(boolean complete)
|
void |
setId(Long id)
|
void |
setMaxMemberIndex(int maxMemberIndex)
|
void |
setMemberAttributes(Set<HibTokenSetMemberAttribute> memberAttributes)
|
void |
setName(String name)
|
void |
setNodeTokenSetMembers(Set<NodeTokenSetMember> nodeTokenSetMembers)
|
void |
setProcess(HibGraphProcess process)
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HibTokenSet(HibGraphProcess process, String name, int maxMemberIndex)
Method Detail |
---|
public Long getId()
public void setId(Long id)
public String getName()
TokenSet
getName
in interface TokenSet
public void setName(String name)
public HibGraphProcess getProcess()
TokenSet
getProcess
in interface TokenSet
public void setProcess(HibGraphProcess process)
public int getMaxMemberIndex()
TokenSet
getMaxMemberIndex
in interface TokenSet
public void setMaxMemberIndex(int maxMemberIndex)
public Map<String,String> getAttrMap()
public void setAttrMap(Map<String,String> attrMap)
public Set<ArcTokenSetMember> getArcTokenSetMembers()
public void setArcTokenSetMembers(Set<ArcTokenSetMember> arcTokenSetMembers)
public Set<NodeTokenSetMember> getNodeTokenSetMembers()
public void setNodeTokenSetMembers(Set<NodeTokenSetMember> nodeTokenSetMembers)
public Env getEnv()
TokenSet
getEnv
in interface TokenSet
public TokenSetMemberEnv getMemberEnv()
TokenSet
TokenSet.getEnv()
), the token set also
provides an environment which allows setting attributes per member index.
The member environment also allows setting attributes per index via list.
getMemberEnv
in interface TokenSet
public Set<HibTokenSetMemberAttribute> getMemberAttributes()
public void setMemberAttributes(Set<HibTokenSetMemberAttribute> memberAttributes)
public Set<ArcToken> getActiveArcTokens(Engine engine)
TokenSet
getActiveArcTokens
in interface TokenSet
engine
- The engine executing the current process. May
be required in order to load the token list.
public Set<NodeToken> getActiveNodeTokens(Engine engine)
TokenSet
getActiveNodeTokens
in interface TokenSet
engine
- The engine executing the current process. May
be required in order to load the token list.
public boolean isComplete()
TokenSet
isComplete
in interface TokenSet
public void setComplete(boolean complete)
public void markComplete(Engine engine)
TokenSet
markComplete
in interface TokenSet
public void reactivateForBacktrack(Engine engine)
TokenSet
reactivateForBacktrack
in interface TokenSet
engine
- The engine currently executingpublic int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |