|
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
This abstract class provides the common services for all game and transaction types.
![]() |
![]() |
![]() |
![]() |
| Field Summary | |
(package private) SPCommsManagerClass |
comms
This is the SPcomms instance associated with the game instance. |
(package private) java.util.Vector |
EventListenerList
This holds the list of objects that listen to events from the transaction or game object |
(package private) java.lang.String |
gameID
If associated with a transaction: This property is the identifier of the game instance with which the transaction is associated. |
(package private) SPMap |
insend
This map contains the incoming message senders and the associated most recent message ID. |
(package private) java.lang.String |
master
If associated with a transaction: This is the PlayerID of the player that is the master of this transaction. |
(package private) java.lang.String[] |
playerIDList
If associated with a transaction: This is an array that holds the Player IDs of the players within the game that are participating in this transaction. |
(package private) java.lang.String |
releaseversion
IT GlobalSecure release version. |
(package private) java.lang.String[] |
ReSend_altmessage
Data from Last message sent, only used by resend message and send message |
(package private) boolean |
ReSend_encryptflag
Data from Last message sent, only used by resend message and send message |
(package private) java.lang.String[] |
ReSend_messagebody
Data from Last message sent, only used by resend message and send message |
(package private) java.lang.String |
ReSend_messageID
Data from Last message sent, is the message ID of the previously sent message |
(package private) java.lang.String |
ReSend_messagetype
Data from Last message sent, only used by resend message and send message |
(package private) boolean |
ReSend_privateflag
Data from Last message sent, only used by resend message and send message |
(package private) java.lang.String[] |
ReSend_receivers
Data from Last message sent, only used by resend message and send message |
(package private) java.lang.String |
ReSend_sender
Data from Last message sent, only used by resend message and send message |
(package private) SecurePlayClass |
secureplay
This property holds the SecurePlayClass associted with this transaction. |
(package private) java.lang.String |
transactionID
If associated with a transaction: This property holds the unique identifier for the transaction instance within a game instance. |
| Constructor Summary | |
SPRootTransactionClass()
Default Constructor |
|
| Method Summary | |
boolean |
APIaddListener(SPEventInterface listener)
This method adds a listener object for events |
boolean |
APIclearListeners()
This method clears the listener objects for events |
java.lang.String |
APIgetGameID()
Gets the game id associated with the transaction or game. |
SPMap |
APIgetGetReplayList()
This method returns the relay data list. |
int |
APIgetListenerCount()
This method returns the number of listener objects for events |
java.lang.Object[] |
APIgetListeners()
This method returns a list of listener objects for events |
java.lang.String |
APIgetMaster()
Gets the master of the transaction or game |
java.lang.String[] |
APIgetPlayerIDList()
Gets the player id list of the players associated with the transaction or the game. |
java.lang.String |
APIgetTransactionID()
Gets the transaction id. |
boolean |
APIisPlayerIncluded(java.lang.String pid)
This method tests to determine if a specified player is a transaction participant. |
boolean |
APIremoveListener(SPEventInterface listener)
This method removes a listener object for events |
boolean |
APIReplayRemoveOldSender(java.lang.String sender)
This method removes an older sender from the replay list. |
void |
APIresendLastMessage()
This method resends the last message sent by retrieveing the data stored of the last message. |
void |
APIsetReplayList(SPMap m)
This method sets the relay data list. |
boolean |
APIsetSecurePlayClass(SecurePlayClass sp)
This method sets the SecurePlayClass associated with this SPRootTransactionClass |
boolean |
detectReplay(SPMessageClass incoming)
This checks to see if there is a replay problem. |
private void |
SecurePlayClassWideNotify(java.lang.String eventdescription,
java.lang.String[] args,
java.lang.String sourceMethod,
java.lang.String sourceClass,
java.lang.String errorType)
This method notifies the library wide listeners. |
void |
sendMessage(java.lang.String sender,
java.lang.String[] receivers,
boolean encryptflag,
boolean privateflag,
java.lang.String messagetype,
java.lang.String[] messagebody,
java.lang.String[] altmessage)
This method actually constructs messages to be sent by the Game object to other game object instances via the Comms Manager |
void |
SPnotify(java.lang.String eventdescription,
java.lang.String[] args,
java.lang.String sourceMethod,
java.lang.String sourceClass,
java.lang.String errorType)
This method notifies the Listeners of events |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
java.lang.String gameID
java.lang.String[] playerIDList
java.lang.String transactionID
java.lang.String master
java.util.Vector EventListenerList
SPMap insend
SecurePlayClass secureplay
SPCommsManagerClass comms
java.lang.String ReSend_sender
java.lang.String[] ReSend_receivers
boolean ReSend_encryptflag
boolean ReSend_privateflag
java.lang.String ReSend_messagetype
java.lang.String[] ReSend_messagebody
java.lang.String[] ReSend_altmessage
java.lang.String ReSend_messageID
final java.lang.String releaseversion
| Constructor Detail |
public SPRootTransactionClass()
| Method Detail |
public java.lang.String APIgetGameID()
public boolean APIsetSecurePlayClass(SecurePlayClass sp)
sp - SecurePlayClass
private void SecurePlayClassWideNotify(java.lang.String eventdescription,
java.lang.String[] args,
java.lang.String sourceMethod,
java.lang.String sourceClass,
java.lang.String errorType)
eventdescription - Stringargs - String[]public java.lang.String APIgetTransactionID()
public java.lang.String APIgetMaster()
public java.lang.String[] APIgetPlayerIDList()
public boolean APIaddListener(SPEventInterface listener)
listener - SPEventInterface - listener to be added
public boolean APIremoveListener(SPEventInterface listener)
listener - SPEventInterface - listener to be removed
public java.lang.Object[] APIgetListeners()
public boolean APIclearListeners()
public int APIgetListenerCount()
public void SPnotify(java.lang.String eventdescription,
java.lang.String[] args,
java.lang.String sourceMethod,
java.lang.String sourceClass,
java.lang.String errorType)
eventdescription - args - - String[] - argumentspublic boolean APIisPlayerIncluded(java.lang.String pid)
pid - String - the player id in question
public boolean detectReplay(SPMessageClass incoming)
incoming - - SPMessageClass - message to be testd
public void sendMessage(java.lang.String sender,
java.lang.String[] receivers,
boolean encryptflag,
boolean privateflag,
java.lang.String messagetype,
java.lang.String[] messagebody,
java.lang.String[] altmessage)
sender - - id of the senderreceivers - - ids of the recievers of the messageencryptflag - - encryption flagprivateflag - - private flagmessagetype - - the type of messagemessagebody - - the message bodyaltmessage - - alternative message
public void APIresendLastMessage()
public boolean APIReplayRemoveOldSender(java.lang.String sender)
sender -
public SPMap APIgetGetReplayList()
public void APIsetReplayList(SPMap m)
m - - SPMap - data structure for the relay list.
|
SecurePlayLibray J2SE v2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||