VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
DtEntityListOutputPort Class Reference

Instances of DtEntityListOutputPort are output ports through which data producers can send a list of object IDs of simulated entities (local and/or remote). More...

Inheritance diagram for DtEntityListOutputPort:
Inheritance graph
[legend]

Public Member Functions

 DtEntityListOutputPort (const DtString &portName)
 
virtual ~DtEntityListOutputPort ()
 
virtual const DtString type () const
 returns DtEntityListPortDataType More...
 
virtual void createPortData ()
 Creates a DtEntityListPortData. More...
 
virtual void emptyList ()
 Call this to remove all entities from the list. More...
 
virtual void addEntity (const DtEntityIdentifier &id)
 Call this to add an entity identifier to the list with discovery time of 0. More...
 
virtual void addEntity (const DtEntityTargetInformation &info)
 Call this to add an entity information block to the list. More...
 
virtual void removeEntity (const DtEntityIdentifier &id)
 Call this to remove an entity from the list. More...
 
bool hasEntity (const DtEntityIdentifier &id) const
 Returns true if the list contains the specified entity. More...
 
virtual const DtEntityTargetList * value () const
 
- Public Member Functions inherited from DtOutputPort
 DtOutputPort (const DtString &portName)
 Constructor. More...
 
virtual ~DtOutputPort ()
 Destructor. More...
 
virtual bool init ()
 Call after the constructor. More...
 
virtual const DtStringname () const
 Returns the string name of this port. More...
 
virtual void sendData ()
 Sends the contents of myData to all connections. More...
 
virtual void addConnection (DtPortConnection *conn)
 Add a connection to the outgoing connection list. More...
 
virtual void removeConnection (DtPortConnection *conn)
 Remove a connection from the outgoing connection list. More...
 
virtual bool attemptToActivate ()
 Calls attemptToActivate on all connections in the connection list and returns true if any one of them was able to activate. More...
 
virtual bool attemptToActivateAtLowestPriority ()
 Calls attemptToActivate on all connections in the connection list and returns true if any one of them was able to activate, but will not override data from any others and will allow deactivation in the case another wants to provide data. More...
 
virtual bool canActivate () const
 Calls canActivate on all connections in the connection list and returns true if any one of them can be activated. More...
 
virtual void deactivate ()
 Calls deactivate on all connections in the connection list. More...
 
virtual void allowDeactivation ()
 Calls allowDeactivation on all connections in the connection list. More...
 
virtual bool active () const
 Returns true if any one of the outgoing connection are active. More...
 
virtual const DtList * connectionList () const
 Returns the list of output connections to this port. More...
 
virtual void setConnectionPriority (int priority)
 Sets the priority of all existing outgoing connections from this port to the new priority. More...
 
virtual DtPortDatadata ()
 Returns a pointer to the underlying port. More...
 
virtual const DtPortDatadata () const
 
virtual bool enabled () const
 Enables/disables the port. More...
 
virtual void setEnabled (bool flag)
 

Protected Attributes

DtEntityTargetList myEntityList
 
- Protected Attributes inherited from DtOutputPort
DtString myName
 
bool myEnabled
 
DtPortDatamyData
 locally instantiated. More...
 
DtList myConnectionList
 List of outgoing connections. More...
 

Detailed Description

Instances of DtEntityListOutputPort are output ports through which data producers can send a list of object IDs of simulated entities (local and/or remote).

Constructor & Destructor Documentation

DtEntityListOutputPort::DtEntityListOutputPort ( const DtString portName)
virtual DtEntityListOutputPort::~DtEntityListOutputPort ( )
virtual

Member Function Documentation

virtual const DtString DtEntityListOutputPort::type ( ) const
virtual

returns DtEntityListPortDataType

Implements DtOutputPort.

virtual void DtEntityListOutputPort::createPortData ( )
virtual

Creates a DtEntityListPortData.

Implements DtOutputPort.

virtual void DtEntityListOutputPort::emptyList ( )
virtual

Call this to remove all entities from the list.

It does not delete the entities, just the local object id that it stores.

virtual void DtEntityListOutputPort::addEntity ( const DtEntityIdentifier &  id)
virtual

Call this to add an entity identifier to the list with discovery time of 0.

virtual void DtEntityListOutputPort::addEntity ( const DtEntityTargetInformation info)
virtual

Call this to add an entity information block to the list.

Keyed on identifier.

virtual void DtEntityListOutputPort::removeEntity ( const DtEntityIdentifier &  id)
virtual

Call this to remove an entity from the list.

It does not delete the entity, just the local object id that it stores.

bool DtEntityListOutputPort::hasEntity ( const DtEntityIdentifier &  id) const

Returns true if the list contains the specified entity.

virtual const DtEntityTargetList* DtEntityListOutputPort::value ( ) const
virtual

Member Data Documentation

DtEntityTargetList DtEntityListOutputPort::myEntityList
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)