public class AppSystemControlComms
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
allTablePositionUpdate(SynergyNetPosition b)
Send a message announcing the location of another device's interface
position to all devices.
|
void |
allTablesBringStudentsToTop(PerformActionMessage message)
Send a message instigating bringing student icons to the top of an
environment to all devices.
|
void |
allTablesFreeze(PerformActionMessage message)
Send a message informing all tables to toggle their freeze state
|
void |
allTablesReceiveContent(java.util.ArrayList<ContentTransferedMessage> messages)
Send a message informing all table devices of contents to display.
|
void |
allTablesReloadRemovableDriveContents(PerformActionMessage message)
Send a message instigating the recreation of items from removable drives
to all devices.
|
void |
allTablesReloadServerContents(PerformActionMessage message)
Send a message instigating the recreation of items from a device's
directory in the networked shared cache to all devices.
|
void |
allTablesRemoveAdditionalContent(PerformActionMessage message)
Send a message instigating the removal of any items in an environment not
directly created by the application to all devices.
|
void |
allTablesSendContentsToProjectors(java.lang.String[] projectorsToSendTo)
Send a message informing all table devices to send their contents to a
list of projectors.
|
void |
allTablesSendScreenshotsToProjectors(java.lang.String[] projectorsToSendTo)
Send a message informing all table devices to send screenshots of their
contents to a list of projectors.
|
void |
allTablesSetNetworkFlick(PerformActionMessage message)
Send a message instigating whether network flick is enabled to all
devices.
|
void |
allTablesTakeScreenshot(PerformActionMessage message)
Send a message instigating the creation of a screenshot item to all
devices.
|
static AppSystemControlComms |
get()
Retrieve, and initialise if needed, a static instance of
AppSystemControlComms.
|
long |
getLatency(java.lang.String remoteTable)
Finds the latency of sending values to another device.
|
int |
getNumberOfTablesOnline()
Get the number of all the devices connected to the network cluster of
'table' type.
|
java.util.List<java.lang.String> |
getProjectorsList()
Get a collection of all the devices connected to the network cluster of
'projector' type.
|
AppSystemDeviceControl |
getSNDeviceFromName(java.lang.String device)
Retrieve a representation of a device connected to the network cluster
from their ID.
|
java.util.List<java.lang.String> |
getTablesList()
Get a collection of all the devices connected to the network cluster of
'table' type.
|
void |
networkFlick(FlickMessage b,
java.lang.String table)
Send a message announcing the arrival of an item transferred through a
network flick.
|
void |
removeStudentFromTable(java.lang.String ID,
java.lang.String table)
Send a message to log out a student from a specific device.
|
void |
removeStudentsOfClass(java.lang.String className)
Send a message to log a class of students to all devices.
|
void |
sendStudentToTable(java.lang.String ID,
java.lang.String table)
Send a message to log a student in to a specific device.
|
void |
specificTableBringStudentsToTop(PerformActionMessage message,
java.lang.String table)
Send a message instigating bringing student icons to the top of an
environment to a specific device.
|
void |
specificTablePositionUpdate(SynergyNetPosition b,
java.lang.String table)
Send a message announcing the location of another device's interface
position to a specific device.
|
void |
specificTableReceiveContent(java.util.ArrayList<ContentTransferedMessage> messages,
java.lang.String device)
Send a message informing a specific table device of contents to display.
|
void |
specificTableReloadRemovableDriveContents(PerformActionMessage message,
java.lang.String table)
Send a message instigating the recreation of items from removable drives
to a specific device.
|
void |
specificTableReloadServerContents(PerformActionMessage message,
java.lang.String table)
Send a message instigating the recreation of items from a device's
directory in the networked shared cache to a specific device.
|
void |
specificTableRemoveAdditionalContent(PerformActionMessage message,
java.lang.String table)
Send a message instigating the removal of any items in an environment not
directly created by the application to a specific device.
|
void |
specificTableSetNetworkFlick(PerformActionMessage message,
java.lang.String table)
Send a message instigating whether network flick is enabled to a specific
devices.
|
void |
specificTablesFreeze(PerformActionMessage message,
java.lang.String table)
Send a message informing all tables to toggle their freeze state
|
void |
specificTablesSendContentsToProjectors(java.lang.String[] projectorsToSendTo,
java.lang.String device)
Send a message informing a specific devices to send its contents to a
list of projectors.
|
void |
specificTablesSendScreenshotsToProjectors(java.lang.String[] projectorsToSendTo,
java.lang.String device)
Send a message informing a specific devices to send screenshots of its
contents to a list of projectors.
|
void |
specificTableTakeScreenshot(PerformActionMessage message,
java.lang.String table)
Send a message instigating the creation of a screenshot item to a
specific device.
|
public static AppSystemControlComms get()
public void allTablePositionUpdate(SynergyNetPosition b)
b
- Structured message identifying the position of a network
device's interface.public void allTablesBringStudentsToTop(PerformActionMessage message)
b
- Indicator for whether student icons should be brought to the top
of an environment.public void allTablesFreeze(PerformActionMessage message)
message
- enables toggle.public void allTablesReceiveContent(java.util.ArrayList<ContentTransferedMessage> messages)
message
- list of the content item representations being transfered.public void allTablesReloadRemovableDriveContents(PerformActionMessage message)
b
- Indicator for whether the items from removable drives should be
recreated.public void allTablesReloadServerContents(PerformActionMessage message)
message
- Indicator for whether the items from a device's directory
in the networked shared cache should be recreated.public void allTablesRemoveAdditionalContent(PerformActionMessage message)
b
- Indicator for whether any items in an environment not directly
created by the application should be removed.public void allTablesSendContentsToProjectors(java.lang.String[] projectorsToSendTo)
projectorsToSendTo
- List of the projectors the contents are to be
send to.public void allTablesSendScreenshotsToProjectors(java.lang.String[] projectorsToSendTo)
projectorsToSendTo
- List of the projectors the screenshots are to
be send to.public void allTablesSetNetworkFlick(PerformActionMessage message)
b
- Indicator for whether the devices should.public void allTablesTakeScreenshot(PerformActionMessage message)
b
- Indicator for whether a screenshot item should be created.public long getLatency(java.lang.String remoteTable)
remoteTable
- The name of the table the latency is to be tested for.public int getNumberOfTablesOnline()
public java.util.List<java.lang.String> getProjectorsList()
public AppSystemDeviceControl getSNDeviceFromName(java.lang.String device)
device
- ID representing a device connected to the network cluster.public java.util.List<java.lang.String> getTablesList()
public void networkFlick(FlickMessage b, java.lang.String table)
b
- Structured message representing the item, its target and
trajectory when transferred through a network flick.table
- ID on the network cluster of the device the message is to be
sent to.public void removeStudentFromTable(java.lang.String ID, java.lang.String table)
ID
- ID of the student to be logged out.table
- ID on the network cluster of the device the message is to be
sent to.public void removeStudentsOfClass(java.lang.String className)
className
- Name of the class being logged out.public void sendStudentToTable(java.lang.String ID, java.lang.String table)
ID
- ID of the student to be logged in.table
- ID on the network cluster of the device the message is to be
sent to.public void specificTableBringStudentsToTop(PerformActionMessage message, java.lang.String table)
b
- Indicator for whether student icons should be brought to the top
of an environment.table
- ID on the network cluster of the device the message is to be
sent to.public void specificTablePositionUpdate(SynergyNetPosition b, java.lang.String table)
b
- Structured message identifying the position of a network
device's interface.table
- ID on the network cluster of the device the message is to be
sent to.public void specificTableReceiveContent(java.util.ArrayList<ContentTransferedMessage> messages, java.lang.String device)
message
- list of the content item representations being transfered.device
- ID on the network cluster of the device the message is to
be sent to.public void specificTableReloadRemovableDriveContents(PerformActionMessage message, java.lang.String table)
b
- Indicator for whether the items from removable drives should be
recreated.table
- ID on the network cluster of the device the message is to be
sent to.public void specificTableReloadServerContents(PerformActionMessage message, java.lang.String table)
b
- Indicator for whether the items from a device's directory in the
networked shared cache should be recreated.table
- ID on the network cluster of the device the message is to be
sent to.public void specificTableRemoveAdditionalContent(PerformActionMessage message, java.lang.String table)
b
- Indicator for whether any items in an environment not directly
created by the application should be removed.table
- ID on the network cluster of the device the message is to be
sent to.public void specificTableSetNetworkFlick(PerformActionMessage message, java.lang.String table)
b
- Indicator for whether network flick is enabled.table
- ID on the network cluster of the device the message is to be
sent to.public void specificTablesFreeze(PerformActionMessage message, java.lang.String table)
message
- enables toggle.device
- ID on the network cluster of the device the message is to
be sent to.public void specificTablesSendContentsToProjectors(java.lang.String[] projectorsToSendTo, java.lang.String device)
projectorsToSendTo
- List of the projectors the contents are to be
send to.table
- ID on the network cluster of the device the message is to be
sent to.public void specificTablesSendScreenshotsToProjectors(java.lang.String[] projectorsToSendTo, java.lang.String device)
projectorsToSendTo
- List of the projectors the screenshots are to
be send to.table
- ID on the network cluster of the device the message is to be
sent to.public void specificTableTakeScreenshot(PerformActionMessage message, java.lang.String table)
b
- Indicator for whether a screenshot item should be created.table
- ID on the network cluster of the device the message is to be
sent to.