org.metaabm.gen.test
Class BasicMovementAgentTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.metaabm.gen.test.share.AgentTestCase
              extended by org.metaabm.gen.test.BasicMovementAgentTestCase
All Implemented Interfaces:
junit.framework.Test

public class BasicMovementAgentTestCase
extends AgentTestCase

Basic Movement Agent Java Implementation. Generated by metaabm system: Apr 1, 2008 5:41:04 PM MDT in project: org.metaabm.gen.test (testing)


Field Summary
 
Fields inherited from class org.metaabm.gen.test.share.AgentTestCase
agentLoaded, targetMode
 
Constructor Summary
BasicMovementAgentTestCase()
          Constructs a new Basic Movement Agent.
 
Method Summary
 void andWithAndGoal()
          .
 void andWithOrGoal()
          .
 IBasicMovementAgent getAgent()
           
 int getVision()
          Gets the Vision property for Basic Movement Agent.
 boolean isMovingTowardGoal()
          Gets the Moving Toward Goal property for Basic Movement Agent.
 boolean isSuccess()
          Gets the Success property for Basic Movement Agent.
 void moveToAvailableNeighbor()
          .
 void moveToGoalWithin()
          .
 void moveToNearestGoal()
          .
 void moveToNeighbor()
          .
 void moveToRandomAvailable()
          .
 void moveToRandomNoAvailableCheck()
          .
 void moveTowardNearestAgent()
          .
 void moveTowardNearestGoal()
          .
 void moveTwice()
          .
 void moveWithEvaluate()
          .
 void setConditionNeighbor()
          .
 void setConditionStateAgentNeighbor()
          .
 void setMovingTowardGoal(boolean movingTowardGoal)
          Sets the Moving Toward Goal property for Basic Movement Agent.
 void setRandomNeighborValue()
          .
 void setSuccess(boolean success)
          Sets the Success property for Basic Movement Agent.
 void setUp()
           
 void setVision(int vision)
          Sets the Vision property for Basic Movement Agent.
 void testExistence()
           
 
Methods inherited from class org.metaabm.gen.test.share.AgentTestCase
setAgentLoaded
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BasicMovementAgentTestCase

public BasicMovementAgentTestCase()
Constructs a new Basic Movement Agent.

Method Detail

setUp

public void setUp()
Overrides:
setUp in class AgentTestCase

getAgent

public IBasicMovementAgent getAgent()

testExistence

public void testExistence()

moveToRandomAvailable

public void moveToRandomAvailable()
.


moveToRandomNoAvailableCheck

public void moveToRandomNoAvailableCheck()
.


moveToNeighbor

public void moveToNeighbor()
.


moveToAvailableNeighbor

public void moveToAvailableNeighbor()
.


moveToNearestGoal

public void moveToNearestGoal()
.


moveTowardNearestAgent

public void moveTowardNearestAgent()
.


moveTowardNearestGoal

public void moveTowardNearestGoal()
.


moveWithEvaluate

public void moveWithEvaluate()
.


moveTwice

public void moveTwice()
.


andWithOrGoal

public void andWithOrGoal()
.


andWithAndGoal

public void andWithAndGoal()
.


moveToGoalWithin

public void moveToGoalWithin()
.


setConditionNeighbor

public void setConditionNeighbor()
.


setConditionStateAgentNeighbor

public void setConditionStateAgentNeighbor()
.


setRandomNeighborValue

public void setRandomNeighborValue()
.


getVision

public int getVision()
Gets the Vision property for Basic Movement Agent.

Returns:

setVision

public void setVision(int vision)
Sets the Vision property for Basic Movement Agent.

Parameters:
_vision - the new Vision value

isMovingTowardGoal

public boolean isMovingTowardGoal()
Gets the Moving Toward Goal property for Basic Movement Agent.

Returns:

setMovingTowardGoal

public void setMovingTowardGoal(boolean movingTowardGoal)
Sets the Moving Toward Goal property for Basic Movement Agent.

Parameters:
_movingTowardGoal - the new Moving Toward Goal value

isSuccess

public boolean isSuccess()
Gets the Success property for Basic Movement Agent.

Returns:

setSuccess

public void setSuccess(boolean success)
Sets the Success property for Basic Movement Agent.

Parameters:
_success - the new Success value