gnu.mapping
Class SharedLocation

java.lang.Object
  extended by gnu.mapping.Location
      extended by gnu.mapping.IndirectableLocation
          extended by gnu.mapping.NamedLocation
              extended by gnu.mapping.SharedLocation
All Implemented Interfaces:
EnvironmentKey, java.util.Map.Entry

public class SharedLocation
extends NamedLocation

A Location suitable when Environment or Location can be access by multiple threads. Accesses are synchronized.


Field Summary
 
Fields inherited from class gnu.mapping.IndirectableLocation
base, DIRECT_ON_SET, INDIRECT_FLUIDS, value
 
Fields inherited from class gnu.mapping.Location
UNBOUND
 
Fields inherited from interface gnu.mapping.EnvironmentKey
FUNCTION
 
Constructor Summary
SharedLocation(Symbol symbol, java.lang.Object property, int timestamp)
           
 
Method Summary
 java.lang.Object get(java.lang.Object defaultValue)
           
 boolean isBound()
           
 void set(java.lang.Object newValue)
           
 
Methods inherited from class gnu.mapping.NamedLocation
entered, equals, getEnvironment, getKey, getKeyProperty, getKeySymbol, hashCode, matches, matches, setRestore, setWithSave
 
Methods inherited from class gnu.mapping.IndirectableLocation
getBase, isConstant, setAlias, setBase, undefine
 
Methods inherited from class gnu.mapping.Location
get, getValue, make, make, make, print, setValue, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map.Entry
getValue, setValue
 

Constructor Detail

SharedLocation

public SharedLocation(Symbol symbol,
                      java.lang.Object property,
                      int timestamp)
Method Detail

get

public final java.lang.Object get(java.lang.Object defaultValue)
Specified by:
get in class Location

isBound

public boolean isBound()
Overrides:
isBound in class Location

set

public final void set(java.lang.Object newValue)
Specified by:
set in class Location