com.azalient.api.a
Interface IUserData

All Known Subinterfaces:
IAgent, IAttached, IDwell, ILane, ILink, ILoop, ILoopMultiple, IMotor, INode, IPerson, IService, ISign, ITransport, IUserTwig, IVehicle, IZone

public interface IUserData

Many of the objects in the model (walkway, link, lane, etc) support the attachment of user data. There may be several independently created plugins in operation on any model, so user data must be attached using a unique key from each plugin.


Method Summary
 Object userData(int owner)
          Retrieve the user-data on this object.
 void userData(int owner, Object data)
          Set the user data on this object.
 int userDataHashCode()
          Get the unique hash code for this object.
 

Method Detail

userDataHashCode

int userDataHashCode()
Get the unique hash code for this object. This is used in the internal system to store the data.


userData

void userData(int owner,
              Object data)
Set the user data on this object. The owner index comes from BasePlugin.uniqueIndex()


userData

Object userData(int owner)
Retrieve the user-data on this object. The owner index comes from BasePlugin.uniqueIndex()