Class ComponentParameter

java.lang.Object
mastermicro.topologies.components.ComponentParameter
All Implemented Interfaces:
JSONSerializable

public class ComponentParameter extends Object implements JSONSerializable
  • Constructor Details

    • ComponentParameter

      public ComponentParameter(double defaultValue, double min, double max)
  • Method Details

    • getDefault

      public double getDefault()
    • getMin

      public double getMin()
    • getMax

      public double getMax()
    • setDefault

      public void setDefault(double defaultValue)
    • setMin

      public void setMin(double min)
    • setMax

      public void setMax(double max)
    • toJSON

      public org.json.JSONObject toJSON()
      Description copied from interface: JSONSerializable
      Serialize the java Object to a JSONObject type which will be converted to JSON string with `JSONObject.toString(int indent)`.
      Specified by:
      toJSON in interface JSONSerializable
      Returns:
      the json obejct that represent the java object.
    • fromJSON

      public static ComponentParameter fromJSON(String json)
    • fromJSON

      public static ComponentParameter fromJSON(org.json.JSONObject obj)