TokenSpec Entity
Token specification · 토큰 사양 · Token-Spezifikation
IRI (semanticId)
https://dualsoftdev.github.io/aas-semantics/entity/TokenSpec/1/0
설명 / Description / Beschreibung
한국어
토큰 유형 사양 (레시피/제품) — 토큰 번호를 실데이터에 매핑.
English
Specification of a token type (recipe/product) — maps a token number to data.
Deutsch
Spezifikation eines Token-Typs (Rezept/Produkt) — bildet Token-Nummer auf Daten ab.
다이어그램 / Diagram
전체 구조 / Overview — 이 엔티티가 DS 안에서 위치
엔티티 상세 / Entity Detail — 내부 구조 · 동작
F# 타입 정의 / Type Definition
// F# record (참조 타입). DsEntity 비상속.
type TokenSpec = {
Id: int
Label: string
Fields: Map<string, string>
WorkId: System.Guid option // 시드 Source Work
}
필드 / Fields
| Field | Type | Default | AAS field | Description |
|---|
| Id | int | (필수) | Id | 토큰 번호 (Project 내 고유) |
| Label | string | (필수) | Label | 사람용 표시명 (예: 'Steel Door') |
| Fields | Map<string, string> | Map.empty | Fields | 추가 필드 (레시피/제품 데이터) |
| WorkId | Guid option | None | WorkId | 시드 시작 Work Id |
관계 / Relationships
예제 (F#) / Example
let recipeA = {
Id = 1
Label = "Steel Door"
Fields = Map.ofList [ "thickness", "2mm"; "color", "red" ]
WorkId = Some pickup.Id
}
project.TokenSpecs.Add(recipeA)
AAS 매핑 / AAS Mapping
TokenSpec 은 SequenceModel/Project/TokenSpecs SML 안 SMC 로 export.
원본 코드 / Source files
AAS ConceptDescription 메타
idShort: TokenSpec
dataType: STRING