org.metaabm.gen.test
Class BasicMovementAgent

java.lang.Object
  extended by org.ascape.model.AscapeObject
      extended by org.ascape.model.Agent
          extended by org.ascape.model.LocatedAgent
              extended by org.ascape.model.Cell
                  extended by org.ascape.model.CellOccupant
                      extended by org.metaabm.gen.test.BasicMovementAgent
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, org.ascape.model.space.Location, org.ascape.model.space.Node, org.ascape.util.HasName, org.ascape.util.RandomFunctions, IBasicMovementAgent

public class BasicMovementAgent
extends org.ascape.model.CellOccupant
implements IBasicMovementAgent

Basic Movement Agent Java Implementation. Generated by metaabm system: Apr 20, 2008 1:42:35 PM MDT in project: org.metaabm.gen.ascape.test (testing)

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.ascape.model.CellOccupant
PLAY_HOST_RULE, RANDOM_WALK_AVAILABLE_RULE
 
Fields inherited from class org.ascape.model.Cell
CALCULATE_NEIGHBORS_RULE, neighbors, PLAY_NEIGHBORS_RULE, PLAY_RANDOM_NEIGHBOR_RULE
 
Fields inherited from class org.ascape.model.LocatedAgent
agentSize, coordinate, MOVE_RANDOM_LOCATION_RULE, RANDOM_WALK_RULE, thisUpdate
 
Fields inherited from class org.ascape.model.Agent
DEATH_RULE, FISSIONING_RULE, FORCE_DIE_RULE, FORCE_FISSION_RULE, FORCE_MOVE_RULE, INITIALIZE_RULE, ITERATE_AND_UPDATE_RULE, ITERATE_RULE, METABOLISM_RULE, MOVEMENT_RULE, PLAY_OTHER, UPDATE_RULE
 
Fields inherited from class org.ascape.model.AscapeObject
ARBITRARY_SEED, name, scape
 
Constructor Summary
BasicMovementAgent()
          Constructs a new Basic Movement Agent.
 
Method Summary
 void andWithAndGoal()
          .
 void andWithOrGoal()
          .
static BasicMovementModel getBasicMovementModel()
          Gets the Basic Movement Model property for .
 java.awt.Color getColor()
           
 java.util.List getNetwork()
           
 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()
          .
static void setBasicMovementModel(BasicMovementModel _basicMovementModel)
          Sets the Basic Movement Model property for .
 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 setVision(int _vision)
          Sets the Vision property for Basic Movement Agent.
 
Methods inherited from class org.ascape.model.CellOccupant
clone, die, findAvailableNeighbors, findNearest, findNearest, findNearest, findNearest, findNearest, findNeighbors, findNeighborsOnHost, findRandomAvailableNeighbor, findRandomNeighbor, findRandomNeighborOnHost, findWithin, findWithin, findWithin, getCoordinate, getHostCell, getHostScape, leave, moveAway, moveTo, moveToRandomLocation, moveToward, playNeighbors, playRandomNeighbor, randomWalk, randomWalkAvailable, setHostCell, setHostScape
 
Methods inherited from class org.ascape.model.Cell
calculateNeighbors, countNeighbors, findOccupants, findRelative, getDistance, getNeighbors, getNeighbors, getOccupant, hostedCondition, initialize, isAvailable, removeOccupant, setNeighbors, setNeighborsList, setNetwork, setOccupant, toString
 
Methods inherited from class org.ascape.model.LocatedAgent
calculateDistance, calculateDistance, countWithin, countWithin, countWithin, findMaximumWithin, findWithin, getAgentSize, hasWithin, hasWithin, hasWithin, isUpdateNeeded, moveAway, moveAway, moveTo, moveToward, moveToward, requestUpdate, requestUpdateNext, setAgentSize, setCoordinate
 
Methods inherited from class org.ascape.model.Agent
clearDeleteMarker, death, deathCondition, execute, execute, fission, fissionCondition, fissioning, getColor, getImage, getImage, getIteration, getRoot, isDelete, isInitialized, iterate, markForDeletion, metabolism, move, movement, movementCondition, play, scapeCreated, setInitialized, setScape, update
 
Methods inherited from class org.ascape.model.AscapeObject
diffDeep, diffDeep, diffDeepBFS, diffDeepDFS, diffDeepValidate, diffDeepVisit, equalsDeep, equalsDeep, equalsDeep, getComparisonStream, getName, getRandom, getRandomSeed, getScape, randomInRange, randomInRange, randomIs, randomToLimit, reseed, setComparisonStream, setName, setRandom, setRandomSeed
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ascape.model.space.Location
clearDeleteMarker, isDelete, markForDeletion, setCoordinate
 

Constructor Detail

BasicMovementAgent

public BasicMovementAgent()
Constructs a new Basic Movement Agent.

Method Detail

getNetwork

public java.util.List getNetwork()
Overrides:
getNetwork in class org.ascape.model.Cell

getColor

public java.awt.Color getColor()
Overrides:
getColor in class org.ascape.model.Agent

moveToRandomAvailable

public void moveToRandomAvailable()
.

Specified by:
moveToRandomAvailable in interface IBasicMovementAgent

moveToRandomNoAvailableCheck

public void moveToRandomNoAvailableCheck()
.

Specified by:
moveToRandomNoAvailableCheck in interface IBasicMovementAgent

moveToNeighbor

public void moveToNeighbor()
.

Specified by:
moveToNeighbor in interface IBasicMovementAgent

moveToAvailableNeighbor

public void moveToAvailableNeighbor()
.

Specified by:
moveToAvailableNeighbor in interface IBasicMovementAgent

moveToNearestGoal

public void moveToNearestGoal()
.

Specified by:
moveToNearestGoal in interface IBasicMovementAgent

moveTowardNearestAgent

public void moveTowardNearestAgent()
.

Specified by:
moveTowardNearestAgent in interface IBasicMovementAgent

moveTowardNearestGoal

public void moveTowardNearestGoal()
.

Specified by:
moveTowardNearestGoal in interface IBasicMovementAgent

moveWithEvaluate

public void moveWithEvaluate()
.

Specified by:
moveWithEvaluate in interface IBasicMovementAgent

moveTwice

public void moveTwice()
.

Specified by:
moveTwice in interface IBasicMovementAgent

andWithOrGoal

public void andWithOrGoal()
.

Specified by:
andWithOrGoal in interface IBasicMovementAgent

andWithAndGoal

public void andWithAndGoal()
.

Specified by:
andWithAndGoal in interface IBasicMovementAgent

moveToGoalWithin

public void moveToGoalWithin()
.

Specified by:
moveToGoalWithin in interface IBasicMovementAgent

setConditionNeighbor

public void setConditionNeighbor()
.

Specified by:
setConditionNeighbor in interface IBasicMovementAgent

setConditionStateAgentNeighbor

public void setConditionStateAgentNeighbor()
.

Specified by:
setConditionStateAgentNeighbor in interface IBasicMovementAgent

setRandomNeighborValue

public void setRandomNeighborValue()
.

Specified by:
setRandomNeighborValue in interface IBasicMovementAgent

getVision

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

Specified by:
getVision in interface IBasicMovementAgent
Returns:

setVision

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

Specified by:
setVision in interface IBasicMovementAgent
Parameters:
_vision - the new Vision value

isMovingTowardGoal

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

Specified by:
isMovingTowardGoal in interface IBasicMovementAgent
Returns:

setMovingTowardGoal

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

Specified by:
setMovingTowardGoal in interface IBasicMovementAgent
Parameters:
_movingTowardGoal - the new Moving Toward Goal value

isSuccess

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

Specified by:
isSuccess in interface IBasicMovementAgent
Returns:

setSuccess

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

Specified by:
setSuccess in interface IBasicMovementAgent
Parameters:
_success - the new Success value

getBasicMovementModel

public static BasicMovementModel getBasicMovementModel()
Gets the Basic Movement Model property for .

Returns:
Most recent version.

setBasicMovementModel

public static void setBasicMovementModel(BasicMovementModel _basicMovementModel)
Sets the Basic Movement Model property for . Most recent version.

Parameters:
_basicMovementModel - the new Basic Movement Model value