/// <summary> /// Constructs a new EventManager. /// </summary> /// <param name="robotProxy">the robot proxy that this event manager applies to.</param> public EventManager(BasicRobotProxy robotProxy) { this.robotProxy = robotProxy; eventQueue = new EventQueue(); RegisterEventNames(); Reset(); }
/** * EventManager constructor comment. * * @param robotProxy robotProxy */ public EventManager(BasicRobotProxy robotProxy) { registerNamedEvents(); this.robotProxy = robotProxy; eventQueue = new EventQueue(); reset(); }
/// <summary> /// Cleans up the event queue. /// </summary> /// <remarks> /// This method should be called when the event queue is no longer needed, /// i.e. before it must be garbage collected. /// </remarks> public void Cleanup() { // Remove all events Reset(); // Remove all references to robots robot = null; robotProxy = null; }