All Packages Class Hierarchy This Package Previous Next Index
Class ia_parser.RealIntervalTable
java.lang.Object
|
+----ia_parser.RealIntervalTable
- public class RealIntervalTable
- extends Object
- implements Cloneable
the RealIntervalTable class implements a class of functions from
Strings to RealIntervals. It provides methods for
adding a (String,RealInterval) pair to the function, and for
looking up a RealInterval given a String.
-
RealIntervalTable()
- create an empty table
-
RealIntervalTable(Vector)
-
-
clone()
-
-
getEnvPairString(int)
- Returns a string representation of the ith element of the table.
-
getEnvPairString2(int)
-
-
getNames()
-
-
getNthInterval(int)
-
-
getNthVarName(int)
-
-
intersect(RealIntervalTable)
- this = this intersect A
-
lookup(String)
- Look for a pair (s,v) in the table.
-
size()
-
this returns the number of pairs in the environment
-
store(String, RealInterval)
- Store the pair (s,v) in the table.
-
toString()
-
-
union(RealIntervalTable)
- this = this union A
RealIntervalTable
public RealIntervalTable()
- create an empty table
RealIntervalTable
public RealIntervalTable(Vector v)
clone
public Object clone()
- Overrides:
- clone in class Object
size
public int size()
- this returns the number of pairs in the environment
getNames
public String[] getNames()
getEnvPairString
public String getEnvPairString(int i)
- Returns a string representation of the ith element of the table.
This is used in the Interface procedure to printout a table
of variable/value pairs.
getEnvPairString2
public String getEnvPairString2(int i)
getNthInterval
public RealInterval getNthInterval(int n)
getNthVarName
public String getNthVarName(int n)
intersect
public void intersect(RealIntervalTable A)
- this = this intersect A
union
public void union(RealIntervalTable A)
- this = this union A
toString
public String toString()
- Overrides:
- toString in class Object
store
public void store(String s,
RealInterval v)
- Store the pair (s,v) in the table.
If a pair (s,w) is already in the table, then replace w with v.
Otherwise, add (s,v) as a new entry in the table.
lookup
public RealInterval lookup(String s)
- Look for a pair (s,v) in the table.
If one is found, then return v.
Otherwise, return null.
All Packages Class Hierarchy This Package Previous Next Index