Class ComponentParameter
java.lang.Object
mastermicro.topologies.components.ComponentParameter
- All Implemented Interfaces:
JSONSerializable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentParameterstatic ComponentParameterfromJSON(org.json.JSONObject obj) doubledoublegetMax()doublegetMin()voidsetDefault(double defaultValue) voidsetMax(double max) voidsetMin(double min) org.json.JSONObjecttoJSON()Serialize the java Object to a JSONObject type which will be converted to JSON string with `JSONObject.toString(int indent)`.
-
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:JSONSerializableSerialize the java Object to a JSONObject type which will be converted to JSON string with `JSONObject.toString(int indent)`.- Specified by:
toJSONin interfaceJSONSerializable- Returns:
- the json obejct that represent the java object.
-
fromJSON
-
fromJSON
-