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, waitcalculateTaskDemandpublic AbstractTask(String id)
id - String; idpublic String getId()
getId in interface Identifiablepublic final void setTaskDemand(double taskDemand)
setTaskDemand in interface TasktaskDemand - double; set task demandpublic final double getTaskDemand()
getTaskDemand in interface Taskpublic final void setAnticipationReliance(double anticipationReliance)
setAnticipationReliance in interface TaskanticipationReliance - double; set anticipation reliancepublic final double getAnticipationReliance()
getAnticipationReliance in interface TaskCopyright © 2014–2019 Delft University of Technology. All rights reserved.