|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnz.ac.waikato.mcennis.rat.graph.model.ModelShell
nz.ac.waikato.mcennis.rat.graph.actor.BasicUser
public class BasicUser
| Field Summary |
|---|
| Fields inherited from class nz.ac.waikato.mcennis.rat.graph.model.ModelShell |
|---|
listener |
| Constructor Summary | |
|---|---|
BasicUser(java.lang.String ID)
Creates a new instance of BasicUser |
|
| Method Summary | |
|---|---|
void |
add(Property prop)
Add the given property to this user. |
protected int |
compareProperties(Actor right)
Compare properties of this actor with the given actor. |
int |
compareTo(java.lang.Object o)
Throws ClassCastException when the parameter is not an Actor. |
boolean |
equals(java.lang.Object obj)
implements equals in terms of CompareTo |
java.lang.String |
getID()
Return the id (unique within its type) |
java.lang.String |
getMode()
Returns the type (mode) of this actor |
java.util.List<Property> |
getProperty()
Return an array of all properties associated with this actor. |
Property |
getProperty(java.lang.String ID)
Return the property with the given value. |
int |
hashCode()
|
void |
init(Properties properties)
|
Actor |
prototype()
Return a copy of this Actor that is equal by compareTo() |
void |
removeProperty(java.lang.String ID)
Remove a given property from this actor |
void |
setID(java.lang.String id)
Sets an id unique (which must be its type). |
void |
setMode(java.lang.String type)
Set the type (mode) of this actor. |
java.lang.String |
toString()
|
| Methods inherited from class nz.ac.waikato.mcennis.rat.graph.model.ModelShell |
|---|
addListener, fireChange |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BasicUser(java.lang.String ID)
| Method Detail |
|---|
public java.lang.String getID()
Actor
getID in interface Actorpublic java.util.List<Property> getProperty()
Actor
getProperty in interface Actorpublic Property getProperty(java.lang.String ID)
Actor
getProperty in interface ActorID - key-name for the property.
public void removeProperty(java.lang.String ID)
Actor
removeProperty in interface ActorID - key-name of property to remove.public void add(Property prop)
Actor
add in interface Actorprop - property to be addedpublic void setMode(java.lang.String type)
Actor
setMode in interface Actortype - new type (mode) of this actorpublic java.lang.String getMode()
Actor
getMode in interface Actorpublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparableprotected int compareProperties(Actor right)
right - actor to be compared against
public boolean equals(java.lang.Object obj)
equals in interface Actorequals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic void setID(java.lang.String id)
Actor
setID in interface Actorid - ID this actor should be set topublic java.lang.String toString()
toString in class java.lang.Objectpublic Actor prototype()
Actor
prototype in interface Actorpublic void init(Properties properties)
init in interface Actor
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||