public class ReferentMap
extends Object
| Modifier and Type | Field and Description |
|---|---|
private HashMap<String,GraphObject> |
objectmap
Key is a variable name (e.g., x1) or string referent
|
| Constructor and Description |
|---|
ReferentMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
GraphObject |
getObjectByReferent(String ref)
Look up the graph object that corresponds to the referent given.
|
void |
putObjectByReferent(String ref,
GraphObject go)
Insert the graph object into the list, using its referent as a key.
|
private HashMap<String,GraphObject> objectmap
public GraphObject getObjectByReferent(String ref)
ref - public void putObjectByReferent(String ref,
GraphObject go)
throws CGIFVariableException
ref - go - CGIFVariableException - if the referent has already been associated with an object.public void clear()