com.illposed.osc
Class OSCMessage

java.lang.Object
  extended by com.illposed.osc.OSCPacket
      extended by com.illposed.osc.OSCMessage

public class OSCMessage
extends OSCPacket

The Class OSCMessage.


Constructor Summary
OSCMessage()
          Create an empty OSC Message In order to send this osc message, you need to set the address and, perhaps, some arguments.
OSCMessage(java.lang.String newAddress)
          Create an OSCMessage with an address already initialized.
OSCMessage(java.lang.String newAddress, java.lang.Object[] newArguments)
          Create an OSCMessage with an address and arguments already initialized.
 
Method Summary
 void addArgument(java.lang.Object argument)
          Adds the argument.
 java.lang.String getAddress()
          Gets the address.
 java.lang.Object[] getArguments()
          Gets the arguments.
 void setAddress(java.lang.String anAddress)
          Set the address of this messsage.
 
Methods inherited from class com.illposed.osc.OSCPacket
getByteArray
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSCMessage

public OSCMessage()
Create an empty OSC Message In order to send this osc message, you need to set the address and, perhaps, some arguments.


OSCMessage

public OSCMessage(java.lang.String newAddress)
Create an OSCMessage with an address already initialized.

Parameters:
newAddress - The recepient of this OSC message

OSCMessage

public OSCMessage(java.lang.String newAddress,
                  java.lang.Object[] newArguments)
Create an OSCMessage with an address and arguments already initialized.

Parameters:
newAddress - The recepient of this OSC message
newArguments - The data sent to the receiver
Method Detail

addArgument

public void addArgument(java.lang.Object argument)
Adds the argument.

Parameters:
argument - the argument

getAddress

public java.lang.String getAddress()
Gets the address.

Returns:
the address of this OSC Message

getArguments

public java.lang.Object[] getArguments()
Gets the arguments.

Returns:
the arguments

setAddress

public void setAddress(java.lang.String anAddress)
Set the address of this messsage.

Parameters:
anAddress - the new address