se.liu.ida.critiquer.activities
Class ToplevelActivity

java.lang.Object
  extended by se.liu.ida.critiquer.activities.Activity
      extended by se.liu.ida.critiquer.activities.ToplevelActivity
All Implemented Interfaces:
Serializable

public class ToplevelActivity
extends Activity

Author:
olale
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class se.liu.ida.critiquer.activities.Activity
Activity.Properties
 
Field Summary
 
Fields inherited from class se.liu.ida.critiquer.activities.Activity
type
 
Constructor Summary
ToplevelActivity()
           
ToplevelActivity(Activity parent)
           
ToplevelActivity(String type, Activity parent)
           
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ToplevelActivity

public ToplevelActivity()

ToplevelActivity

public ToplevelActivity(Activity parent)
Parameters:
parent -

ToplevelActivity

public ToplevelActivity(String type,
                        Activity parent)
Parameters:
type -
parent -
Method Detail

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: