@operato/ops-contract 0.9.48 → 0.9.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -5
- package/dist/asset-acceptance.d.ts +27 -0
- package/dist/asset-acceptance.js +33 -0
- package/dist/capability.d.ts +1 -1
- package/dist/capability.js +16 -1
- package/dist/contract.d.ts +61 -3
- package/dist/contract.js +59 -4
- package/dist/domain-catalog.d.ts +9 -2
- package/dist/domain-catalog.js +36 -4
- package/dist/energy-ingest.js +4 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/intralogistics-profile.d.ts +114 -0
- package/dist/intralogistics-profile.js +149 -0
- package/dist/operational-ingest.d.ts +4 -2
- package/dist/operational-ingest.js +78 -4
- package/dist/route-network.d.ts +84 -0
- package/dist/route-network.js +132 -0
- package/dist/transport-policy.d.ts +79 -0
- package/dist/transport-policy.js +68 -0
- package/dist/travel.d.ts +83 -0
- package/dist/travel.js +32 -0
- package/dist/yms-profile.d.ts +1 -1
- package/dist/yms-profile.js +1 -1
- package/dist-cjs/index.cjs +2392 -1889
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ IEC 61850 · ISO 50001 전기 계통과 성과지표
|
|
|
13
13
|
|
|
14
14
|
## 패키지의 책임
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
이 패키지는 **타입, 판별 함수, 정합성 검사, 공통 상수**를 제공합니다. 함수는 전달받은 인자만 사용하며, 내부 상태나 현재 시각에 의존하지 않습니다.
|
|
17
17
|
|
|
18
18
|
여기 없는 것은 **정책과 엔진**입니다. 그 사실로 무엇을 할지는 `@operato/twin-kernel` 이 정합니다.
|
|
19
19
|
|
|
@@ -94,10 +94,17 @@ assertOperationalAttentionV1(attention)
|
|
|
94
94
|
`locationStatusOf` · `dockDoorStatusOf`(도어의 동시 수용 한도 `dockDoorCapacityOf` — 정수, 최소 1, 1.5 는 1). 이 기준을 넘는 판정 — 예약 규칙 · 우선순위 ·
|
|
95
95
|
아래 생산자의 전이 판정 — 은 계약에 올리지 않습니다.
|
|
96
96
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
97
|
+
**구내 반송**(2026-12-03, operato-application ADR-0266) — 새 온톨로지가 아니라 기존 축에 선택 칸을 더했습니다.
|
|
98
|
+
경로망은 자리 사이의 연결(`route-network.ts` — 길이 · 방향 · 속도 제한 · 동시 점유 수 · 지나갈 수 있는 장비 분류, 고정 경로, 발행 판)이고
|
|
99
|
+
좌표는 담지 않습니다. 구조 검사(`validateRouteNetwork`)만 여기서 하고, 도달 가능성 같은 그래프 탐색은 판단하는 쪽(앱의 규칙, 커널의 실행 정책)이 합니다.
|
|
100
|
+
관제를 받는 장비는 능력 `guided` 와 운행 상태(`travel.ts` — 마지막으로 지난 자리 · 진행 방향 · 예약 구간 · 통신 상태 · 측정 위치)를 갖고,
|
|
101
|
+
배터리는 `energyStoring` 의 `soc` 를 씁니다. 반송 어휘는 `intralogistics-profile.ts`, 정책의 선언(규칙 이름 · 파라미터)은 `transport-policy.ts`,
|
|
102
|
+
용기가 실을 수 있는 품목은 `asset-acceptance.ts`(받는다 · 안 받는다 · 판단할 수 없다)입니다. 운행 사건 넷을 상태로 접는 일은 커널의 다음 단계입니다.
|
|
103
|
+
|
|
104
|
+
**전기 요금표 읽기**(`tariff.ts`, 2026-11-27) — 요금제와 시간대 구간은 ops-master가 저장합니다. 이 계약은 지정한 시각의 단가(`bandAt`)와
|
|
105
|
+
하루 24시간에 요금 구간이 빠짐없이 지정됐는지(`tariffCoverageIssues`)를 판정합니다. 검사 결과는 `{ field, code, params }` 형식으로 반환하고 화면에서 번역합니다.
|
|
106
|
+
원천 사실의 단가(`EnergyUsagePeriodData.unitPrice`)를 마스터에 설정한 구간 단가보다 우선 적용합니다. 새 국가의 요금은 데이터 행으로 추가합니다. 구간 코드는 요금제별로 정의하고,
|
|
107
|
+
요금 비교에 쓰는 등급(`TARIFF_LOAD_CLASSES`)만 고정합니다. 일요일과 공휴일은 구분하며, 공휴일 규칙을 요일 규칙보다 우선 적용합니다. 요금제는 공휴일 달력을 이름으로 참조합니다.
|
|
101
108
|
|
|
102
109
|
> **기준의 예외 하나 — 예정된 두 번째 소비처.** 지금 이 규칙을 부르는 곳은 ops-master 하나입니다. ems 커넥터가 붙으면
|
|
103
110
|
> (operato-application `design/charters/operato-energy.md` §4) 원천 사실에 단가가 없는 구간마다 `bandAt` 으로 단가를 구해 사용량 요금을 더하고,
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ResourceProperty } from './contract.ts';
|
|
2
|
+
export interface AssetAcceptance {
|
|
3
|
+
materialDefinitionIds?: string[];
|
|
4
|
+
materialClassIds?: string[];
|
|
5
|
+
/** At most this much in one carrier. */
|
|
6
|
+
maxQuantity?: {
|
|
7
|
+
value: number;
|
|
8
|
+
uom: string;
|
|
9
|
+
};
|
|
10
|
+
/** Conditions such as dividers or temperature keeping. Carried, not judged here. */
|
|
11
|
+
properties?: ResourceProperty[];
|
|
12
|
+
}
|
|
13
|
+
export interface AcceptanceQuery {
|
|
14
|
+
materialDefinitionId?: string;
|
|
15
|
+
/** The material's classes, base classes included if the caller wants them counted. */
|
|
16
|
+
materialClassIds?: readonly string[];
|
|
17
|
+
quantity?: {
|
|
18
|
+
value: number;
|
|
19
|
+
uom: string;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Whether an asset class with `accepts` may carry this material (and this quantity).
|
|
24
|
+
*
|
|
25
|
+
* `undefined` when it cannot tell: nothing declared, no material named, or a quantity in a unit other than the declared maximum's.
|
|
26
|
+
*/
|
|
27
|
+
export declare function acceptsMaterial(accepts: AssetAcceptance | undefined, query: AcceptanceQuery): boolean | undefined;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether an asset class with `accepts` may carry this material (and this quantity).
|
|
3
|
+
*
|
|
4
|
+
* `undefined` when it cannot tell: nothing declared, no material named, or a quantity in a unit other than the declared maximum's.
|
|
5
|
+
*/
|
|
6
|
+
export function acceptsMaterial(accepts, query) {
|
|
7
|
+
if (!accepts)
|
|
8
|
+
return undefined;
|
|
9
|
+
const defs = accepts.materialDefinitionIds ?? [];
|
|
10
|
+
const classes = accepts.materialClassIds ?? [];
|
|
11
|
+
const named = query.materialDefinitionId !== undefined || (query.materialClassIds?.length ?? 0) > 0;
|
|
12
|
+
if (!named)
|
|
13
|
+
return undefined;
|
|
14
|
+
let material;
|
|
15
|
+
if (defs.length === 0 && classes.length === 0)
|
|
16
|
+
material = undefined;
|
|
17
|
+
else {
|
|
18
|
+
const byDef = query.materialDefinitionId !== undefined && defs.includes(query.materialDefinitionId);
|
|
19
|
+
const byClass = (query.materialClassIds ?? []).some(id => classes.includes(id));
|
|
20
|
+
material = byDef || byClass;
|
|
21
|
+
}
|
|
22
|
+
if (material === false)
|
|
23
|
+
return false;
|
|
24
|
+
let quantity = true;
|
|
25
|
+
if (query.quantity && accepts.maxQuantity) {
|
|
26
|
+
quantity = query.quantity.uom === accepts.maxQuantity.uom ? query.quantity.value <= accepts.maxQuantity.value : undefined;
|
|
27
|
+
}
|
|
28
|
+
if (quantity === false)
|
|
29
|
+
return false;
|
|
30
|
+
if (material === undefined || quantity === undefined)
|
|
31
|
+
return undefined;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
package/dist/capability.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { EquipmentStatus } from './contract.ts';
|
|
2
|
-
export type CapabilityKey = 'operable' | 'storable' | 'mobile' | 'processable' | 'trackable' | 'switching' | 'metered' | 'curtailable' | 'energyGenerating' | 'energyStoring';
|
|
2
|
+
export type CapabilityKey = 'operable' | 'storable' | 'mobile' | 'processable' | 'trackable' | 'switching' | 'metered' | 'curtailable' | 'energyGenerating' | 'energyStoring' | 'guided';
|
|
3
3
|
/** 이동 관측 — Mobile 이 노출. */
|
|
4
4
|
export interface Motion {
|
|
5
5
|
fromNode: string;
|
package/dist/capability.js
CHANGED
|
@@ -88,9 +88,24 @@ export const CAPABILITIES = {
|
|
|
88
88
|
key: 'energyStoring', label: 'twin.capability.energyStoring', semantics: '전력을 저장하고 공급합니다. 손실과 수명을 평가할 수 있도록 충전과 방전을 구분합니다.',
|
|
89
89
|
commands: [],
|
|
90
90
|
stateFields: ['soc', 'chargeKW', 'dischargeKW'], models: ['StoringState'], invariants: ['0 <= soc <= 100'], results: ['stored', 'discharged']
|
|
91
|
+
},
|
|
92
|
+
/*
|
|
93
|
+
* ── Guided — travels the route network under transport control (2026-12-03, operato-application ADR-0266) ──────────────
|
|
94
|
+
*
|
|
95
|
+
* `mobile` says a resource moves between locations; a forklift a person drives has it. Last location passed, reserved
|
|
96
|
+
* connections and link state mean something only for equipment under transport control, so they are a capability of their
|
|
97
|
+
* own, declared together with `mobile`. Battery is not repeated here: guided equipment declares `energyStoring` as well.
|
|
98
|
+
*
|
|
99
|
+
* No commands. The twin does not drive robots: dispatch, pause and resume are the transport control product's instructions
|
|
100
|
+
* to its equipment (VDA 5050 instant actions), not stimuli inside the kernel, so they do not belong in `CMD`.
|
|
101
|
+
*/
|
|
102
|
+
guided: {
|
|
103
|
+
key: 'guided', label: 'twin.capability.guided', semantics: '경로망 위를 관제에 따라 다니는 장비 — 마지막으로 지난 자리 · 진행 방향 · 예약 구간 · 통신 상태 · 측정 위치. mobile 과 함께 선언한다.',
|
|
104
|
+
commands: [],
|
|
105
|
+
stateFields: ['travel'], models: ['TravelState'], invariants: ['guided => mobile', '0 <= heading < 360'], results: ['passed', 'reserved', 'linkChanged', 'poseReported']
|
|
91
106
|
}
|
|
92
107
|
};
|
|
93
|
-
export const CAPABILITY_KEYS = ['operable', 'storable', 'mobile', 'processable', 'trackable', 'switching', 'metered', 'curtailable', 'energyGenerating', 'energyStoring'];
|
|
108
|
+
export const CAPABILITY_KEYS = ['operable', 'storable', 'mobile', 'processable', 'trackable', 'switching', 'metered', 'curtailable', 'energyGenerating', 'energyStoring', 'guided'];
|
|
94
109
|
/** 능력 집합이 관측 노출하는 상태 필드 합집합(직교이므로 단순 병합). */
|
|
95
110
|
export function stateFieldsOf(caps) {
|
|
96
111
|
const out = new Set();
|
package/dist/contract.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { type RatedUsage, type UsedUsage } from './rated-usage.ts';
|
|
2
2
|
import type { FoldedOrders, OrderFoldPolicy } from './order-fold.ts';
|
|
3
3
|
import type { ReferencedLocation } from './referenced-location.ts';
|
|
4
|
+
import type { FixedRoute, LocationConnection, RouteNetworkEdition } from './route-network.ts';
|
|
5
|
+
import type { TravelState } from './travel.ts';
|
|
6
|
+
import type { TransportPolicySet } from './transport-policy.ts';
|
|
7
|
+
import type { AssetAcceptance } from './asset-acceptance.ts';
|
|
4
8
|
export type ISOTime = string;
|
|
5
9
|
export interface CanonicalEnvelope<T = unknown> {
|
|
6
10
|
eventId: string;
|
|
@@ -130,15 +134,21 @@ export type TaskStatus = (typeof TASK_STATUS)[number];
|
|
|
130
134
|
* 「끝났나」는 이 함수로 묻는다 — `status === 'completed'` 로 물으면 취소된 작업이 살아 있는 것으로 읽힌다.
|
|
131
135
|
* 성과 폴드는 취소를 완료로 세지 않는다(`completedMs` 가 없다 — 실적은 `aborted`).
|
|
132
136
|
*
|
|
133
|
-
* `ORDER_TERMINAL_STATUS` 와
|
|
137
|
+
* `ORDER_TERMINAL_STATUS` 와 묶지 않는다 — 실제로 갈렸다(오더에는 `failed` 가 있다, 2026-12-04) — 오더의 낱말은 도메인 것이고(계약이 닫지 않는다), 작업의 낱말은
|
|
134
138
|
* 위 `TASK_STATUS` 로 닫혀 있다. 한쪽이 늘 때 다른 쪽이 따라 늘면 안 된다.
|
|
135
139
|
*/
|
|
136
140
|
export declare const TASK_TERMINAL_STATUS: readonly ["completed", "cancelled"];
|
|
137
141
|
export declare function isTaskTerminal(t: {
|
|
138
142
|
status?: string;
|
|
139
143
|
}): boolean;
|
|
140
|
-
/**
|
|
141
|
-
|
|
144
|
+
/**
|
|
145
|
+
* 오더가 **종결 상태**로 인정되는 낱말 — 이 밖은 진행 중이다(§`isOrderTerminal`).
|
|
146
|
+
*
|
|
147
|
+
* `failed` 는 2026-12-04 에 들어왔다(operato-application ADR-0266, 구내 반송): 반송 지시는 길이 없거나 장비가 멈춰 **실패로 닫힌다**.
|
|
148
|
+
* 취소(사람이 거둔 것)와 다른 사실이고, 이 낱말이 없으면 실패한 지시가 트윈에서 영영 열린 오더로 남는다. 그 지시의 작업은 작업 낱말이
|
|
149
|
+
* 닫혀 있어 `cancelled` 로 간다 — 실패라는 사실과 그 사유는 오더가 든다.
|
|
150
|
+
*/
|
|
151
|
+
export declare const ORDER_TERMINAL_STATUS: readonly ["completed", "cancelled", "failed"];
|
|
142
152
|
/**
|
|
143
153
|
* 이 오더는 **끝났나** — 판정을 한 곳에 둔다(`locationStatusOf`·`dueStatusOf` 와 같은 규율).
|
|
144
154
|
*
|
|
@@ -860,6 +870,8 @@ export interface ResourceClassDef extends EffectivePeriod {
|
|
|
860
870
|
properties?: ResourceProperty[];
|
|
861
871
|
/** 이 등급의 적격을 정하는 시험 명세들 — 표준 `TestSpecificationID`. */
|
|
862
872
|
testSpecificationIds?: TestSpecificationRefs;
|
|
873
|
+
/** What a carrier of this asset class may hold (ADR-0266 decision 8 ③, `asset-acceptance.ts`). Meaningful on asset classes only. */
|
|
874
|
+
accepts?: AssetAcceptance;
|
|
863
875
|
}
|
|
864
876
|
export declare function classClosure(directIds: readonly string[] | undefined, defs: readonly ResourceClassDef[] | undefined, at?: ISOTime): Set<string>;
|
|
865
877
|
/**
|
|
@@ -1035,6 +1047,30 @@ export declare const MATERIAL_PROPERTY: {
|
|
|
1035
1047
|
/** 기준 단위 하나당 이 단위의 양. `uom` 이 대상 단위. */
|
|
1036
1048
|
readonly perBaseUnit: "perBaseUnit";
|
|
1037
1049
|
};
|
|
1050
|
+
/**
|
|
1051
|
+
* **우리가 정한 설비 속성 이름** — 표준(ISA-95 `EquipmentProperty`)은 자리만 정하고 이름을 정하지 않는다(`MATERIAL_PROPERTY` 와 같은 까닭).
|
|
1052
|
+
*
|
|
1053
|
+
* `speed`: 그 설비가 다니는 빠르기. 값은 수, 단위는 속성의 `uom`(UN/CEFACT 권고 20 — `SPEED_TO_MPS` 의 코드). **단위가 없으면 읽지 않는다** —
|
|
1054
|
+
* "3" 이 초속 3 m 인지 시속 3 km 인지 모른다.
|
|
1055
|
+
*
|
|
1056
|
+
* 왜 계약에 두나(2026-12-05, operato-intralogic design §18 · §24): 이 이름과 단위 표가 트윈 호스트(headless-twin `travel-estimator`)와 반송 관제
|
|
1057
|
+
* (operato-intralogic `route-rules`)에 따로 적혀 있었다. 화면이 받아 준 단위를 한쪽이 모르면 그쪽의 이동 시간이 오류 없이 사라진다.
|
|
1058
|
+
*/
|
|
1059
|
+
export declare const EQUIPMENT_PROPERTY: {
|
|
1060
|
+
/** 설비의 빠르기 — `uom` 이 `SPEED_TO_MPS` 의 코드. */
|
|
1061
|
+
readonly speed: "speed";
|
|
1062
|
+
};
|
|
1063
|
+
/** UN/CEFACT 권고 20 공통코드 → m/s. 모르는 코드는 바꾸지 않는다(지어내지 않는다). */
|
|
1064
|
+
export declare const SPEED_TO_MPS: Readonly<Record<string, number>>;
|
|
1065
|
+
/**
|
|
1066
|
+
* 설비 속성에서 빠르기(m/s) — `EQUIPMENT_PROPERTY.speed` 의 첫 속성. 값이 양수가 아니거나, 단위가 없거나 모르는 코드면 `undefined`
|
|
1067
|
+
* (초속인지 시속인지 가정하지 않는다).
|
|
1068
|
+
*/
|
|
1069
|
+
export declare function speedMpsOf(properties: readonly {
|
|
1070
|
+
id?: string;
|
|
1071
|
+
value?: unknown;
|
|
1072
|
+
uom?: string;
|
|
1073
|
+
}[] | null | undefined): number | undefined;
|
|
1038
1074
|
/**
|
|
1039
1075
|
* 이 품목에서 `uom` 으로 가는 계수 — **선언된 것만.** 없으면 `undefined`(추정하지 않는다).
|
|
1040
1076
|
*/
|
|
@@ -1680,6 +1716,8 @@ export interface EquipmentState extends EffectivePeriod {
|
|
|
1680
1716
|
status: string;
|
|
1681
1717
|
taskId?: string;
|
|
1682
1718
|
motion?: EquipmentMotion;
|
|
1719
|
+
/** Where guided equipment is on the route network (`guided` capability, `travel.ts`). Absent for equipment that is not guided. */
|
|
1720
|
+
travel?: TravelState;
|
|
1683
1721
|
oee?: OeeMetrics;
|
|
1684
1722
|
held?: boolean;
|
|
1685
1723
|
/**
|
|
@@ -2958,6 +2996,10 @@ export declare const OP_EVENT: {
|
|
|
2958
2996
|
* 두 채널을 합치지 않는 이유는 에너지 쪽이 **구간에 누적되는 표본**이라 처리가 다르기 때문이다.
|
|
2959
2997
|
*/
|
|
2960
2998
|
readonly observation: "location.measured";
|
|
2999
|
+
readonly travelPassed: "equipment.passed";
|
|
3000
|
+
readonly travelReservation: "equipment.reservation";
|
|
3001
|
+
readonly travelLink: "equipment.link";
|
|
3002
|
+
readonly travelPose: "equipment.pose";
|
|
2961
3003
|
};
|
|
2962
3004
|
/**
|
|
2963
3005
|
* 에너지 트윈의 사건 — **물(物)의 계보가 아니라 스칼라의 시계열.**
|
|
@@ -3768,6 +3810,8 @@ export interface OrderStatusDelta {
|
|
|
3768
3810
|
recipeBasis?: RecipeExecutionBasis;
|
|
3769
3811
|
/** 근거 칸이 빈 까닭(§`BASIS_UNKNOWN`). 근거가 실리면 이 칸은 없다. */
|
|
3770
3812
|
basisUnknown?: BasisUnknown;
|
|
3813
|
+
/** 실패로 닫힌 까닭 — 열린 낱말, 도메인이 소유한다(구내 반송은 `TRANSPORT_FAILURE_REASON`). 2026-12-04, `ORDER_TERMINAL_STATUS` 의 `failed` 와 함께. */
|
|
3814
|
+
reasonCode?: string;
|
|
3771
3815
|
orderId: string;
|
|
3772
3816
|
kind: string;
|
|
3773
3817
|
status: string;
|
|
@@ -3909,6 +3953,20 @@ export interface TwinModelDef {
|
|
|
3909
3953
|
* 물품은 이 트윈의 재고에서 빠진다. 없으면 참조하는 자리가 없다.
|
|
3910
3954
|
*/
|
|
3911
3955
|
referencedLocations?: ReferencedLocation[];
|
|
3956
|
+
/**
|
|
3957
|
+
* **Route network** - the paths guided equipment travels (operato-application ADR-0266 decision 8 ①, `route-network.ts`).
|
|
3958
|
+
* The places are locations; these are the edges between them and the ordered edge lists some equipment must follow.
|
|
3959
|
+
* No coordinates: geometry is the board's. `routeNetwork` names the published edition both simulation and live control read.
|
|
3960
|
+
*/
|
|
3961
|
+
connections?: LocationConnection[];
|
|
3962
|
+
fixedRoutes?: FixedRoute[];
|
|
3963
|
+
routeNetwork?: RouteNetworkEdition;
|
|
3964
|
+
/**
|
|
3965
|
+
* **Transport policy** - the dispatch, routing, traffic, charging and alternate-destination rules transport control and its
|
|
3966
|
+
* simulation decide by (ADR-0266 decision 8 ⑤, `transport-policy.ts`). Versioned; a declaration of the twin, like
|
|
3967
|
+
* `allocationPolicy`, not an axis.
|
|
3968
|
+
*/
|
|
3969
|
+
transportPolicy?: TransportPolicySet;
|
|
3912
3970
|
/**
|
|
3913
3971
|
* 설비 — ISA-95 `Equipment`. mtbfMs/mttrMs 지정 시 확률적 고장 모델 참여(OEE Availability 손실).
|
|
3914
3972
|
* 미지정=고장 없음. `window` 지정 시 그 시간대에만 일한다(교대·가동시간) — 미지정이면 24시간 가용.
|
package/dist/contract.js
CHANGED
|
@@ -59,15 +59,21 @@ export const TASK_STATUS = ['created', 'assigned', 'in-progress', 'completed', '
|
|
|
59
59
|
* 「끝났나」는 이 함수로 묻는다 — `status === 'completed'` 로 물으면 취소된 작업이 살아 있는 것으로 읽힌다.
|
|
60
60
|
* 성과 폴드는 취소를 완료로 세지 않는다(`completedMs` 가 없다 — 실적은 `aborted`).
|
|
61
61
|
*
|
|
62
|
-
* `ORDER_TERMINAL_STATUS` 와
|
|
62
|
+
* `ORDER_TERMINAL_STATUS` 와 묶지 않는다 — 실제로 갈렸다(오더에는 `failed` 가 있다, 2026-12-04) — 오더의 낱말은 도메인 것이고(계약이 닫지 않는다), 작업의 낱말은
|
|
63
63
|
* 위 `TASK_STATUS` 로 닫혀 있다. 한쪽이 늘 때 다른 쪽이 따라 늘면 안 된다.
|
|
64
64
|
*/
|
|
65
65
|
export const TASK_TERMINAL_STATUS = ['completed', 'cancelled'];
|
|
66
66
|
export function isTaskTerminal(t) {
|
|
67
67
|
return TASK_TERMINAL_STATUS.includes(String(t?.status ?? ''));
|
|
68
68
|
}
|
|
69
|
-
/**
|
|
70
|
-
|
|
69
|
+
/**
|
|
70
|
+
* 오더가 **종결 상태**로 인정되는 낱말 — 이 밖은 진행 중이다(§`isOrderTerminal`).
|
|
71
|
+
*
|
|
72
|
+
* `failed` 는 2026-12-04 에 들어왔다(operato-application ADR-0266, 구내 반송): 반송 지시는 길이 없거나 장비가 멈춰 **실패로 닫힌다**.
|
|
73
|
+
* 취소(사람이 거둔 것)와 다른 사실이고, 이 낱말이 없으면 실패한 지시가 트윈에서 영영 열린 오더로 남는다. 그 지시의 작업은 작업 낱말이
|
|
74
|
+
* 닫혀 있어 `cancelled` 로 간다 — 실패라는 사실과 그 사유는 오더가 든다.
|
|
75
|
+
*/
|
|
76
|
+
export const ORDER_TERMINAL_STATUS = ['completed', 'cancelled', 'failed'];
|
|
71
77
|
/**
|
|
72
78
|
* 이 오더는 **끝났나** — 판정을 한 곳에 둔다(`locationStatusOf`·`dueStatusOf` 와 같은 규율).
|
|
73
79
|
*
|
|
@@ -708,6 +714,42 @@ export const MATERIAL_PROPERTY = {
|
|
|
708
714
|
/** 기준 단위 하나당 이 단위의 양. `uom` 이 대상 단위. */
|
|
709
715
|
perBaseUnit: 'perBaseUnit'
|
|
710
716
|
};
|
|
717
|
+
/**
|
|
718
|
+
* **우리가 정한 설비 속성 이름** — 표준(ISA-95 `EquipmentProperty`)은 자리만 정하고 이름을 정하지 않는다(`MATERIAL_PROPERTY` 와 같은 까닭).
|
|
719
|
+
*
|
|
720
|
+
* `speed`: 그 설비가 다니는 빠르기. 값은 수, 단위는 속성의 `uom`(UN/CEFACT 권고 20 — `SPEED_TO_MPS` 의 코드). **단위가 없으면 읽지 않는다** —
|
|
721
|
+
* "3" 이 초속 3 m 인지 시속 3 km 인지 모른다.
|
|
722
|
+
*
|
|
723
|
+
* 왜 계약에 두나(2026-12-05, operato-intralogic design §18 · §24): 이 이름과 단위 표가 트윈 호스트(headless-twin `travel-estimator`)와 반송 관제
|
|
724
|
+
* (operato-intralogic `route-rules`)에 따로 적혀 있었다. 화면이 받아 준 단위를 한쪽이 모르면 그쪽의 이동 시간이 오류 없이 사라진다.
|
|
725
|
+
*/
|
|
726
|
+
export const EQUIPMENT_PROPERTY = {
|
|
727
|
+
/** 설비의 빠르기 — `uom` 이 `SPEED_TO_MPS` 의 코드. */
|
|
728
|
+
speed: 'speed'
|
|
729
|
+
};
|
|
730
|
+
/** UN/CEFACT 권고 20 공통코드 → m/s. 모르는 코드는 바꾸지 않는다(지어내지 않는다). */
|
|
731
|
+
export const SPEED_TO_MPS = {
|
|
732
|
+
/** metre per second */
|
|
733
|
+
MTS: 1,
|
|
734
|
+
/** kilometre per hour */
|
|
735
|
+
KMH: 1000 / 3600,
|
|
736
|
+
/** foot per second */
|
|
737
|
+
'2M': 0.3048,
|
|
738
|
+
/** mile per hour */
|
|
739
|
+
HM: 0.44704
|
|
740
|
+
};
|
|
741
|
+
/**
|
|
742
|
+
* 설비 속성에서 빠르기(m/s) — `EQUIPMENT_PROPERTY.speed` 의 첫 속성. 값이 양수가 아니거나, 단위가 없거나 모르는 코드면 `undefined`
|
|
743
|
+
* (초속인지 시속인지 가정하지 않는다).
|
|
744
|
+
*/
|
|
745
|
+
export function speedMpsOf(properties) {
|
|
746
|
+
const speed = (properties ?? []).find(one => one?.id === EQUIPMENT_PROPERTY.speed);
|
|
747
|
+
if (!speed)
|
|
748
|
+
return undefined;
|
|
749
|
+
const value = typeof speed.value === 'number' ? speed.value : Number(speed.value);
|
|
750
|
+
const factor = speed.uom ? SPEED_TO_MPS[speed.uom] : undefined;
|
|
751
|
+
return Number.isFinite(value) && value > 0 && factor !== undefined ? value * factor : undefined;
|
|
752
|
+
}
|
|
711
753
|
/**
|
|
712
754
|
* 이 품목에서 `uom` 으로 가는 계수 — **선언된 것만.** 없으면 `undefined`(추정하지 않는다).
|
|
713
755
|
*/
|
|
@@ -1271,7 +1313,20 @@ export const OP_EVENT = {
|
|
|
1271
1313
|
* 이름을 `energy.measured` 와 같은 결로 둔다 — 그쪽이 에너지 계량의 도착이고 이쪽이 그 일반형이다.
|
|
1272
1314
|
* 두 채널을 합치지 않는 이유는 에너지 쪽이 **구간에 누적되는 표본**이라 처리가 다르기 때문이다.
|
|
1273
1315
|
*/
|
|
1274
|
-
observation: 'location.measured'
|
|
1316
|
+
observation: 'location.measured',
|
|
1317
|
+
/*
|
|
1318
|
+
* ── Travel of guided equipment (2026-12-03, operato-application ADR-0266 decision 8 ②, `travel.ts`) ────────────────────
|
|
1319
|
+
*
|
|
1320
|
+
* The four facts that carry `EquipmentState.travel` into the journal (state ⊆ events). Sent on change, never per tick.
|
|
1321
|
+
* Payloads: `TravelPassedFact` · `TravelReservationFact` · `TravelLinkFact` · `TravelPoseFact`.
|
|
1322
|
+
*
|
|
1323
|
+
* The transport control product sends them as operational records (`operational-ingest` kinds `travel-passed`,
|
|
1324
|
+
* `travel-reservation`, `travel-link`, `travel-pose`, 2026-12-04); the observed reducer folds them into `EquipmentState.travel`.
|
|
1325
|
+
*/
|
|
1326
|
+
travelPassed: 'equipment.passed',
|
|
1327
|
+
travelReservation: 'equipment.reservation',
|
|
1328
|
+
travelLink: 'equipment.link',
|
|
1329
|
+
travelPose: 'equipment.pose'
|
|
1275
1330
|
};
|
|
1276
1331
|
// ── 에너지(EMS) 사건 — 네 번째 종류의 어휘 ────────────────────────────────
|
|
1277
1332
|
/**
|
package/dist/domain-catalog.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ import type { EquipmentLevel } from './contract.ts';
|
|
|
20
20
|
* ⚠ **복수형이 정본이다.** 이 이름이 `TwinModelDef` 의 키 그대로여야 하고(그 키가 복수다), 어긋나면
|
|
21
21
|
* 저장된 이름과 화면이 부르는 이름이 달라진다 — 그 어긋남은 오류를 내지 않고 **빈 목록**을 돌려준다.
|
|
22
22
|
*/
|
|
23
|
-
export type TwinAxis = 'locations' | 'equipment' | 'persons' | 'assets' | 'materials' | 'materialDefinitions' | 'items' | 'operations' | 'orders' | 'tasks' | 'recipes' | 'routes' | 'productionSpec' | 'testSpecifications' | 'demandWindows' | 'equipmentClasses' | 'personnelClasses' | 'materialClasses' | 'assetClasses';
|
|
23
|
+
export type TwinAxis = 'locations' | 'equipment' | 'persons' | 'assets' | 'materials' | 'materialDefinitions' | 'items' | 'operations' | 'orders' | 'tasks' | 'recipes' | 'routes' | 'productionSpec' | 'testSpecifications' | 'demandWindows' | 'equipmentClasses' | 'personnelClasses' | 'materialClasses' | 'assetClasses' | 'connections' | 'fixedRoutes';
|
|
24
24
|
/**
|
|
25
25
|
* 트윈의 종류 — 한 현실을 비추는 렌즈의 갈래.
|
|
26
26
|
*
|
|
@@ -496,5 +496,12 @@ export declare const axisAppliesTo: (axis: string, system?: string) => boolean;
|
|
|
496
496
|
export declare const levelOfLocationType: (typeKey: string, system?: string) => EquipmentLevel | undefined;
|
|
497
497
|
/** 그 종류의 트윈이 갖는 축들 — 개념 지도·적합성 표가 이 목록으로 그린다. */
|
|
498
498
|
export declare const axesOfSystem: (system?: string) => TwinAxisInfo[];
|
|
499
|
-
/**
|
|
499
|
+
/**
|
|
500
|
+
* 타입 키 → 능력 프로파일(커널 SSOT). 호스트가 라이브 페이로드에 투영, 컴포넌트가 능력을 렌더.
|
|
501
|
+
*
|
|
502
|
+
* The area's own types come first. A key the area does not define is looked up in the intralogistics vocabulary (`ILG_TYPES`):
|
|
503
|
+
* transport crosses areas as a core facet, so an AMR in a warehouse twin and in a plant twin is the same type
|
|
504
|
+
* (operato-application ADR-0266 decision 5, design/plans/transport-execution-wiring.md W1). The contract test keeps the two
|
|
505
|
+
* lists free of shared keys, so the order never changes an answer today.
|
|
506
|
+
*/
|
|
500
507
|
export declare function capabilitiesForType(system: DomainSystem, typeKey: string): CapabilityKey[];
|
package/dist/domain-catalog.js
CHANGED
|
@@ -2,6 +2,7 @@ import { WMS_TYPES } from "./wms-profile.js";
|
|
|
2
2
|
import { YMS_TYPES } from "./yms-profile.js";
|
|
3
3
|
import { MES_TYPES } from "./mes-profile.js";
|
|
4
4
|
import { EMS_TYPES } from "./ems-profile.js";
|
|
5
|
+
import { ILG_TYPES } from "./intralogistics-profile.js";
|
|
5
6
|
const locationKeys = (types) => types.filter(t => t.role === 'location').map(t => t.key);
|
|
6
7
|
export const DOMAIN_CATALOG = {
|
|
7
8
|
// label 은 언어 중립 i18n 키(twin.system.<code>) — 사람 언어는 표현계층이 렌더(L2).
|
|
@@ -231,7 +232,18 @@ export const TWIN_AXES = [
|
|
|
231
232
|
* 선언이 답하게 한다 — 축이 사는 자리(`path`)를 선언하는 것과 같은 이유다.
|
|
232
233
|
*/
|
|
233
234
|
{ axis: 'demandWindows', path: 'energy.closed', idField: 'startMs', label: 'twin.axis.demandWindows', kind: 'instance',
|
|
234
|
-
source: 'state', historical: true, standardClass: {}, systems: ['ems'] }
|
|
235
|
+
source: 'state', historical: true, standardClass: {}, systems: ['ems'] },
|
|
236
|
+
/*
|
|
237
|
+
* ── Route network (2026-12-03, operato-application ADR-0266 decision 8 ①) ──────────────────────────
|
|
238
|
+
*
|
|
239
|
+
* The edges guided equipment travels between locations, and the ordered edge lists some equipment must follow.
|
|
240
|
+
* No standard names them: ISA-95 and EPCIS have no route network, and VDA 5050 is a protocol, not an ontology this
|
|
241
|
+
* catalogue projects to. So `standardClass` stays empty rather than borrowing a near name.
|
|
242
|
+
*
|
|
243
|
+
* An energy twin has no travelling equipment, so both axes are logistics-only (`LOGISTICS`).
|
|
244
|
+
*/
|
|
245
|
+
{ axis: 'connections', path: 'connections', label: 'twin.axis.connections', kind: 'instance', standardClass: {}, systems: LOGISTICS },
|
|
246
|
+
{ axis: 'fixedRoutes', path: 'fixedRoutes', label: 'twin.axis.fixedRoutes', kind: 'spec', standardClass: {}, systems: LOGISTICS }
|
|
235
247
|
];
|
|
236
248
|
/**
|
|
237
249
|
* 화면이 이 관계를 **담아 두어도 되나** — `standing` 만 그렇다.
|
|
@@ -349,7 +361,20 @@ export const TWIN_RELATIONS = [
|
|
|
349
361
|
{ from: 'materialClasses', field: 'testSpecificationIds[]', target: { kind: 'axis', axis: 'testSpecifications' }, via: 'ops.rel.test', optional: true, tense: 'standing' },
|
|
350
362
|
/* 공정이 도는 자리·자원 — 항목이 아니라 **타입**을 가리킨다 */
|
|
351
363
|
{ from: 'operations', field: 'locationType', target: { kind: 'type', role: 'location' }, via: 'ops.rel.at', optional: true, tense: 'standing' },
|
|
352
|
-
{ from: 'operations', field: 'resourceType', target: { kind: 'type', role: 'equipment' }, via: 'ops.rel.by', optional: true, tense: 'standing' }
|
|
364
|
+
{ from: 'operations', field: 'resourceType', target: { kind: 'type', role: 'equipment' }, via: 'ops.rel.by', optional: true, tense: 'standing' },
|
|
365
|
+
/*
|
|
366
|
+
* Route network (ADR-0266). A connection's ends are locations of this lens or referenced ones of another lens
|
|
367
|
+
* (`referencedLocations`), so the target is the either-kind, like `locations.parentId`. Structure inside a published
|
|
368
|
+
* edition has no time of its own - it holds for as long as the edition does - so these are `standing`, like a location's parent.
|
|
369
|
+
*/
|
|
370
|
+
{ from: 'connections', field: 'from', target: { kind: 'axis-or-external', axis: 'locations', entity: 'lens.referencedLocation' }, via: 'ops.rel.from', tense: 'standing' },
|
|
371
|
+
{ from: 'connections', field: 'to', target: { kind: 'axis-or-external', axis: 'locations', entity: 'lens.referencedLocation' }, via: 'ops.rel.to', tense: 'standing' },
|
|
372
|
+
{ from: 'connections', field: 'equipmentClassIds[]', target: { kind: 'axis', axis: 'equipmentClasses' }, via: 'ops.rel.allows', optional: true, tense: 'standing' },
|
|
373
|
+
{ from: 'fixedRoutes', field: 'connectionIds[]', target: { kind: 'axis', axis: 'connections' }, via: 'ops.rel.along', tense: 'standing' },
|
|
374
|
+
{ from: 'fixedRoutes', field: 'equipmentClassIds[]', target: { kind: 'axis', axis: 'equipmentClasses' }, via: 'ops.rel.allows', optional: true, tense: 'standing' },
|
|
375
|
+
/* What a carrier accepts (ADR-0266 decision 8 ③) - a property of the asset class, so standing like the class itself. */
|
|
376
|
+
{ from: 'assetClasses', field: 'accepts.materialDefinitionIds[]', target: { kind: 'axis', axis: 'materialDefinitions' }, via: 'ops.rel.accepts', optional: true, tense: 'standing' },
|
|
377
|
+
{ from: 'assetClasses', field: 'accepts.materialClassIds[]', target: { kind: 'axis', axis: 'materialClasses' }, via: 'ops.rel.accepts', optional: true, tense: 'standing' }
|
|
353
378
|
];
|
|
354
379
|
/**
|
|
355
380
|
* 오늘 **실제로 짝이 서는 것**만 선언한다. 그럴듯한 속성을 미리 적어 두면 화면이 빈칸을 줄줄이
|
|
@@ -466,7 +491,14 @@ export const levelOfLocationType = (typeKey, system) => {
|
|
|
466
491
|
};
|
|
467
492
|
/** 그 종류의 트윈이 갖는 축들 — 개념 지도·적합성 표가 이 목록으로 그린다. */
|
|
468
493
|
export const axesOfSystem = (system) => TWIN_AXES.filter(a => axisAppliesTo(a.axis, system));
|
|
469
|
-
/**
|
|
494
|
+
/**
|
|
495
|
+
* 타입 키 → 능력 프로파일(커널 SSOT). 호스트가 라이브 페이로드에 투영, 컴포넌트가 능력을 렌더.
|
|
496
|
+
*
|
|
497
|
+
* The area's own types come first. A key the area does not define is looked up in the intralogistics vocabulary (`ILG_TYPES`):
|
|
498
|
+
* transport crosses areas as a core facet, so an AMR in a warehouse twin and in a plant twin is the same type
|
|
499
|
+
* (operato-application ADR-0266 decision 5, design/plans/transport-execution-wiring.md W1). The contract test keeps the two
|
|
500
|
+
* lists free of shared keys, so the order never changes an answer today.
|
|
501
|
+
*/
|
|
470
502
|
export function capabilitiesForType(system, typeKey) {
|
|
471
|
-
return DOMAIN_CATALOG[system]?.types.find(t => t.key === typeKey)?.capabilities ?? [];
|
|
503
|
+
return DOMAIN_CATALOG[system]?.types.find(t => t.key === typeKey)?.capabilities ?? ILG_TYPES.find(t => t.key === typeKey)?.capabilities ?? [];
|
|
472
504
|
}
|
package/dist/energy-ingest.js
CHANGED
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
* 값(`kW`)이 없는 표본은 **거부하지 않는다**: 계량기가 살아 있다는 사실 자체가 관측이고, 커널이
|
|
22
22
|
* 「받았지만 부하를 못 읽었다」를 구별해 낸다(`observedAbsence: 'no-load-samples'`).
|
|
23
23
|
*/
|
|
24
|
+
import { isTravelRecord } from "./operational-ingest.js";
|
|
24
25
|
import { ENERGY_EVENT, OBSERVATION_BASIS } from "./contract.js";
|
|
25
26
|
/** 이 레코드가 에너지 표본인가 — 라우팅 판정을 한 곳에 둔다(소비처가 각자 짐작하지 않게). */
|
|
26
27
|
export function isEnergyRecord(record) {
|
|
@@ -123,7 +124,9 @@ export function isEnergyEquipmentRecord(record) {
|
|
|
123
124
|
r.epc === undefined &&
|
|
124
125
|
r.meterId === undefined &&
|
|
125
126
|
/* 적산을 실었으면 발전이다 — 이 문의 값은 상태이고, 적산은 자기 문이 있다. */
|
|
126
|
-
r.kWh === undefined
|
|
127
|
+
r.kWh === undefined &&
|
|
128
|
+
/* 운행 사실(지난 자리 · 잡은 구간 · 통신 · 위치)도 `equipmentId` 를 싣는다 — 그것은 운영 문의 것이다(2026-12-04). */
|
|
129
|
+
!isTravelRecord(r));
|
|
127
130
|
}
|
|
128
131
|
/**
|
|
129
132
|
* 설비 에너지 레코드 → 봉투. 계량과 같은 규율이다: 지어낼 수 없는 것이 빠지면 받지 않고, 받지 않은 것은
|
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,11 @@ export * from './epcis.ts';
|
|
|
10
10
|
export * from './gs1.ts';
|
|
11
11
|
export * from './order-fold.ts';
|
|
12
12
|
export * from './referenced-location.ts';
|
|
13
|
+
export * from './route-network.ts';
|
|
14
|
+
export * from './travel.ts';
|
|
15
|
+
export * from './intralogistics-profile.ts';
|
|
16
|
+
export * from './transport-policy.ts';
|
|
17
|
+
export * from './asset-acceptance.ts';
|
|
13
18
|
export * from './face2-adapter.ts';
|
|
14
19
|
export * from './iso-duration.ts';
|
|
15
20
|
export * from './master-data.ts';
|
package/dist/index.js
CHANGED
|
@@ -31,6 +31,11 @@ export * from "./epcis.js";
|
|
|
31
31
|
export * from "./gs1.js";
|
|
32
32
|
export * from "./order-fold.js";
|
|
33
33
|
export * from "./referenced-location.js";
|
|
34
|
+
export * from "./route-network.js";
|
|
35
|
+
export * from "./travel.js";
|
|
36
|
+
export * from "./intralogistics-profile.js";
|
|
37
|
+
export * from "./transport-policy.js";
|
|
38
|
+
export * from "./asset-acceptance.js";
|
|
34
39
|
export * from "./face2-adapter.js";
|
|
35
40
|
export * from "./iso-duration.js";
|
|
36
41
|
export * from "./master-data.js";
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import type { TwinTypeInfo } from './domain-catalog.ts';
|
|
2
|
+
/**
|
|
3
|
+
* CBV steps for a carrier moving between ports. All three are CBV's own (ref.gs1.org/cbv) - checked by the CBV bizStep test.
|
|
4
|
+
*
|
|
5
|
+
* The transport control product speaks only of the carrier (GRAI). Stock moving in or out is the warehouse's and the plant's to say
|
|
6
|
+
* (ADR-0266 decision 9) - items in the carrier follow through `carriedBy`.
|
|
7
|
+
*/
|
|
8
|
+
export declare const ILG_BIZSTEP: {
|
|
9
|
+
/** The carrier left a port. */
|
|
10
|
+
readonly departing: "urn:epcglobal:cbv:bizstep:departing";
|
|
11
|
+
/** The carrier reached a port. */
|
|
12
|
+
readonly arriving: "urn:epcglobal:cbv:bizstep:arriving";
|
|
13
|
+
/** The carrier is on its way. */
|
|
14
|
+
readonly transporting: "urn:epcglobal:cbv:bizstep:transporting";
|
|
15
|
+
};
|
|
16
|
+
/** Location types of the route network. */
|
|
17
|
+
export declare const ILG_LOCATION_TYPES: readonly ["waypoint", "port", "charger", "parking"];
|
|
18
|
+
export type IlgLocationType = (typeof ILG_LOCATION_TYPES)[number];
|
|
19
|
+
export declare const ILG_TYPES: TwinTypeInfo[];
|
|
20
|
+
/** This list's entry for a type key, or `undefined`. */
|
|
21
|
+
export declare function intralogisticsTypeOf(key: string): TwinTypeInfo | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Whether equipment of this type travels the route network under transport control (`guided`). The app and the kernel read the
|
|
24
|
+
* same answer from the vocabulary.
|
|
25
|
+
*/
|
|
26
|
+
export declare function isGuidedType(key: string): boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Equipment property ids transport simulation reads (`ResourceProperty.id` on equipment or its class). The standards name no such
|
|
29
|
+
* parameters, so they are named here, once - like `OP_PARAM` - and the fact that we named them is not hidden
|
|
30
|
+
* (design/plans/transport-execution-wiring.md W2). Each is a percentage of full charge, so its unit is UN/CEFACT `P1` (percent);
|
|
31
|
+
* a value without that unit is not read - a physical quantity without a unit cannot be used.
|
|
32
|
+
*
|
|
33
|
+
* Absent properties mean the battery is not modelled for that machine: charge stays unknown rather than starting at a made-up
|
|
34
|
+
* level or draining at a made-up rate.
|
|
35
|
+
*/
|
|
36
|
+
export declare const ILG_EQUIPMENT_PROPERTY: {
|
|
37
|
+
/** State of charge when the simulation starts, percent (`P1`). */
|
|
38
|
+
readonly charge: "charge";
|
|
39
|
+
/** Charge used per metre travelled, percentage points (`P1`). */
|
|
40
|
+
readonly chargeUsePerMetre: "chargeUsePerMetre";
|
|
41
|
+
/** Charge gained per minute on a charger, percentage points (`P1`). */
|
|
42
|
+
readonly chargeGainPerMinute: "chargeGainPerMinute";
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Equipment property ids that name a machine to its robot link (operato-application ADR-0266 decision 10, operato-intralogic design §14,
|
|
46
|
+
* 2026-12-04). VDA 5050 addresses a vehicle by manufacturer and serial number - its topics are
|
|
47
|
+
* `<interface>/<majorVersion>/<manufacturer>/<serialNumber>/<topic>` - and these are the two values, as text, without a unit.
|
|
48
|
+
* A machine without both is outside the robot link: people report its travel by hand.
|
|
49
|
+
*/
|
|
50
|
+
export declare const ILG_ROBOT_IDENTITY_PROPERTY: {
|
|
51
|
+
readonly manufacturer: "manufacturer";
|
|
52
|
+
readonly serialNumber: "serialNumber";
|
|
53
|
+
};
|
|
54
|
+
/** UN/CEFACT common code for percent - the unit of every `ILG_EQUIPMENT_PROPERTY`. */
|
|
55
|
+
export declare const PERCENT_UOM = "P1";
|
|
56
|
+
/** A transport command (MCS) - `OrderState.kind`. */
|
|
57
|
+
export declare const ILG_ORDER_KIND: {
|
|
58
|
+
readonly transport: "transport";
|
|
59
|
+
};
|
|
60
|
+
export type IlgOrderKind = (typeof ILG_ORDER_KIND)[keyof typeof ILG_ORDER_KIND];
|
|
61
|
+
/**
|
|
62
|
+
* Transport jobs (MCS) - `TaskState.kind`.
|
|
63
|
+
*
|
|
64
|
+
* · `transport-leg` - one leg, port to port. A command can split into several legs (a stop on the way, an alternate destination).
|
|
65
|
+
* · `charge` - occupies a charger. Charging takes a place, so it is a task.
|
|
66
|
+
* · `park` - to a parking spot.
|
|
67
|
+
*/
|
|
68
|
+
export declare const ILG_TASK_KIND: {
|
|
69
|
+
readonly leg: "transport-leg";
|
|
70
|
+
readonly charge: "charge";
|
|
71
|
+
readonly park: "park";
|
|
72
|
+
};
|
|
73
|
+
export type IlgTaskKind = (typeof ILG_TASK_KIND)[keyof typeof ILG_TASK_KIND];
|
|
74
|
+
/**
|
|
75
|
+
* Why a transport command failed. Closed: a reason the receiver does not know cannot be shown or counted. Values are refusal codes
|
|
76
|
+
* (kebab-case); wording is the presentation layer's.
|
|
77
|
+
*/
|
|
78
|
+
export declare const TRANSPORT_FAILURE_REASON: readonly ["no-route", "destination-unavailable", "carrier-not-found", "carrier-mismatch", "cancelled-by-source", "equipment-fault"];
|
|
79
|
+
export type TransportFailureReason = (typeof TRANSPORT_FAILURE_REASON)[number];
|
|
80
|
+
export declare function isTransportFailureReason(v: unknown): v is TransportFailureReason;
|
|
81
|
+
/**
|
|
82
|
+
* Operational attention kinds the transport control product raises - `<product>.<code>` (`operational-attention.ts`).
|
|
83
|
+
* Keys and values only; no sentences (the kernel's rule for attentions).
|
|
84
|
+
*/
|
|
85
|
+
export declare const ILG_ATTENTION_KIND: {
|
|
86
|
+
readonly deadlock: "intralogic.traffic-deadlock";
|
|
87
|
+
readonly blocked: "intralogic.traffic-blocked";
|
|
88
|
+
readonly lowCharge: "intralogic.low-charge";
|
|
89
|
+
readonly linkLost: "intralogic.link-lost";
|
|
90
|
+
readonly noRoute: "intralogic.no-route";
|
|
91
|
+
readonly rerouted: "intralogic.rerouted";
|
|
92
|
+
readonly carrierUnidentified: "intralogic.carrier-unidentified";
|
|
93
|
+
readonly carrierDuplicate: "intralogic.carrier-duplicate";
|
|
94
|
+
};
|
|
95
|
+
export type IlgAttentionKind = (typeof ILG_ATTENTION_KIND)[keyof typeof ILG_ATTENTION_KIND];
|
|
96
|
+
/**
|
|
97
|
+
* What a transport command carries beyond the common order fields.
|
|
98
|
+
*
|
|
99
|
+
* `sourceRef` is the upper system's own reference - a warehouse task id, a material move's `moveId`, a production order id. It is
|
|
100
|
+
* another product's id, so it is not declared as a relation into an axis.
|
|
101
|
+
*/
|
|
102
|
+
export interface TransportCommandAttributes {
|
|
103
|
+
/** `assets.id` of the carrier to move. */
|
|
104
|
+
carrierId: string;
|
|
105
|
+
from: string;
|
|
106
|
+
to: string;
|
|
107
|
+
/** Larger first. Absent = the policy's default. */
|
|
108
|
+
priority?: number;
|
|
109
|
+
dueAt?: string;
|
|
110
|
+
sourceRef?: {
|
|
111
|
+
system: string;
|
|
112
|
+
id: string;
|
|
113
|
+
};
|
|
114
|
+
}
|