public class CommandQueueImpl extends Object implements CommandQueue
Constructor and Description |
---|
CommandQueueImpl(Hive hive,
String id,
int loopDelay) |
Modifier and Type | Method and Description |
---|---|
void |
addCommand(SingleCommand command,
int period)
Add a command to the queue
|
void |
removeCommand(SingleCommand command)
Remove a command from the queue
|
protected void |
runOnce() |
void |
start(Hive hive,
FolderCommon baseFolder) |
void |
stop() |
public void addCommand(SingleCommand command, int period)
CommandQueue
addCommand
in interface CommandQueue
command
- the command to addperiod
- the min delay between executionpublic void removeCommand(SingleCommand command)
CommandQueue
removeCommand
in interface CommandQueue
public void start(Hive hive, FolderCommon baseFolder)
start
in interface CommandQueue
public void stop()
stop
in interface CommandQueue
protected void runOnce()
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.