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
35 @Override
36 public String getId()
37 {
38 return this.id;
39 }
40
41
42 @Override
43 public final void setTaskDemand(final double taskDemand)
44 {
45 this.taskDemand = taskDemand;
46 }
47
48
49 @Override
50 public final double getTaskDemand()
51 {
52 return this.taskDemand;
53 }
54
55
56 @Override
57 public final void setAnticipationReliance(final double anticipationReliance)
58 {
59 this.anticipationReliance = anticipationReliance;
60 }
61
62
63 @Override
64 public final double getAnticipationReliance()
65 {
66 return this.anticipationReliance;
67 }
68
69
70 @Override
71 public String toString()
72 {
73 return "Task (" + getId() + ")";
74 }
75 }