Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
BehaviorSwitchControlBase Class ReferenceHolds some utility classes and functions for BehaviorSwitchControl which shouldn't be stored in a templated class. More...
Inheritance diagram for BehaviorSwitchControlBase:
Detailed DescriptionHolds some utility classes and functions for BehaviorSwitchControl which shouldn't be stored in a templated class. Definition at line 11 of file BehaviorSwitchControl.h.
Constructor & Destructor Documentation
constructor Definition at line 33 of file BehaviorSwitchControl.h.
constructor, behavior must not be NULL Definition at line 46 of file BehaviorSwitchControl.h.
destructor Definition at line 56 of file BehaviorSwitchControl.h.
shouldn't copy these Member Function Documentation
tells the current behavior (if there is one) to stop then loads its own
Reimplemented from ControlBase. Definition at line 32 of file BehaviorSwitchControl.cc.
called by notifyGroupMembers if mybeh was destructed when stopped Reimplemented in BehaviorSwitchControl< B, Al >. Definition at line 104 of file BehaviorSwitchControl.h. Referenced by stopother().
returns a short description of what the control does Reimplemented from ControlBase. Reimplemented in BehaviorSwitchControl< B, Al >. Definition at line 46 of file BehaviorSwitchControl.cc.
adds a status to the name: - if in memory, # if running Reimplemented from ControlBase. Reimplemented in BehaviorSwitchControl< B, Al >. Definition at line 40 of file BehaviorSwitchControl.cc.
Returns true if the associated behavior is running. Reimplemented in BehaviorSwitchControl< B, Al >. Definition at line 52 of file BehaviorSwitchControl.cc. Referenced by Aibo3DControllerBehavior::doStart(), BehaviorSwitchControl< B, Al >::isRunning(), start(), stop(), takeInput(), and toggle().
updates other members in the group that the current behavior stopped -- do not call if behgrp is NULL Definition at line 80 of file BehaviorSwitchControl.cc. Referenced by setGroup(), and stopother().
shouldn't assign these
Reassigns the behavior group, pass NULL to remove from group. If this behavior is active and the new group already has an active behavior, the new group's active behavior is stopped first. Definition at line 13 of file BehaviorSwitchControl.cc. Referenced by BehaviorSwitchControlBase(), BehaviorSwitchControl< B, Al >::~BehaviorSwitchControl(), and ~BehaviorSwitchControlBase().
activates the behavior, handy for making start-up behaviors that you can turn off again with the Controller If you start twice without stopping (ie it's already running), shouldn't do anything Definition at line 67 of file BehaviorSwitchControl.h. Referenced by Aibo3DControllerBehavior::doStart().
Starts our behavior. Reimplemented in BehaviorSwitchControl< B, Al >. Definition at line 74 of file BehaviorSwitchControl.cc. Referenced by start(), takeInput(), and toggle().
stops the behavior Definition at line 70 of file BehaviorSwitchControl.h. Referenced by Aibo3DControllerBehavior::doStop(), BehaviorSwitchControl< B, Al >::~BehaviorSwitchControl(), and ~BehaviorSwitchControlBase().
Stops the "other" guy's behavior - if behgrp is NULL, stops ourselves. Definition at line 59 of file BehaviorSwitchControl.cc. Referenced by BehaviorSwitchControl< B, Al >::isRunning(), start(), stop(), and toggle().
called when the user has supplied a text string (may or may not have been prompted by doReadStdIn()! May not even be active yet - the user can direct the same input to a set of hilighted menus) The value which is returned is then activate()ed and pushed on the Controller's stack Reimplemented from ControlBase. Definition at line 4 of file BehaviorSwitchControl.cc.
toggles the behavior Definition at line 73 of file BehaviorSwitchControl.h. Referenced by activate(). Member Data Documentation
the behavior group this belongs to. Uses this to track the "current" behavior Definition at line 106 of file BehaviorSwitchControl.h. Referenced by notifyGroupMembers(), setGroup(), startmine(), and stopother().
used to store the behavior. If retained and non-NULL, will be valid. However, if not retained, only valid if equals behgrp->curBehavior Definition at line 107 of file BehaviorSwitchControl.h. Referenced by BehaviorSwitchControl< B, Al >::behaviorStopped(), BehaviorSwitchControl< B, Al >::BehaviorSwitchControl(), BehaviorSwitchControlBase(), BehaviorSwitchControl< B, Al >::getDescription(), getDescription(), getName(), isRunning(), setGroup(), BehaviorSwitchControl< B, Al >::startmine(), startmine(), stopother(), takeInput(), BehaviorSwitchControl< B, Al >::~BehaviorSwitchControl(), and ~BehaviorSwitchControlBase(). The documentation for this class was generated from the following files: |
Tekkotsu v5.1CVS |
Generated Mon May 9 04:59:05 2016 by Doxygen 1.6.3 |