Package jline.lang

Class Model

java.lang.Object
jline.lang.Model
All Implemented Interfaces:
Serializable, Copyable
Direct Known Subclasses:
Ensemble, Network, Workflow

public class Model extends Object implements Copyable
Class representing a model supported by the library
See Also:
  • Field Details

  • Constructor Details

    • Model

      public Model(String modelName)
      Creates a new model with the specified name. Sets the locale to US and initializes the LINE version from GlobalConstants. Mirrors the constructor of matlab/src/lang/Model.m: it first makes sure LINE is initialized (the MATLAB lineStart guard on an empty GlobalConstants.Verbose, here the singleton), then records the trimmed version and the name.
      Parameters:
      modelName - the name to assign to this model
  • Method Details

    • getName

      public String getName()
      Gets the name of this model.
      Returns:
      the model name
    • setName

      public void setName(String setName)
      Sets the name of this model.
      Parameters:
      setName - the new name for this model
    • getVersion

      public String getVersion()
      Gets the LINE version associated with this model.
      Returns:
      the LINE version string
    • setVersion

      public void setVersion(String version)
      Sets the LINE version for this model.
      Parameters:
      version - the LINE version string
    • getAttribute

      public ModelAttribute getAttribute()
      Gets the metadata container of this model, twin of the MATLAB Model.attribute property.
      Returns:
      the model attribute container
    • setAttribute

      public void setAttribute(ModelAttribute attribute)
      Sets the metadata container of this model.
      Parameters:
      attribute - the container to install