|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectapps.mathpadapp.networkmanager.managers.syncmanager.SyncManager
public class SyncManager
The Class SyncManager.
| Constructor Summary | |
|---|---|
SyncManager(NetworkedContentManager networkManager)
Instantiates a new sync manager. |
|
| Method Summary | |
|---|---|
void |
addSyncListeners(UserIdentity userId)
Adds the sync listeners. |
void |
enableBroadcastSync(boolean isBroadcastSynchronisationOn)
Enable broadcast sync. |
void |
enableUnicastTableSync(TableIdentity syncWithTable,
boolean isUnicastSynchronisationOn)
Enable unicast table sync. |
void |
enableUnicastUserSync(TableIdentity syncWithTable,
UserIdentity syncWithUser,
boolean isUnicastSynchronisationOn)
Enable unicast user sync. |
boolean |
isBroadcastSynchronisationOn()
Checks if is broadcast synchronisation on. |
boolean |
isUnicastTableSynchronisationOn(TableIdentity syncWithTable)
Checks if is unicast table synchronisation on. |
boolean |
isUnicastUserSynchronisationOn(UserIdentity syncWithUser)
Checks if is unicast user synchronisation on. |
void |
registerPad(UserIdentity userId,
MathPad pad)
Register pad. |
void |
syncContent(TableIdentity sender,
java.util.HashMap<UserIdentity,java.util.HashMap<java.lang.Short,java.lang.Object>> syncData)
Sync content. |
void |
update(float tpf)
Update. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SyncManager(NetworkedContentManager networkManager)
networkManager - the network manager| Method Detail |
|---|
public void addSyncListeners(UserIdentity userId)
userId - the user idpublic void enableBroadcastSync(boolean isBroadcastSynchronisationOn)
isBroadcastSynchronisationOn - the is broadcast synchronisation on
public void enableUnicastTableSync(TableIdentity syncWithTable,
boolean isUnicastSynchronisationOn)
syncWithTable - the sync with tableisUnicastSynchronisationOn - the is unicast synchronisation on
public void enableUnicastUserSync(TableIdentity syncWithTable,
UserIdentity syncWithUser,
boolean isUnicastSynchronisationOn)
syncWithTable - the sync with tablesyncWithUser - the sync with userisUnicastSynchronisationOn - the is unicast synchronisation onpublic boolean isBroadcastSynchronisationOn()
public boolean isUnicastTableSynchronisationOn(TableIdentity syncWithTable)
syncWithTable - the sync with table
public boolean isUnicastUserSynchronisationOn(UserIdentity syncWithUser)
syncWithUser - the sync with user
public void registerPad(UserIdentity userId,
MathPad pad)
userId - the user idpad - the pad
public void syncContent(TableIdentity sender,
java.util.HashMap<UserIdentity,java.util.HashMap<java.lang.Short,java.lang.Object>> syncData)
sender - the sendersyncData - the sync datapublic void update(float tpf)
tpf - the tpf
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||