Java 2 Platform
v1.3

edu.umich.visualsoar.graph
Class SoarVertex

java.lang.Object
  |
  +--edu.umich.visualsoar.graph.Vertex
        |
        +--edu.umich.visualsoar.graph.SoarVertex
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
EnumerationVertex, FloatRangeVertex, IntegerRangeVertex, SoarIdentifierVertex, StringVertex

public abstract class SoarVertex
extends Vertex

This class is the base class for all Soar Working memory vertices

See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.umich.visualsoar.graph.Vertex
number
 
Constructor Summary
SoarVertex(int id)
          Constructs a SoarVertex with the given id
 
Method Summary
abstract  boolean allowsEmanatingEdges()
          This method is used to determine whether or not this node allows children
abstract  edu.umich.visualsoar.graph.SoarVertex copy(int newId)
          Method returns a new copy of the same data, but with a new id
 boolean edit(java.awt.Frame owner)
          This method allows the user to edit the contents of this node
 boolean isEditable()
          This method tells us whether or not the edit method will work
 boolean isUnknown()
           
abstract  boolean isValid(java.lang.String value)
          This method determines whether or not a given value is valid for this particular node
abstract  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 edu.umich.visualsoar.graph.Vertex
getValue, setValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SoarVertex

public SoarVertex(int id)
Constructs a SoarVertex with the given id

Method Detail

allowsEmanatingEdges

public abstract boolean allowsEmanatingEdges()
This method is used to determine whether or not this node allows children

Returns:
whether or not this Vertex allows emanating edges

isEditable

public boolean isEditable()
This method tells us whether or not the edit method will work

Returns:
whether or not this node is editable

isValid

public abstract boolean isValid(java.lang.String value)
This method determines whether or not a given value is valid for this particular node

Parameters:
value - the string we are checking the validity of
Returns:
is the string a valid value

copy

public abstract edu.umich.visualsoar.graph.SoarVertex copy(int newId)
Method returns a new copy of the same data, but with a new id

Returns:
the new vertex

edit

public boolean edit(java.awt.Frame owner)
This method allows the user to edit the contents of this node


write

public abstract void write(java.io.Writer w)
                    throws java.io.IOException
This method writes a description of this node to the stream pointed to by the writer

Parameters:
w - the stream where this node is described to
Throws:
IOException - if there was an error writing to the stream

isUnknown

public boolean isUnknown()

Java 2 Platform
v1.3