Class ComponentParameter
java.lang.Object
mastermicro.topologies.components.ComponentParameter
- All Implemented Interfaces:
JSONSerializable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentParameter
static ComponentParameter
fromJSON
(org.json.JSONObject obj) double
double
getMax()
double
getMin()
void
setDefault
(double defaultValue) void
setMax
(double max) void
setMin
(double min) org.json.JSONObject
toJSON()
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: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 interfaceJSONSerializable
- Returns:
- the json obejct that represent the java object.
-
fromJSON
-
fromJSON
-