Files
qt5-legatus-legacy/Lts/Services/SituationReplay/srp_service.xml
T
2026-08-13 18:33:10 +02:00

84 lines
3.7 KiB
XML
Executable File

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<service namespace="SituationReplay" abbreviation="SRP" procNames="SituationReplay" exerciseDependency="Exercise">
<rcs>
<Id Id="$Id$"/>
<HeadURL HeadURL="$HeadURL$"/>
<Author Author="$Author$"/>
</rcs>
<tables>
<table name="srp_replay_journal" comment="Information about past and currently used situation replay(as a journal)">
<column name="id" datatype="integer" isPrimaryKey="1">
<sequence start="1" increment="1"/>
</column>
<column name="situation_replay_id" datatype="integer"/>
<column name="replay_partition_id" datatype="integer"/>
<column name="srp_state_id" datatype="integer" isForeignKey="1"/>
<column name="begin_time" datatype="bigint"/>
<column name="end_time" datatype="bigint"/>
<column name="changed_at" datatype="timestamp"/>
<column name="pace" datatype="real"/>
<foreignKey name="FK_srp_journal_srp_state">
<source table="srp_replay_journal" column="srp_state_id"/>
<destination table="srp_state" column="id"/>
</foreignKey>
</table>
<table name="srp_situation_replay">
<column name="id" datatype="integer" isPrimaryKey="1">
<sequence start="1" increment="1"/>
</column>
<column name="srp_state_id" datatype="integer" isForeignKey="1"/>
<column name="replay_partition_id" datatype="integer"/>
<column name="begin_time" datatype="bigint"/>
<column name="end_time" datatype="bigint"/>
<column name="pace" datatype="real"/>
<foreignKey name="FK_srp_situation_replay_srp_state">
<source table="srp_situation_replay" column="srp_state_id"/>
<destination table="srp_state" column="id"/>
</foreignKey>
</table>
<table name="srp_state">
<column name="id" datatype="integer" isPrimaryKey="1"/>
<column name="name" datatype="text"/>
</table>
</tables>
<views/>
<dbServiceStructs>
<serviceStruct name="SrpReplayJournal" table="srp_replay_journal"/>
<serviceStruct name="SrpSituationReplay" table="srp_situation_replay"/>
<table name="srp_replay_journal"/>
<table name="srp_situation_replay"/>
</dbServiceStructs>
<topicTypes>
<topicType name="ChangeReplayStateRequest">
<column name="id" idlType="long"/>
<column name="state" idlType="SrpState"/>
<column name="replayPartitionId" idlType="long"/>
<column name="beginTime" idlType="long long"/>
<column name="endTime" idlType="long long"/>
<column name="pace" idlType="double" isOptional="1"/>
</topicType>
<topicType name="SitReplay" extensibility="EXTENSIBLE" isDataObject="1" routeToClient="1" routeToServer="0" routeInReplay="0">
<column name="id" idlType="long" isKey="1"/>
<column name="state" idlType="SrpState"/>
<column name="exerciseId" idlType="long" comment="Only in idl-struct, not needed in table"/>
<column name="replayPartitionId" idlType="long"/>
<column name="beginTime" idlType="long long"/>
<column name="endTime" idlType="long long"/>
<column name="pace" idlType="double"/>
</topicType>
</topicTypes>
<functionTopics>
<functionTopic name="ChangeReplayState" requestTopicType="ChangeReplayStateRequest" replyTopicType="Core::FunctionReply" requestTopicName="ChangeReplayStateRequest" replyTopicName="ChangeReplayStateReply" routeInReplay="0"/>
</functionTopics>
<enumerations>
<enumeration name="SrpState" table="srp_state">
<attribute key="Unknown" value="0"/>
<attribute key="Started" value="1"/>
<attribute key="Paused" value="2"/>
<attribute key="Resumed" value="3"/>
<attribute key="Stopped" value="4"/>
</enumeration>
</enumerations>
<operatorRights offset="36"/>
</service>