Skip to content

Ahmedh12/topologi-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Topology API

An API library which does the following:

  • Read and write topologies to and from disk.
  • Stores multiple topologies in memory.
  • Execute operations on topologies

API Reference

Write a given topology from the memory to a JSON file

  saveTopology
Parameter Type Description
topology topolgy Required. the topology to save

Read a topology from a given JSON file and store it in the memory

  loadTopology
Parameter Type Description
fileName string Required. the filename of the file to load the topology from

Query about which topologies are currently in the memory

  getTopologies

Delete a given topology from memory

  deleteTopology
Parameter Type Description
topologyID string Required. the id of the topology to delete

Query about which devices are in a given topology

  getComponents
Parameter Type Description
fileName string Required. the id of the topolgy under query

Query about which devices are connected to a given netlist node in a given topology.

  getComponentsWithNetlistNode
Parameter Type Description
fileName string Required. the id of the topology under query
node string Required. the node under query

Acknowledgements

Sonar linter is used as the static code analysis tool for this project

Author

Ahmed Hussien

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages