20#include <vlpi/entityIdentifier.h>
21#include <vlpi/simulationAddress.h>
25#include <vlutil/vlString.h>
28#include <vrfutil/rwUUID.h>
31class DtReflectedEntityList;
32class DtReflectedExtEntityList;
33class DtReflectedExtEntity;
37class DtVrlinkVrfRemoteController;
84 makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection* connection,
85 makVrf::DtVrlinkVrfRemoteController* vrfRemoteController,
86 DtReflectedExtEntityList* reflectedExtEntityList);
91 virtual void tick(
double dt)
override;
129 const DtString&
name,
const DtEntityIdentifier&
id,
const DtUUID& uuid,
void* usr);
Provides handle classes for safe access to attributes.
Send to create a new ownship entity, deleting the existing one if it's a different entity type.
Definition createNewOwnship.h:35
Base class for all simulation event connectors in VREngage.
Definition simEventConnector.h:53
Type-specific handle class for attributes.
Definition attributeHandle.h:229
virtual std::string name()
Gets the connector name.
Definition connector.h:68
DtOwnshipCreationConnector()
Default constructor. Initializes all state to default/null values.
virtual void handleOwnedEntityRemoved(const DtReflectedExtEntity *entity)
Called when the owned entity is removed from the reflected entity list.
bool myWaitingForOwnshipCreate
True while waiting for VRF to confirm creation of an ownship entity.
Definition ownshipCreationConnector.h:246
virtual DtVreMessageResult handleDestroyNewOwnship(DtVreMessage *message)
Handles a request to destroy the current new ownship entity.
virtual void handleLocalEntityCreated(const DtString &name, const DtEntityIdentifier &entityId, const DtUUID &uuid)
Called when VRF confirms the locally requested entity was created.
virtual void shutdown() override
Shuts down the connector.
DtAttributeHandleType< DtSimulationAddress > myVreBackendAttr
App attribute store handles for reading backend state.
Definition ownshipCreationConnector.h:219
virtual DtVreMessageResult handleCreateNewOwnship(DtVreMessage *message)
Ownship message handlers.
virtual void sendDeleteNewOwnship()
Sends a deleteObject request to the VRF backend for the current ownship.
DtAttributeHandleType< BackendStatusMessage::BackendStatusData > myBackendStatusAttr
Published backend status data.
Definition ownshipCreationConnector.h:223
DtReflectedExtEntityList * myReflectedExtEntityList
Reflected extended entity list (NON-OWNING)
Definition ownshipCreationConnector.h:205
virtual void install(makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection *connection, makVrf::DtVrlinkVrfRemoteController *vrfRemoteController, DtReflectedExtEntityList *reflectedExtEntityList)
Installs the ownship connector with shared infrastructure.
static void ownedEntityAddedCallback(DtReflectedExtEntity *obj, void *usr)
Invoked by VR-Link when any entity is added to the reflected list.
virtual void handleOwnedEntityAdded(const DtReflectedExtEntity *entity)
Called when the owned entity appears in the reflected entity list.
CreateNewOwnshipMessage * myDesiredCreateEntityMessage
Ownship state.
Definition ownshipCreationConnector.h:234
bool myCreatedOwnshipNeedsReposition
True if the newly created ownship needs to be repositioned after creation.
Definition ownshipCreationConnector.h:249
virtual ~DtOwnshipCreationConnector() override
Virtual destructor. Frees myDesiredCreateEntityMessage.
DtReflectedExtEntityInfo myCreatedEntityInfo
Information about the entity that has been created (or is being tracked)
Definition ownshipCreationConnector.h:240
static void ownedEntityRemovedCallback(DtReflectedExtEntity *obj, void *usr)
Invoked by VR-Link when any entity is removed from the reflected list.
virtual void tick(double dt) override
Performs periodic processing (currently a no-op)
virtual void sendCreateNewOwnship()
Sends a createEntity request to the VRF backend.
virtual void verifyNewOwnship()
Verifies whether the current entity matches the desired state and acts accordingly.
static void localEntityCreatedCallback(const DtString &name, const DtEntityIdentifier &id, const DtUUID &uuid, void *usr)
Static VR-Link callbacks.
bool myWaitingForOwnshipDelete
True while waiting for VRF to confirm deletion of an ownship entity.
Definition ownshipCreationConnector.h:243
makVrf::DtVrlinkVrfRemoteController * myVrfRemoteController
Infrastructure pointers (NON-OWNING — owned by DtConnectorAccessory)
Definition ownshipCreationConnector.h:200
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
Defines export macros and protocol namespace for vrePlayerStationConnector.
#define VRL_DLL
Empty definition for non-Windows platforms.
Definition export.h:52
!
Definition glsVreMessageUtil.h:50
DtVreMessageResult
Enumeration of possible message handling results.
Definition vreMessage.h:33
Definition connectorAccessory.h:38
Defines the base DtSimEventConnector class for VREngage simulation events.
Structure containing information about a reflected extended entity.
Definition util.h:40
Utility functions for VREngage player station connector.