|
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.SPAbstractTransactionClass
This is the common abstract transaction class for all transactions in the SecurePlay library
![]() |
![]() |
![]() |
![]() |
| Field Summary | |
(package private) java.lang.String |
AGE
Abstract Game Engine or code associated with this transaction |
(package private) java.lang.String[] |
configuration
This property holds the configuration of the Transaction Instance. |
(package private) SPGameInterface |
gameinstance
This is the object handler for the Game Instance Object with which the transaction is associated. |
(package private) static java.lang.String |
mt_completeTransaction
Static message types that this transaction supports. |
(package private) static java.lang.String |
mt_error
Static message types that this transaction supports. |
(package private) boolean |
privateflag
This is a flag to describe whether the specific transaction is a private transaction to the non-participating Players. |
(package private) java.lang.String |
releaseversion
IT GlobalSecure release version. |
(package private) static java.lang.String |
status_error
transaction status error variable |
(package private) static java.lang.String |
status_ready
transaction status ready variable |
(package private) java.lang.String |
transactionstatus
This is a string that describes the current state of the transaction. |
(package private) java.lang.String |
transtype
Type of Transaction |
| 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 | |
SPAbstractTransactionClass()
Default Constructor. |
|
SPAbstractTransactionClass(SPGameInterface gameobj,
java.lang.String master,
java.lang.String[] playerIDList,
boolean privateflag,
java.lang.String transactionID,
java.lang.String AGE,
java.lang.String[] configarr)
Constructor. |
|
| Method Summary | |
boolean |
APIcompleteTransaction(java.lang.String pid)
This method allows the Transaction Master ONLY to complete the transaction. |
SPAbstractTransactionInterface |
APIcreateTransaction(SPGameInterface gameapiobj,
SPMessageClass message)
Creates a new instance of an Abstract Transaction class. |
java.lang.String |
APIgetAGE()
Gets the Abstract Game Engine (AGE) of this transaction. |
java.lang.String[] |
APIgetConfiguration()
Getter function that returns the property: configuration |
SPGameInterface |
APIgetGameinstance()
Getter function that returns the property: gameinstance |
boolean |
APIgetPrivacyFlag()
Gets the privacy flag of this class. |
java.lang.String |
APIgetTransactionstatus()
Getter function that returns the property: transactionstatus |
java.lang.String |
APIgetTransactionType()
This method returns a String of the transactiontype. |
boolean |
APIisPlayerInternal(java.lang.String pid)
Checks to see if the playr is internal |
boolean |
APIisTransError()
This method returns a flag for whether the status of the transaction is in error or not. |
void |
APIsetTransactionID(java.lang.String tid)
Sets the transaction id to a specified id. |
private void |
completeTransaction(java.lang.String sourceid)
This method allows the Transaction Master ONLY to complete the transaction. |
static java.lang.String |
gettranstype()
This method gets the transaction type. |
void |
logError()
This is a shell method for future use. |
private void |
onCompleteTransaction(SPMessageClass incoming)
This method allows the Transaction Master ONLY to complete the transaction. |
void |
onincomingTransaction(SPMessageClass incoming)
This method handles the various incoming messages and passes them to the appropriate message type handler. |
protected void |
prinit(SPGameInterface gameobj,
java.lang.String masterID,
java.lang.String[] plrIDList,
boolean prvtflag,
java.lang.String transID)
Initializes the transaction. |
protected boolean |
pronincomingTransaction(SPMessageClass incoming)
this is a shell for unique incoming transactions |
protected void |
pruniqueinit()
shell to allow unique initialization of transactions |
protected boolean |
setAGE(java.lang.String sourceID,
java.lang.String newgameblock)
This method safely sets the abstract game engine of a transaction. |
| 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.SPAbstractTransactionInterface |
APIgetGameID, APIgetMaster, APIgetPlayerIDList, APIgetTransactionID, sendMessage |
| Field Detail |
SPGameInterface gameinstance
boolean privateflag
java.lang.String transactionstatus
java.lang.String[] configuration
java.lang.String AGE
java.lang.String transtype
static final java.lang.String mt_completeTransaction
static final java.lang.String mt_error
static final java.lang.String status_ready
static final java.lang.String status_error
final java.lang.String releaseversion
| Constructor Detail |
public SPAbstractTransactionClass()
public SPAbstractTransactionClass(SPGameInterface gameobj,
java.lang.String master,
java.lang.String[] playerIDList,
boolean privateflag,
java.lang.String transactionID,
java.lang.String AGE,
java.lang.String[] configarr)
gameobj - SPGameInterface - game associated with this transaction.master - String - master of this transaction.playerIDList - String[] - player id list associated with this transaction.privateflag - boolean - privacy flag.transactionID - String - ID associated with this transaction.| Method Detail |
protected void prinit(SPGameInterface gameobj,
java.lang.String masterID,
java.lang.String[] plrIDList,
boolean prvtflag,
java.lang.String transID)
gameobj - masterID - plrIDList - prvtflag - transID - protected void pruniqueinit()
public boolean APIcompleteTransaction(java.lang.String pid)
APIcompleteTransaction in interface SPAbstractTransactionInterfacepid - String - id of the player who is completing the transaction, must be the master and internal.
private void completeTransaction(java.lang.String sourceid)
sourceid - String - source id
private void onCompleteTransaction(SPMessageClass incoming)
incoming - SPMessageClass - incomng message
public void onincomingTransaction(SPMessageClass incoming)
onincomingTransaction in interface SPAbstractTransactionInterfaceincoming - SPMessageClass - incomng message
public boolean APIisTransError()
protected boolean pronincomingTransaction(SPMessageClass incoming)
incoming - SPMessageClass - incoming message
public boolean APIisPlayerInternal(java.lang.String pid)
pid - String - id of the player to be checked.
public void logError()
public boolean APIgetPrivacyFlag()
APIgetPrivacyFlag in interface SPAbstractTransactionInterfacepublic void APIsetTransactionID(java.lang.String tid)
APIsetTransactionID in interface SPAbstractTransactionInterfacetid - String - the id of the transaction.
protected boolean setAGE(java.lang.String sourceID,
java.lang.String newgameblock)
sourceID - String - id of the source.newgameblock - String - candidate game block
public java.lang.String APIgetAGE()
APIgetAGE in interface SPAbstractTransactionInterfacepublic java.lang.String[] APIgetConfiguration()
APIgetConfiguration in interface SPAbstractTransactionInterfacepublic SPGameInterface APIgetGameinstance()
public java.lang.String APIgetTransactionstatus()
APIgetTransactionstatus in interface SPAbstractTransactionInterfacepublic java.lang.String APIgetTransactionType()
APIgetTransactionType in interface SPAbstractTransactionInterfacepublic static java.lang.String gettranstype()
public SPAbstractTransactionInterface APIcreateTransaction(SPGameInterface gameapiobj,
SPMessageClass message)
APIcreateTransaction in interface SPAbstractTransactionInterfacegameapiobj - SPGameInterface - game associated with this transaction.message - SPMessageClass - message that contains all the configure info
|
SecurePlayLibray J2SE v2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||