|
SecurePlayLibray J2SE v2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.SecurePlay.SPCommsManagerClass
This class manages the communications and various communications services. It is essentially the "router" for the game data.
![]() |
![]() |
![]() |
![]() |
| Field Summary | |
private boolean |
active
|
private SPGameInterface |
gameinstance
This is the object pointer for the game instance object associated with the comms object. |
private java.lang.String[] |
internalplayerIDList
This property holds the array of the IDs of the internal players |
private SPLogInterface |
messagelog
This property holds the pointer to the message log object. |
private SPMap |
playerCommsList
This associative array holds the mapping between the various game players and their associated comms services IDs. |
private java.lang.String[] |
prcommsIDList
This property holds the array of comms services IDs. |
private SPMap |
prcommsServList
This associative array holds the mapping between the various comms services IDs and the comms services objects, themsselves. |
private java.lang.String |
prcommsstatus
This is a text string that provides the current status of the comms object. |
private boolean |
prencryptpolicy
This flag holds the encryption policy flag for the game instance. |
private boolean |
prsignaturepolicy
This flag holds the overall signature policy for the game. |
(package private) java.lang.String |
releaseversion
IT GlobalSecure release version. |
private SPSecurityManagerInterface |
securityManager
|
private java.lang.Thread |
t1
|
| Constructor Summary | |
SPCommsManagerClass(SPGameInterface gameobj,
SPLogInterface log,
SPSecurityManagerInterface security)
Overloaded Constructor. |
|
| Method Summary | |
boolean |
addComms(java.lang.String commsID)
This method safely adds an available comms service to the game instance. |
boolean |
APIActivate()
This method activates the thread |
boolean |
APIDeactivate()
This method deactivates the thread |
private void |
configureCommsManager(SPGameInterface gameobj,
SPLogInterface log,
SPSecurityManagerInterface security)
This method configures this Comms Manager Class. |
boolean |
endGameComms()
This method safely ends the game comms session. |
SPAbstractCommsInterface |
getComms(java.lang.String commsID)
This method safely returns one of the comms services objects associated with this game instance. |
java.lang.String |
getCommsStatus()
Gets the comms status. |
boolean |
getEncryptPolicy()
This method returns the encryption policy flag. |
SPGameInterface |
getGameinstance()
Getter function that returns the property: |
java.lang.String[] |
getInternalplayerIDList()
Getter function that returns the property: internalplayerIDList |
SPLogInterface |
getMessagelog()
Getter function that returns the property: messagelog |
SPMap |
getPlayerCommsList()
Getter function that returns the property: playerCommsList |
java.lang.String[] |
getPrcommsIDList()
Getter function that returns the property: prcommsIDList |
SPMap |
getPrcommsServList()
Getter function that returns the property: prcommsServList |
SPSecurityManagerInterface |
getSecurityManager()
|
boolean |
getSignaturePolicy()
This method returns the Signature Policy flag for the game instance. |
boolean |
isPlayerInternal(java.lang.String pid)
Checks to see if the player is internal to the game. |
void |
receiveMessage(SPMessageClass incoming)
This method safely receives and routes incoming messages. |
boolean |
removeComms(java.lang.String cid)
This method safely removes comms service from the game instance. |
void |
removePlayer(java.lang.String playerID)
This method safely removes a player from the game instance's comms. |
void |
run()
This method activates the thread |
void |
sendMessage(java.lang.String gid,
java.lang.String tid,
java.lang.String sender,
java.lang.String[] receivers,
boolean encryptflag,
boolean aprivateflag,
java.lang.String messagetype,
java.lang.String messID,
java.lang.String[] messagebody,
java.lang.String[] altmessage)
This method manages actually sending messages to other game instances via communication services objects. |
boolean |
setPlayerComms(java.lang.String pid,
java.lang.String cid)
This method safely associates a Player with a comms service and enables relay support for that player via that comms service. |
boolean |
setSecurityPolicy(boolean sign,
boolean encrypt)
This method safely sets the security policy (encryption and signatures, for the game instance). |
protected void |
startCommsManager()
initialize the message log with licensing information |
java.lang.String |
UpdateCommsStatus()
This method reviews and updates the status of the comms instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private SPGameInterface gameinstance
private java.lang.String[] prcommsIDList
private SPMap prcommsServList
private java.lang.String[] internalplayerIDList
private boolean prencryptpolicy
private boolean prsignaturepolicy
private SPLogInterface messagelog
private SPMap playerCommsList
private java.lang.String prcommsstatus
final java.lang.String releaseversion
private SPSecurityManagerInterface securityManager
private java.lang.Thread t1
private boolean active
| Constructor Detail |
public SPCommsManagerClass(SPGameInterface gameobj,
SPLogInterface log,
SPSecurityManagerInterface security)
gameobj - - SPGameInterface - game instance objectlog - SPLogInterface - log class associated with this comms manager.security - SPSecurityManagerInterface - security manager associated with this comms manager.| Method Detail |
private void configureCommsManager(SPGameInterface gameobj,
SPLogInterface log,
SPSecurityManagerInterface security)
gameobj - SPGameInterface - game associated with this comms manager.log - SPLogInterface - the log type for this gamesecurity - SPSecurityManagerInterface - security for the game.
voidprotected void startCommsManager()
public boolean setSecurityPolicy(boolean sign,
boolean encrypt)
sign - boolean - Signature policyencrypt - boolean - encryption policy
public SPAbstractCommsInterface getComms(java.lang.String commsID)
commsID - String - id of the comms to be retrieved
public boolean addComms(java.lang.String commsID)
commsID - String - comms service identifier string
public boolean removeComms(java.lang.String cid)
cid - String - id of the comms object to be removed
public boolean getEncryptPolicy()
public boolean getSignaturePolicy()
public boolean endGameComms()
public boolean setPlayerComms(java.lang.String pid,
java.lang.String cid)
pid - String - player id to be setcid - String - comms id to be set
public void removePlayer(java.lang.String playerID)
playerID - String - id of the player to be removedpublic java.lang.String UpdateCommsStatus()
public void sendMessage(java.lang.String gid,
java.lang.String tid,
java.lang.String sender,
java.lang.String[] receivers,
boolean encryptflag,
boolean aprivateflag,
java.lang.String messagetype,
java.lang.String messID,
java.lang.String[] messagebody,
java.lang.String[] altmessage)
gid - tid - sender - receivers - encryptflag - aprivateflag - messagetype - messID - messagebody - altmessage -
public void receiveMessage(SPMessageClass incoming)
receiveMessage in interface SPCommsManagerCommsInterfaceincoming - SPMessageClass - incoming message
public java.lang.String getCommsStatus()
public boolean isPlayerInternal(java.lang.String pid)
pid - String - the player id
public SPGameInterface getGameinstance()
public java.lang.String[] getInternalplayerIDList()
public SPLogInterface getMessagelog()
public SPMap getPlayerCommsList()
public java.lang.String[] getPrcommsIDList()
public SPMap getPrcommsServList()
public SPSecurityManagerInterface getSecurityManager()
public void run()
run in interface java.lang.Runnablepublic boolean APIActivate()
public boolean APIDeactivate()
|
SecurePlayLibray J2SE v2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||