Class Topology

java.lang.Object
mastermicro.topologies.topology.Topology
All Implemented Interfaces:
JSONSerializable

public class Topology extends Object implements JSONSerializable
  • Field Details

  • Constructor Details

    • Topology

      public Topology(String id)
  • Method Details

    • getComponentsConnectToNode

      public List<Component> getComponentsConnectToNode(String node)
      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 interface JSONSerializable
      Returns:
      the json obejct that represent the java object.
    • fromJSON

      public static Topology fromJSON(String json)
    • fromJSON

      public static Topology fromJSON(org.json.JSONObject obj)