Package heronarts.lx.osc
Class OscDouble
java.lang.Object
heronarts.lx.osc.OscDouble
- All Implemented Interfaces:
OscArgument
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the number of bytes used by this argument uses in its encoded representation.char
Returns the type tag used to encode this argumentdouble
getValue()
void
serialize
(ByteBuffer buffer) Serializes this argument to a buffersetValue
(double value) boolean
double
toDouble()
float
toFloat()
int
toInt()
Gets an integer value of this argumenttoString()
-
Constructor Details
-
OscDouble
public OscDouble() -
OscDouble
public OscDouble(double value)
-
-
Method Details
-
setValue
-
getValue
public double getValue() -
getByteLength
public int getByteLength()Description copied from interface:OscArgument
Gets the number of bytes used by this argument uses in its encoded representation.- Specified by:
getByteLength
in interfaceOscArgument
- Returns:
- Number of bytes of data this argument consumes
-
getTypeTag
public char getTypeTag()Description copied from interface:OscArgument
Returns the type tag used to encode this argument- Specified by:
getTypeTag
in interfaceOscArgument
- Returns:
- Type-tag character for this argument
-
toString
-
serialize
Description copied from interface:OscArgument
Serializes this argument to a buffer- Specified by:
serialize
in interfaceOscArgument
- Parameters:
buffer
- ByteByffer to write to
-
toInt
public int toInt()Description copied from interface:OscArgument
Gets an integer value of this argument- Specified by:
toInt
in interfaceOscArgument
- Returns:
- Integer value of this argument
-
toFloat
public float toFloat()- Specified by:
toFloat
in interfaceOscArgument
-
toDouble
public double toDouble()- Specified by:
toDouble
in interfaceOscArgument
-
toBoolean
public boolean toBoolean()- Specified by:
toBoolean
in interfaceOscArgument
-