se.liu.ida.critiquer.scenarios.standard
Class RecoverActivity
java.lang.Object
se.liu.ida.critiquer.activities.Activity
se.liu.ida.critiquer.scenarios.standard.RecoverActivity
- All Implemented Interfaces:
- Serializable, TransportationActivity
public class RecoverActivity
- extends Activity
- implements TransportationActivity
- See Also:
- Serialized Form
Fields inherited from class se.liu.ida.critiquer.activities.Activity |
type |
Methods inherited from class se.liu.ida.critiquer.activities.Activity |
acquirePendingUpdatesLock, addActivityUpdateListener, addAll, addChild, addNameChangeListener, addParam, addPrivateUpdateListener, addStaticConsistencyChecker, canBeChildOf, canComeBefore, debug, endParentRelationship, equals, error, fatal, getAtomicUpdateLock, getChildren, getEndTime, getMaxTime, getParams, getParent, getPendingupdates, getRootActivity, getStartTime, getStaticConsistencyCheckers, getStaticUpdateListeners, getTemporalConstraints, hasParent, indexOfChild, info, initParentRelationship, isAgentAssignable, isConsistent, order, postLoad, preSave, releasePendingUpdatesLock, removeChild, removeChildren, removeOrder, removePrivateUpdateListener, setParent, signalActivityRemoved, signalActivityUpdated, signalParamChanged, signalParamChanged, toString, warn |
RecoverActivity
public RecoverActivity(Activity parent)
addDefaultParams
public void addDefaultParams()
- Description copied from class:
Activity
- Add name, description, start and end time for all activities
- Overrides:
addDefaultParams
in class Activity
simulate
public long simulate()
throws IncompleteActivityException
- Description copied from class:
Activity
- Calculates the effects of performing a mission with respect to some
state. This is supposed to be used during simulation.
- Specified by:
simulate
in class Activity
- Throws:
IncompleteActivityException
getInjured
public int getInjured()
- Returns:
- Returns the injured.
getNumActivities
public int getNumActivities()
- Description copied from class:
Activity
- Each subclass of Activity should have a static counter of how many
activities have been created, so that we may create unique new names for
newly created activities.
- Specified by:
getNumActivities
in class Activity
- Returns:
- the number of objects of this class that have been created.
getStartLocation
public Location getStartLocation()
- Specified by:
getStartLocation
in interface TransportationActivity
getEndLocation
public Location getEndLocation()
- Specified by:
getEndLocation
in interface TransportationActivity
canBeSimulated
public boolean canBeSimulated()
- Description copied from class:
Activity
- Test if this activity can be simulated. This usually entails checking
that some structural constraints hold. It is assumed that this method is
checked before any simulation or time calculation takes place.
- Specified by:
canBeSimulated
in class Activity
- Returns: