src.server
Class OutputPackage

java.lang.Object
  extended bysrc.server.Package
      extended bysrc.server.OutputPackage

public class OutputPackage
extends Package

Describes a package with a message to be sent from the server.

Version:
2005-apr-20

Constructor Summary
OutputPackage(RecipientTag recipient, java.lang.String output)
          Constructor for OutputPackage.
 
Method Summary
 java.lang.String getOutput()
          Gets the package's output message.
 java.lang.String toString()
           
 
Methods inherited from class src.server.Package
getRecipientTag
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OutputPackage

public OutputPackage(RecipientTag recipient,
                     java.lang.String output)
Constructor for OutputPackage.

Parameters:
recipient - The tag detailing the owner of the package.
output - The message that should be sent.
Method Detail

getOutput

public java.lang.String getOutput()
Gets the package's output message.

Returns:
An output message.

toString

public java.lang.String toString()
Overrides:
toString in class Package