| package org.metaabm.gen.test; |
| |
| import org.metaabm.gen.test.share.AgentTestCase; |
| |
| /** |
| * Network 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 NetworkAgentTestCase extends AgentTestCase { |
| |
| /** |
| * Constructs a new Network Agent. |
| */ |
| public NetworkAgentTestCase() { |
| super("org.eclipse.amp.amf.gen.repast.test.target", "Network Agent Test", "org.eclipse.amp.amf.gen.test.NetworkAgent"); |
| } |
| |
| public void setUp() { |
| agentLoaded = new NetworkAgent(); |
| } |
| |
| public INetworkAgent getAgent() { |
| return (INetworkAgent) agentLoaded; |
| } |
| |
| public void testExistence() { |
| assertNotNull(getAgent()); |
| } |
| |
| /** |
| * . |
| */ |
| public void simpleNetworkMoveTowardAgent() { |
| /* |
| * PROTECTED REGION ID(NetworkAgent_simpleNetworkMoveTowardAgent_Pre) |
| * ENABLED START |
| */ |
| // Pre-Conditions Here |
| /* PROTECTED REGION END */ |
| getAgent().simpleNetworkMoveTowardAgent(); |
| |
| /* |
| * PROTECTED REGION ID(NetworkAgent_simpleNetworkMoveTowardAgent_Post) |
| * ENABLED START |
| */ |
| // Post-Conditions Here |
| /* PROTECTED REGION END */ |
| } |
| |
| /** |
| * . |
| */ |
| public void disconnect() { |
| /* PROTECTED REGION ID(NetworkAgent_disconnect_Pre) ENABLED START */ |
| // Pre-Conditions Here |
| /* PROTECTED REGION END */ |
| getAgent().disconnect(); |
| |
| /* PROTECTED REGION ID(NetworkAgent_disconnect_Post) ENABLED START */ |
| // Post-Conditions Here |
| /* PROTECTED REGION END */ |
| } |
| |
| /** |
| * . |
| */ |
| public void replace() { |
| /* PROTECTED REGION ID(NetworkAgent_replace_Pre) ENABLED START */ |
| // Pre-Conditions Here |
| /* PROTECTED REGION END */ |
| getAgent().replace(); |
| |
| /* PROTECTED REGION ID(NetworkAgent_replace_Post) ENABLED START */ |
| // Post-Conditions Here |
| /* PROTECTED REGION END */ |
| } |
| |
| /** |
| * Gets the Vision property for Network Agent. |
| * |
| * @return |
| */ |
| public int getVision() { |
| return getAgent().getVision(); |
| } |
| |
| /** |
| * Sets the Vision property for Network Agent. |
| * |
| * @param _vision the new Vision value |
| */ |
| public void setVision(int vision) { |
| getAgent().setVision(vision); |
| } |
| |
| /** |
| * Gets the Moving Toward Goal property for Network Agent. |
| * |
| * @return |
| */ |
| public boolean isMovingTowardGoal() { |
| return getAgent().isMovingTowardGoal(); |
| } |
| |
| /** |
| * Sets the Moving Toward Goal property for Network Agent. |
| * |
| * @param _movingTowardGoal the new Moving Toward Goal value |
| */ |
| public void setMovingTowardGoal(boolean movingTowardGoal) { |
| getAgent().setMovingTowardGoal(movingTowardGoal); |
| } |
| } |