public class Control
extends java.lang.Object
control.setBatchMode(true);
Response<int[]> resp1 = control.dbg.readAddress(0x3000, 10);
Response<int[]> resp2 = control.dbg.readAddress(0x3000, 10);
for (Integer addr : resp1.get()) // Only now the request is send is send, and the replies
System.out.println(addr); // processed.
for (Integer addr : resp2.get())
System.out.println(addr);
All command sections have there own public final field, which you can use to
easly access its functions.Modifier and Type | Class and Description |
---|---|
static class |
Control.CommandGroup
A command group implements a group of CLB commands belonging to a specific functional
section of the CLB.
|
Modifier and Type | Field and Description |
---|---|
CmdBase |
bse
Exposes the base features.
|
CmdLogicBoard |
clb
Controller Logic Board
|
CmdDebug |
dbg
This section contains commands for the debug group.
|
CmdInstrumentation |
ins
Contains commands for controlling the instrumentation.
|
CmdNetwork |
net
Contains commands for controlling the network and WhiteRabbit
|
CmdSystem |
sys
This section contains commands for the system group.
|
Constructor and Description |
---|
Control(java.net.Inet4Address addr)
Create a new control instance.
|
Control(int v1,
int v2,
int v3,
int v4) |
Control(java.lang.String text) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this Control class.
|
void |
flush()
Flushes all pending commands or events, sending them to the remote side.
|
MessageProcessor |
getProcessor() |
boolean |
isBatchMode()
Whether or not this control is in batch mode.
|
void |
setBatchMode(boolean batch)
Sets the batching mode.
|
public final CmdDebug dbg
public final CmdSystem sys
public final CmdLogicBoard clb
public final CmdNetwork net
public final CmdInstrumentation ins
public final CmdBase bse
public Control(java.net.Inet4Address addr) throws java.io.IOException
addr
- The IPv4 address of the DOM or a broadcasting address for creating a
broadcast socket.java.io.IOException
public Control(int v1, int v2, int v3, int v4) throws java.io.IOException
java.io.IOException
public Control(java.lang.String text) throws java.net.UnknownHostException, java.io.IOException
java.net.UnknownHostException
java.io.IOException
public void setBatchMode(boolean batch)
flush()
batch
- true
to enable batch mode, false
to disable.public MessageProcessor getProcessor()
public void flush()
public boolean isBatchMode()
true
if it is, false
otherwise.public void close() throws java.lang.InterruptedException
java.lang.InterruptedException
- If interrupted.