DtKeepStationTask represents a the keep station mode of the follow entity task for an entity to perform. The keep station mode of following is specific to surface entities only. It inherits read/writableness from SimTask. The task includes the entity to follow, the heading from the entity and the heading mode. The heading is specified in terms of local coordinates.
If the entity to follow does not exist, the following entity stops. If at some later point during the simulation, the entity-to-follow comes into existence, then the entity starts following it. If the entity being followed gets destroyed, the following entity stops and sends a taskComplete(), indicating that it is finished executing the task and is ready for a new task.
An entity executing a DtKeepStationTask will not advance to another task unless one of the following things happens:
- A trigger for the entity fires
- The entity is retasked or set Tasked by Superior
- The entity being followed is destroyed.
task-type: DtKeepStationTaskType
parameters: entity to follow - Echelon ID string (object name) of the entity to be followed.
offset distance - Following distance expressed in nautical miles, relative
to the entity to be followed.
For example, the entity can be tasked to follow 5 nautical miles north of the entity
heading - Heading in radians, measured clockwise from North.
mode - The mode in which to set the heading:
0 - Absolute - Sets the heading to be the heading given (true heading)
1 - Relative to host - If embarked, sets the heading to be the heading
on the host object
2 - Sets the heading to be the heading + the delta given to be the
new heading
3 - Magnetic absolute heading.
|
| | DtKeepStationTask () |
| |
| | DtKeepStationTask (const DtString &writeName, DtReaderWriterRegistry *parentRegistry=0) |
| |
| | DtKeepStationTask (const DtString &writeName, const DtKeepStationTask &orig, DtReaderWriterRegistry *parentRegistry=0) |
| |
| const DtKeepStationTask & | operator= (const DtKeepStationTask &orig) |
| |
| virtual | ~DtKeepStationTask () override |
| |
virtual const
DtSimTaskMessageType & | type () const override |
| |
| virtual DtSimTask * | clone (const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const override |
| |
| virtual DtString | stringRep () const override |
| |
| virtual const DtUUID & | entityToFollow () const |
| |
| virtual void | setEntityToFollow (const DtUUID &entity) |
| |
| virtual double | offsetDistance () const |
| |
| virtual void | setOffsetDistance (double offsetDistance) |
| |
| virtual double | heading () const |
| |
| virtual void | setHeading (double heading) |
| |
| virtual int | mode () const |
| |
| virtual void | setMode (int) |
| |
| virtual int | netRepSize () const override |
| |
| virtual bool | setFromNet (const char *contentBuffer, unsigned contentSize) override |
| |
| virtual bool | setToNet () override |
| |
| virtual | ~DtSimTask () override |
| |
| virtual bool | init () |
| |
| virtual bool | isTypeRegistered (const DtSimTaskMessageType &taskName) |
| |
| virtual void | setSubtask (bool flag) |
| |
| virtual bool | subtask () const |
| |
| virtual void | setAllowTaskVisualizations (bool flag) |
| |
| virtual bool | allowTaskVisualizations () const |
| |
| virtual void | putData (std::string &fp, int indentLevel=0) override |
| |
| virtual DtlObjPtr | getData (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings) override |
| |
| virtual char * | netRep () |
| |
| virtual bool | isOneClick () const |
| |
| | DtReaderWriter () |
| |
| | DtReaderWriter (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false) |
| |
| | DtReaderWriter (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false) |
| |
| | DtReaderWriter (const DtString &name, const DtReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL) |
| |
| | DtReaderWriter (const DtSymbolString &name, const DtReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL) |
| |
| | DtReaderWriter (const DtReaderWriter &, DtReaderWriterRegistry *parentRegistry=NULL) |
| |
| const DtReaderWriter & | operator= (const DtReaderWriter &orig) |
| |
| bool | operator== (const DtReaderWriter &) const |
| |
| bool | operator!= (const DtReaderWriter &rhs) const |
| |
| virtual | ~DtReaderWriter () |
| |
| virtual void | putSelf (std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename()) |
| |
| virtual void | postPutSelf () |
| |
| virtual void | prePutSelf () |
| |
| virtual void | getSelf (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference()) |
| |
| virtual void | postGetSelf () |
| |
| virtual void | preGetSelf () |
| |
| virtual void | writeSelf (std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename()) |
| |
| virtual DtSymbolString | name () const |
| |
| virtual void | addAlias (const DtSymbolString &alias) |
| |
| virtual void | addAlias (const DtString &alias) |
| |
| virtual bool | hasAlias (const DtSymbolString &alias) |
| |
| virtual const aliasContainer & | aliases () const |
| |
| virtual void | setReadonly (bool flag) |
| |
| bool | isReadonly () const |
| |
| virtual void | reset () |
| |
| virtual int | alignment () const |
| |
| virtual bool | variableIsBound () const |
| |
| virtual void | unbindVariable () |
| |
| virtual void | setName (const DtString &) |
| |
| virtual const char * | readerWriterType () const |
| |
| virtual const char * | xmlType () const |
| |
| virtual DtString | prettyPrint () const |
| |
| std::string | debugText () const |
| |
| virtual void | bindVariables (DtVariableBindingsList variableBindings) |
| |
virtual std::list
< DtVariableNameType > | unboundVariables () const |
| |
| bool | invalid () const |
| |
| virtual bool | hasChild (const DtReaderWriter *p) const |
| |
| virtual bool | hasVariableReference () const |
| |
| virtual void | bindLocalVariables (const DtVariableBindingsList &variableBindings) |
| |
| virtual void | recordUpdateTime () const |
| |
| virtual bool | changedSinceLastChecked () |
| |
| virtual bool | peekChangedSinceLastChecked () const |
| |
| virtual void | setValueSpecified (bool specified, bool recurse=false) |
| |
| virtual bool | valueSpecified () const |
| |
| virtual bool | isVariableReference () const |
| |
| virtual void | setIsVariableReference (bool value) |
| |
| virtual void | clearAllVariableReferenceFlags () |
| |
| virtual DtSymbolString | variableName () const |
| |
| virtual void | setVariableName (const DtSymbolString variableName) |
| |
| virtual const DtReaderWriter * | defaultRWValue () const |
| |
| virtual DtReaderWriter * | defaultRWValue () |
| |
| virtual void | setDefaultRWValue (DtReaderWriter *) |
| |
| virtual bool | checkAndSetDefaultRWValue (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference()) |
| |
| const DtReaderWriterRegistry & | registry () const |
| |
| DtReaderWriterRegistry & | registry () |
| |
| virtual DtPropertyInterface * | property () |
| |
| virtual const DtPropertyInterface * | property () const |
| |
| virtual DtString | toXml () const |
| |
| virtual DtRwVariableBindings * | generateVariableBindings () const |
| |
| virtual bool | toXml (const DtFilename &) const |
| |
| virtual bool | fromXml (const DtString &) |
| |
| virtual bool | fromXmlFile (const DtFilename &) |
| |
| virtual void | putSelf (DtEnvironmentSP, DtEnvValueSP parent) const |
| |
| virtual void | putData (DtEnvironmentSP, DtEnvValueSP value) const |
| |
| virtual void | putVariableReference (DtEnvironmentSP, DtEnvValueSP value) const |
| |
| virtual void | getSelf (const DtEnvironmentSP, const DtEnvValueSP root, const SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &bindings=DtVariableBindingsList()) |
| |
| virtual void | getData (const DtEnvironmentSP, const DtEnvValueSP, const SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &bindings=DtVariableBindingsList()) |
| |
| virtual void | unrecognizedItem (const DtEnvironmentSP env, const DtEnvValueSP root, const SearchPaths &searchPaths, const DtVariableBindingsList &varBindings) |
| |
| virtual void | getVariableReference (DtEnvironmentSP, DtEnvValueSP value) |
| |