public class ActiveModel extends Object
| Constructor and Description |
|---|
ActiveModel(org.eclipse.basyx.vab.modelprovider.api.IModelProvider modelProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Shuts all running threads down and removes all groups.
|
VABModelTaskGroup |
createTaskGroup()
Creates a new task group and associated it with this active model.
|
Set<VABModelTaskGroup> |
getTaskGroups()
Getter for all containing task groups.
|
VABModelTaskGroup |
runTask(int updateInterval,
VABModelTask task)
Runs a task with a specific update rate in a new task group.
|
void |
startAll()
Starts all running tasks in the contained groups.
|
void |
stopAll()
Stops all running tasks in the contained groups.
|
public ActiveModel(org.eclipse.basyx.vab.modelprovider.api.IModelProvider modelProvider)
public VABModelTaskGroup runTask(int updateInterval, VABModelTask task)
updateInterval - The interval in which the task is updatedtask - The task that is scheduledpublic VABModelTaskGroup createTaskGroup()
public void clear()
public Set<VABModelTaskGroup> getTaskGroups()
public void stopAll()
public void startAll()
Copyright © 2021. All rights reserved.