public class Float32MultiArray extends Message
| Modifier and Type | Field and Description |
|---|---|
static String |
FIELD_DATA
The name of the data field for the message.
|
static String |
FIELD_LAYOUT
The name of the layout field for the message.
|
static String |
TYPE
The message type.
|
EMPTY_MESSAGEEMPTY_JSON| Constructor and Description |
|---|
Float32MultiArray()
Create a new, empty Float32MultiArray.
|
Float32MultiArray(MultiArrayLayout layout,
float[] data)
Create a new Float32MultiArray with the given layout and data.
|
| Modifier and Type | Method and Description |
|---|---|
Float32MultiArray |
clone()
Create a clone of this Float32MultiArray.
|
static Float32MultiArray |
fromJsonObject(javax.json.JsonObject jsonObject)
Create a new Float32MultiArray based on the given JSON object.
|
static Float32MultiArray |
fromJsonString(String jsonString)
Create a new Float32MultiArray based on the given JSON string.
|
static Float32MultiArray |
fromMessage(Message m)
Create a new Float32MultiArray based on the given Message.
|
float |
get(int index)
Get the data value at the given index.
|
float[] |
getData()
Get the data array.
|
MultiArrayLayout |
getLayout()
Get the layout value of this Float32MultiArray.
|
int |
size()
Get the size of the array.
|
getMessageType, setMessageTypeequals, hashCode, toJsonObject, toStringpublic static final String FIELD_LAYOUT
public static final String FIELD_DATA
public static final String TYPE
public Float32MultiArray()
public Float32MultiArray(MultiArrayLayout layout, float[] data)
layout - The specification of data layout.data - The array of data.public MultiArrayLayout getLayout()
public int size()
public float get(int index)
index - The index to get the data value of.public float[] getData()
public Float32MultiArray clone()
public static Float32MultiArray fromJsonString(String jsonString)
jsonString - The JSON string to parse.public static Float32MultiArray fromMessage(Message m)
m - The Message to parse.public static Float32MultiArray fromJsonObject(javax.json.JsonObject jsonObject)
jsonObject - The JSON object to parse.Copyright © 2014. All rights reserved.