![]() |
VR-Forces 5.0.3 Developer's Guide
|
The DtReactiveTaskOrganizer class will organize reactive tasks for the given group of entities. This organization will be able to answer a few questions about the reactive tasks contained.
Public Member Functions | |
| DtReactiveTaskOrganizer (makVrv::DtDe &) | |
| virtual | ~DtReactiveTaskOrganizer () |
| virtual void | organize (const std::vector< makVrv::DtSimEntry * > &) |
| virtual bool | addEnabledStatesTheSame (const DtSimTaskMessageType &, bool &enabled) const |
| virtual bool | allPrioritiesAreTheSame (const DtSimTaskMessageType &, int &priority) const |
| virtual const std::set < DtSimTaskMessageType > & | disabledScripts () const |
| virtual const std::set < DtSimTaskMessageType > & | commonScripts () const |
| virtual const std::set < DtSimTaskMessageType > & | enabledScripts () const |
| virtual int | maxPriority () const |
| virtual int | maxNonMixedPriority () const |
| virtual std::vector < DtScriptedTaskVariable > | variablesFor (const DtSimTaskMessageType &) const |
Public Attributes | |
| boost::signals2::signal< void()> | signal_organized |
Protected Member Functions | |
| virtual void | slot_simObjectEntryAboutToBeRemoved (makVrv::DtSimObjectEntry &entry) |
| virtual void | allTasksReceived () |
| virtual const DtScriptedTaskTask * | scriptedTaskFor (const DtSimTaskMessageType &id, const DtVrfCurrentTaskManager::EntityTaskInformation &taskInformation) const |
Protected Attributes | |
| makVrv::DtDe & | myDe |
| std::vector< makVrv::DtUniqueID > | myEntries |
| int | myMaximumPriority |
| std::set< DtSimTaskMessageType > | myCommonScripts |
| std::set< DtSimTaskMessageType > | myEnabledScripts |
| std::set< DtSimTaskMessageType > | myDisabledScripts |
| makVrf::DtReactiveTaskOrganizer::DtReactiveTaskOrganizer | ( | makVrv::DtDe & | ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Call to request entities to organize. If there is a current task organization, that will be cleared.
|
virtual |
Returns true if all the reactive tasks for the organized entities are the same enabled states are the same. The second flag will be true/false depending on whether or not they are all enabled or disabled.
|
virtual |
Returns true if all the priorities for the given reactive task are the same, and, if so, what that priority is. If the priorities are not the same, the priority returned will be the largest priority.
|
virtual |
Returns a list of all currently disabled scripts that are common amongst the entries.
|
virtual |
Returns a list of scripts that are common amongst the selected items.
|
virtual |
Returns a list of all enabled scripts in common.
|
virtual |
Returns the maximum priority of all items.
|
virtual |
Returns the maximum priority of those items that are non-mixed. If all mixed returns the maxPriority.
|
virtual |
Returns variables for the given script id. If there is more than one data element being organized the default variables for the reactive task will be returned, else the defaults for the current reactive task as discovered from the current task will be returned.
|
protectedvirtual |
If an entry is about to be removed we no longer need to watch it.
|
protectedvirtual |
Called when all tasks are received.
|
protectedvirtual |
Returns the scripted task matching the id in the list, else returns 0.
| boost::signals2::signal<void ()> makVrf::DtReactiveTaskOrganizer::signal_organized |
When all immediately requested tasks are received (via the DtVrfCurrentTaskManager) this signal is sent out.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |