Multi-Federate Logger for 3DNV 快速参考卡
Logger 命令
| 命令 | 说明 |
|---|---|
| System 域命令 | |
DeleteFile filename (string) |
删除指定文件。 |
Exit |
关闭 Logger。 |
Help |
显示可用命令列表。 |
LoadPlugin pluginName (string) |
加载指定的插件。 |
SetEntityTracking |
允许处理实体跟踪。 |
SetFastJumpsWithoutDiff |
使用检查点建立对象的相对状态,但不处理检查点与跳转时间之间的数据包。 |
SetNotifyLevel vlLevel (int) lgrLevel (int) |
设置 VR-Link 和 Logger 的通知级别。 |
SetPlaybackReadTimeLimit |
限制 Logger 在回放期间读取数据包所花费的时间。 |
SetTempDir directory(string) |
设置 Logger 存放临时 Logger 文件的目录。 |
| Player 域命令 | |
ClosePlaybackFile |
关闭当前回放文件。 |
OpenFile filename (string) |
打开指定文件进行回放。 |
Pause |
暂停回放。 |
Play |
开始回放。如果 Logger 已经在播放,此命令没有效果。 |
PlayPause |
在暂停状态和播放状态之间切换。 |
Restart |
从文件开头开始播放。 |
RevertFile |
将先前已保存但当前未保存的文件恢复到先前保存的状态。 |
SaveFile |
将先前已保存但当前未保存的文件保存到其当前文件名。 |
SaveFileAs filename (string) |
将当前文件保存为新文件。 |
SetBackupOnSave backup (bool) |
启用或禁用保存已编辑文件时对先前已保存文件的自动备份。 |
SetCurrentTime time (time) |
将时间线光标移动到指定时间。 |
SetLoopAtEnd value (bool) |
启用或禁用回放到末尾时从头循环。 |
SetPlaybackSpeed speed(double) |
设置 Logger 的回放速度。 |
SetPlayOnLoad value (bool) |
启用打开文件后立即开始回放。 |
SetStartStopTimes startTime (time) stopTime (time) |
设置 Logger 的开始时间和停止时间。 |
StopPlayback |
停止回放。如果 Logger 不处于回放状态,此命令没有效果。 |
Unpause |
恢复回放。如果 Logger 未处于暂停状态,此命令没有效果。 |
| Recorder 域命令 | |
CancelRecording |
取消当前记录。 |
CloseRecordFile |
关闭当前正在记录的文件。 |
NewFile filename(string) overwrite (bool) |
打开新文件进行记录。 |
PauseRecording |
暂停记录过程。 |
Record |
开始记录到新文件。 |
SetCheckpointParameters policy (int) {size (int) | count (int) | time (time)} |
设置关于何时生成检查点的检查点策略参数。Policy 为以下之一: - 0 — 数量,以数据包数计 - 1 — 数据包大小,以字节计 - 2 — 时间,以检查点之间的秒数计。 |
SetPauseOnRecordAs record (bool) |
决定 Logger 在收到 Record As 命令时的行为。 |
SetStopCondition condition (int) |
指定记录的停止条件,如下: - 0 — 无条件 - 1 — 持续时间(启用 SetStopDuration) - 2 — 文件大小(启用 SetStopSize)。 |
SetStopDuration duration (time) |
如果 SetStopCondition 设置为 1,则在指定时间停止记录。 |
SetStopSize filesize (int64) |
如果 SetStopCondition 设置为 2,则当文件达到 filesize 大小时停止记录。 |
StopRecording closeAndOpenForPlayback (bool) |
停止记录并结束。 |
| Simulation 域命令(与协议无关的命令) | |
Connect |
使用先前设置的参数连接到网络仿真。 |
Disconnect |
与网络仿真断开连接。 |
SetRemoteControlSettings process (bool) record (bool) allowDelete (bool) |
指定 Logger 如何响应 Logger Control 消息。 |
SetScaleAttributes scale (bool) |
启用或禁用因回放速度变化而引起的属性缩放。 |
SetVRFFiltering filter (bool) loId (int) hiId (int) |
配置 VR-Forces 消息过滤。 |
| HLA 专用命令 | |
LoadSubscriptionListFile filename (string) |
加载订阅列表文件。 |
SaveSubscriptionListFile filename (string) |
将订阅设置保存到指定名称的 XML 文件。 |
SetConnectionParameters federateName(string) federateType(string) federationName(string) fedFile(string) fomModules(string) MIM(string) ignoreAdvisories(bool) fomVersion(double) fomRevision(int) fomMapper(string) fomMapperData(base64) useEmptyFomMapper(bool)federateType、fomModules 和 MIM 参数仅适用于 HLA Evolved。 |
指定由各参数名称所指示的 HLA 连接参数。 |
SetDdmParameters enableDdm playbackMode subscribeMode playbackDynamicAssociation playbackDynamicExtents allowPlaybackWithoutRegions recordConveyedRegions requestUpdates subscribeUnspecifiedAttributes |
指定 DDM 参数。 |
SetDisableTimeManagementTest disableTesting (bool) |
如果时间管理测试会导致 Logger 行为异常,则禁用该测试。 |
SetDrainInput(double maxTime, double minTime) |
指定每个 tick 从演练连接(即网络)读取消息所花费的最短和最长时间,以秒计。 |
SetDynamicNamePrefix prefix (string) |
指定 Logger 在记录演练时附加到以 HLA_ 开头的对象名称之前的前缀。 |
SetHeartbeatIntervals "className(string):interval(float):inheritable(bool) ..." |
指定回放的心跳间隔。可以指定多个类。 |
SetIgnoreAdvisories mode (bool) |
指定 Logger 对 HLA 建议消息的响应。默认:false。 |
SetPassiveSubscription mode (bool) |
为 HLA 配置被动订阅。默认:false。 |
SetSubscriptionLists objectClasses (stringList) interactionClasses (stringList) |
设置类订阅列表。 |
SetTimeManagement timeConstrainedRecording (bool) timeConstrainedPlayback (bool) timeRegulatingRecording (bool) timeRegulatingPlayback (bool) lookahead (double) |
配置 Time Management 选项。 |
SetTimeoutIntervals "className(string):interval(float):inheritable(bool) ..." |
指定记录时的对象超时。可以指定多个类。 |
| Editor 域命令 | |
AppendFileToEnd filename (string) |
将文件 filename 追加到已打开文件的末尾。 |
ClearSection start (time) end (time) |
删除文件中 start 与 end 时间之间的所有数据包。 |
ConvertFile |
将当前文件转换为最新的文件格式。 |
CutSection start (time) end (time) |
删除文件中 start 与 end 时间之间的所有数据包。 |
ExportFile exportFormat (string) destination (string) checkpoint (bool) openAfterExport (bool) |
使用给定的 exportFormat 将文件导出到 destination.. |
ExportSection exportFormat (string) destination (string) start (time) end (time) offset (double) checkpoint (bool) openAfterExport (bool) |
使用给定的 exportFormat 将文件的一部分导出到 destination。 |
MergeInFile filename (string) offset (double) |
将 Logger 文件 filename 合并到已打开的文件中。 |
OffsetTime offset (double) |
将已打开文件中数据包的时间偏移 offset 值。 |
PrefixFileToStart filename (string) |
将名为 filename 的文件插入到已打开文件的开头。 |
TrimStart |
删除文件开头的空闲时间,并偏移所有数据包,使第一个数据包的时间戳为 0.0。 |
键盘快捷键
| 操作 | 按键 | 操作 | 按键 |
|---|---|---|---|
| Annotations | Shift+A | Offset Time | Ctrl+Shift+O |
| Append to End | Ctrl+Shift+E | Open | Ctrl+O |
| Clear Section | Ctrl+Shift+Delete | Pause | Ctrl+P |
| Close | Ctrl+W | Play | Ctrl+P |
| Connection | Ctrl+Shift+C | Preferences | Ctrl+Shift+P |
| Create Instant Point Annotation | \ | Prefix to Start | Ctrl+Shift+W |
| Create Instant Range Annotation | [ | Properties | Return |
| Create Point Annotation | Ctrl+\ | Record | Ctrl+R |
| Create Range Annotation | Ctrl+[ | Record As | Ctrl+N |
| Data View | Shift + D | Record To Multiple FIles | Ctrl+M |
| Decrease Speed | Ctrl+Down | Revert | Ctrl+Shift+R |
| Delete Annotation | Delete | Save | Ctrl+Shift+S |
| Delete Section | Ctrl+X | Save As | Ctrl+Shift+A |
| Disconnect | Ctrl+D | Save Recorded Data | Ctrl+Shift+S |
| Exit | Ctrl+Q | Set Start and End Times | Ctrl+B |
| Increase Speed | Ctrl+Up | Set Zoom | Ctrl+I |
| Jump to End | End | Stop | Ctrl+S |
| Jump to Start | Home | Toggle Loop at End | Ctrl+L |
| Jump to Time | Ctrl+T | Trim Start | Ctrl+Shift+T |
| Merge In File | Ctrl+Shift+I | Update Annotation | ] |
| Modify Annotation | Return | Upgrade File Format | Ctrl+Shift+U |
| Object Statistics | Shift + O |
命令行选项
| 选项 | 说明 |
|---|---|
--allowAllRemoteControl mode |
允许 (1) 或不允许 (0) 远程控制 PDU。 |
-c mode |
如果 mode = 1,显示 Logger 控制台。 |
--configFile filename |
指定要加载的配置文件。 |
--ignore_rest |
忽略此参数之后的所有参数。 |
-h |
显示 Logger 命令行参数的简要摘要。 |
-l logfile |
指定用于发送通知消息的文件。默认:logger.log。 |
--loggerTickRate rate |
Logger tick 率的间隔,以毫秒计。 |
-m level |
指定 VR-Link 消息的通知级别。范围 0-4。 |
-n level |
指定 Logger 消息的通知级别。范围 0-4。 |
-r command |
指定要运行的 Logger 命令。可以多次使用。 |
-v |
显示版本信息并退出。 |
| HLA 专用 | |
-f libname |
指定未使用默认 FOM 时要使用的 FOM Mapper。 |
--fomMapperInitData data |
指定 FOM Mapper 初始化数据(如果需要)。 |
-F fedfile |
指定演练的 FED 文件。 |
--ignoreAdvisories mode |
如果为 1,忽略 HLA 建议消息。如果为 0,不忽略。 |
-l lookahead |
指定 lookahead,以秒计。 |
-N federate_name |
指定 Logger federate 的 federate 名称。 |
--rprFomVersion version |
指定要使用的 RPR FOM 版本。 |
--rprFomRevision revision |
如果使用 RPR FOM 2.0017,指定要使用的修订版本。 |
--ignoreAdvisories {0|1} |
指定 Logger 是否忽略建议消息(1 为忽略,0 为不忽略)。 |
--useEmptyFomMapper {0|1} |
指定 Logger 是否使用空的 FOM Mapper(1 为使用,0 为不使用)。 |
-u {0|1} |
启用并选择或禁用约束时间模式。覆盖 -w。 |
-w {0|1} |
启用或禁用 Time Management 的使用,但并不选择它。 |
-x ExName |
设置联邦执行名称。默认:VR-Link。 |