server
Class ServerSurround

java.lang.Object
  |
  +--server.ServerSurround
All Implemented Interfaces:
java.io.Serializable

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

this is the class that will hold all servers that are around one

Author:
Ben Litchfield
See Also:
Serialized Form

Constructor Summary
ServerSurround()
          constructor to ServerSurround
 
Method Summary
 java.lang.String down()
          the server that is below
 java.lang.String left()
          the server that is to the left
 void printMe()
          this will print the surrounding servers
 java.lang.String right()
          the server that is to the right
 void set(java.lang.String up, java.lang.String down, java.lang.String left, java.lang.String right)
          this will set the surrounding servers
 void setDown(java.lang.String down)
          set the server which is below
 void setLeft(java.lang.String left)
          set the server which is to the left
 void setRight(java.lang.String right)
          set the server which is to the right
 void setUp(java.lang.String up)
          set the server which is above
 java.lang.String up()
          the server that is above
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerSurround

public ServerSurround()
constructor to ServerSurround

Method Detail

printMe

public void printMe()
this will print the surrounding servers


set

public void set(java.lang.String up,
                java.lang.String down,
                java.lang.String left,
                java.lang.String right)
this will set the surrounding servers

Parameters:
up - the up server
down - the down server
left - the left server
right - the right server

setUp

public void setUp(java.lang.String up)
set the server which is above

Parameters:
up - the up server

setDown

public void setDown(java.lang.String down)
set the server which is below


setRight

public void setRight(java.lang.String right)
set the server which is to the right


setLeft

public void setLeft(java.lang.String left)
set the server which is to the left


up

public java.lang.String up()
the server that is above

Returns:
the up server

down

public java.lang.String down()
the server that is below

Returns:
the down server

right

public java.lang.String right()
the server that is to the right

Returns:
the right server

left

public java.lang.String left()
the server that is to the left

Returns:
the left server