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 안에서 위치

Project TokenSpec ★ Recipe · #1 DsSystem ApiDef ApiDef TAG Flow Work Call ApiCall Call₂ Work₂ Write Read Write Read DsSystem Work Call ApiCall ApiDef → DsSystem DsSystem Work Call ApiCall ApiDef → DsSystem ArrowWork ArrowCall Tag-Pair Bus

엔티티 상세 / Entity Detail — 내부 구조 · 동작

🎫 TokenSpec — 토큰 사양 + 다중 토큰 흐름 제품/레시피 정의 · Project.tokenSpecs[] · Source Work 에서 토큰 발생 #1 RecipeA · "Steel Door" Id: 1 WorkId: W_Start.id Fields: thickness=2mm · color=red · weight=8.5kg Source: W_Start (tokenRole=Source) #2 RecipeB · "Aluminum Panel" Id: 2 WorkId: W_Start.id Fields: thickness=1mm · color=silver · weight=3.2kg Source: W_Start (혼류 시 같은 시스템) 런타임: 두 토큰이 같은 Flow 안에서 동시 흐름 (혼류) Lane #1 RecipeA #1 W_Start W_Press W_Inspect W_Pack Sink Lane #2 RecipeB #2 W_Start W_Bend W_Inspect W_Pack Sink Per-Token KPI (sim/Kpi/PerToken) 혼류 환경에서 토큰 유형(origin/spec) 별로 분리 집계 — RecipeA: avg CT 28s, RecipeB: avg CT 18s, 병목 식별 가능 ★ Work.tokenRole = Source(1) · Sink(4) · Ignore(2) · None(0) — Flags 조합 가능 (Source+Sink = 5)

F# 타입 정의 / Type Definition

// F# record (참조 타입). DsEntity 비상속.
type TokenSpec = {
    Id: int
    Label: string
    Fields: Map<string, string>
    WorkId: System.Guid option   // 시드 Source Work
}

필드 / Fields

FieldTypeDefaultAAS fieldDescription
Idint(필수)Id토큰 번호 (Project 내 고유)
Labelstring(필수)Label사람용 표시명 (예: 'Steel Door')
FieldsMap<string, string>Map.emptyFields추가 필드 (레시피/제품 데이터)
WorkIdGuid optionNoneWorkId시드 시작 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