卫星子网对象
卫星子网(Subnet)对象的用法与移动子网和固定子网对象基本相同。它们可以嵌套在其他子网之内,形成子网层次结构。与固定子网不同,卫星子网不能通过单工(simplex)、双工(duplex)或总线(bus)链路连接,卫星子网内部的对象也不能通过这些链路与任何外部对象连接。表示卫星子网对象的默认图标如下图所示。
图 60:默认卫星子网图标

在顶层网络级别,卫星子网对象位于具有纬度、经度和高度规定的全局坐标系中。而在每个子网内部,用户可以通过为显示选择单位和网格间隔来定义笛卡尔坐标系。子网关联着某个特定区域,称为子网范围(extent)。范围定义了子网的边界。例如,如果某子网在 x 方向的范围为 2000 米、在 y 方向的范围为 3000 米,且以点 (a,b) 为中心,则该子网内的对象的位置可以介于 (a-1000 米, b-1500 米) 与 (a+1000 米, b+1500 米) 之间。
卫星子网对象属性
卫星子网对象的内置属性按字母顺序列示如下。
表 20:子网对象属性
| Name | Editing Data Type |
|---|---|
| altitude | double |
| attribute promotion | toggle |
| color | color |
| creation data | string |
| creation source | string |
| creation timestamp | date |
| financial cost | string |
| icon name | string |
| map | typed file |
| minimized icon | minimized icon |
| name | string |
| orbit | typed file |
| outline color | color |
| phase | double |
| position cache time granularity | double |
| priority | integer |
| sys id | integer |
| threshold | double |
| unit | integer |
| user id | integer |
| x position | double |
| y position | double |
altitude
该属性表示卫星子网距离地球表面海平面的距离。
| Editing | Simulation | |
|---|---|---|
| Data Type | double | double |
| Access | read / write | read |
| Default Value | 0.0 | |
| Units | meters | |
| Constraints |
attribute promotion
该属性允许你控制已提升(promoted)属性的显示。启用时,包含在该子网内的对象的已提升属性会显示在子网的属性列表中。禁用时,已提升属性不会显示,也不会提升到子网的父级。
当模型包含多层嵌套子网、每个子网又有许多节点和许多已提升属性时,该属性最为有用。在这种情况下,显示任何子网(尤其是顶层子网)的 Attributes 对话框,或在属性列表中滚动浏览,都可能缓慢而繁琐。建议将该属性设置为 “disabled”,除非你需要显示或修改某个子网上已提升属性的值。
该属性的值对仿真行为没有影响。
| Editing | Simulation | |
|---|---|---|
| Data Type | toggle | N/A |
| Access | read / write | N/A |
| Default Value | disabled | |
| Units | ||
| Constraints |
color
该属性指定卫星子网轨道在显示中描绘时所使用的颜色。该属性对仿真没有影响。color 属性的取值范围为 RGB000 到 RGB333,其中每个数字都是 0 到 3(含)之间的整数。第一个数字越大,红色越多;第二个数字越大,绿色越多;第三个数字越大,蓝色越多。因此 RGB000 对应黑色,RGB333 对应白色,RGB300 对应红色,依此类推。
| Editing | Simulation | |
|---|---|---|
| Data Type | color | N/A |
| Access | read / write | N/A |
| Default Value | RGB030 | |
| Units | ||
| Constraints |
creation data
该属性指定关于对象创建的附加信息。
| Editing | Simulation | |
|---|---|---|
| Data Type | string | not applicable |
| Access | read/write | not applicable |
| Default Value | “” | |
| Units | ||
| Constraints |
creation source
该属性指定对象的创建方式。
| Editing | Simulation | |
|---|---|---|
| Data Type | string | not applicable |
| Access | read/write | not applicable |
| Default Value | “Object Palette” | |
| Units | ||
| Constraints |
creation timestamp
该属性指定对象的创建时间。
| Editing | Simulation | |
|---|---|---|
| Data Type | date | not applicable |
| Access | read/write | not applicable |
| Default Value | ||
| Units | ||
| Constraints |
financial cost
该属性指定购买或维护该对象的成本。
| Editing | Simulation | |
|---|---|---|
| Data Type | string | string |
| Access | read/write/promote | read/write |
| Default Value | “0.00” | |
| Units | ||
| Constraints |
icon name
该属性允许用户修改在网络图中表示该子网所使用的位图。图标可以用图标编辑器创建。该属性的值对仿真行为没有影响。
| Editing | Simulation | |
|---|---|---|
| Data Type | icon | N/A |
| Access | read / write | N/A |
| Default Value | subnet | |
| Units | ||
| Constraints |
map
该属性指定一个带有 .cds 后缀(属性值中不包含该后缀)的制图数据集文件的名称,其内容将在 Project Editor 中描绘出来。
该属性对仿真没有影响。
| Editing | Simulation | |
|---|---|---|
| Data Type | typed file | NA |
| Access | read / write | N/A |
| Default Value | None | |
| Units | N/A | |
| Constraints |
minimized icon
该属性指定当缩放会导致子网小到无法用其原始图标表示时,子网将如何显示。
| Editing | Simulation | |
|---|---|---|
| Data Type | minimized icon | not applicable |
| Access | read/write | not applicable |
| Default Value | “circle/#FF0000” | |
| Units | ||
| Constraints |
name
该属性指定一个用于标识目的的文本字符串。在仿真期间,它通常用于执行路由、辅助调试以及查找对象 ID(Object ID)。子网名称会出现在其包含的每个对象的名称中,每一级层次之间以 “.” 分隔。例如,如果 subnet_1 层次化地嵌套在 subnet_2 中,则 subnet_2 的全名为 “top.subnet_1.subnet_2”。该属性的值对仿真没有影响。
| Editing | Simulation | |
|---|---|---|
| Data Type | string | string |
| Access | read / write | read |
| Default Value | sat_subnet_n, n >= 0 |
|
| Units | N/A | |
| Constraints | unique name, no dots, not “top” |
orbit
该属性是一个轨道文件的名称,该文件保存了指定仿真推进过程中卫星子网将经过的时间和位置的数据。
| Editing | Simulation | |
|---|---|---|
| Data Type | typed file | N/A |
| Access | N/A | N/A |
| Default Value | None | |
| Units | ||
| Constraints |
outline color
该属性指定在 Project Editor 中描绘子网时,子网周边轮廓显示所使用的颜色。该属性对仿真没有影响。outline color 属性的取值范围为 RGB000 到 RGB333,其中每个数字都是 0 到 3(含)之间的整数。第一个数字越大,红色越多;第二个数字越大,绿色越多;第三个数字越大,蓝色越多。因此 RGB000 对应黑色,RGB333 对应白色,RGB300 对应红色,依此类推。如果不希望显示子网的周边轮廓,可以从颜色调色板中选择黑色将其隐藏。
| Editing | Simulation | |
|---|---|---|
| Data Type | color | N/A |
| Access | read / write | N/A |
| Default Value | RGB133 | |
| Units | ||
| Constraints |
phase
该属性支持卫星轨道在时间上的平移。
| Editing | Simulation | |
|---|---|---|
| Data Type | double | N/A |
| Access | N/A | N/A |
| Default Value | 0.0 | |
| Units | ||
| Constraints |
position cache time granularity
该属性指定一个时间窗口,在该窗口内假定卫星子网的位置保持不变,不会重新计算。默认值设置为 op_runsim 的 default_site_position_cache_time_granularity 属性的值。
| Editing | Simulation | |
|---|---|---|
| Data Type | N/A | double |
| Access | N/A | read / write |
| Default Value | see description | |
| Units | seconds | |
| Constraints | None |
priority
当多个事件被调度在同一仿真时刻时,该属性用于确定它们的执行顺序。优先级较高的事件先执行。事件优先级按层次方式评估:子网优先级的权重高于节点优先级,而节点优先级的权重又高于模块优先级。评估发生在模块上的事件的优先级时,只考虑最低一级父子网的优先级。
| Editing | Simulation | |
|---|---|---|
| Data Type | integer | integer |
| Access | read / write / promote | read / write |
| Default Value | 0 | |
| Units | ||
| Constraints | absolute value <= 32,000 |
sys id
该属性包含一个只读的正整数,用于标识目的。系统为每个卫星子网对象分配一个唯一编号。该编号通常对应对象的创建顺序:第一个创建的子网的 sys id 为 0,第二个子网的 sys id 为 1,一般地,第 n 个子网的 sys id 为 n-1。它可以用于例如在路由中标识某个子网,或在循环遍历子网对象以访问其属性时使用,或一般地,在需要唯一整数标识时使用。该属性仅存在于仿真期间。
| Editing | Simulation | |
|---|---|---|
| Data Type | N/A | integer |
| Access | N/A | read |
| Default Value | ||
| Units | ||
| Constraints | unique to each satellite subnetwork object |
threshold
该属性影响子网在不同缩放级别下的显示特性。如果其值高于地图的当前分辨率,子网将以缩微图标显示。通常,该属性用于确保网络图在较高缩放级别下不会被图标弄得杂乱。地图的当前分辨率可以在 Project Editor 中通过 Set View Properties 命令确定。在顶层子网级别,该属性以像素/度为单位;在所有其他子网级别,它以像素/子网单位为单位。
| Editing | Simulation | |
|---|---|---|
| Data Type | double | N/A |
| Access | read / write | N/A |
| Default Value | 0.0 | |
| Units | See description | |
| Constraints | See description |
unit
该属性包含子网内对象所使用的单位。其值是 OpT_Ima_Obj_Position_Unit_Type 值之一(参见第 19 页表 68 “Object Position Unit Type Symbolic Constants”)。
注: 要确定子网跨度或位置的单位,必须获取该子网的父子网的 unit 属性。
| Editing | Simulation | |
|---|---|---|
| Data Type | not applicable | integer |
| Access | not applicable | read |
| Default Value | ||
| Units | ||
| Constraints |
user id
该属性是一个整数,用于用户自定义的标识目的。与 sys id 不同,它不一定具有唯一性,但它是读/写变量,用户可以按任何需要的方式赋值。
| Editing | Simulation | |
|---|---|---|
| Data Type | integer | integer |
| Access | read / write / promote | read / write |
| Default Value | 0 | |
| Units | ||
| Constraints |
x position
该属性指定子网范围中心的 x 坐标,以及子网图标在 Project Editor 中显示位置的 x 坐标。其值以父子网的单位指定。当指定的单位为度时,它对应中心点的经度。正值表示东经度数,负值表示西经度数。
| Editing | Simulation | |
|---|---|---|
| Data Type | double | double |
| Access | read / write | read |
| Default Value | None | |
| Units | See description | |
| Constraints |
y position
该属性指定子网范围中心的 y 坐标,以及子网图标在 Project Editor 中显示位置的 y 坐标。其值以父子网的单位指定。当指定的单位为度时,它对应中心点的纬度。正值表示北纬度数,负值表示南纬度数。
| Editing | Simulation | |
|---|---|---|
| Data Type | double | double |
| Access | read / write | read |
| Default Value | N/A | |
| Units | See description | |
| Constraints |