public class NodeTemplate extends Object
| Modifier and Type | Method and Description |
|---|---|
static NodeTemplate |
createTemplate(Node.Type type) |
static org.json.JSONObject |
generateTableFromRows(Double[][] rows) |
org.json.JSONObject |
getJSON() |
NodeTemplate |
setId(String id) |
NodeTemplate |
setName(String name) |
NodeTemplate |
setNodeType(Node.Type nodeType) |
NodeTemplate |
setNPTColumns(double[][] columns) |
NodeTemplate |
setNPTRows(Double[][] rows) |
NodeTemplate |
setStates(List<String> states) |
NodeTemplate |
setStates(String[] states) |
NodeTemplate |
setTableType(NodeConfiguration.TableType tableType) |
public static NodeTemplate createTemplate(Node.Type type)
public org.json.JSONObject getJSON()
public NodeTemplate setId(String id) throws org.json.JSONException
org.json.JSONExceptionpublic NodeTemplate setName(String name) throws org.json.JSONException
org.json.JSONExceptionpublic NodeTemplate setNodeType(Node.Type nodeType) throws org.json.JSONException
org.json.JSONExceptionpublic NodeTemplate setStates(List<String> states) throws org.json.JSONException
org.json.JSONExceptionpublic NodeTemplate setStates(String[] states) throws org.json.JSONException
org.json.JSONExceptionpublic NodeTemplate setTableType(NodeConfiguration.TableType tableType) throws org.json.JSONException
org.json.JSONExceptionpublic NodeTemplate setNPTRows(Double[][] rows) throws org.json.JSONException
org.json.JSONExceptionpublic NodeTemplate setNPTColumns(double[][] columns)
public static org.json.JSONObject generateTableFromRows(Double[][] rows) throws NodeException
NodeExceptionCopyright © 2020. All rights reserved.