|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nz.ac.waikato.mcennis.rat.graph.model.ModelShell nz.ac.waikato.mcennis.rat.graph.property.BasicProperty
public class BasicProperty
Class describing properties on graphs and actors
Field Summary |
---|
Fields inherited from class nz.ac.waikato.mcennis.rat.graph.model.ModelShell |
---|
listener |
Fields inherited from interface nz.ac.waikato.mcennis.rat.graph.property.Property |
---|
ADD_VALUE |
Constructor Summary | |
---|---|
BasicProperty(java.lang.String name,
java.lang.Class type)
Creates a new instance of BasicProperty |
Method Summary | |
---|---|
void |
add(java.lang.Object value)
Add a new value to this property |
int |
compareTo(java.lang.Object o)
|
Property |
duplicate()
create a deep copy of this property |
boolean |
equals(java.lang.Object obj)
|
java.lang.Class |
getPropertyClass()
Return the type of class that this property represents. |
java.lang.String |
getType()
return this property's unique id |
java.lang.Object[] |
getValue()
return array of all values. |
Methods inherited from class nz.ac.waikato.mcennis.rat.graph.model.ModelShell |
---|
addListener, fireChange |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface nz.ac.waikato.mcennis.rat.graph.model.Model |
---|
addListener |
Constructor Detail |
---|
public BasicProperty(java.lang.String name, java.lang.Class type)
name
- id for this propertyMethod Detail |
---|
public java.lang.Object[] getValue()
Property
getValue
in interface Property
public java.lang.String getType()
Property
getType
in interface Property
public void add(java.lang.Object value)
Property
add
in interface Property
value
- new object to be addedpublic int compareTo(java.lang.Object o) throws java.lang.ClassCastException
compareTo
in interface java.lang.Comparable
java.lang.ClassCastException
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public Property duplicate()
Property
duplicate
in interface Property
public java.lang.Class getPropertyClass()
Property
getPropertyClass
in interface Property
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |