Class EAAgentType

java.lang.Object
  extended byEAAgentType
Direct Known Subclasses:
WildfireAgentType

public abstract class EAAgentType
extends java.lang.Object


Field Summary
 float blue
           
 float green
           
 float latitude
           
 float longitude
           
 float red
           
 float rotationx
           
 float rotationy
           
 float rotationz
           
 float scalex
           
 float scaley
           
 float scalez
           
 float x
           
 float y
           
 float z
           
 
Constructor Summary
EAAgentType()
           
 
Method Summary
 Action agentConsultant(Obstacle o)
          The agent consultant makes decision for agents based on the obsatacle
 Coordinates agentDispatcher(Coordinates agent)
          This is the base interface that defines the agent dispatcher.
 Coordinates agentLocator()
          Returns the current location of the agent.
 void agentMorpher(MorphSpecs change)
          Handles changing the scale, rotation, and color of the agent.
 double degreesToRadians(double degrees)
          converts from degrees to radians
 MorphSpecs getRGBColor()
          gets the current color of the agent
 MorphSpecs getRotation()
          gets the current rotation of the agent
 MorphSpecs getScale()
          gets the current scale of the agent
 void setLocation(Coordinates agent)
          Sets the location of the agent.
 void setRGBColor(MorphSpecs change)
          Sets the rgb color of the agent.
 void setRotation(MorphSpecs change)
          Sets the rotation of the agent.
 void setScale(MorphSpecs change)
          Sets the scale of the agent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

public float x

y

public float y

z

public float z

latitude

public float latitude

longitude

public float longitude

scalex

public float scalex

scaley

public float scaley

scalez

public float scalez

rotationx

public float rotationx

rotationy

public float rotationy

rotationz

public float rotationz

red

public float red

green

public float green

blue

public float blue
Constructor Detail

EAAgentType

public EAAgentType()
Method Detail

agentDispatcher

public Coordinates agentDispatcher(Coordinates agent)
This is the base interface that defines the agent dispatcher. It will be overrode for the individual agent tye

Returns:
Coordinates the new coordinates

agentLocator

public Coordinates agentLocator()
Returns the current location of the agent. Its updated by the agent dispatcher or setLocation method

Returns:
Coordinates the current coordinates

agentConsultant

public Action agentConsultant(Obstacle o)
The agent consultant makes decision for agents based on the obsatacle

Returns:
Action the action that was decided

agentMorpher

public void agentMorpher(MorphSpecs change)
Handles changing the scale, rotation, and color of the agent. It can get retried through the get methods (ie Agent Locator)


setLocation

public void setLocation(Coordinates agent)
Sets the location of the agent. This can be called from outside the class in cases where the loc needs to be set without calling the agent dispacther


setScale

public void setScale(MorphSpecs change)
Sets the scale of the agent. This can be called from outside the class in cases where the loc needs to be set without calling the agent dispacther


setRotation

public void setRotation(MorphSpecs change)
Sets the rotation of the agent. This can be called from outside the class in cases where the loc needs to be set without calling the agent dispacther


setRGBColor

public void setRGBColor(MorphSpecs change)
Sets the rgb color of the agent. This can be called from outside the class in cases where the loc needs to be set without calling the agent dispacther


getScale

public MorphSpecs getScale()
gets the current scale of the agent

Returns:
MorphSpecs returns the current scale

getRotation

public MorphSpecs getRotation()
gets the current rotation of the agent

Returns:
MorphSpecs returns the current rotation

getRGBColor

public MorphSpecs getRGBColor()
gets the current color of the agent

Returns:
MorphSpecs returns the current color

degreesToRadians

public double degreesToRadians(double degrees)
converts from degrees to radians

Returns:
Double the direction in radians