|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjade.core.BehaviourID
public class BehaviourID
This class represents an unique identifier referring to a specific agent behaviour.
| Constructor Summary | |
|---|---|
BehaviourID()
Default constructor. |
|
BehaviourID(Behaviour b)
This constructor builds a new behaviour ID, describing the given behaviour object. |
|
| Method Summary | |
|---|---|
void |
addChildren(BehaviourID bid)
Adds a new behaviour ID as a child of this one. |
boolean |
equals(java.lang.Object o)
Equality test on two behaviour IDs. |
Iterator |
getAllChildren()
Retrieve the list of all the children behaviour IDs, as an iterator object. |
java.lang.String |
getClassName()
Retrieve the class name implementing the agent behaviour described by this ID. |
int |
getCode()
Retrieve the code of this behaviour ID. |
java.lang.String |
getKind()
Retrieve the kind of behaviour described by this behaviour ID. |
java.lang.String |
getName()
Retrieve the name of this behaviour ID. |
int |
hashCode()
Hash code operation, compliant with identity-by-name. |
boolean |
isSimple()
Tells whether this behaviour ID has children. |
void |
setClassName(java.lang.String n)
Set the class name for this behaviour ID. |
void |
setCode(int code)
Set the code of this behaviour ID |
void |
setKind(java.lang.String k)
Set the kind of behaviour described by this behaviour ID. |
void |
setName(java.lang.String n)
Set the name of this behaviour ID |
java.lang.String |
toString()
Create a string representation for this behaviour ID. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BehaviourID()
public BehaviourID(Behaviour b)
b - The Behaviour object that is to be
described with this ID.| Method Detail |
|---|
public void setName(java.lang.String n)
n - The name to give to this behaviour ID.public java.lang.String getName()
null if no name was set.public void setCode(int code)
code - The code to give to this behaviour ID.public int getCode()
public void setClassName(java.lang.String n)
n - The class name of the described behaviour.public java.lang.String getClassName()
null if no class name
was set.public void setKind(java.lang.String k)
k - A string specifying the kind of the described
behaviour.public java.lang.String getKind()
null if no kind was set.public void addChildren(BehaviourID bid)
bid - The behaviour ID object to add.public Iterator getAllChildren()
public boolean isSimple()
true
is returned, and false otherwise.public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - The right hand side of the equality test (the left
hand one being the current object).
o parameter is a behaviour ID with
the same name, class name and kind of the current object,
true. Otherwise, false is returned.public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||