|
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
com.SecurePlay.SPTStrobeClass
The Strobe Class is used to provide securely synchronized game play. This is essentially a combination of the Multipart transaction and the Simultaneous transaction. Each participant sends a simultaneous message to the others. Once all sent, then a tick or event has occurred. Then another message can be sent and the first message read.
![]() |
![]() |
![]() |
![]() |
| Field Summary | |
private boolean |
Aactive
This property indicates which set of simultaneous events can be written (Aactive boolean TRUE for the A bank) or read (Aactive boolean TRUE for the B bank) |
private boolean |
internalsent
|
(package private) static java.lang.String |
mt_revealSecret
Static message types that this transaction supports. |
(package private) static java.lang.String |
mt_sendHiddenSecret
Static message types that this transaction supports. |
private int |
prpadlength
This is a private,constant property. |
private SPMap |
secretA
This an associative array of simultaneous secrets string Arrays that are being protected through the Simultaneous transaction. |
private SPMap |
secretB
This property holds the alternate set of Simultaneous secrets |
private SPMap |
secrettransformA
This property is the associative array of irreversible transforms of the secretpadded strings. |
private SPMap |
secrettransformB
This property holds the alternate set of Simultaneous secret transformss |
(package private) static java.lang.String |
status_allsent
transaction status error variable |
| Fields inherited from class com.SecurePlay.SPAbstractTransactionClass |
AGE, configuration, gameinstance, mt_completeTransaction, mt_error, privateflag, releaseversion, status_error, status_ready, transactionstatus, transtype |
| 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 | |
SPTStrobeClass()
Default Constructor |
|
SPTStrobeClass(SPGameInterface gameobj,
java.lang.String master,
java.lang.String[] playerIDList,
boolean privateflag,
java.lang.String transactionID,
java.lang.String AGE,
java.lang.String[] configarr)
Overloaded Constructor |
|
| Method Summary | |
private boolean |
AActive()
This method returns whether the A bank is active boolean TRUE - or the B bank is active boolean FALSE. |
SPAbstractTransactionInterface |
APIcreateTransaction(SPGameInterface gameapiobj,
SPMessageClass message)
Creates a new instance of an SPSecretClass class. |
java.lang.String[] |
APIgetSecret(java.lang.String sender)
This method returns the actual secret for the specified player that this STROBE step is protecting, if available. |
java.lang.String |
APIgetTransactionType()
This method returns a String of the transactiontype. |
boolean |
APIsendHiddenSecret(java.lang.String sender,
java.lang.String[] newsecret)
This method allows the specified transaction participant to send the transform of a secret to the other participants in the Simultaneous transaction. |
boolean |
APIverifyStrobeStep()
This method verifies whether the just completed STROBE step is valid. |
private boolean |
BActive()
This method returns whether the B bank is active boolean TRUE - or the A bank is active boolean FALSE. |
static SPAbstractTransactionInterface |
createStrobe(SPGameInterface gameobj,
java.lang.String master,
java.lang.String[] playerIDList,
boolean privateflag,
java.lang.String AGE,
java.lang.String[] configarr)
This method creates a SPTStrobeClass transaction. |
private void |
FlushActive()
This method resets the transaction that is being read so it can be written by emptying it of info and resetting it. |
int |
getPrpadlength()
Getter function that returns the property: prpadlength |
SPMap |
getSecretA()
Getter function that returns the property: secretA |
SPMap |
getSecretB()
Getter function that returns the property: secretB |
SPMap |
getSecrettransformA()
Getter function that returns the property: secrettransformA |
SPMap |
getSecrettransformB()
Getter function that returns the property: secrettransformB |
static java.lang.String |
gettranstype()
This method gets the transaction type. |
boolean |
isAactive()
Getter function that returns the property: Aactive |
private boolean |
isStrobeBankComplete()
|
private boolean |
onrevealSecret(SPMessageClass incoming)
This method handles the incoming message to reveal a secret. |
private boolean |
onsendHiddenSecret(SPMessageClass incoming)
This method handles incoming sendHiddenSecret messages. |
private boolean |
prcheckallsent()
This method checks to see if all hidden secrets have been sent. |
boolean |
pronincomingTransaction(SPMessageClass incoming)
This method provides the unique handlers for incoming Strobe turn message types |
private boolean |
prsendinternalSecrets()
This method safely sends all of the internal Secrets from participants in the Simultaneous transaction to remote players. |
void |
pruniqueinit()
Uniques initialization |
static boolean |
registerTransaction()
Registers this transaction. |
private void |
SwitchActive()
This method switches whether the A bank is active or the B bank is active |
| Methods inherited from class com.SecurePlay.SPAbstractTransactionClass |
APIcompleteTransaction, APIgetAGE, APIgetConfiguration, APIgetGameinstance, APIgetPrivacyFlag, APIgetTransactionstatus, APIisPlayerInternal, APIisTransError, APIsetTransactionID, logError, onincomingTransaction, prinit, setAGE |
| 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 |
private final int prpadlength
private SPMap secretA
private SPMap secrettransformA
private SPMap secretB
private SPMap secrettransformB
private boolean Aactive
private boolean internalsent
static final java.lang.String mt_sendHiddenSecret
static final java.lang.String mt_revealSecret
static final java.lang.String status_allsent
| Constructor Detail |
public SPTStrobeClass()
public SPTStrobeClass(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 - the game object with which the transaction is associatedmaster - String - the master of the transactionplayerIDList - String[] - player id list of players who are associated with the transactionprivateflag - boolean - private flagtransactionID - String - the transaction id| Method Detail |
public void pruniqueinit()
pruniqueinit in class SPAbstractTransactionClass
public boolean APIsendHiddenSecret(java.lang.String sender,
java.lang.String[] newsecret)
sender - String - sender of the secretnewsecret - String - the secret
public boolean APIverifyStrobeStep()
public java.lang.String[] APIgetSecret(java.lang.String sender)
sender - String - sender of the secret
private boolean onsendHiddenSecret(SPMessageClass incoming)
incoming - SPMessageClass - incoming message
private boolean prcheckallsent()
private boolean prsendinternalSecrets()
private boolean onrevealSecret(SPMessageClass incoming)
incoming - SPMessageClass - incoming message
private boolean isStrobeBankComplete()
public boolean pronincomingTransaction(SPMessageClass incoming)
pronincomingTransaction in class SPAbstractTransactionClassincoming - SPMessageClass - incoming message
private boolean BActive()
private boolean AActive()
private void SwitchActive()
private void FlushActive()
public boolean isAactive()
public int getPrpadlength()
public SPMap getSecretA()
public SPMap getSecretB()
public SPMap getSecrettransformA()
public SPMap getSecrettransformB()
public static java.lang.String gettranstype()
public static boolean registerTransaction()
public static SPAbstractTransactionInterface createStrobe(SPGameInterface gameobj,
java.lang.String master,
java.lang.String[] playerIDList,
boolean privateflag,
java.lang.String AGE,
java.lang.String[] configarr)
gameobj - master - playerIDList - privateflag - AGE - configarr -
public SPAbstractTransactionInterface APIcreateTransaction(SPGameInterface gameapiobj,
SPMessageClass message)
APIcreateTransaction in interface SPAbstractTransactionInterfaceAPIcreateTransaction in class SPAbstractTransactionClassgameapiobj - SPGameInterface - game associated with this transaction.message - SPMessageClass - message class with all the configure info
public java.lang.String APIgetTransactionType()
APIgetTransactionType in interface SPAbstractTransactionInterfaceAPIgetTransactionType in class SPAbstractTransactionClass
|
SecurePlayLibray J2SE v2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||