Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,JTurtle> |
turtleMap |
Constructor and Description |
---|
WorkspaceContext() |
Modifier and Type | Method and Description |
---|---|
void |
addTurtle(java.lang.String name,
JTurtle turtle) |
java.lang.Object |
value(java.lang.String name)
If there are local/global variables, a variable might have a different
value depending on the Context, so Contexts should support determining
the value of an identifier.
|
private java.util.Map<java.lang.String,JTurtle> turtleMap
public java.lang.Object value(java.lang.String name)
Context
public void addTurtle(java.lang.String name, JTurtle turtle)
name
- the name of the turtle in this workspaceturtle
- the turtle object created in the GUI