|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcrowdmodel.CObject
crowdmodel.test.PerceiveTest
public class PerceiveTest
This class describes a test of the function of the implemented CrowdModel It concerns one of the major processes: perception By checking this process, the functioning of the structure components is also tested. It is not the most thorough way of code testing (as I am not testing every method) it is a pragmatic way of checking whether my theoretical model is working the way it is supposed to.
Field Summary | |
---|---|
(package private) CrowdAgent |
d_testDummy
|
(package private) repast.simphony.context.Context |
d_world
|
Fields inherited from class crowdmodel.CObject |
---|
d_id, d_world_context |
Constructor Summary | |
---|---|
PerceiveTest(CrowdAgent agent)
|
Method Summary | |
---|---|
boolean |
checkBarPOIs()
Checks whether the agents currently standing on at a bar (on a bar patch) have their physiology settings correctly updated |
boolean |
checkPrimingPersonFacts()
Function that checks whether the perception of other agents (that are supposed to be seen) have their correct impact on the personFacts in terms of being primed. |
boolean |
checkStagePOI()
Checks the effect of the stagePOI, whether the vicinity of the stage has the proper effect on the id goal satisfaction level of the agent. |
boolean |
checkToiletPOIs()
Checks whether the agents currently at a toilet (are situated on a toilet patch) have their physiology settings correctly updated (empty bladder) |
boolean |
emptyBladder(CrowdAgent ca)
Function that checks whether the bladder of an agent is empty (equals 0) |
boolean |
fullStomach(CrowdAgent ca)
Function that checks whether the stomach of an agent is full (equals 1) |
boolean |
perceivedBehaviours()
Checks whether the perception of behaviours that are supposably seen by an agent are correctly handled by: priming the corresponding behaviourRule in memory This is done for all agents. |
boolean |
perceivedPersons()
Checks whether perceiving a person is correctly handled: 1) by priming the corresponding personFact in memory 2) density levels affecting physiology 3) satisfaction of the social goal |
boolean |
perceivedPOIs()
Function checks whether the agents that are situated on POIs (point-of-interest's) have their internal settings correctly updated. |
boolean |
primingTest(java.lang.String elementName,
CrowdAgent testDummy)
Tests whether a memory element was primed during the current time step. |
void |
testIt()
Tests all aspects of perception for every time step. |
Methods inherited from class crowdmodel.CObject |
---|
CObject, delete, getID, step |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
repast.simphony.context.Context d_world
CrowdAgent d_testDummy
Constructor Detail |
---|
public PerceiveTest(CrowdAgent agent)
Method Detail |
---|
public void testIt()
public boolean perceivedPOIs()
public boolean checkBarPOIs()
public boolean checkToiletPOIs()
public boolean checkStagePOI()
public boolean perceivedBehaviours()
public boolean primingTest(java.lang.String elementName, CrowdAgent testDummy)
elementName
-
public boolean perceivedPersons()
public boolean checkPrimingPersonFacts()
public boolean fullStomach(CrowdAgent ca)
agent
-
public boolean emptyBladder(CrowdAgent ca)
agent
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |