|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.SecurePlay.SPAbstractTransactionAPIClass
API version of the SPAbstractTransactionClass
com.SecurePlay.core.SPAbstractTransactionClass,
SecurePlay License Information
![]() |
![]() |
| Field Summary | |
protected boolean |
librarytestmode
This should be set to FALSE for production systems or all "rulesXXXX methods should be edited |
protected SPAbstractTransactionClass |
transactioninstance
Instance of SPAbstractTransactionClass |
| Constructor Summary | |
SPAbstractTransactionAPIClass(SPAbstractTransactionClass abstractTransInstance)
Overloaded Constructor |
|
| Method Summary | |
boolean |
APIAddListener(SPEventInterface gameobj)
This method adds a listener object for Game API events |
boolean |
APIbeginTransaction(java.lang.String pid)
This action can only be initiated by the Transaction master. |
boolean |
APIClearListeners()
This method clears the listener objects for Game API events |
boolean |
APIcompleteTransaction(java.lang.String pid)
This method allows the Transaction Master ONLY to complete the transaction. |
boolean |
APIconfigureTransaction(java.lang.String pid,
java.lang.String[] args)
This method allows the Transaction Master ONLY to configure the transactions unique parameters. |
int |
APIGetListenerCount()
This method returns the number of listener objects for Game API events |
java.lang.Object[] |
APIGetListeners()
This method returns a list of listener objects for Game API events |
boolean |
APIRemoveListener(SPEventInterface gameobj)
This method removes a listener object for Game API events |
boolean |
APIrequestbeginTransaction(java.lang.String pid)
This method allows any transaction participant excluding the Transaction master to request that the transaction be begun. |
boolean |
APIrequestCompleteTransaction(java.lang.String pid)
This method allows any player, excluding the Transaction master to request that the transactoin be completed. |
boolean |
APIrequestconfigureTransaction(java.lang.String pid,
java.lang.String[] args)
This method allows any player, excluding the Transaction master, to request that the transaction be configured as described in the configuration array. |
java.lang.String |
APISPawn(java.lang.String pid)
This method creates a new transaction with the identical participants and configuration as the spawning transaction. |
SPAbstractTransactionInterface |
getTransactioninstance()
Getter function that gets the transaction instance |
boolean |
rulesbeginTransaction(java.lang.String pid,
SPAbstractTransactionInterface transobj)
This shell method determines if an existing transaction object can be "begun" from a remote request. |
boolean |
rulescompleteTransaction(java.lang.String pid,
SPAbstractTransactionInterface transobj)
This shell method handles remote requests to complete an existing transaction. |
boolean |
rulesconfigureTransaction(java.lang.String pid,
java.lang.String[] configarr,
SPAbstractTransactionInterface transobj)
This shell method supports remote requests to configure an existing transaction. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected SPAbstractTransactionClass transactioninstance
protected final boolean librarytestmode
| Constructor Detail |
public SPAbstractTransactionAPIClass(SPAbstractTransactionClass abstractTransInstance)
abstractTransInstance - - SPAbstractTransactionClass - the abstract transaction instance| Method Detail |
public boolean APIbeginTransaction(java.lang.String pid)
SPAbstractTransactionAPIInterface
APIbeginTransaction in interface SPAbstractTransactionAPIInterfacepid - String - id of the transaction beginner, must be the master and internal.
public boolean APIcompleteTransaction(java.lang.String pid)
SPAbstractTransactionAPIInterface
APIcompleteTransaction in interface SPAbstractTransactionAPIInterfacepid - String - id of the player who is completing the transaction, must be the master and internal.
public boolean APIconfigureTransaction(java.lang.String pid,
java.lang.String[] args)
SPAbstractTransactionAPIInterface
APIconfigureTransaction in interface SPAbstractTransactionAPIInterfacepid - String - id of the configurer, must be internal.args - String[] - the configuration array, with configuration details inside.
public boolean APIrequestbeginTransaction(java.lang.String pid)
SPAbstractTransactionAPIInterface
APIrequestbeginTransaction in interface SPAbstractTransactionAPIInterfacepid - String - the id of the requestor, can not be master, must be internal
public boolean APIrequestCompleteTransaction(java.lang.String pid)
SPAbstractTransactionAPIInterface
APIrequestCompleteTransaction in interface SPAbstractTransactionAPIInterfacepid - String - id of the requestor, can not be the master, must be internal.
public boolean APIrequestconfigureTransaction(java.lang.String pid,
java.lang.String[] args)
SPAbstractTransactionAPIInterface
APIrequestconfigureTransaction in interface SPAbstractTransactionAPIInterfacepid - String - the configure requestor, can not be the master, must be internal.args - String[] - the configuration array, with configuration details.
public boolean rulesbeginTransaction(java.lang.String pid,
SPAbstractTransactionInterface transobj)
SPAbstractTransactionAPIInterface
rulesbeginTransaction in interface SPAbstractTransactionAPIInterfacepid - String - player id of the transaction beginnertransobj - SPAbstractTransactionInterface - the transaction object to be begun
public boolean rulescompleteTransaction(java.lang.String pid,
SPAbstractTransactionInterface transobj)
SPAbstractTransactionAPIInterface
rulescompleteTransaction in interface SPAbstractTransactionAPIInterfacepid - String - player id of the completer of the transactiontransobj - SPAbstractTransactionInterface - the transaction object to be completed
public boolean rulesconfigureTransaction(java.lang.String pid,
java.lang.String[] configarr,
SPAbstractTransactionInterface transobj)
SPAbstractTransactionAPIInterface
rulesconfigureTransaction in interface SPAbstractTransactionAPIInterfacepid - String - player id of the configurer, must be the masterconfigarr - String[] - the configuration array with the configuration details.transobj - SPAbstractTransactionInterface - the transaction to be configured
public boolean APIAddListener(SPEventInterface gameobj)
SPAbstractTransactionAPIInterface
APIAddListener in interface SPAbstractTransactionAPIInterfacegameobj - SPEventInterface - the object to be added, that inplement the listener interface
public boolean APIRemoveListener(SPEventInterface gameobj)
SPAbstractTransactionAPIInterface
APIRemoveListener in interface SPAbstractTransactionAPIInterfacegameobj - SPEventInterface - the object to be removed, that inplement the listener interfacepublic java.lang.Object[] APIGetListeners()
SPAbstractTransactionAPIInterface
APIGetListeners in interface SPAbstractTransactionAPIInterfacepublic boolean APIClearListeners()
SPAbstractTransactionAPIInterface
APIClearListeners in interface SPAbstractTransactionAPIInterfacepublic int APIGetListenerCount()
SPAbstractTransactionAPIInterface
APIGetListenerCount in interface SPAbstractTransactionAPIInterfacepublic java.lang.String APISPawn(java.lang.String pid)
SPAbstractTransactionAPIInterface
APISPawn in interface SPAbstractTransactionAPIInterfacepid - String - player id must be master of the transaction
public SPAbstractTransactionInterface getTransactioninstance()
SPAbstractTransactionAPIInterface
getTransactioninstance in interface SPAbstractTransactionAPIInterface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||