se.liu.ida.critiquer.scenarios.standard
Class DefaultActivity
java.lang.Object
se.liu.ida.critiquer.activities.Activity
se.liu.ida.critiquer.scenarios.standard.DefaultActivity
- All Implemented Interfaces:
- Serializable
public class DefaultActivity
- extends Activity
- See Also:
- Serialized Form
Fields inherited from class se.liu.ida.critiquer.activities.Activity |
type |
Method Summary |
boolean |
canBeSimulated()
There is no point in simulating this activity type |
int |
getNumActivities()
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. |
long |
simulate()
Calculates the effects of performing a mission with respect to some
state. |
Methods inherited from class se.liu.ida.critiquer.activities.Activity |
acquirePendingUpdatesLock, addActivityUpdateListener, addAll, addChild, addDefaultParams, 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 |
DefaultActivity
public DefaultActivity()
DefaultActivity
public DefaultActivity(Activity parent)
DefaultActivity
public DefaultActivity(String type,
Activity parent)
- Parameters:
type
- parent
-
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
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.
canBeSimulated
public boolean canBeSimulated()
- There is no point in simulating this activity type
- Specified by:
canBeSimulated
in class Activity
- Returns:
- See Also:
Activity.canBeSimulated()