object
Class PublicVariable
java.lang.Object
object.PublicVariable
- Direct Known Subclasses:
- CumulativeVariable, DummyVariable, ExclusiveVariable, ViewableVariable
public abstract class PublicVariable
- extends java.lang.Object
This is the root class for all share-able variables in an
HLA_RePast model.
A PublicObject
instance may be made up of a mix of
PublicVariables and standard Java variables (eg. an agent's
position may be represented as ViewablePoint
whilst
its rule-base (or whatever cognitive model) is represented
as a standard Java Hashtable
. This would result in
changes to position being reflected to RemoteObject
proxies of the agent but changes in the rule-base remaining
purely within the local JVM.
An extensive collection of
- Author:
- Rob Minson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ownership
protected PublicVariable.OwnershipState ownership
obLook
protected ObjectLookup obLook
myHandle
protected int myHandle
ownersHandle
protected int ownersHandle
hasValue
protected boolean hasValue
PublicVariable
public PublicVariable()
isOwned
public boolean isOwned()
requestOwnership
protected void requestOwnership()
throws hla.rti13.java1.RTIexception
- Throws:
hla.rti13.java1.RTIexception
checkOwnership
protected boolean checkOwnership()
throws java.lang.IllegalStateException,
hla.rti13.java1.RTIexception
- Throws:
java.lang.IllegalStateException
hla.rti13.java1.RTIexception
waitForOwnershipResolution
protected boolean waitForOwnershipResolution()
addVariableListener
public void addVariableListener(VariableListener listener)
removeVariableListener
public void removeVariableListener(VariableListener listener)