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