client.framework.network.parser
Class ActionTriplet

java.lang.Object
  extended by client.framework.network.parser.ActionTriplet

public class ActionTriplet
extends java.lang.Object

A wrapper class for action messages received from and sent to the server. Contains an action identifier, a sender id, and an array containing values. This class is used by the MessageParser to parse string messages into ActionTriplet objects, and vice versa.

Author:
Eivind Sorteberg, Martin Jarrett

Constructor Summary
ActionTriplet(java.lang.String action, java.lang.String sender, java.lang.String[][] value)
          Creates an ActionTriplet object containing the specified attributes.
 
Method Summary
 java.lang.String getAction()
          Returns the action identifier.
 java.lang.String getSender()
          Returns the sender id.
 java.lang.String[][] getValues()
          Returns the triplet's values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionTriplet

public ActionTriplet(java.lang.String action,
                     java.lang.String sender,
                     java.lang.String[][] value)
Creates an ActionTriplet object containing the specified attributes.

Parameters:
action - The action identifier.
sender - The sender of the message.
value - An array containing values.
Method Detail

getAction

public java.lang.String getAction()
Returns the action identifier.

Returns:
The action identifier.

getSender

public java.lang.String getSender()
Returns the sender id.

Returns:
The sender id.

getValues

public java.lang.String[][] getValues()
Returns the triplet's values.

Returns:
The triplet's values.