Package jline.lang
Class Model
java.lang.Object
jline.lang.Model
- All Implemented Interfaces:
Serializable,Copyable
Class representing a model supported by the library
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the metadata container of this model, twin of the MATLABModel.attributeproperty.getName()Gets the name of this model.Gets the LINE version associated with this model.voidsetAttribute(ModelAttribute attribute) Sets the metadata container of this model.voidSets the name of this model.voidsetVersion(String version) Sets the LINE version for this model.
-
Field Details
-
attribute
-
-
Constructor Details
-
Model
Creates a new model with the specified name. Sets the locale to US and initializes the LINE version from GlobalConstants. Mirrors the constructor ofmatlab/src/lang/Model.m: it first makes sure LINE is initialized (the MATLABlineStartguard on an emptyGlobalConstants.Verbose, here the singleton), then records the trimmed version and the name.- Parameters:
modelName- the name to assign to this model
-
-
Method Details
-
getName
Gets the name of this model.- Returns:
- the model name
-
setName
Sets the name of this model.- Parameters:
setName- the new name for this model
-
getVersion
Gets the LINE version associated with this model.- Returns:
- the LINE version string
-
setVersion
Sets the LINE version for this model.- Parameters:
version- the LINE version string
-
getAttribute
Gets the metadata container of this model, twin of the MATLABModel.attributeproperty.- Returns:
- the model attribute container
-
setAttribute
Sets the metadata container of this model.- Parameters:
attribute- the container to install
-