/** * initialize ComDemo to aware the monitor of the existence of ComDemo * * @param conName name of the com * @param monitor monitor of fit4green */ @Override public boolean init(String comName, IMonitor monitor) { comDemoStatus_ = "STOPPED"; super.init(comName, monitor); return true; }
/** dispose method performs a clean stop of CommunicatorDemo. */ @Override public boolean dispose() { // free the connections with the data centre // and stop all the possible threads running // then stop the plug-in itself log.debug("ComDemo Stop"); super.dispose(); return true; }