public abstract class AbstractTask extends Object implements Task
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Constructor and Description |
---|
AbstractTask(String id)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
getAnticipationReliance()
Returns the level of anticipation reliance.
|
String |
getId() |
double |
getTaskDemand()
Returns the gross demand of this task, i.e without considering anticipation reliance.
|
void |
setAnticipationReliance(double anticipationReliance)
Set anticipation reliance.
|
void |
setTaskDemand(double taskDemand)
Sets (gross) task demand.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
calculateTaskDemand
public AbstractTask(String id)
id
- String; idpublic String getId()
getId
in interface Identifiable
public final void setTaskDemand(double taskDemand)
setTaskDemand
in interface Task
taskDemand
- double; set task demandpublic final double getTaskDemand()
getTaskDemand
in interface Task
public final void setAnticipationReliance(double anticipationReliance)
setAnticipationReliance
in interface Task
anticipationReliance
- double; set anticipation reliancepublic final double getAnticipationReliance()
getAnticipationReliance
in interface Task
Copyright © 2014–2019 Delft University of Technology. All rights reserved.