public class ProjectorControlComms
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
allProjectorsAlign(PerformActionMessage message)
Send a message instigating the alignment of content on all projectors.
|
void |
allProjectorsClear(PerformActionMessage message)
Send a message instigating the clearing of content on all projectors.
|
void |
allProjectorsReceiveContent(java.util.ArrayList<ContentTransferedMessage> messages)
Send a message informing all projector devices of contents to display.
|
void |
allProjectorsSendContentsToTables(java.lang.String[] tablesToSendTo)
Send a message informing all projector devices to send their contents to
a list of tables.
|
static ProjectorControlComms |
get()
Retrieve, and initialise if needed, a static instance of
AppSystemControlComms.
|
int |
getNumberOfProjectorsOnline()
Get the number of all the devices connected to the network cluster of
'projector' type.
|
java.util.List<java.lang.String> |
getProjectorsList()
Get a collection of all the devices connected to the network cluster of
'projector' type.
|
ProjectorDeviceControl |
getSNDeviceFromName(java.lang.String device)
Retrieve a representation of a device connected to the network cluster
from their ID.
|
void |
specificProjectorAlign(PerformActionMessage message,
java.lang.String device)
Send a message instigating the alignment of content on specific
projector.
|
void |
specificProjectorClear(PerformActionMessage message,
java.lang.String device)
Send a message instigating the clearing of content on specific projector.
|
void |
specificProjectorsReceiveContent(java.util.ArrayList<ContentTransferedMessage> messages,
java.lang.String device)
Send a message informing a specific projector devices of contents to
display.
|
void |
specificProjectorsSendContentsToTables(java.lang.String[] tablesToSendTo,
java.lang.String device)
Send a message informing a specific devices to send its contents to a
list of tables.
|
public static ProjectorControlComms get()
public void allProjectorsAlign(PerformActionMessage message)
message
- Indicator for whether content on all projectors should be
aligned.public void allProjectorsClear(PerformActionMessage message)
message
- Indicator for whether content on all projectors should be
cleared.public void allProjectorsReceiveContent(java.util.ArrayList<ContentTransferedMessage> messages)
message
- list of the content item representations being transfered.public void allProjectorsSendContentsToTables(java.lang.String[] tablesToSendTo)
tablesToSendTo
- List of the tables the contents are to be send to.public int getNumberOfProjectorsOnline()
public java.util.List<java.lang.String> getProjectorsList()
public ProjectorDeviceControl getSNDeviceFromName(java.lang.String device)
device
- ID representing a device connected to the network cluster.public void specificProjectorAlign(PerformActionMessage message, java.lang.String device)
message
- Indicator for whether content on specific projector should
be aligned.device
- ID on the network cluster of the device the message is to
be sent to.public void specificProjectorClear(PerformActionMessage message, java.lang.String device)
message
- Indicator for whether content on specific projector should
be cleared.device
- ID on the network cluster of the device the message is to
be sent to.public void specificProjectorsReceiveContent(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 specificProjectorsSendContentsToTables(java.lang.String[] tablesToSendTo, java.lang.String device)
tablesToSendTo
- List of the tables the contents are to be send to.device
- ID on the network cluster of the device the message is to
be sent to.