Class ModelSchema
java.lang.Object
com.scaleoutsoftware.digitaltwin.core.ModelSchema
The ModelSchema class is used as a Java object representation of the model.json schema file used for deploying a
digital twin model to the real-time digital twin cloud service.
-
Constructor Summary
ConstructorDescriptionModelSchema
(String dtClass, String mpClass, String msgClass) Creates a model schema from a digital twin class, a message processor class, and a message class.ModelSchema
(String dtClass, String mpClass, String msgClass, String adtName, PersistenceProviderType persistenceType, List<AlertProviderConfiguration> alertingProviders) Creates a model schema from a digital twin class, a message processor class, a message class, and alert provider configurations.ModelSchema
(String dtClass, String mpClass, String msgClass, String simulationProcessorClass, String adtName, PersistenceProviderType persistenceType, List<AlertProviderConfiguration> alertingProviders) ModelSchema
(String dtClass, String mpClass, String msgClass, String spClass, List<AlertProviderConfiguration> alertingProviders) Creates a model schema from a digital twin class, a message processor class, a message class, and alert provider configurations.ModelSchema
(String dtClass, String mpClass, String msgClass, List<AlertProviderConfiguration> alertingProviders) Creates a model schema from a digital twin class, a message processor class, a message class, and alert provider configurations. -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the alert provider configurations.NOT USED BY JAVA MODEL SCHEMARetrieve the Azure Digital Twin model name.Retrieve the message processor type (aMessageProcessor
implementation).Retrieve the message type (JSON serializable message implementation).Retrieve the digital twin model type (aDigitalTwinBase
implementation).Retrieve the persistence provider type.Retrieve the simulation processor type (aSimulationProcessor
implementation).boolean
Retrieve persistence status.boolean
Retrieve simulation support enabled status.
-
Constructor Details
-
ModelSchema
Creates a model schema from a digital twin class, a message processor class, and a message class.- Parameters:
dtClass
- the digital twin class implementation.mpClass
- the message processor class implementation.msgClass
- a JSON serializable message class.
-
ModelSchema
public ModelSchema(String dtClass, String mpClass, String msgClass, List<AlertProviderConfiguration> alertingProviders) Creates a model schema from a digital twin class, a message processor class, a message class, and alert provider configurations.- Parameters:
dtClass
- the digital twin class implementation.mpClass
- the message processor class implementation.msgClass
- a JSON serializable message class.alertingProviders
- the alerting provider configurations.
-
ModelSchema
public ModelSchema(String dtClass, String mpClass, String msgClass, String spClass, List<AlertProviderConfiguration> alertingProviders) Creates a model schema from a digital twin class, a message processor class, a message class, and alert provider configurations.- Parameters:
dtClass
- the digital twin class implementation.mpClass
- the message processor class implementation.msgClass
- a JSON serializable message class.spClass
- the simulation processor class implementation.alertingProviders
- the alerting provider configurations.
-
ModelSchema
public ModelSchema(String dtClass, String mpClass, String msgClass, String adtName, PersistenceProviderType persistenceType, List<AlertProviderConfiguration> alertingProviders) Creates a model schema from a digital twin class, a message processor class, a message class, and alert provider configurations.- Parameters:
dtClass
- the digital twin class implementation.mpClass
- the message processor class implementation.msgClass
- a JSON serializable message class.adtName
- the Azure Digital Twin model name.persistenceType
- the persistence provider type.alertingProviders
- the alerting provider configurations.
-
ModelSchema
public ModelSchema(String dtClass, String mpClass, String msgClass, String simulationProcessorClass, String adtName, PersistenceProviderType persistenceType, List<AlertProviderConfiguration> alertingProviders) - Parameters:
dtClass
- the digital twin class implementation.mpClass
- the message processor class implementation.msgClass
- a JSON serializable message class.simulationProcessorClass
- the simulation processor class implementation.adtName
- the Azure Digital Twin model name.persistenceType
- the persistence provider type.alertingProviders
- the alerting provider configurations.
-
-
Method Details
-
getModelType
Retrieve the digital twin model type (aDigitalTwinBase
implementation).- Returns:
- the model type.
-
getMessageType
Retrieve the message type (JSON serializable message implementation).- Returns:
- the message type.
-
getMessageProcessorType
Retrieve the message processor type (aMessageProcessor
implementation).- Returns:
- the message processor type.
-
getSimulationProcessorType
Retrieve the simulation processor type (aSimulationProcessor
implementation).- Returns:
- the simulation processor type.
-
getAssemblyName
NOT USED BY JAVA MODEL SCHEMA- Returns:
- NOT USED BY JAVA MODEL SCHEMA
-
getAlertProviders
Retrieve the alert provider configurations.- Returns:
- the alert provider configurations.
-
getAzureDigitalTwinModelName
Retrieve the Azure Digital Twin model name.- Returns:
- the Azure Digital Twin model name.
-
persistenceEnabled
public boolean persistenceEnabled()Retrieve persistence status. True if persistence is enabled, false otherwise.- Returns:
- True if persistence is enabled, false otherwise.
-
simulationSupportEnabled
public boolean simulationSupportEnabled()Retrieve simulation support enabled status. True if simulation support is enabled, false otherwise.- Returns:
- True if simulation support is enabled, false otherwise.
-
getPersistenceProvider
Retrieve the persistence provider type.- Returns:
- the persistence provider type.
-