examples
Class AgentTestAction

java.lang.Object
  extended bysema.Element
      extended bysema.Agent
          extended bymodelling.MovingAgent
              extended byexamples.AgentTestAction
All Implemented Interfaces:
java.lang.Comparable

public class AgentTestAction
extends MovingAgent


Nested Class Summary
 
Nested classes inherited from class modelling.MovingAgent
MovingAgent.Errer, MovingAgent.MoveTo
 
Nested classes inherited from class sema.Agent
Agent.Action
 
Nested classes inherited from class sema.Element
Element.ElementEvent
 
Field Summary
 
Fields inherited from class sema.Element
id, world
 
Constructor Summary
AgentTestAction(World world)
          Creates a new instance of agentTestaction
 
Method Summary
 java.lang.String[][] getProperties()
          Returns the element's properties.
 void setProperties(java.lang.String property, java.lang.String value)
          Try to sets the value to the property of the element.
 
Methods inherited from class modelling.MovingAgent
acceptAction, canSee, fitStep, getSpeed, randomStep, rotate, setSpeed, translate, walk
 
Methods inherited from class sema.Agent
getDelay, registerAction, setDelay, unregisterAction
 
Methods inherited from class sema.Element
canTake, compareTo, death, draw, getArea, getDrawingPriority, getHeight, getIcon, getImage, getKind, getName, highlight, highlight, isMarked, kill, setDrawingPriority, setHeight, setKind, setMarked, toString, union
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AgentTestAction

public AgentTestAction(World world)
Creates a new instance of agentTestaction

Method Detail

getProperties

public java.lang.String[][] getProperties()
Returns the element's properties.

Overrides:
getProperties in class Element
Returns:
the element's properties.
See Also:
Engine.getProperties()

setProperties

public void setProperties(java.lang.String property,
                          java.lang.String value)
Try to sets the value to the property of the element. The new value is ignored if the property is read_only or if the value isn't valid.

Overrides:
setProperties in class Element
Parameters:
property - the property to change.
value - the new value for the property.
See Also:
Engine.setProperties(java.lang.String, java.lang.String)