Class PatriotHub


  • public class PatriotHub
    extends Object
    Entry interface to the Patriot Framework It contains all controlling APIs that are available to use The class implements singleton design pattern, which means there is always at most one PatriotHub within one JVM process
    • Field Detail

      • log

        public static Logger log
    • Method Detail

      • deployTopology

        public void deployTopology​(Topology top)
      • getManager

        public Manager getManager()
        Accessor to the simulators NetworkManager, which is main controlling interface for simulated network
        Returns:
        current NetworkManager
      • destroyHub

        public void destroyHub()
        Method cleans up all resources and destroys its instance