|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsynergynetframework.appsystem.services.net.rapidnetworkmanager.RapidNetworkManager
public class RapidNetworkManager
The Class RapidNetworkManager.
Nested Class Summary | |
---|---|
static class |
RapidNetworkManager.SyncType
The Enum SyncType. |
Field Summary | |
---|---|
static boolean |
isConnected
The is connected. |
Constructor Summary | |
---|---|
RapidNetworkManager()
|
Method Summary | |
---|---|
static void |
addNetworkedContentListener(NetworkedContentMessageProcessor.NetworkedContentListener listener)
Adds the networked content listener. |
static void |
broadcastItem(ContentItem item)
Broadcast item. |
static void |
broadcastItems(java.util.List<ContentItem> items)
Broadcast items. |
static void |
connect(DefaultSynergyNetApp app)
Connect. |
static void |
connect(DefaultSynergyNetApp app,
boolean contentSystemExists)
Connect. |
static void |
enableNetworkFlick(boolean isFlickEnabled)
Enable network flick. |
static java.util.HashMap<java.lang.Class<? extends ContentItem>,ConstructionManager> |
getConstructionManagers()
Gets the construction managers. |
static java.util.List<java.lang.Class<?>> |
getReceiverClasses()
Gets the receiver classes. |
static TableCommsClientService |
getTableCommsClientService()
Gets the table comms client service. |
static void |
postItem(ContentItem item,
TableIdentity tableIdentity)
Post item. |
static void |
postItems(java.util.List<ContentItem> items,
TableIdentity tableIdentity)
Post items. |
static void |
registerConstructionManager(java.lang.Class<? extends ContentItem> itemClass,
ConstructionManager constructManager)
Register construction manager. |
static void |
registerMessageProcessor(MessageProcessor processor)
Register message processor. |
static void |
removeMessageProcessor(MessageProcessor processor)
Removes the message processor. |
static void |
removeMessageProcessors()
Removes the message processors. |
static void |
removeNetworkedContentListeners()
Removes the networked content listeners. |
static void |
setAutoConnectTime(int reconnectTime)
Sets the auto connect time. |
static void |
setAutoReconnect(boolean autoReconnect)
Sets the auto reconnect. |
static void |
setTableOrientation(float angle)
Sets the table orientation. |
static void |
setTablePosition(int x,
int y)
Sets the table position. |
static void |
shareItem(ContentItem item,
TableIdentity tableIdentity,
RapidNetworkManager.SyncType syncType)
Share item. |
static void |
unshareItem(ContentItem item,
TableIdentity tableIdentity,
RapidNetworkManager.SyncType syncType)
Unshare item. |
static void |
update()
Update. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean isConnected
Constructor Detail |
---|
public RapidNetworkManager()
Method Detail |
---|
public static void addNetworkedContentListener(NetworkedContentMessageProcessor.NetworkedContentListener listener)
listener
- the listenerpublic static void broadcastItem(ContentItem item) throws java.io.IOException
item
- the item
java.io.IOException
- Signals that an I/O exception has occurred.public static void broadcastItems(java.util.List<ContentItem> items) throws java.io.IOException
items
- the items
java.io.IOException
- Signals that an I/O exception has occurred.public static void connect(DefaultSynergyNetApp app)
app
- the apppublic static void connect(DefaultSynergyNetApp app, boolean contentSystemExists)
app
- the appcontentSystemExists
- the content system existspublic static void enableNetworkFlick(boolean isFlickEnabled) throws java.io.IOException
isFlickEnabled
- the is flick enabled
java.io.IOException
- Signals that an I/O exception has occurred.public static java.util.HashMap<java.lang.Class<? extends ContentItem>,ConstructionManager> getConstructionManagers()
public static java.util.List<java.lang.Class<?>> getReceiverClasses()
public static TableCommsClientService getTableCommsClientService()
public static void postItem(ContentItem item, TableIdentity tableIdentity) throws java.io.IOException
item
- the itemtableIdentity
- the table identity
java.io.IOException
- Signals that an I/O exception has occurred.public static void postItems(java.util.List<ContentItem> items, TableIdentity tableIdentity) throws java.io.IOException
items
- the itemstableIdentity
- the table identity
java.io.IOException
- Signals that an I/O exception has occurred.public static void registerConstructionManager(java.lang.Class<? extends ContentItem> itemClass, ConstructionManager constructManager)
itemClass
- the item classconstructManager
- the construct managerpublic static void registerMessageProcessor(MessageProcessor processor)
processor
- the processorpublic static void removeMessageProcessor(MessageProcessor processor)
processor
- the processorpublic static void removeMessageProcessors()
public static void removeNetworkedContentListeners()
public static void setAutoConnectTime(int reconnectTime)
reconnectTime
- the new auto connect timepublic static void setAutoReconnect(boolean autoReconnect)
autoReconnect
- the new auto reconnectpublic static void setTableOrientation(float angle)
angle
- the new table orientationpublic static void setTablePosition(int x, int y)
x
- the xy
- the ypublic static void shareItem(ContentItem item, TableIdentity tableIdentity, RapidNetworkManager.SyncType syncType) throws java.io.IOException
item
- the itemtableIdentity
- the table identitysyncType
- the sync type
java.io.IOException
- Signals that an I/O exception has occurred.public static void unshareItem(ContentItem item, TableIdentity tableIdentity, RapidNetworkManager.SyncType syncType) throws java.io.IOException
item
- the itemtableIdentity
- the table identitysyncType
- the sync type
java.io.IOException
- Signals that an I/O exception has occurred.public static void update()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |