状态数据

This commit is contained in:
joylink_zhaoerwei 2023-07-03 15:24:28 +08:00
parent edb93a32e9
commit f484d17805
3 changed files with 23 additions and 17 deletions

View File

@ -128,6 +128,12 @@ export async function loadLineDatas(app: GraphicApp) {
storage.signal.forEach((item) => {
states.push(new SignalState(item));
});
storage.platform.forEach((item) => {
states.push(new PlatformState(item));
});
storage.rtu.forEach((item) => {
states.push(new StationState(item));
});
return states;
},
});

View File

@ -20,31 +20,31 @@ export interface IPlatformData extends GraphicData {
eq(other: IPlatformData): boolean;
}
export interface IPlatformState extends GraphicState {
get emergstop(): boolean;
get emergstop(): boolean; //紧急关闭
set emergstop(v: boolean);
get trainberth(): boolean;
get trainberth(): boolean; //列车停站
set trainberth(v: boolean);
get close(): boolean;
get close(): boolean; //站台关闭,清客
set close(v: boolean);
get upHold(): boolean;
get upHold(): boolean; //上行方向车站扣车
set upHold(v: boolean);
get downHold(): boolean;
get downHold(): boolean; //下行方向车站扣车
set downHold(v: boolean);
get upOccHold(): boolean;
get upOccHold(): boolean; //上行方向中心扣车
set upOccHold(v: boolean);
get downOccHold(): boolean;
get downOccHold(): boolean; //下行方向中心扣车
set downOccHold(v: boolean);
get psdOpen(): boolean;
get psdOpen(): boolean; //屏蔽门开
set psdOpen(v: boolean);
get psdCut(): boolean;
get psdCut(): boolean; //屏蔽门切除
set psdCut(v: boolean);
get upSkipstop(): boolean;
get upSkipstop(): boolean; //上行方向跳停
set upSkipstop(v: boolean);
get downSkipstop(): boolean;
get downSkipstop(): boolean; //下行方向跳停
set downSkipstop(v: boolean);
get upTrainSkipstop(): boolean;
get upTrainSkipstop(): boolean; //上行方向指定列车跳停
set upTrainSkipstop(v: boolean);
get downTrainSkipstop(): boolean;
get downTrainSkipstop(): boolean; //下行方向指定列车跳停
set downTrainSkipstop(v: boolean);
get nextSectionRunTime(): number; //下一区间运行时间
set nextSectionRunTime(v: number);

View File

@ -23,13 +23,13 @@ export interface IStationData extends GraphicData {
}
export interface IStationState extends GraphicState {
get ipRtuStusDown(): boolean;
get ipRtuStusDown(): boolean; //通信终端---是否允许转到中控
set ipRtuStusDown(v: boolean);
get ipRtuStusInLocalCtrl(): boolean;
get ipRtuStusInLocalCtrl(): boolean; //站控
set ipRtuStusInLocalCtrl(v: boolean);
get ipRtuStusInCentralCtrl(): boolean;
get ipRtuStusInCentralCtrl(): boolean; //遥控
set ipRtuStusInCentralCtrl(v: boolean);
get ipRtuStusInEmergencyCtrl(): boolean;
get ipRtuStusInEmergencyCtrl(): boolean; //紧急站控
set ipRtuStusInEmergencyCtrl(v: boolean);
}