public class GlobalState extends java.lang.Object implements java.io.Serializable, JSONValue
Constructor and Description |
---|
GlobalState() |
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
emitJSON(com.fasterxml.jackson.databind.node.JsonNodeFactory factory,
ModelExecutionPhase phase)
Defines the result of reading this datatype as JSON.
|
simudyne.core.schema.SchemaRecord |
getRecord()
Defines schema for this data type.
|
com.fasterxml.jackson.databind.JsonNode |
getSchema(com.fasterxml.jackson.databind.node.JsonNodeFactory factory)
Defines the avro schema for the result of reading this datatype as JSON.
|
ValueRecord |
getValues(ModelExecutionPhase phase)
Defines values for this data type.
|
void |
receiveJSON(com.fasterxml.jackson.databind.JsonNode input,
ModelExecutionPhase phase)
Allows the writing of JSON to this datatype.
|
public com.fasterxml.jackson.databind.JsonNode emitJSON(com.fasterxml.jackson.databind.node.JsonNodeFactory factory, ModelExecutionPhase phase)
JSONValue
emitJSON
in interface JSONValue
factory
- Jackson JsonNodeFactory for constructing output JSON nodes.phase
- A ModelExecutionPhase
denoting the current state of execution for the
model.JsonNode
representing the type as JSON.public com.fasterxml.jackson.databind.JsonNode getSchema(com.fasterxml.jackson.databind.node.JsonNodeFactory factory)
JSONValue
public void receiveJSON(com.fasterxml.jackson.databind.JsonNode input, ModelExecutionPhase phase)
JSONValue
JsonNode
input, and the phase of execution for the model.receiveJSON
in interface JSONValue
input
- A JsonNode
representing the input as JSON.phase
- A ModelExecutionPhase
denoting the current state of execution for the
model.public simudyne.core.schema.SchemaRecord getRecord()
JSONValue
public ValueRecord getValues(ModelExecutionPhase phase)
JSONValue