spellcast.net
Class ServerStatus

java.lang.Object
  extended by spellcast.net.ServerStatus
All Implemented Interfaces:
java.io.Serializable

public class ServerStatus
extends java.lang.Object
implements java.io.Serializable

This class contains the status of the server. The server status contains the game name, the number of players, the ip address of the server and the current state for new connections. It also provides hooks for accessing the data via numeric indices so the class can be used as part of a TableModel.

Author:
Barrie Treloar
See Also:
ServerListTableModel, Serialized Form

Constructor Summary
ServerStatus(Server server)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Object get(int index)
          Used by ServerListTableModel to obtain a column indexed version of this classes attributes.
static java.lang.String[] getColumnHeaders()
          Returns the column headers needed for table headers as an array of strings.
 ConnectionStatus getConnectionStatus()
           
 java.lang.String getGameName()
           
 int getNumberOfPlayers()
           
 int getPort()
           
 java.net.InetAddress getServerIPAddress()
           
 VersionDetails getVersionDetails()
          Get the value of versionDetails.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerStatus

public ServerStatus(Server server)
Parameters:
server -
Method Detail

get

public java.lang.Object get(int index)
Used by ServerListTableModel to obtain a column indexed version of this classes attributes. The attributes are mapped as follows:

getColumnHeaders

public static java.lang.String[] getColumnHeaders()
Returns the column headers needed for table headers as an array of strings.


getGameName

public java.lang.String getGameName()

getNumberOfPlayers

public int getNumberOfPlayers()

getServerIPAddress

public java.net.InetAddress getServerIPAddress()

getPort

public int getPort()

getConnectionStatus

public ConnectionStatus getConnectionStatus()

getVersionDetails

public VersionDetails getVersionDetails()
Get the value of versionDetails.

Returns:
value of versionDetails.

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2001-2005 Spellcast. All Rights Reserved.