Class Resistor
java.lang.Object
mastermicro.topologies.components.Component
mastermicro.topologies.components.Resistor
- All Implemented Interfaces:
JSONSerializable
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.json.JSONObject
toJSON()
Serialize the java Object to a JSONObject type which will be converted to JSON string with `JSONObject.toString(int indent)`.Methods inherited from class mastermicro.topologies.components.Component
connectTerminal, disconnectTerminal, fromJSON, fromJSON, isConnectedToNode, validateTerminal
-
Field Details
-
resistance
-
-
Constructor Details
-
Resistor
-
-
Method Details
-
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)`.- Returns:
- the json obejct that represent the java object.
-
getAvailableTerminals
- Specified by:
getAvailableTerminals
in classComponent
-