edu.umich.visualsoar.graph
Class StringVertex
java.lang.Object
|
+--edu.umich.visualsoar.graph.Vertex
|
+--edu.umich.visualsoar.graph.SoarVertex
|
+--edu.umich.visualsoar.graph.StringVertex
- All Implemented Interfaces:
- java.io.Serializable
- public class StringVertex
- extends SoarVertex
- See Also:
- Serialized Form
Fields inherited from class edu.umich.visualsoar.graph.Vertex |
number |
Method Summary |
boolean |
allowsEmanatingEdges()
This method is used to determine whether or not this
node allows children |
edu.umich.visualsoar.graph.SoarVertex |
copy(int newId)
Method returns a new copy of the same data, but with
a new id |
boolean |
isValid(java.lang.String s)
This method determines whether or not a given value is valid
for this particular node |
java.lang.String |
toString()
|
void |
write(java.io.Writer w)
This method writes a description of this node to the
stream pointed to by the writer |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
StringVertex
public StringVertex(int id)
copy
public edu.umich.visualsoar.graph.SoarVertex copy(int newId)
- Description copied from class:
SoarVertex
- Method returns a new copy of the same data, but with
a new id
- Specified by:
copy
in class SoarVertex
- Returns:
- the new vertex
allowsEmanatingEdges
public boolean allowsEmanatingEdges()
- Description copied from class:
SoarVertex
- This method is used to determine whether or not this
node allows children
- Specified by:
allowsEmanatingEdges
in class SoarVertex
- Returns:
- whether or not this Vertex allows emanating edges
isValid
public boolean isValid(java.lang.String s)
- Description copied from class:
SoarVertex
- This method determines whether or not a given value is valid
for this particular node
- Specified by:
isValid
in class SoarVertex
- Parameters:
s
- the string we are checking the validity of
- Returns:
- is the string a valid value
toString
public java.lang.String toString()
- Overrides:
toString
in class Vertex
write
public void write(java.io.Writer w)
throws java.io.IOException
- Description copied from class:
SoarVertex
- This method writes a description of this node to the
stream pointed to by the writer
- Specified by:
write
in class SoarVertex
- Parameters:
w
- the stream where this node is described to
java.io.IOException