| package org.metaabm.gen.test; |
| |
| import org.metaabm.gen.test.share.AgentTestCase; |
| |
| /** |
| * Basic Movement Agent Java Implementation. Generated by metaabm system: Apr |
| * 13, 2008 3:03:55 PM EDT in project: org.metaabm.gen.repast.test (testing) |
| */ |
| public class BasicMovementAgentTestCase extends AgentTestCase { |
| |
| /** |
| * Constructs a new Basic Movement Agent. |
| */ |
| public BasicMovementAgentTestCase() { |
| super("org.eclipse.amp.amf.gen.repast.test.target", "Basic Movement Agent Test", |
| "org.eclipse.amp.amf.gen.test.BasicMovementAgent"); |
| } |
| |
| public void setUp() { |
| agentLoaded = new BasicMovementAgent(); |
| } |
| |
| public IBasicMovementAgent getAgent() { |
| return (IBasicMovementAgent) agentLoaded; |
| } |
| |
| public void testExistence() { |
| assertNotNull(getAgent()); |
| } |
| |
| /** |
| * . |
| */ |
| public void moveToRandomAvailable() { |
| /* |
| * PROTECTED REGION ID(BasicMovementAgent_moveToRandomAvailable_Pre) |
| * ENABLED START |
| */ |
| // Pre-Conditions Here |
| /* PROTECTED REGION END */ |
| getAgent().moveToRandomAvailable(); |
| |
| /* |
| * PROTECTED REGION ID(BasicMovementAgent_moveToRandomAvailable_Post) |
| * ENABLED START |
| */ |
| // Post-Conditions Here |
| /* PROTECTED REGION END */ |
| } |
| |
| /** |
| * . |
| */ |
| public void moveToRandomNoAvailableCheck() { |
| /* |
| * PROTECTED REGION |
| * ID(BasicMovementAgent_moveToRandomNoAvailableCheck_Pre) ENABLED START |
| */ |
| // Pre-Conditions Here |
| /* PROTECTED REGION END */ |
| getAgent().moveToRandomNoAvailableCheck(); |
| |
| /* |
| * PROTECTED REGION |
| * ID(BasicMovementAgent_moveToRandomNoAvailableCheck_Post) ENABLED |
| * START |
| */ |
| // Post-Conditions Here |
| /* PROTECTED REGION END */ |
| } |
| |
| /** |
| * . |
| */ |
| public void moveToNeighbor() { |
| /* |
| * PROTECTED REGION ID(BasicMovementAgent_moveToNeighbor_Pre) ENABLED |
| * START |
| */ |
| // Pre-Conditions Here |
| /* PROTECTED REGION END */ |
| getAgent().moveToNeighbor(); |
| |
| /* |
| * PROTECTED REGION ID(BasicMovementAgent_moveToNeighbor_Post) ENABLED |
| * START |
| */ |
| // Post-Conditions Here |
| /* PROTECTED REGION END */ |
| } |
| |
| /** |
| * . |
| */ |
| public void moveToAvailableNeighbor() { |
| /* |
| * PROTECTED REGION ID(BasicMovementAgent_moveToAvailableNeighbor_Pre) |
| * ENABLED START |
| */ |
| // Pre-Conditions Here |
| /* PROTECTED REGION END */ |
| getAgent().moveToAvailableNeighbor(); |
| |
| /* |
| * PROTECTED REGION ID(BasicMovementAgent_moveToAvailableNeighbor_Post) |
| * ENABLED START |
| */ |
| // Post-Conditions Here |
| /* PROTECTED REGION END */ |
| } |
| |
| /** |
| * . |
| */ |
| public void moveToNearestGoal() { |
| /* |
| * PROTECTED REGION ID(BasicMovementAgent_moveToNearestGoal_Pre) ENABLED |
| * START |
| */ |
| // Pre-Conditions Here |
| /* PROTECTED REGION END */ |
| getAgent().moveToNearestGoal(); |
| |
| /* |
| * PROTECTED REGION ID(BasicMovementAgent_moveToNearestGoal_Post) |
| * ENABLED START |
| */ |
| // Post-Conditions Here |
| /* PROTECTED REGION END */ |
| } |
| |
| /** |
| * . |
| */ |
| public void moveTowardNearestAgent() { |
| /* |
| * PROTECTED REGION ID(BasicMovementAgent_moveTowardNearestAgent_Pre) |
| * ENABLED START |
| */ |
| // Pre-Conditions Here |
| /* PROTECTED REGION END */ |
| getAgent().moveTowardNearestAgent(); |
| |
| /* |
| * PROTECTED REGION ID(BasicMovementAgent_moveTowardNearestAgent_Post) |
| * ENABLED START |
| */ |
| // Post-Conditions Here |
| /* PROTECTED REGION END */ |
| } |
| |
| /** |
| * . |
| */ |
| public void moveTowardNearestGoal() { |
| /* |
| * PROTECTED REGION ID(BasicMovementAgent_moveTowardNearestGoal_Pre) |
| * ENABLED START |
| */ |
| // Pre-Conditions Here |
| /* PROTECTED REGION END */ |
| getAgent().moveTowardNearestGoal(); |
| |
| /* |
| * PROTECTED REGION ID(BasicMovementAgent_moveTowardNearestGoal_Post) |
| * ENABLED START |
| */ |
| // Post-Conditions Here |
| /* PROTECTED REGION END */ |
| } |
| |
| /** |
| * . |
| */ |
| public void moveWithEvaluate() { |
| /* |
| * PROTECTED REGION ID(BasicMovementAgent_moveWithEvaluate_Pre) ENABLED |
| * START |
| */ |
| // Pre-Conditions Here |
| /* PROTECTED REGION END */ |
| getAgent().moveWithEvaluate(); |
| |
| /* |
| * PROTECTED REGION ID(BasicMovementAgent_moveWithEvaluate_Post) ENABLED |
| * START |
| */ |
| // Post-Conditions Here |
| /* PROTECTED REGION END */ |
| } |
| |
| /** |
| * . |
| */ |
| public void moveTwice() { |
| /* PROTECTED REGION ID(BasicMovementAgent_moveTwice_Pre) ENABLED START */ |
| // Pre-Conditions Here |
| /* PROTECTED REGION END */ |
| getAgent().moveTwice(); |
| |
| /* PROTECTED REGION ID(BasicMovementAgent_moveTwice_Post) ENABLED START */ |
| // Post-Conditions Here |
| /* PROTECTED REGION END */ |
| } |
| |
| /** |
| * . |
| */ |
| public void andWithOrGoal() { |
| /* |
| * PROTECTED REGION ID(BasicMovementAgent_andWithOrGoal_Pre) ENABLED |
| * START |
| */ |
| // Pre-Conditions Here |
| /* PROTECTED REGION END */ |
| getAgent().andWithOrGoal(); |
| |
| /* |
| * PROTECTED REGION ID(BasicMovementAgent_andWithOrGoal_Post) ENABLED |
| * START |
| */ |
| // Post-Conditions Here |
| /* PROTECTED REGION END */ |
| } |
| |
| /** |
| * . |
| */ |
| public void andWithAndGoal() { |
| /* |
| * PROTECTED REGION ID(BasicMovementAgent_andWithAndGoal_Pre) ENABLED |
| * START |
| */ |
| // Pre-Conditions Here |
| /* PROTECTED REGION END */ |
| getAgent().andWithAndGoal(); |
| |
| /* |
| * PROTECTED REGION ID(BasicMovementAgent_andWithAndGoal_Post) ENABLED |
| * START |
| */ |
| // Post-Conditions Here |
| /* PROTECTED REGION END */ |
| } |
| |
| /** |
| * . |
| */ |
| public void moveToGoalWithin() { |
| /* |
| * PROTECTED REGION ID(BasicMovementAgent_moveToGoalWithin_Pre) ENABLED |
| * START |
| */ |
| // Pre-Conditions Here |
| /* PROTECTED REGION END */ |
| getAgent().moveToGoalWithin(); |
| |
| /* |
| * PROTECTED REGION ID(BasicMovementAgent_moveToGoalWithin_Post) ENABLED |
| * START |
| */ |
| // Post-Conditions Here |
| /* PROTECTED REGION END */ |
| } |
| |
| /** |
| * . |
| */ |
| public void setConditionNeighbor() { |
| /* |
| * PROTECTED REGION ID(BasicMovementAgent_setConditionNeighbor_Pre) |
| * ENABLED START |
| */ |
| // Pre-Conditions Here |
| /* PROTECTED REGION END */ |
| getAgent().setConditionNeighbor(); |
| |
| /* |
| * PROTECTED REGION ID(BasicMovementAgent_setConditionNeighbor_Post) |
| * ENABLED START |
| */ |
| // Post-Conditions Here |
| /* PROTECTED REGION END */ |
| } |
| |
| /** |
| * . |
| */ |
| public void setConditionStateAgentNeighbor() { |
| /* |
| * PROTECTED REGION |
| * ID(BasicMovementAgent_setConditionStateAgentNeighbor_Pre) ENABLED |
| * START |
| */ |
| // Pre-Conditions Here |
| /* PROTECTED REGION END */ |
| getAgent().setConditionStateAgentNeighbor(); |
| |
| /* |
| * PROTECTED REGION |
| * ID(BasicMovementAgent_setConditionStateAgentNeighbor_Post) ENABLED |
| * START |
| */ |
| // Post-Conditions Here |
| /* PROTECTED REGION END */ |
| } |
| |
| /** |
| * . |
| */ |
| public void setRandomNeighborValue() { |
| /* |
| * PROTECTED REGION ID(BasicMovementAgent_setRandomNeighborValue_Pre) |
| * ENABLED START |
| */ |
| // Pre-Conditions Here |
| /* PROTECTED REGION END */ |
| getAgent().setRandomNeighborValue(); |
| |
| /* |
| * PROTECTED REGION ID(BasicMovementAgent_setRandomNeighborValue_Post) |
| * ENABLED START |
| */ |
| // Post-Conditions Here |
| /* PROTECTED REGION END */ |
| } |
| |
| /** |
| * Gets the Vision property for Basic Movement Agent. |
| * |
| * @return |
| */ |
| public int getVision() { |
| return getAgent().getVision(); |
| } |
| |
| /** |
| * Sets the Vision property for Basic Movement Agent. |
| * |
| * @param _vision the new Vision value |
| */ |
| public void setVision(int vision) { |
| getAgent().setVision(vision); |
| } |
| |
| /** |
| * Gets the Moving Toward Goal property for Basic Movement Agent. |
| * |
| * @return |
| */ |
| public boolean isMovingTowardGoal() { |
| return getAgent().isMovingTowardGoal(); |
| } |
| |
| /** |
| * Sets the Moving Toward Goal property for Basic Movement Agent. |
| * |
| * @param _movingTowardGoal the new Moving Toward Goal value |
| */ |
| public void setMovingTowardGoal(boolean movingTowardGoal) { |
| getAgent().setMovingTowardGoal(movingTowardGoal); |
| } |
| |
| /** |
| * Gets the Success property for Basic Movement Agent. |
| * |
| * @return |
| */ |
| public boolean isSuccess() { |
| return getAgent().isSuccess(); |
| } |
| |
| /** |
| * Sets the Success property for Basic Movement Agent. |
| * |
| * @param _success the new Success value |
| */ |
| public void setSuccess(boolean success) { |
| getAgent().setSuccess(success); |
| } |
| } |