se.liu.ida.critiquer.constraints
Class FuelLowCritic

java.lang.Object
  extended by se.liu.ida.critiquer.activities.AbstractParamChangedListener
      extended by se.liu.ida.critiquer.constraints.StandardConstraint
          extended by se.liu.ida.critiquer.constraints.SimulationCritic
              extended by se.liu.ida.critiquer.constraints.FuelLowCritic
All Implemented Interfaces:
Serializable, Comparable<ActivityUpdateListener>, ActivityUpdateListener, SingletonConstraint, TextCritic, VisualConstraint, ViewRenderingListener, SimulationElement

public class FuelLowCritic
extends SimulationCritic
implements TextCritic

Author:
olale
See Also:
Serialized Form

Field Summary
 
Fields inherited from class se.liu.ida.critiquer.constraints.StandardConstraint
applicableViews, statusListeners, violationActivities
 
Constructor Summary
FuelLowCritic()
           
 
Method Summary
 String getDescription()
           
 String getText()
           
 void initSimulation(SimulationEngine engine)
          this method is called when the simulation is initiated.
 void stepBackward(int step)
          deletgate to stepTo
 void stepForward(int step)
          delegate to stepTo instead
 void stepTo(Calendar time)
          check the fuel levels of the agent simulation states
 void viewUpdated(View v, Graphics2D g2)
           
 
Methods inherited from class se.liu.ida.critiquer.constraints.SimulationCritic
initApplicableViews, paramChanged, setActive
 
Methods inherited from class se.liu.ida.critiquer.constraints.StandardConstraint
addStatusListener, debug, error, getApplicableViews, getColor, info, isActive, isApplicableFor, isConsistent, removeStatusListener, setColor, setConsistent, warn
 
Methods inherited from class se.liu.ida.critiquer.activities.AbstractParamChangedListener
activityCreated, activityRemoved, activityUpdated, compareTo, paramAdded
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FuelLowCritic

public FuelLowCritic()
Method Detail

stepForward

public void stepForward(int step)
delegate to stepTo instead

Specified by:
stepForward in interface SimulationElement
Parameters:
step - in minutes forward
See Also:
SimulationElement.stepForward(int)

stepBackward

public void stepBackward(int step)
deletgate to stepTo

Specified by:
stepBackward in interface SimulationElement
Parameters:
step - in minutes backwards
See Also:
SimulationElement.stepBackward(int)

stepTo

public void stepTo(Calendar time)
check the fuel levels of the agent simulation states

Specified by:
stepTo in interface SimulationElement
See Also:
SimulationElement.stepTo(java.util.Calendar)

getDescription

public String getDescription()
Specified by:
getDescription in interface SingletonConstraint

viewUpdated

public void viewUpdated(View v,
                        Graphics2D g2)
Specified by:
viewUpdated in interface ViewRenderingListener

initSimulation

public void initSimulation(SimulationEngine engine)
Description copied from interface: SimulationElement
this method is called when the simulation is initiated.

Specified by:
initSimulation in interface SimulationElement

getText

public String getText()
Specified by:
getText in interface TextCritic