Java 2 Platform
v1.3

edu.umich.visualsoar.graph
Class FloatRangeVertex

java.lang.Object
  |
  +--edu.umich.visualsoar.graph.Vertex
        |
        +--edu.umich.visualsoar.graph.SoarVertex
              |
              +--edu.umich.visualsoar.graph.FloatRangeVertex
All Implemented Interfaces:
java.io.Serializable

public class FloatRangeVertex
extends SoarVertex

See Also:
Serialized Form

Field Summary
private  double high
           
private  double low
           
(package private)  java.lang.String rep
           
 
Fields inherited from class edu.umich.visualsoar.graph.Vertex
number
 
Constructor Summary
FloatRangeVertex(int id, double _low, double _high)
           
 
Method Summary
 boolean allowsEmanatingEdges()
          This method is used to determine whether or not this node allows children
private  void calculateRep()
           
 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 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 edu.umich.visualsoar.graph.SoarVertex
isUnknown
 
Methods inherited from class edu.umich.visualsoar.graph.Vertex
getValue, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

low

private double low

high

private double high

rep

java.lang.String rep
Constructor Detail

FloatRangeVertex

public FloatRangeVertex(int id,
                        double _low,
                        double _high)
Method Detail

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

isEditable

public boolean isEditable()
Description copied from class: SoarVertex
This method tells us whether or not the edit method will work

Overrides:
isEditable in class SoarVertex
Returns:
whether or not this node is editable

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

edit

public boolean edit(java.awt.Frame owner)
Description copied from class: SoarVertex
This method allows the user to edit the contents of this node

Overrides:
edit in class SoarVertex

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

calculateRep

private void calculateRep()

Java 2 Platform
v1.3