be.SIRAPRISE.client
Class ServerMultipleAssignmentCommand

java.lang.Object
  extended by be.SIRAPRISE.client.ServerCommand
      extended by be.SIRAPRISE.client.ServerAssignmentCommand
          extended by be.SIRAPRISE.client.ServerMultipleAssignmentCommand

public final class ServerMultipleAssignmentCommand
extends ServerAssignmentCommand

A ServerMultipleAssignmentCommand is a command that consists of >1 IndividualAssignmentCommands.

Author:
Erwin

Constructor Summary
ServerMultipleAssignmentCommand(ServerAssignmentCommand[] individualAssignments)
          Creates the ServerMultipleAssignmentCommand.
ServerMultipleAssignmentCommand(ServerSingleAssignmentCommand[] individualAssignmentCommands)
          Creates the ServerMultipleAssignmentCommand
 
Method Summary
 java.lang.String getCommandParametersText()
          Gets the full textual representation of the command's parameters
 java.lang.String getFullCommandText()
          Gets the full textual representation of the command
 ServerSingleAssignmentCommand[] getIndividualAssignmentCommands()
          Gets The individual assignments that make up the multiple assignment
 void writeToStream(java.io.DataOutputStream outputStream)
          Writes the assignment-type specific portion of the command to the given stream
 
Methods inherited from class be.SIRAPRISE.client.ServerCommand
getCommandObjectFor, getCommandObjectFrom, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerMultipleAssignmentCommand

public ServerMultipleAssignmentCommand(ServerAssignmentCommand[] individualAssignments)
Creates the ServerMultipleAssignmentCommand. If an individual assignment in the given array is itself a multiple assignment, then that "individual multiple" assignment is unwrapped, so that the constituent assignment of the Multiple Assignment created, will all be SingleAssignmentCommands.

Parameters:
individualAssignments - The individual assignments that make up the multiple assignment. If an individual assignment is itself a Multiple Assignment MA, the individual assignments that constitute it will take the place of MA in the Ma object being constructed.

ServerMultipleAssignmentCommand

public ServerMultipleAssignmentCommand(ServerSingleAssignmentCommand[] individualAssignmentCommands)
Creates the ServerMultipleAssignmentCommand

Parameters:
individualAssignmentCommands - The individual assignments that make up the multiple assignment
Method Detail

getCommandParametersText

public java.lang.String getCommandParametersText()
Description copied from class: ServerCommand
Gets the full textual representation of the command's parameters

Specified by:
getCommandParametersText in class ServerCommand
Returns:
the full textual representation of the command's parameters

getFullCommandText

public java.lang.String getFullCommandText()
Description copied from class: ServerCommand
Gets the full textual representation of the command

Specified by:
getFullCommandText in class ServerCommand
Returns:
the full textual representation of the command

getIndividualAssignmentCommands

public final ServerSingleAssignmentCommand[] getIndividualAssignmentCommands()
Gets The individual assignments that make up the multiple assignment

Returns:
The individual assignments that make up the multiple assignment

writeToStream

public final void writeToStream(java.io.DataOutputStream outputStream)
                         throws java.io.IOException
Description copied from class: ServerAssignmentCommand
Writes the assignment-type specific portion of the command to the given stream

Specified by:
writeToStream in class ServerAssignmentCommand
Parameters:
outputStream - The stream to write to
Throws:
java.io.IOException