se.liu.ida.critiquer.constraints
Class FuelLowCritic
java.lang.Object
se.liu.ida.critiquer.activities.AbstractParamChangedListener
se.liu.ida.critiquer.constraints.StandardConstraint
se.liu.ida.critiquer.constraints.SimulationCritic
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FuelLowCritic
public FuelLowCritic()
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