Class Component
java.lang.Object
mastermicro.topologies.components.Component
- All Implemented Interfaces:
JSONSerializable
- Direct Known Subclasses:
NMOSTransistor,Resistor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconnectTerminal(String terminal, String node) voiddisconnectTerminal(String terminal) static Componentstatic ComponentfromJSON(org.json.JSONObject obj) booleanisConnectedToNode(String node) Determine if this component is connected to a netlist node or not.protected voidvalidateTerminal(String terminal) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface mastermicro.topologies.io.JSONSerializable
toJSON
-
Field Details
-
id
-
netlist
-
-
Constructor Details
-
Component
-
-
Method Details
-
connectTerminal
- Throws:
UnrecognizedTerminalException
-
disconnectTerminal
- Throws:
UnrecognizedTerminalException
-
validateTerminal
- Throws:
UnrecognizedTerminalException
-
getAvailableTerminals
-
isConnectedToNode
Determine if this component is connected to a netlist node or not. We need this for the requirement of get all components that are connected to a specific netlist node.- Parameters:
node- name of the node
-
fromJSON
-
fromJSON
-