Documentation
¶
Overview ¶
ENGMODEL-OWNER-UNIT: FU-SYSML-EXPORTER
ENGMODEL-OWNER-UNIT: FU-SYSML-EXPORTER
ENGMODEL-OWNER-UNIT: FU-SYSML-EXPORTER
Index ¶
- func CompareV2RoundTrip(expected, actual model.SemanticModel) []string
- func GenerateV2Projection(semantic model.SemanticModel) (string, []model.SemanticDiagnostic)
- func ImportV2Project(sourcePath string) (model.SemanticModel, error)
- func ValidateV2Coverage(manifest CoverageManifest) error
- type CoverageAuthority
- type CoverageCheckEvidence
- type CoverageManifest
- type CoverageTotals
- type ExportResult
- type ExtensionCoverage
- type MetaclassCoverage
- type PropertyCoverage
- type RelationshipCoverage
- type RendererCoverage
- type RendererEvidence
- type RoundTripResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareV2RoundTrip ¶
func CompareV2RoundTrip(expected, actual model.SemanticModel) []string
CompareV2RoundTrip reports differences in stable identity, ownership, relationships, expressions, references, and typed extensions.
TRLC-LINKS: REQ-EMG-036, REQ-EMG-037
func GenerateV2Projection ¶
func GenerateV2Projection(semantic model.SemanticModel) (string, []model.SemanticDiagnostic)
GenerateV2Projection renders a pre-built semantic graph. Missing rendering rules are errors; official concepts are never replaced by a generic item declaration.
TRLC-LINKS: REQ-EMG-036 ENGMODEL-LINKS: FU-SYSML-EXPORTER, DO-CANONICAL-SEMANTIC-MODEL, DO-SYSML-V2-MODEL
func ImportV2Project ¶
func ImportV2Project(sourcePath string) (model.SemanticModel, error)
ImportV2Project reconstructs the canonical semantic model from legacy projects that embedded an Engineering Model payload. Native projections do not embed non-SysML canonical data.
TRLC-LINKS: REQ-EMG-036, REQ-EMG-037
func ValidateV2Coverage ¶
func ValidateV2Coverage(manifest CoverageManifest) error
ValidateV2Coverage rejects any gap or stale/tampered evidence.
TRLC-LINKS: REQ-EMG-039, REQ-EMG-040
Types ¶
type CoverageAuthority ¶
type CoverageAuthority struct {
Baseline string `json:"baseline"`
MetamodelAuthority string `json:"metamodelAuthority"`
FormalRelease sysmlmetamodel.FormalRelease `json:"formalRelease"`
SourceManifestSHA256 string `json:"sourceManifestSha256"`
InventorySHA256 string `json:"inventorySha256"`
Sources []sysmlmetamodel.Source `json:"sources"`
}
type CoverageCheckEvidence ¶
type CoverageManifest ¶
type CoverageManifest struct {
SchemaVersion string `json:"schemaVersion"`
Claim string `json:"claim"`
Limitations []string `json:"limitations"`
Authority CoverageAuthority `json:"authority"`
Totals CoverageTotals `json:"totals"`
Metaclasses []MetaclassCoverage `json:"metaclasses"`
Properties []PropertyCoverage `json:"properties"`
Relationships []RelationshipCoverage `json:"relationships"`
Extensions []ExtensionCoverage `json:"engineeringExtensions"`
Checks []CoverageCheckEvidence `json:"checks"`
}
func V2Coverage ¶
func V2Coverage() CoverageManifest
V2Coverage returns metaclass/property-level evidence generated from the pinned official inventory and strict binding.
TRLC-LINKS: REQ-EMG-039, REQ-EMG-040
type CoverageTotals ¶
type CoverageTotals struct {
Metaclasses int `json:"metaclasses"`
OwnedProperties int `json:"ownedProperties"`
EffectiveProperties int `json:"effectiveProperties"`
InheritanceEdges int `json:"inheritanceEdges"`
DerivedProperties int `json:"derivedProperties"`
Relationships int `json:"relationships"`
CoverageMapped int `json:"coverageMapped"`
CoverageDerived int `json:"coverageDerived"`
CoverageUnimplemented int `json:"coverageUnimplemented"`
NativeRendered int `json:"nativeRendered"`
AbstractOrImplicit int `json:"abstractOrImplicit"`
MissingRenderer int `json:"missingRenderer"`
ClassifiedRelationships int `json:"classifiedRelationships"`
}
type ExportResult ¶
type ExportResult struct {
Text string `json:"text"`
Diagnostics []model.SemanticDiagnostic `json:"diagnostics"`
}
ExportResult is a deterministic textual projection plus explicit projection and conformance diagnostics.
func ExportV2Project ¶
func ExportV2Project(architecturePath, projectDir, kparPath, sysandPath string) (ExportResult, error)
ExportV2Project creates a Sysand interchange project and builds its KPAR. Sysand, rather than a custom ZIP writer, owns all normative KPAR packaging.
TRLC-LINKS: REQ-EMG-036, REQ-EMG-037 ENGMODEL-LINKS: FU-SYSML-EXPORTER, IF-CLI-ENGSYSML, DO-SYSML-V2-MODEL, REF-SYSML-V2-TOOLCHAIN
func GenerateV2 ¶
func GenerateV2(bundle model.Bundle) (ExportResult, error)
GenerateV2 validates and projects a Bundle before rendering.
TRLC-LINKS: REQ-EMG-035, REQ-EMG-036 ENGMODEL-LINKS: FU-SYSML-EXPORTER, DO-CANONICAL-SEMANTIC-MODEL, DO-SYSML-V2-MODEL
func GenerateV2FromFile ¶
func GenerateV2FromFile(architecturePath string) (ExportResult, error)
GenerateV2FromFile loads the canonical YAML input and generates a SysML v2 textual projection.
TRLC-LINKS: REQ-EMG-035, REQ-EMG-036, REQ-EMG-037, REQ-EMG-047, REQ-EMG-050 ENGMODEL-LINKS: FU-SYSML-EXPORTER, IF-CLI-ENGSYSML, DO-CANONICAL-SEMANTIC-MODEL, DO-SYSML-V2-MODEL, REF-SYSML-V2-TOOLCHAIN
type ExtensionCoverage ¶
type MetaclassCoverage ¶
type MetaclassCoverage struct {
ID string `json:"id"`
Origin string `json:"origin"`
Abstract bool `json:"abstract"`
Relationship bool `json:"relationship"`
Status string `json:"status"`
RendererClassification string `json:"rendererClassification"`
Syntax string `json:"syntax,omitempty"`
Evidence []string `json:"evidence"`
}
type PropertyCoverage ¶
type RelationshipCoverage ¶
type RendererCoverage ¶
type RendererEvidence ¶
type RoundTripResult ¶
type RoundTripResult struct {
ProjectDir string
KPARPath string
ReopenedDir string
SourcePath string
SourceText string
}
RoundTripResult captures the normative KPAR path and reopened native SysML source used for source-integrity comparison.
func ReopenV2Project ¶
func ReopenV2Project(kparPath, reopenedDir, sysandPath string) (RoundTripResult, error)
ReopenV2Project clones a KPAR with Sysand and returns its native SysML project source.
TRLC-LINKS: REQ-EMG-036, REQ-EMG-037
func VerifyV2RoundTrip ¶
func VerifyV2RoundTrip(architecturePath, kparPath, reopenedDir, sysandPath string) (RoundTripResult, error)
VerifyV2RoundTrip compares the reopened KPAR source to a fresh native SysML projection of the authored Engineering Model.
TRLC-LINKS: REQ-EMG-036, REQ-EMG-037