|
SecurePlayLibray J2SE v2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.SecurePlay.SecurePlayClass
This is the main Secure Play Library Class.
![]() |
![]() |
![]() |
![]() |
| Field Summary | |
private java.lang.String |
company
This is the company name of the authorized SecurePlay licensee. |
private java.lang.String |
email
This is the point of contact email for the SecurePlay product licensee. |
private boolean |
initialized
Flag that determines if the class has been initialized. |
private java.util.Vector |
LibraryListeners
This holds a list of global listeners that recieve every notify from every game and every transaction in this SecurePlayClass instance. |
private java.lang.String |
pocname
This is the individual who is the contact for the SecurePlay license for use of the library. |
private SPMap |
prcommsServicesList
The commsServicesList holds a list of pointers to the various comms services objects (such as Flash Remoting, http, socket connection, SMS, etc.). |
private SPMap |
prgamesList
This class holds pointers to the various active game instances. |
private java.lang.String[] |
prplayersList
This private list holds the list player ids |
(package private) java.lang.String |
releaseversion
IT GlobalSecure release version. |
private java.lang.String |
siteURL
This is the URL of the Site that holds the SecurePlay license. |
private java.lang.String |
SPLicenseKey
This is the license key for the registered SecurePlay user. |
private java.lang.String |
SPSerialNumber
This is the serial number of the SecurePlay licensee. |
| Constructor Summary | |
SecurePlayClass()
Default Constructor. |
|
| Method Summary | |
boolean |
APIaddGameComms(java.lang.String gid,
java.lang.String commsID)
This method associates a communications service with a game instance. |
boolean |
APIaddGamePlayer(java.lang.String gid,
java.lang.String pid)
This method associates a Player instance with a Game Instance so the player can participate in the game. |
boolean |
APIaddLibraryListeners(SPEventInterface Glistener)
This method adds a global listener to this SecurePlayClass. |
void |
APIclearCommsServices()
This clears all of the comms services associated with the SecurePlay library. |
void |
APIclearGames()
This removes all of the Game Instances associated with the SecurePlay library. |
boolean |
APIclearLibraryListeners()
This method removes all the global listeners from this SecurePlayClass. |
void |
APIclearPlayers()
This method removes all of the Player Instances associated with the SecurePlay library. |
boolean |
APIcreateComms(java.lang.String commsID,
SPAbstractCommsInterface commsObj)
This method creates a comms service. |
boolean |
APIcreateGame(SPGameInterface game,
java.lang.String gameID)
Attach an existing Game Instance to the Library. |
boolean |
APIcreatePlayer(java.lang.String playerID)
Adds a player instance. |
SPAbstractCommsInterface |
APIgetCommsService(java.lang.String commsID)
This method uses a commsID and returns the appropriate Communications Service Instance. |
SPGameInterface |
APIgetGame(java.lang.String gameID)
This method takes a gameID and returns the associated Game Instance object. |
java.util.Vector |
APIgetLibraryListeners()
Gets all the listeners that are listening for any notify in this library. |
java.lang.String |
APIgetLicenseSummary()
This method returns the summary of the license. |
java.lang.String[] |
APIgetOpenCommServiceIDs()
This method return |
java.lang.String[] |
APIgetOpenGameIDs()
Gets the keys of an associative array(SPHashtable) this.prgamesList and returns them as a String array of open games id list. |
java.lang.String[] |
APIgetOpenPlayerIDs()
Returns a list of player IDs open. |
boolean |
APIremoveCommsService(java.lang.String commsID)
This method removes a Comms Service Instance specified by a commsID from the active SecurePlay library. |
boolean |
APIremoveGame(java.lang.String gameID)
This method takes a gameID and removes the Game Instance from the active SecurePlay library. |
boolean |
APIremoveLibraryListeners(SPEventInterface Glistener)
This method removes a global listener object from this SecurePlayClass. |
boolean |
APIremovePlayer(java.lang.String playerID)
This method removes an instance of a Player from the active SecurePlay library. |
boolean |
APIsetLicenseInfo(java.lang.String pocname,
java.lang.String company,
java.lang.String siteURL,
java.lang.String email,
java.lang.String SPSerialNumber,
java.lang.String SPLicenseKey)
Loads registered SecurePlay licensee information. |
boolean |
APIsetPlayerGameComms(java.lang.String gid,
java.lang.String playerID,
java.lang.String commsID)
This method associates a specific comms service with a specific player and a specific game. |
protected boolean |
checkLicense()
This method is used to verify that the SecurePlay license information is provided completely and properly. |
private java.lang.String |
getCompany()
Getter function that returns the property: company |
private java.lang.String |
getEmail()
Getter function that returns the property: email |
private java.lang.String |
getPocname()
Getter function that returns the property: pocname |
protected SPMap |
getPrcommsServicesList()
Getter function that returns the property: prcommsServicesList |
protected SPMap |
getPrgamesList()
Getter function that returns the property: prgamesList |
protected java.lang.String[] |
getPrplayersList()
Getter function that returns the property: prplayersList |
private java.lang.String |
getSiteURL()
Getter function that returns the property: siteURL |
private java.lang.String |
getSPLicenseKey()
Getter function that returns the property: SPLicenseKey |
private java.lang.String |
getSPSerialNumber()
Returns the serial number. |
private boolean |
isCommsIncluded(java.lang.String cid)
This method checks to see if the comms object exists in the comms list of this library. |
private boolean |
isGameIncluded(java.lang.String gid)
This method checks to see if the game exists in the game list of this library. |
protected boolean |
isInitialized()
Getter function that returns the property: initialized |
protected boolean |
isPlayerIncluded(java.lang.String pid)
This method returns a boolean TRUE if there is a player object specified by the indicated Player ID is included in the Library instance. |
static java.lang.String |
releaseversion()
This method returns the current release verion of this library. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.lang.String pocname
private java.lang.String company
private java.lang.String siteURL
private java.lang.String email
private java.lang.String SPSerialNumber
private java.lang.String SPLicenseKey
private SPMap prgamesList
private java.lang.String[] prplayersList
private SPMap prcommsServicesList
private boolean initialized
final java.lang.String releaseversion
private java.util.Vector LibraryListeners
| Constructor Detail |
public SecurePlayClass()
| Method Detail |
public boolean APIsetLicenseInfo(java.lang.String pocname,
java.lang.String company,
java.lang.String siteURL,
java.lang.String email,
java.lang.String SPSerialNumber,
java.lang.String SPLicenseKey)
pocname - String - individual who represents the companycompany - String - company name.siteURL - String - company web site.email - String - company email.SPSerialNumber - String - serial number of the SecurePlay licenseeSPLicenseKey - String - license key for the registered SecurePlay user.
public boolean APIcreatePlayer(java.lang.String playerID)
playerID - String - player id of the player to be created
public boolean APIcreateComms(java.lang.String commsID,
SPAbstractCommsInterface commsObj)
commsID - String - id of the comms to be createdcommsObj - SPAbstractCommsInterface - comms object to be added
public boolean APIsetPlayerGameComms(java.lang.String gid,
java.lang.String playerID,
java.lang.String commsID)
gid - String - game id to which the players and comms will be setplayerID - String - id of the player to be setcommsID - String - id of th comms to be set
public boolean APIaddGamePlayer(java.lang.String gid,
java.lang.String pid)
gid - String - id of the game to which the player will be addedpid - String - id of the player to be added
public boolean APIaddGameComms(java.lang.String gid,
java.lang.String commsID)
gid - String - id of the game to which the comms will be addedcommsID - String - id of the comms to be added
public SPGameInterface APIgetGame(java.lang.String gameID)
gameID - String - id of the game to be retrieved
public SPAbstractCommsInterface APIgetCommsService(java.lang.String commsID)
commsID - String - id of the comms to be retrieved
public boolean APIremoveGame(java.lang.String gameID)
gameID - String - id of the game to be removed
public boolean APIremovePlayer(java.lang.String playerID)
playerID - String - id of the player to be removed
public boolean APIremoveCommsService(java.lang.String commsID)
commsID - String - id of the comms to be removed
public void APIclearGames()
public void APIclearPlayers()
public void APIclearCommsServices()
protected boolean checkLicense()
public java.lang.String[] APIgetOpenCommServiceIDs()
public java.lang.String[] APIgetOpenGameIDs()
public java.lang.String[] APIgetOpenPlayerIDs()
protected boolean isPlayerIncluded(java.lang.String pid)
pid - String - the player id to be checked
private boolean isGameIncluded(java.lang.String gid)
gid - String - the game id to be checked
private boolean isCommsIncluded(java.lang.String cid)
cid - String - the comms id to be checked
public boolean APIcreateGame(SPGameInterface game,
java.lang.String gameID)
game - SPGameInterface - the game object to be attachedgameID - String - game id of the new game.
private java.lang.String getCompany()
private java.lang.String getEmail()
protected boolean isInitialized()
private java.lang.String getPocname()
protected SPMap getPrcommsServicesList()
protected SPMap getPrgamesList()
protected java.lang.String[] getPrplayersList()
private java.lang.String getSiteURL()
private java.lang.String getSPLicenseKey()
private java.lang.String getSPSerialNumber()
public java.lang.String APIgetLicenseSummary()
public boolean APIaddLibraryListeners(SPEventInterface Glistener)
Glistener - SPEventInterface - the global listener.
public boolean APIremoveLibraryListeners(SPEventInterface Glistener)
Glistener - SPEventInterface - the global listener.
public boolean APIclearLibraryListeners()
public java.util.Vector APIgetLibraryListeners()
public static java.lang.String releaseversion()
|
SecurePlayLibray J2SE v2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||