1 package org.opentrafficsim.road.gtu.lane.perception.mental;
2
3
4
5
6
7
8
9
10
11
12
13 public abstract class AbstractTask implements Task
14 {
15
16
17 private final String id;
18
19
20 private double taskDemand;
21
22
23 private double anticipationReliance;
24
25
26
27
28
29 public AbstractTask(final String id)
30 {
31 this.id = id;
32 }
33
34 @Override
35 public String getId()
36 {
37 return this.id;
38 }
39
40 @Override
41 public final void setTaskDemand(final double taskDemand)
42 {
43 this.taskDemand = taskDemand;
44 }
45
46 @Override
47 public final double getTaskDemand()
48 {
49 return this.taskDemand;
50 }
51
52 @Override
53 public final void setAnticipationReliance(final double anticipationReliance)
54 {
55 this.anticipationReliance = anticipationReliance;
56 }
57
58 @Override
59 public final double getAnticipationReliance()
60 {
61 return this.anticipationReliance;
62 }
63
64 @Override
65 public String toString()
66 {
67 return "Task (" + getId() + ")";
68 }
69 }