|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.liu.ida.critiquer.activities.Activity
se.liu.ida.critiquer.scenarios.standard.DispatchActivity
public class DispatchActivity
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 | |
---|---|
DispatchActivity(Activity parent)
|
Method Summary | |
---|---|
void |
addDefaultParams()
Add name, description, start and end time for all activities |
boolean |
canBeSimulated()
Check that locations and agents are defined |
Location |
getEndLocation()
Return the value of the destination location parameter |
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. |
Location |
getStartLocation()
Return value of the starting location parameter |
void |
order(Activity laterActivity)
Add location parameter dependency |
void |
removeOrder(Activity laterActivity)
When removing ordering constraints, create a new stationary location for the activity that is decuopled from this one. |
long |
simulate()
Return the maximum time taken by any agent to complete this activity |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DispatchActivity(Activity parent)
parent
- Method Detail |
---|
public void addDefaultParams()
Activity
addDefaultParams
in class Activity
public long simulate()
simulate
in class Activity
se.liu.ida.critiquer.activities.Activity#calculateTimeToComplete(java.util.HashSet)
public void order(Activity laterActivity)
order
in class Activity
laterActivity
- The activity that should come after this
Activity.order(se.liu.ida.critiquer.activities.Activity)
public void removeOrder(Activity laterActivity)
removeOrder
in class Activity
laterActivity
- the activity that was ordered after this
Activity.removeOrder(se.liu.ida.critiquer.activities.Activity)
public int getNumActivities()
Activity
getNumActivities
in class Activity
public Location getStartLocation()
getStartLocation
in interface TransportationActivity
TransportationActivity.getStartLocation()
public Location getEndLocation()
getEndLocation
in interface TransportationActivity
TransportationActivity.getEndLocation()
public boolean canBeSimulated()
canBeSimulated
in class Activity
Activity.canBeSimulated()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |