SecurePlayLibray J2SE
v2.1

com.SecurePlay
Class SPTActClass

java.lang.Object
  extended bycom.SecurePlay.SPRootTransactionClass
      extended bycom.SecurePlay.SPAbstractTransactionClass
          extended bycom.SecurePlay.SPTStrobeClass
              extended bycom.SecurePlay.SPTActClass
All Implemented Interfaces:
SPAbstractTransactionInterface

public class SPTActClass
extends SPTStrobeClass

The SPTActClass is an extension of the Stobe class with integrated inclusion of random events.

Author:
IT GlobalSecure
See Also:
SecurePlay License Information
 

Field Summary
private  int eventcount
          This property is the number of random events drawn.
private  int randomrange
          This property is the range of random event values.
 
Fields inherited from class com.SecurePlay.SPTStrobeClass
mt_revealSecret, mt_sendHiddenSecret, status_allsent
 
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
SPTActClass()
          Default Constructor
SPTActClass(SPGameInterface gameobj, java.lang.String master, java.lang.String[] playerIDList, boolean privateflag, java.lang.String transactionID, java.lang.String AGE, int dsize, int ecount)
           
 
Method Summary
 SPAbstractTransactionInterface APIcreateTransaction(SPGameInterface gameapiobj, SPMessageClass message)
          Creates a new instance of an Abstract Transaction class.
 int[] APIgetRandom()
          This method returns the combined random number from the transaction participants
 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.
static SPAbstractTransactionInterface createAct(SPGameInterface gameobj, java.lang.String master, java.lang.String[] playerIDList, boolean privateflag, java.lang.String AGE, int dsize, int ecount)
          This method creates a SPTActClass transaction.
static SPAbstractTransactionInterface createStrobe(SPGameInterface gameobj, java.lang.String master, java.lang.String[] playerIDList, boolean privateflag, java.lang.String transactionID, java.lang.String AGE, java.lang.String[] configarr)
          OVERRIDE - OVERRIDE - OVERRIDE - OVERRIDE - OVERRIDE This method creates a SPTStrobeClass transaction.
static java.lang.String gettranstype()
          This method gets the transaction type.
static boolean registerTransaction()
          Registers this transaction.
 
Methods inherited from class com.SecurePlay.SPTStrobeClass
APIverifyStrobeStep, createStrobe, getPrpadlength, getSecretA, getSecretB, getSecrettransformA, getSecrettransformB, isAactive, pronincomingTransaction, pruniqueinit
 
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

randomrange

private int randomrange
This property is the range of random event values.


eventcount

private int eventcount
This property is the number of random events drawn.

Constructor Detail

SPTActClass

public SPTActClass()
Default Constructor


SPTActClass

public SPTActClass(SPGameInterface gameobj,
                   java.lang.String master,
                   java.lang.String[] playerIDList,
                   boolean privateflag,
                   java.lang.String transactionID,
                   java.lang.String AGE,
                   int dsize,
                   int ecount)
Parameters:
gameobj -
master -
playerIDList -
privateflag -
transactionID -
Method Detail

APIsendHiddenSecret

public 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.

Overrides:
APIsendHiddenSecret in class SPTStrobeClass
Parameters:
sender - String - sender of the secret
newsecret - String - the secret
Returns:
result - Boolean: TRUE, if successful, FALSE, if not

APIgetSecret

public 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.

Overrides:
APIgetSecret in class SPTStrobeClass
Parameters:
sender - String - sender of the secret
Returns:
secret - String - the secret

APIgetRandom

public int[] APIgetRandom()
This method returns the combined random number from the transaction participants

Returns:
int[] result - combined random value

registerTransaction

public static boolean registerTransaction()
Registers this transaction.

Returns:
boolean

gettranstype

public static java.lang.String gettranstype()
Description copied from class: SPTStrobeClass
This method gets the transaction type.


createAct

public static SPAbstractTransactionInterface createAct(SPGameInterface gameobj,
                                                       java.lang.String master,
                                                       java.lang.String[] playerIDList,
                                                       boolean privateflag,
                                                       java.lang.String AGE,
                                                       int dsize,
                                                       int ecount)
This method creates a SPTActClass transaction.

Parameters:
gameobj -
master -
playerIDList -
privateflag -
AGE -
dsize -
ecount -
Returns:
SPAbstractTransactionInterface - returns created Act class

APIcreateTransaction

public SPAbstractTransactionInterface APIcreateTransaction(SPGameInterface gameapiobj,
                                                           SPMessageClass message)
Creates a new instance of an Abstract Transaction class.

Specified by:
APIcreateTransaction in interface SPAbstractTransactionInterface
Overrides:
APIcreateTransaction in class SPTStrobeClass
Parameters:
gameapiobj - SPGameInterface - game associated with this transaction.
message - SPMessageClass - all the transaction configure information

APIgetTransactionType

public java.lang.String APIgetTransactionType()
This method returns a String of the transactiontype.

Specified by:
APIgetTransactionType in interface SPAbstractTransactionInterface
Overrides:
APIgetTransactionType in class SPTStrobeClass
Returns:
this.transtype - String - name of transaction type

createStrobe

public static SPAbstractTransactionInterface createStrobe(SPGameInterface gameobj,
                                                          java.lang.String master,
                                                          java.lang.String[] playerIDList,
                                                          boolean privateflag,
                                                          java.lang.String transactionID,
                                                          java.lang.String AGE,
                                                          java.lang.String[] configarr)
OVERRIDE - OVERRIDE - OVERRIDE - OVERRIDE - OVERRIDE This method creates a SPTStrobeClass transaction.

Parameters:
gameobj -
master -
playerIDList -
privateflag -
transactionID -
AGE -
configarr -
Returns:
SPAbstractTransactionInterface - returns null

SecurePlayLibray J2SE
v2.1

2006 Copyright Filed by IT GlobalSecure, Inc. All Rights Reserved. Not to be used without authorization by Author. SecurePlay, IT GlobalSecure, and IT Armor are registered trademarks by IT GlobalSecure, Inc. Software protected by software license, and one or more the following U.S. and International patent numbers: U.S. Patent 6,030,288, U.S. Patent 6,165,072, European Patent Office EP1016049A1,and World Intellectual Property Organization WO9912135C1 and additional filings worldwide.