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.


Constructor Index

 o RealIntervalTable()
create an empty table
 o RealIntervalTable(Vector)

Method Index

 o clone()
 o getEnvPairString(int)
Returns a string representation of the ith element of the table.
 o getEnvPairString2(int)
 o getNames()
 o getNthInterval(int)
 o getNthVarName(int)
 o intersect(RealIntervalTable)
this = this intersect A
 o lookup(String)
Look for a pair (s,v) in the table.
 o size()
this returns the number of pairs in the environment
 o store(String, RealInterval)
Store the pair (s,v) in the table.
 o toString()
 o union(RealIntervalTable)
this = this union A

Constructors

 o RealIntervalTable
 public RealIntervalTable()
create an empty table

 o RealIntervalTable
 public RealIntervalTable(Vector v)

Methods

 o clone
 public Object clone()
Overrides:
clone in class Object
 o size
 public int size()
this returns the number of pairs in the environment

 o getNames
 public String[] getNames()
 o 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.

 o getEnvPairString2
 public String getEnvPairString2(int i)
 o getNthInterval
 public RealInterval getNthInterval(int n)
 o getNthVarName
 public String getNthVarName(int n)
 o intersect
 public void intersect(RealIntervalTable A)
this = this intersect A

 o union
 public void union(RealIntervalTable A)
this = this union A

 o toString
 public String toString()
Overrides:
toString in class Object
 o 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.

 o 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