|
|
@ -7,11 +7,14 @@ public class DiDevice { |
|
|
|
private DiDeviceIOManager io; |
|
|
|
// actuator manager |
|
|
|
private DiDeviceActuatorManager actuators; |
|
|
|
// task executor |
|
|
|
private DiTaskExecutor taskExecutor; |
|
|
|
|
|
|
|
@PostConstruct |
|
|
|
public void init() { |
|
|
|
this.io = new DiDeviceIOManager(this); |
|
|
|
this.actuators = new DiDeviceActuatorManager(this); |
|
|
|
this.taskExecutor = new DiTaskExecutor(this); |
|
|
|
} |
|
|
|
|
|
|
|
// get io manager |
|
|
@ -23,4 +26,9 @@ public class DiDevice { |
|
|
|
public DiDeviceActuatorManager getActuators() { |
|
|
|
return this.actuators; |
|
|
|
} |
|
|
|
|
|
|
|
// get task executor |
|
|
|
public DiTaskExecutor getTaskExecutor() { |
|
|
|
return this.taskExecutor; |
|
|
|
} |
|
|
|
} |