|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcrowdmodel.agents.MemoryElement
crowdmodel.agents.Rule
crowdmodel.agents.BehaviourRule
crowdmodel.agents.LocomotionRule
public class LocomotionRule
A LocomotionRule describes the movement of the object that is asking for it Types of locomotion are person: A) vertical/body position: (not included) standing/upright sitting/seated kneeling/knelt lying/prone other B)horizontal: walking running/jogging marching (not included) dancing vehicular motion (not included) other object: move/transpose/displace
Field Summary | |
---|---|
java.lang.String |
d_domGoal
|
private repast.simphony.space.continuous.NdPoint |
d_hpos
|
CrowdAgent |
d_nearest
|
double |
dichtstebije
|
private java.util.ArrayList<java.lang.String> |
objectLocomotionList
|
static java.lang.String[] |
objectLocomotions
|
private java.util.ArrayList<java.lang.String> |
personLocomotionList
|
static java.lang.String[] |
personLocomotions
|
Fields inherited from class crowdmodel.agents.MemoryElement |
---|
d_activation, d_baseLevel, d_contextLevel, d_id, d_name, d_thisAgent, d_thisAgentFlag, d_thisMemory, d_thisMemoryFlag |
Constructor Summary | |
---|---|
LocomotionRule(java.lang.String name)
Constructor creates a locomotion rule with a predefined set of locomotion options |
Method Summary | |
---|---|
double |
checkSurrounding(double v)
braitenberg style surrounding check |
void |
dance()
Describes a behaviour on the spot: dancing At this point it only implies that an individual occupies a larger area in space |
void |
execute()
Executes the current locomotionRule At this point this is done by relating the name of the this rule with the corresponding function (predefined locomotion) for execution But can be reconsidered in doing this differently as all functions are described in every instantiation LocomotionRule class, however only one is associated/used. |
double |
getDichtstebije()
|
repast.simphony.space.continuous.NdPoint |
getHpos()
Returns the position this agent is heading to when moving social |
CrowdAgent |
getNearestAgent()
|
void |
move(double v)
MoveBraitenBerg describes movement still very simple, however if the target position ahead isn't walkable, the free spots +/-45 degrees the agent will move to that spot TODO update this description |
void |
moveOriginalMess(double v)
Describes the movement of an agent. |
void |
moveSimple(double v)
MoveSimple describes movement in the most simple form. |
void |
moveTest()
|
void |
nothing()
Do nothing behaviour :) |
double |
randomHeading()
Changes the current heading of the agent in a random direction The random number generator generates a uniform value between [0,1) Meaning that the change of getting a number between 0 and 1 is just as likely (never becomes 1) By multiplying with 360 degrees, the range is scaled to [0,360) |
void |
run()
Describes a moving behaviour: running Given a heading (based on current dominant goal) the agent moves with a velocity of 1.5 simulation units/tick (0.6 m/s) |
void |
setGoalHeading(java.lang.String domGoal)
Changes the heading of an agent based on the dominant goal This is a pre-movement part of an action. |
void |
setHpos(repast.simphony.space.continuous.NdPoint hpos)
Sets the position where this againt is heading to when moving social |
double |
socialHeading()
Function describes the heading change of an agent as the pre-movement part of moveSocial behaviour This involves moving towards others, driven by the need to fulfil the vicinity of others At this point social movement is headed to others however needs to be refined: - moving towards friends/group-members - moving towards a specific person(s) |
double |
socialHeadingSimple()
Turn to the agent that is the closest to you. |
double |
subsHeading()
Function describes the heading change of an agent as the pre-movement part of moveSubs behaviour This involves moving towards the toilet or bar, driven by the need for subsistence satisfaction This can be achieved by going to the toilet or go to the bar. |
void |
walk()
Describes the execution of a walking behaviour Given a certain heading the agent is walking in that direction. |
Methods inherited from class crowdmodel.agents.BehaviourRule |
---|
compareTo, updateActivation |
Methods inherited from class crowdmodel.agents.MemoryElement |
---|
approxB, contextActivation, getActivation, getID, getLastPrimeTime, getName, prime, setThisAgent, setThisMemory, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String[] objectLocomotions
public static final java.lang.String[] personLocomotions
public java.lang.String d_domGoal
private java.util.ArrayList<java.lang.String> objectLocomotionList
private java.util.ArrayList<java.lang.String> personLocomotionList
public double dichtstebije
public CrowdAgent d_nearest
private repast.simphony.space.continuous.NdPoint d_hpos
Constructor Detail |
---|
LocomotionRule(java.lang.String name)
name
- Method Detail |
---|
public void execute()
execute
in class Rule
domGoal
- heading
- pos
- public void nothing()
public void walk()
public void run()
public void dance()
public void setGoalHeading(java.lang.String domGoal)
public double socialHeading()
public double socialHeadingSimple()
public double subsHeading()
public double randomHeading()
public void moveSimple(double v)
velocity
- public void move(double v)
velocity
- public double checkSurrounding(double v)
public void moveOriginalMess(double v)
public void moveTest()
public double getDichtstebije()
public CrowdAgent getNearestAgent()
public repast.simphony.space.continuous.NdPoint getHpos()
public void setHpos(repast.simphony.space.continuous.NdPoint hpos)
hpos
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |