|
||||||||||
| 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.SPTShip.SPTShipClass
This transaction supports the distribution of Serializable Objects (Classes, Files, Etc.) as well as the slow, incremental distribution.
![]() |
![]() |
![]() |
![]() |
| Field Summary |
| Fields inherited from class com.SecurePlay.SPAbstractTransactionClass |
classAPI, configuration, gameblock, gameinstance, transactionstatus, transtype |
| Fields inherited from class com.SecurePlay.SPRootTransactionClass |
EventListenerList, gameID, master, playerIDList, transactionID |
| Constructor Summary | |
SPTShipClass(SPGameInterface gameobj,
java.lang.String master,
java.lang.String[] playerIDList,
boolean privateflag,
java.lang.String transactionID)
Construcotr. |
|
| Method Summary | |
boolean |
APIBcreateShipTransaction(SPGameAPIClass gapi,
java.lang.String transmaster,
java.lang.String[] playerIDList,
boolean privateflag)
This method allows the creation of a new Ship type, internally controlled transaction. |
boolean |
APIbeginTransaction(java.lang.String pid)
DUMMY METHOD!!! |
boolean |
APIconfigureTransaction(java.lang.String sender,
boolean AckFlag,
boolean ManFlag,
int bsize,
long tsize,
java.lang.String classname,
java.lang.String instname,
byte[] entireshipment)
Configure transaction method. |
boolean |
APIconfigureTransaction(java.lang.String sender,
boolean AckFlag,
int bsize,
long tsize,
java.lang.String classname,
java.lang.String instname)
Configure transaction method. |
boolean |
APIconfigureTransaction(java.lang.String pid,
java.lang.String[] args)
DUMMY METHOD!!! |
SPTShipClass |
APIcreateShipTransaction(SPGameAPIClass gapi,
java.lang.String transmaster,
java.lang.String[] playerIDList,
boolean privateflag)
This method allows the creation of a new Ship type, internally controlled transaction. |
boolean |
APIrequestbeginTransaction(java.lang.String pid)
DUMMY METHOD!!! |
boolean |
APIrequestConfigureTransaction(java.lang.String sender,
boolean AckFlag,
boolean ManFlag,
int bsize,
long tsize,
java.lang.String classname,
java.lang.String instname,
byte[] entireshipment)
Configure transaction method. |
boolean |
APIrequestConfigureTransaction(java.lang.String sender,
boolean AckFlag,
int bsize,
long tsize,
java.lang.String classname,
java.lang.String instname)
Configure transaction method. |
boolean |
APIrequestconfigureTransaction(java.lang.String pid,
java.lang.String[] args)
DUMMY METHOD!!! |
boolean |
APIrequestsendShipment(java.lang.String sender)
This method requests send shipments automatically. |
boolean |
APIrequestsendShipment(java.lang.String sender,
byte[] manualShip)
This method requests sends a shipment manually. |
boolean |
APIresendShipment(java.lang.String sender,
int shipcount,
java.lang.String[] recieverIdList)
This shipment sends the specified shipment, grabbed from the last sent list using the shipment number, to the specified players. |
boolean |
APIsendShipment(java.lang.String sender)
This method send shipments automatically. |
boolean |
APIsendShipment(java.lang.String sender,
byte[] manualShip)
This method sends a shipment manually. |
java.lang.String |
APISPawn(java.lang.String pid)
DUMMY METHOD!!! |
SPTShipAPIClass |
APITAOcreateShipTransaction(SPGameAPIClass gapi,
java.lang.String transmaster,
java.lang.String[] playerIDList,
boolean privateflag)
This method allows the creation of a new ShipAPI type, internally controlled transaction. |
SPAbstractTransactionInterface |
createTransaction(SPGameAPIInterface gameapiobj,
java.lang.String master,
java.lang.String[] playerIDList,
boolean privateflag,
java.lang.String transactionID)
This method creates a SPSHipClass transaction. |
java.lang.String[] |
getAckList()
|
int |
getBuffersize()
|
SPMap |
getLastReceivedSent()
|
int |
getLastRecSent()
|
int |
getMaxReceiveSendStore()
|
int |
getShipcount()
|
byte[] |
getShipment()
|
java.lang.String |
getShippedObjectClass()
|
java.lang.String |
getShippedObjectDistinguishedName()
|
long |
getTotalRecSent()
|
long |
getTotalSize()
|
static java.lang.String |
gettranstype()
This method gets the transaction type. |
boolean |
isAcknowledgeFLAG()
|
boolean |
isCompleteFlag()
|
boolean |
isEntireShipmentFLAG()
|
boolean |
isManualSendFLAG()
|
boolean |
isSendOKFlag()
|
protected boolean |
onconfigureTransaction(SPMessageClass incoming)
This method configures this transaction when a configure transaction message is recieved. |
protected void |
onrequestconfigureTransaction(SPMessageClass incoming)
This method safely handles a request from a player who is not the Transaction master to configure the transaction. |
protected boolean |
pronincomingTransaction(SPMessageClass incoming)
this is a shell for unique incoming transactions |
static boolean |
registerTransaction()
Registers this transaction. |
SPTShipAPIClass |
SPgetAPI()
|
| Methods inherited from class com.SecurePlay.SPRootTransactionClass |
APIAddListener, APIClearListeners, APIGetListenerCount, APIGetListeners, APIRemoveListener, getGameID, getMaster, getPlayerIDList, getTransactionID, isPlayerIncluded, 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 |
getGameID, getMaster, getPlayerIDList, getTransactionID |
| Constructor Detail |
public SPTShipClass(SPGameInterface gameobj,
java.lang.String master,
java.lang.String[] playerIDList,
boolean privateflag,
java.lang.String transactionID)
gameobj - SPGameInterface - game associated with this transaction.master - String - the master of this transaction.playerIDList - String[] - player id list of player who are included in this transaction.privateflag - boolean - private flag.transactionID - String - transactino id.| Method Detail |
public boolean APIconfigureTransaction(java.lang.String sender,
boolean AckFlag,
int bsize,
long tsize,
java.lang.String classname,
java.lang.String instname)
sender - String - player id who is configuring this transaction.AckFlag - boolean - acknowledgement flag, flag whether or not achknowledgements should be expected before next send of the shipment.bsize - int - buffer size.tsize - long - total size. (NOTE: the total size is limited by the size of the int, because array types can only support ints as index.)classname - String - class name.instname - String - instance name.
public boolean APIconfigureTransaction(java.lang.String sender,
boolean AckFlag,
boolean ManFlag,
int bsize,
long tsize,
java.lang.String classname,
java.lang.String instname,
byte[] entireshipment)
sender - String - player id who is configuring this transaction.AckFlag - boolean - acknowledgement flag, flag whether or not achknowledgements should be expected before next send of the shipment.ManFlag - boolean - manual flag, flag for manual or automatic shipment sending.bsize - int - buffer size.tsize - long - total size. (NOTE: the total size is limited by the size of the int, because array types can only support ints as index.)classname - String - class name.instname - String - instance name.entireshipment - byte[] - the entire shipment.
public boolean APIrequestConfigureTransaction(java.lang.String sender,
boolean AckFlag,
int bsize,
long tsize,
java.lang.String classname,
java.lang.String instname)
sender - String - player id who is configuring this transaction.AckFlag - boolean - acknowledgement flag, flag whether or not achknowledgements should be expected before next send of the shipment.bsize - int - buffer size.tsize - long - total size. (NOTE: the total size is limited by the size of the int, because array types can only support ints as index.)classname - String - class name.instname - String - instance name.
public boolean APIrequestConfigureTransaction(java.lang.String sender,
boolean AckFlag,
boolean ManFlag,
int bsize,
long tsize,
java.lang.String classname,
java.lang.String instname,
byte[] entireshipment)
sender - String - player id who is configuring this transaction.AckFlag - boolean - acknowledgement flag, flag whether or not achknowledgements should be expected before next send of the shipment.ManFlag - boolean - manual flag, flag for manual or automatic shipment sending.bsize - int - buffer size.tsize - long - total size. (NOTE: the total size is limited by the size of the int, because array types can only support ints as index.)classname - String - class name.instname - String - instance name.entireshipment - byte[] - the entire shipment.
protected boolean onconfigureTransaction(SPMessageClass incoming)
onconfigureTransaction in class SPAbstractTransactionClassincoming - SPMessageClass - the incoming configure transaction message.
protected void onrequestconfigureTransaction(SPMessageClass incoming)
onrequestconfigureTransaction in class SPAbstractTransactionClassincoming - SPMessageClass - incomng message
public boolean APIsendShipment(java.lang.String sender,
byte[] manualShip)
sender - String - sender of this shipment (master of the transaction)manualShip - byte[] - the shipment to be sent.
public boolean APIsendShipment(java.lang.String sender)
sender - String - sender of this shipment.
public boolean APIrequestsendShipment(java.lang.String sender,
byte[] manualShip)
sender - String - sender of this shipment (master of the transaction)manualShip - byte[] - the shipment to be sent.
public boolean APIrequestsendShipment(java.lang.String sender)
sender - String - sender of this shipment.
public boolean APIresendShipment(java.lang.String sender,
int shipcount,
java.lang.String[] recieverIdList)
sender - shipcount - recieverIdList -
protected boolean pronincomingTransaction(SPMessageClass incoming)
SPAbstractTransactionClass
pronincomingTransaction in class SPAbstractTransactionClassincoming - SPMessageClass - incoming message
public boolean APIconfigureTransaction(java.lang.String pid,
java.lang.String[] args)
APIconfigureTransaction in class SPAbstractTransactionClasspid - String - dummy pid.args - String[] - dummy args array.
public boolean APIrequestconfigureTransaction(java.lang.String pid,
java.lang.String[] args)
APIrequestconfigureTransaction in class SPAbstractTransactionClasspid - String - dummy pid.args - String[] - dummy args array.
public boolean APIbeginTransaction(java.lang.String pid)
APIbeginTransaction in class SPAbstractTransactionClasspid - String - dummy pid.
public boolean APIrequestbeginTransaction(java.lang.String pid)
APIrequestbeginTransaction in class SPAbstractTransactionClasspid - String - dummy pid.
public java.lang.String APISPawn(java.lang.String pid)
APISPawn in class SPAbstractTransactionClasspid - String - player id must be master of the transaction
public java.lang.String[] getAckList()
public boolean isAcknowledgeFLAG()
public int getBuffersize()
public boolean isCompleteFlag()
public boolean isEntireShipmentFLAG()
public SPMap getLastReceivedSent()
public int getLastRecSent()
public boolean isManualSendFLAG()
public int getMaxReceiveSendStore()
public boolean isSendOKFlag()
public int getShipcount()
public byte[] getShipment()
public java.lang.String getShippedObjectClass()
public java.lang.String getShippedObjectDistinguishedName()
public long getTotalSize()
public long getTotalRecSent()
public SPTShipAPIClass SPgetAPI()
public SPTShipClass APIcreateShipTransaction(SPGameAPIClass gapi,
java.lang.String transmaster,
java.lang.String[] playerIDList,
boolean privateflag)
gapi - SPGameAPIInterface - the game that will be associated with this transaction.transmaster - String - player id of the master of the transactionplayerIDList - String[] - This is an array that holds the Player IDs of the players within the game that are participating in this transaction.privateflag - boolean - This is a flag to describe whether the specific transaction is a private transaction to the non-participating Players.
public boolean APIBcreateShipTransaction(SPGameAPIClass gapi,
java.lang.String transmaster,
java.lang.String[] playerIDList,
boolean privateflag)
gapi - SPGameAPIInterface - the game that will be associated with this transaction.transmaster - String - player id of the master of the transactionplayerIDList - String[] - This is an array that holds the Player IDs of the players within the game that are participating in this transaction.privateflag - boolean - This is a flag to describe whether the specific transaction is a private transaction to the non-participating Players.
public SPTShipAPIClass APITAOcreateShipTransaction(SPGameAPIClass gapi,
java.lang.String transmaster,
java.lang.String[] playerIDList,
boolean privateflag)
gapi - SPGameAPIInterface - the game that will be associated with this transaction.transmaster - String - player id of the master of the transactionplayerIDList - String[] - This is an array that holds the Player IDs of the players within the game that are participating in this transaction.privateflag - boolean - This is a flag to describe whether the specific transaction is a private transaction to the non-participating Players.
public static java.lang.String gettranstype()
public static boolean registerTransaction()
public SPAbstractTransactionInterface createTransaction(SPGameAPIInterface gameapiobj,
java.lang.String master,
java.lang.String[] playerIDList,
boolean privateflag,
java.lang.String transactionID)
createTransaction in interface SPAbstractTransactionInterfacecreateTransaction in class SPAbstractTransactionClassgameapiobj - SPGameAPIInterface - the game that will be associated with this transaction.master - String - player id of the master of the transactionplayerIDList - String[] - This is an array that holds the Player IDs of the players within the game that are participating in this transaction.privateflag - boolean - This is a flag to describe whether the specific transaction is a private transaction to the non-participating Players.transactionID - String - transaction id.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||