SwarmObject -- A superclass of most objects in a Swarm simulation that provides support for probing.
Description
A SwarmObject is an object that is intended to be a member of a Swarm. It's behavior will be perpetuated by messages sent from the schedule of events defined in the context of Swarm object.
The SwarmObject is where the models of all the agents of a simulation will reside. Hence, most of the burden on defining the messages that can be sent to any agent lies with the user. SwarmObject inherits its basic functionality from the Create and Drop object types defined in the defobj library.
- (id <MessageProbe>)getProbeForMessage: (const char *)aMessage The getProbeForMessage: method returns the MessageProbe indexed in the ProbeMap by the string aMessage.
- (id <VarProbe>)getProbeForVariable: (const char *)aVariable The getProbeForVariable: method returns the VarProbe indexed in the ProbeMap by the string aVariable.
- (id <ProbeMap>)getCompleteProbeMap The getCompleteProbeMap method returns a newly created CompleteProbeMap for an object.
- (id <ProbeMap>)getProbeMap The getProbeMap method returns a pointer to the ProbeMap for the object if there has been one creaded for that object's class. If it hasn't been created, then it creates a default ProbeMap.