Class Component
java.lang.Object
mastermicro.topologies.components.Component
- All Implemented Interfaces:
JSONSerializable
- Direct Known Subclasses:
NMOSTransistor
,Resistor
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
connectTerminal
(String terminal, String node) void
disconnectTerminal
(String terminal) static Component
static Component
fromJSON
(org.json.JSONObject obj) boolean
isConnectedToNode
(String node) Determine if this component is connected to a netlist node or not.protected void
validateTerminal
(String terminal) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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
-