Class WildfireAgentType

java.lang.Object
  extended byEAAgentType
      extended byWildfireAgentType

public class WildfireAgentType
extends EAAgentType

This is the wildfire agent. This is where you utilize the EAAgent type to create your agent. This class provides access to the EAAgenttype, and the methods needs to handle the agents decisions


Field Summary
 float heat
           
 
Fields inherited from class EAAgentType
blue, green, latitude, longitude, red, rotationx, rotationy, rotationz, scalex, scaley, scalez, x, y, z
 
Constructor Summary
WildfireAgentType()
           
WildfireAgentType(java.lang.String name)
          sets the correct model for the wildfire agent.
 
Method Summary
 Coordinates agentDispatcher(Coordinates agent)
          Controlls the direction the wildfire moves according to factors from rothermels models
 void calc()
          performs the calculation for the Rothermel model.
 double getDirectionOfMaxSpread()
          gets the direction of max spread in degress
 double getEffectiveWindSpeed()
          gets the effective windspeed
 double getFireLineIntensity()
          gets the fireline intensity
 float getFlameHeight()
          gets the flame height
 double getFlameLength()
          gets the flame length
 float getFlameResidenceTime()
          gets the flame residence time
 double getFlameZoneDepth()
          gets the flame zone depth
 double getFuelBedDepth()
          gets the fuelbed depth
 double getHeat()
          gets the heat
 double getHeatPerArea()
          gets the heat per area
 double getHeatSink()
          gets the heat sink
 double getMoistureOfExtinction()
          gets the moistureofextinction
 float getMos()
          gets the slope
 java.lang.String getName()
           
 Coordinates getNewPoint(Coordinates cord, double speed, double angle)
          Not in use was first try
 double getParticleDensity()
          gets the particle density
 double getPropagatingFluxRatio()
          gets the propagating flux ratio
 double getRateOfSpread()
          gets the rate of spread
 double getReactionIntensity()
          gets the reaction intensity
 double getTime()
          gets the time
 float getWDR()
          gets the wind direction
 double getWindAndSlopeFactor()
          gets the wind and slope factor
 float getWSP()
          gets the wind speed
 Coordinates move(Coordinates cord, double speed, double angle)
          gets the new location given the start point, speed, and angle
 void setMos(float replace)
          sets the slope
 void setSlope(float replace)
          sets the slope
 void setWDR(float replace)
          sets the wind direction
 void setWSP(float replace)
          sets the wind speed
 
Methods inherited from class EAAgentType
agentConsultant, agentLocator, agentMorpher, degreesToRadians, getRGBColor, getRotation, getScale, setLocation, setRGBColor, setRotation, setScale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

heat

public float heat
Constructor Detail

WildfireAgentType

public WildfireAgentType()

WildfireAgentType

public WildfireAgentType(java.lang.String name)
sets the correct model for the wildfire agent. Rothermel provides 12 fuel models. These are instainated as classes nff1 though nff12

Method Detail

setWDR

public void setWDR(float replace)
sets the wind direction


setWSP

public void setWSP(float replace)
sets the wind speed


setSlope

public void setSlope(float replace)
sets the slope


getWDR

public float getWDR()
gets the wind direction

Returns:
Float the winddirection

getWSP

public float getWSP()
gets the wind speed

Returns:
Float the wind speed

setMos

public void setMos(float replace)
sets the slope


getMos

public float getMos()
gets the slope


calc

public void calc()
performs the calculation for the Rothermel model. Your parameters need to be set before calling this


getHeat

public double getHeat()
gets the heat

Returns:
double the heat

getFuelBedDepth

public double getFuelBedDepth()
gets the fuelbed depth

Returns:
double the fuelbed depth

getParticleDensity

public double getParticleDensity()
gets the particle density

Returns:
double the particle density

getMoistureOfExtinction

public double getMoistureOfExtinction()
gets the moistureofextinction

Returns:
double the moisyure of extinction

getRateOfSpread

public double getRateOfSpread()
gets the rate of spread

Returns:
double the rate 0f spread

getHeatSink

public double getHeatSink()
gets the heat sink

Returns:
double the heat sink

getReactionIntensity

public double getReactionIntensity()
gets the reaction intensity

Returns:
double the reaction intensity

getPropagatingFluxRatio

public double getPropagatingFluxRatio()
gets the propagating flux ratio

Returns:
double propagating flux ratio

getWindAndSlopeFactor

public double getWindAndSlopeFactor()
gets the wind and slope factor

Returns:
double the wind and slope factor

getDirectionOfMaxSpread

public double getDirectionOfMaxSpread()
gets the direction of max spread in degress

Returns:
double direction of max spread in degrees

getEffectiveWindSpeed

public double getEffectiveWindSpeed()
gets the effective windspeed

Returns:
double the effective windspeed

getFlameLength

public double getFlameLength()
gets the flame length

Returns:
double the flame length

getFireLineIntensity

public double getFireLineIntensity()
gets the fireline intensity

Returns:
double the fireline intensity

getHeatPerArea

public double getHeatPerArea()
gets the heat per area

Returns:
double the heat per area

getFlameZoneDepth

public double getFlameZoneDepth()
gets the flame zone depth

Returns:
double the flame zone depth

getTime

public double getTime()
gets the time

Returns:
double the time

getName

public java.lang.String getName()

agentDispatcher

public Coordinates agentDispatcher(Coordinates agent)
Controlls the direction the wildfire moves according to factors from rothermels models

Overrides:
agentDispatcher in class EAAgentType
Returns:
Coordinates the new coordinates

getFlameHeight

public float getFlameHeight()
gets the flame height

Returns:
float the flame height

getFlameResidenceTime

public float getFlameResidenceTime()
gets the flame residence time

Returns:
float the flame residence time

getNewPoint

public Coordinates getNewPoint(Coordinates cord,
                               double speed,
                               double angle)
Not in use was first try


move

public Coordinates move(Coordinates cord,
                        double speed,
                        double angle)
gets the new location given the start point, speed, and angle

Parameters:
angle - the direction the fire is spreading
Returns:
Coordinates the new location