se.liu.ida.critiquer.activities
Class ToplevelActivity
java.lang.Object
se.liu.ida.critiquer.activities.Activity
se.liu.ida.critiquer.activities.ToplevelActivity
- All Implemented Interfaces:
- Serializable
public class ToplevelActivity
- extends Activity
- Author:
- olale
- See Also:
- Serialized Form
Fields inherited from class se.liu.ida.critiquer.activities.Activity |
type |
Method Summary |
boolean |
canBeSimulated()
Test if this activity can be simulated. |
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, getMyUpdateListeners, 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 |
ToplevelActivity
public ToplevelActivity()
ToplevelActivity
public ToplevelActivity(Activity parent)
- Parameters:
parent
-
ToplevelActivity
public ToplevelActivity(String type,
Activity parent)
- Parameters:
type
- parent
-
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.
simulate
public long simulate()
- 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
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: