modelling
Class GrowingAgent

java.lang.Object
  extended bysema.Element
      extended bysema.Agent
          extended bymodelling.GrowingAgent
All Implemented Interfaces:
java.lang.Comparable
Direct Known Subclasses:
AgentTestGrowing

public class GrowingAgent
extends Agent

Agent whose size keeps increasing until a maximum size il reached.


Nested Class Summary
protected  class GrowingAgent.Growing
          Action of growing.
 
Nested classes inherited from class sema.Agent
Agent.Action
 
Nested classes inherited from class sema.Element
Element.ElementEvent
 
Field Summary
protected  GrowingAgent.Growing growing
          Action of growing of that element, with his personnal parameters.
 
Fields inherited from class sema.Element
id, world
 
Constructor Summary
GrowingAgent(World world, Area area, float delay, java.awt.Image image, float reachableSize, float timeToGrow)
          Creates a new growing agent, with a given time to incrase his size by a factor of 1.1, and the reachable size, with the convention that the initial size of the agent is 1.
 
Methods inherited from class sema.Agent
acceptAction, getDelay, registerAction, setDelay, unregisterAction
 
Methods inherited from class sema.Element
canTake, compareTo, death, draw, getArea, getDrawingPriority, getHeight, getIcon, getImage, getKind, getName, getProperties, highlight, highlight, isMarked, kill, setDrawingPriority, setHeight, setKind, setMarked, setProperties, toString, union
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

growing

protected GrowingAgent.Growing growing
Action of growing of that element, with his personnal parameters.

Constructor Detail

GrowingAgent

public GrowingAgent(World world,
                    Area area,
                    float delay,
                    java.awt.Image image,
                    float reachableSize,
                    float timeToGrow)
Creates a new growing agent, with a given time to incrase his size by a factor of 1.1, and the reachable size, with the convention that the initial size of the agent is 1.