Uses of Class
crowdmodel.agents.CrowdAgent

Packages that use CrowdAgent
crowdmodel   
crowdmodel.agents   
crowdmodel.styles   
crowdmodel.test   
crowdmodel.utils   
 

Uses of CrowdAgent in crowdmodel
 

Fields in crowdmodel declared as CrowdAgent
(package private)  CrowdAgent Cluster.d_dummy1
           
(package private)  CrowdAgent Cluster.d_dummy2
           
(package private)  CrowdAgent Cluster.d_dummy3
           
 

Methods in crowdmodel that return CrowdAgent
 CrowdAgent Cluster.getD_dummy1()
           
 CrowdAgent Cluster.getD_dummy2()
           
 CrowdAgent Cluster.getD_dummy3()
           
 

Methods in crowdmodel with parameters of type CrowdAgent
 void Cluster.setAgent4Tracking(CrowdAgent rndAgent1, CrowdAgent rndAgent2, CrowdAgent rndAgent3)
          Sets the agents that will be tracked during the current run of the simulation.
private  void Cluster.updateDistance(CrowdAgent ca, CrowdAgent ca2)
          Updates the mean and variance of the measured distances between agents given a new distance of two agents.
 void Cluster.updateSameBehaviour(CrowdAgent ca, CrowdAgent ca2)
          Checks whether two agents show the same behaviour.
 void Cluster.updateSameBehaviourCnt(CrowdAgent ca, CrowdAgent ca2)
          Checks whether two agents show the same behaviour.
 

Uses of CrowdAgent in crowdmodel.agents
 

Fields in crowdmodel.agents declared as CrowdAgent
 CrowdAgent LocomotionRule.d_nearest
           
 CrowdAgent CrowdAgent.d_nearestAgent
           
private  CrowdAgent Physiology.d_thisAgent
           
(package private)  CrowdAgent MemoryElement.d_thisAgent
           
private  CrowdAgent Memory.d_thisAgent
           
 

Fields in crowdmodel.agents with type parameters of type CrowdAgent
private  repast.simphony.context.Context<CrowdAgent> CrowdAgent.d_agent_context
           
private  java.util.Vector<CrowdAgent> CrowdAgent.d_nearbyAgents
           
private  java.util.Vector<CrowdAgent> CrowdAgent.d_prevAgentsInSight
           
private  java.util.Vector<CrowdAgent> CrowdAgent.d_prevNearbyAgents
           
private  java.util.Vector<CrowdAgent> CrowdAgent.d_visibleOthers
           
 

Methods in crowdmodel.agents that return CrowdAgent
 CrowdAgent LocomotionRule.getNearestAgent()
           
 CrowdAgent CrowdAgent.getNearestAgent()
           
 

Methods in crowdmodel.agents that return types with arguments of type CrowdAgent
 java.util.Vector<CrowdAgent> CrowdAgent.getNearbyAgents()
           
 java.util.Vector<CrowdAgent> CrowdAgent.getVisibleOthers()
           
 

Methods in crowdmodel.agents with parameters of type CrowdAgent
 void ManipulationRule.execute(CrowdAgent agent, java.lang.String manipulation)
           
 boolean CrowdAgent.ingroup(CrowdAgent otherAgent)
          Function that checks whether another agent is part of the same group as this agent.
 void CrowdAgent.setNearestAgent(CrowdAgent nearest)
           
protected  void Physiology.setThisAgent(CrowdAgent thisAgent)
          Sets the Agent to whom this physiology belongs This allows for the 'direct' access of methods/vars concerning physiology by the functions in Physiology; As Inheritance works only in one direction, this works around it by being able to access the agent it self The function checks whether this has already been assigned, at this is only done once while initialising.
 void MemoryElement.setThisAgent(CrowdAgent thisAgent)
          Sets the Agent where this MemoryElement belongs to This allows for the 'direct' access of methods/vars concerning the Agent by the functions in the MemoryElements; The function checks whether this has already been assigned, at this is only done once while initialising.
 void Memory.setThisAgent(CrowdAgent thisAgent)
          Sets the Agent to whom this memory belongs This allows for the 'direct' access of methods/vars concerning memory by the functions in Memory; The function checks whether this has already been assigned, at this is only done once while initialising.
 

Method parameters in crowdmodel.agents with type arguments of type CrowdAgent
 void Memory.setMyLeaders(java.util.HashSet<CrowdAgent> leaders)
          Sets in memory which agents this agent perceives as a leader NOTE: need to change this structure, PersonFacts need to be in one set, not separate for friends and leaders
 void CrowdAgent.setMyLeaders(java.util.HashSet<CrowdAgent> leaders)
          Sets the agent with the persons it perceives as a leader
 

Constructor parameters in crowdmodel.agents with type arguments of type CrowdAgent
CrowdAgent(int agentID, repast.simphony.context.Context<CObject> worldContext, repast.simphony.context.Context<CrowdAgent> agentContext)
          This constructor creates and initialises an agent
 

Uses of CrowdAgent in crowdmodel.styles
 

Methods in crowdmodel.styles with parameters of type CrowdAgent
 java.awt.Color CrowdAgentStyle2D.getGroupColour(CrowdAgent ca)
          Returns the colour depending on the group it belongs to in the sense that group members have the same color
 double CrowdAgentStyle2D.getRotation(CrowdAgent ca)
          Returns the heading of an agent to indicate the rotation of the shape that is used to represent an agent on the display
 

Uses of CrowdAgent in crowdmodel.test
 

Fields in crowdmodel.test declared as CrowdAgent
(package private)  CrowdAgent PerceiveTest.d_testDummy
           
(package private)  CrowdAgent BehaveTest.d_testDummy
           
 

Fields in crowdmodel.test with type parameters of type CrowdAgent
(package private)  java.util.HashMap<CrowdAgent,java.lang.Integer> BehaveTest.d_agent2index
           
(package private)  java.util.Iterator<CrowdAgent> BehaveTest.d_agents
           
(package private)  java.util.HashMap<java.lang.Integer,CrowdAgent> BehaveTest.d_index2agent
           
 

Methods in crowdmodel.test with parameters of type CrowdAgent
 boolean PerceiveTest.emptyBladder(CrowdAgent ca)
          Function that checks whether the bladder of an agent is empty (equals 0)
 boolean PerceiveTest.fullStomach(CrowdAgent ca)
          Function that checks whether the stomach of an agent is full (equals 1)
 boolean PerceiveTest.primingTest(java.lang.String elementName, CrowdAgent testDummy)
          Tests whether a memory element was primed during the current time step.
 

Constructors in crowdmodel.test with parameters of type CrowdAgent
BehaveTest(CrowdAgent agent, int crowdsize, java.util.Iterator<CrowdAgent> agents)
           
PerceiveTest(CrowdAgent agent)
           
 

Constructor parameters in crowdmodel.test with type arguments of type CrowdAgent
BehaveTest(CrowdAgent agent, int crowdsize, java.util.Iterator<CrowdAgent> agents)
           
 

Uses of CrowdAgent in crowdmodel.utils
 

Methods in crowdmodel.utils that return CrowdAgent
static CrowdAgent Misc.nearestAgent(repast.simphony.context.Context context, CrowdAgent me, java.util.Iterator<CrowdAgent> agents)
          Returns the agent that is physically the nearest
 

Methods in crowdmodel.utils that return types with arguments of type CrowdAgent
static java.util.Vector<CrowdAgent> Misc.agentsInCone(repast.simphony.context.Context context, CrowdAgent me, double angle, double distance)
          Returns the agents that are situated in a cone given a position, angle, width and depth.
 

Methods in crowdmodel.utils with parameters of type CrowdAgent
static java.util.Vector<CrowdAgent> Misc.agentsInCone(repast.simphony.context.Context context, CrowdAgent me, double angle, double distance)
          Returns the agents that are situated in a cone given a position, angle, width and depth.
static boolean Misc.close2friend(repast.simphony.context.Context<CObject> context, java.util.Iterator<CrowdAgent> friends, CrowdAgent me)
          This function returns whether an agent is standing close to one of its friends This is done by checking the distance between the agent and all of its friends.
static CrowdAgent Misc.nearestAgent(repast.simphony.context.Context context, CrowdAgent me, java.util.Iterator<CrowdAgent> agents)
          Returns the agent that is physically the nearest
static int Misc.nrAgentsInCone(repast.simphony.context.Context context, CrowdAgent me, double angle, double distance)
          Calculates the number of agents that are situated in a cone given a position, angle, depth and width.
static repast.simphony.space.continuous.NdPoint Misc.posClose2pos(repast.simphony.context.Context<CObject> context, repast.simphony.space.continuous.NdPoint posFriend, CrowdAgent me)
          Function returns a position close a given position (here the position of a friend is used) It searches for a position in the Moore's neighbourhood (the eight surrounding patches) When no position can be found in the neighbourhood that is available for an agent to stand on (depending on walkablility: occupiedness (other objects/agents) and positioned within the world) the function returns null.
static repast.simphony.space.continuous.NdPoint Misc.posNearestAgent(repast.simphony.context.Context context, repast.simphony.space.continuous.NdPoint myPos, java.util.Iterator<CrowdAgent> agents, CrowdAgent me)
          Returns the location of the nearest positioned agent given a set of agents and my own position.
static boolean Misc.walkablePatch(repast.simphony.context.Context context, CrowdAgent thisAgent, repast.simphony.space.continuous.NdPoint target)
          Given a (x,y) coordinate this function returns whether this gridcell is walkable or not based on the position being located within the world and whether the cell is walkable (not a building (stage,bar,toilet)) Note overloaded function!
 

Method parameters in crowdmodel.utils with type arguments of type CrowdAgent
static boolean Misc.close2friend(repast.simphony.context.Context<CObject> context, java.util.Iterator<CrowdAgent> friends, CrowdAgent me)
          This function returns whether an agent is standing close to one of its friends This is done by checking the distance between the agent and all of its friends.
static CrowdAgent Misc.nearestAgent(repast.simphony.context.Context context, CrowdAgent me, java.util.Iterator<CrowdAgent> agents)
          Returns the agent that is physically the nearest
static repast.simphony.space.continuous.NdPoint Misc.posNearestAgent(repast.simphony.context.Context context, repast.simphony.space.continuous.NdPoint myPos, java.util.Iterator<CrowdAgent> agents, CrowdAgent me)
          Returns the location of the nearest positioned agent given a set of agents and my own position.