|
SecurePlayLibray J2SE v2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.SecurePlay.SPRootTransactionClass
com.SecurePlay.SPGameClass
This is the general class that holds a game instance. It is also the transaction class for the basic game transaction.
![]() |
![]() |
![]() |
![]() |
| Field Summary | |
private java.lang.String |
gamestatus
This provides the current status of the game instance. |
static java.lang.String |
mt_newTransaction
This property is the message type for new transactions. |
private java.util.Vector |
opentransactionIDList
This property provides access to the open transaction IDs. |
private int |
prBasicGameTransactionCount
|
private SPMap |
propentransactionList
This is the associative array that holds the transaction object pointers. |
(package private) java.lang.String |
releaseversion
IT GlobalSecure release version. |
| Fields inherited from class com.SecurePlay.SPRootTransactionClass |
comms, EventListenerList, gameID, insend, master, playerIDList, ReSend_altmessage, ReSend_encryptflag, ReSend_messagebody, ReSend_messageID, ReSend_messagetype, ReSend_privateflag, ReSend_receivers, ReSend_sender, secureplay, transactionID |
| Constructor Summary | |
private |
SPGameClass()
Default Constructor Consructor |
|
SPGameClass(java.lang.String master,
boolean signaturepolicy,
boolean encryptionpolicy,
SPLogInterface log,
SPSecurityManagerInterface security)
Constructs an overloaded SPGameClass() |
|
SPGameClass(java.lang.String gameID,
java.lang.String master,
boolean signaturepolicy,
boolean encryptionpolicy,
SecurePlayClass SPlibobj,
SPLogInterface log,
SPSecurityManagerInterface security)
Constructs an overloaded SPGameClass() |
| Method Summary | |
boolean |
addComms(java.lang.String commsID)
This method associates a comms service specified by the commsID string to a game instance. |
boolean |
addPlayer(java.lang.String pid)
This method safely adds an existing Player, specified by the playerID to the game instance. |
boolean |
addTransaction(SPAbstractTransactionInterface transObj)
This safely adds a transaction to a game instance and appropriately updates the game state. |
int |
APIgetBasicTransactionCount()
This method returns the basic transaction count - the total number of transactions that have been generated. |
SPLogInterface |
APIgetGameLog()
Gets the messagelog object from the gameinstance |
java.lang.String |
APIgetGamestatus()
Getter function that returns the property: gamestatus |
SPAbstractTransactionInterface |
APIgetGameTransaction(java.lang.String tid)
This method returns a specific transaction associated with a given game instance. |
java.lang.String |
APIgetLicenseSummary()
This method returns a summary of the licensee information for the current game instance. |
java.lang.String[] |
APIgetOpentransactionIDList()
Getter function that returns the open transaction IDs |
boolean |
closeTransaction(java.lang.String transID)
Safely removes a transaction from a game instance. |
SPCommsManagerClass |
getCommsManager()
Gets the comms manager object |
SecurePlayClass |
getSecurePlay()
This method returns the unique SecurePlay library object associated with the game instance object. |
SPAbstractTransactionInterface[] |
getTransactions()
Getter function that returns the transactions from propentransactionlist |
private void |
initializegame(java.lang.String master,
boolean signaturepolicy,
boolean encryptionpolicy,
SPLogInterface log,
SPSecurityManagerInterface security)
Configures a new game |
boolean |
isPlayerInternal(java.lang.String pid)
Checks to see if the player is internal |
void |
onIncomingTransaction(SPMessageClass messObj)
This method is the generic handler for incoming Game transaction methods. |
private boolean |
onnewTransaction(SPMessageClass incoming)
This method handles messages for new incoming transactions. |
private java.lang.String |
prsetTransactionID(SPAbstractTransactionInterface transObj)
This method generates a transactionID for a transaction object |
private void |
prUpdateGameStatus()
This method does a self-check on the game instance object and updates its status appropriately. |
boolean |
removeComms(java.lang.String commsID)
This method removes the association of a communications service with a game instance. |
boolean |
removePlayer(java.lang.String pid)
This method safely removes a Player instance from an existing Game Instance. |
boolean |
setGameID(java.lang.String gid,
SecurePlayClass spc)
This method sets the internal ID for a comms service if it has not been set. |
boolean |
setPlayerComms(java.lang.String playerID,
java.lang.String commsID)
This method associates a specific player instance, specified by the playerID, with a specific communications service, specified by the commsID. |
boolean |
transactionincluded(java.lang.String tid)
This method checks the specified transaction ID against the currently included transaction IDs in the game instance. |
| Methods inherited from class com.SecurePlay.SPRootTransactionClass |
APIaddListener, APIclearListeners, APIgetGameID, APIgetGetReplayList, APIgetListenerCount, APIgetListeners, APIgetMaster, APIgetPlayerIDList, APIgetTransactionID, APIisPlayerIncluded, APIremoveListener, APIReplayRemoveOldSender, APIresendLastMessage, APIsetReplayList, APIsetSecurePlayClass, detectReplay, sendMessage, SPnotify |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.SecurePlay.SPGameInterface |
APIgetGameID, APIgetMaster, APIgetPlayerIDList, APIgetTransactionID, SPnotify |
| Field Detail |
private SPMap propentransactionList
private java.util.Vector opentransactionIDList
private java.lang.String gamestatus
final java.lang.String releaseversion
public static final java.lang.String mt_newTransaction
private int prBasicGameTransactionCount
| Constructor Detail |
private SPGameClass()
public SPGameClass(java.lang.String gameID,
java.lang.String master,
boolean signaturepolicy,
boolean encryptionpolicy,
SecurePlayClass SPlibobj,
SPLogInterface log,
SPSecurityManagerInterface security)
gameID - String - id of the gamemaster - String - id of the player who will be the master of this gamesignaturepolicy - boolean - signature policyencryptionpolicy - boolean - encryption policySPlibobj - SecurePlayClass - secure play library in which the game will be created.
public SPGameClass(java.lang.String master,
boolean signaturepolicy,
boolean encryptionpolicy,
SPLogInterface log,
SPSecurityManagerInterface security)
master - String - id of the player who will be the master of this gamesignaturepolicy - boolean - signature policyencryptionpolicy - boolean - encryption policylog - - SPLogInterface - game log objectsecurity - - SPSecurityManagerInterface - security manager object| Method Detail |
private void initializegame(java.lang.String master,
boolean signaturepolicy,
boolean encryptionpolicy,
SPLogInterface log,
SPSecurityManagerInterface security)
master - signaturepolicy - encryptionpolicy - log - security - public boolean addPlayer(java.lang.String pid)
addPlayer in interface SPGameInterfacepid - String - the id of the player to be added
public boolean removePlayer(java.lang.String pid)
removePlayer in interface SPGameInterfacepid - String - id of the player to be removed
public boolean setPlayerComms(java.lang.String playerID,
java.lang.String commsID)
setPlayerComms in interface SPGameInterfaceplayerID - String - id of the player to be addedcommsID - String - id of the comms object to be added
private void prUpdateGameStatus()
public boolean addComms(java.lang.String commsID)
addComms in interface SPGameInterfacecommsID - String - id of the comms to be added
public boolean removeComms(java.lang.String commsID)
removeComms in interface SPGameInterfacecommsID - String - id of the comms to be removed
public boolean addTransaction(SPAbstractTransactionInterface transObj)
addTransaction in interface SPGameInterfacetransObj - SPAbstractTransactionInterface - the transaction Object handler
public boolean closeTransaction(java.lang.String transID)
closeTransaction in interface SPGameInterfacetransID - String - the id of the transaction to be closed
public SPAbstractTransactionInterface APIgetGameTransaction(java.lang.String tid)
APIgetGameTransaction in interface SPGameInterfacetid - String - identifier for transaction object
private java.lang.String prsetTransactionID(SPAbstractTransactionInterface transObj)
transObj - SPAbstractTransactionInterface - the transaction object from which the id is retrieved
public boolean transactionincluded(java.lang.String tid)
transactionincluded in interface SPGameInterfacetid - String - the id of the transaction in question
public void onIncomingTransaction(SPMessageClass messObj)
onIncomingTransaction in interface SPGameInterfacemessObj - SPMessageClass - incoming Message Objectpublic boolean isPlayerInternal(java.lang.String pid)
isPlayerInternal in interface SPGameInterfacepid - String - id of the player to be checked
public SPCommsManagerClass getCommsManager()
getCommsManager in interface SPGameInterfacepublic SecurePlayClass getSecurePlay()
getSecurePlay in interface SPGameInterfacepublic java.lang.String APIgetGamestatus()
APIgetGamestatus in interface SPGameInterfacepublic java.lang.String[] APIgetOpentransactionIDList()
APIgetOpentransactionIDList in interface SPGameInterfacepublic SPAbstractTransactionInterface[] getTransactions()
public java.lang.String APIgetLicenseSummary()
APIgetLicenseSummary in interface SPGameInterfaceprivate boolean onnewTransaction(SPMessageClass incoming)
incoming - SPMessageClass - the incoming message.
public SPLogInterface APIgetGameLog()
APIgetGameLog in interface SPGameInterfacepublic int APIgetBasicTransactionCount()
public boolean setGameID(java.lang.String gid,
SecurePlayClass spc)
setGameID in interface SPGameInterfacegid - String - game idspc - - SecurePlayClass
|
SecurePlayLibray J2SE v2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||