Package mastermicro.topologies.topology
Class Topology
java.lang.Object
mastermicro.topologies.topology.Topology
- All Implemented Interfaces:
JSONSerializable
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Topology
static Topology
fromJSON
(org.json.JSONObject obj) Get all the connected components to a specific node in the netlist.org.json.JSONObject
toJSON()
Serialize the java Object to a JSONObject type which will be converted to JSON string with `JSONObject.toString(int indent)`.
-
Field Details
-
id
-
components
-
-
Constructor Details
-
Topology
-
-
Method Details
-
getComponentsConnectToNode
Get all the connected components to a specific node in the netlist.- Parameters:
node
- the id of the node to search with- Returns:
- list of all the components
-
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
-