Skip to content

Commit

Permalink
Updated for 2022-09 (except for specs).
Browse files Browse the repository at this point in the history
  • Loading branch information
seidewitz committed Oct 21, 2022
1 parent 7d4b2dc commit ebcd3ee
Show file tree
Hide file tree
Showing 117 changed files with 2,607 additions and 772 deletions.
Binary file modified doc/Intro to the SysML v2 Language-Textual Notation.pdf
Binary file not shown.
Binary file modified install/eclipse/org.omg.sysml.site.zip
Binary file not shown.
Binary file modified install/jupyter/README.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion install/jupyter/install.bat
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

@echo off

set /A SYSML_VERSION="0.27.0"
set /A SYSML_VERSION="0.28.1"

echo --- Step 1: Testing Conda installation ---
where conda
Expand Down
2 changes: 1 addition & 1 deletion install/jupyter/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

set -e

SYSML_VERSION="0.27.0"
SYSML_VERSION="0.28.1"

echo "--- Step 1: Testing Conda installation ---"
command -v conda || (echo "Conda is not installed. Please install Conda and re-run." && return 1)
Expand Down
6 changes: 6 additions & 0 deletions kerml/src/examples/Simple Tests/Expressions.kerml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,10 @@ package Expressions {
class C {
count := 0;
}

feature obj1 : C;
feature obj2 : C;

test1 = obj1 === obj2;
test2 = x !== obj2;
}
22 changes: 18 additions & 4 deletions kerml/src/examples/Simple Tests/Filtering.kerml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,32 @@ package Filtering {
level = 2;
}
}
composite feature system : System;
}

package UpperLevelApprovals {
import DesignModel::**;
filter @Annotations::ApprovalAnnotation and
Annotations::ApprovalAnnotation::approved and
filter Annotations::ApprovalAnnotation::approved and
Annotations::ApprovalAnnotation::level > 1;

struct Test :> System;
}

package UpperLevelApprovals1 {
import Annotations::**;
import DesignModel::**[@ApprovalAnnotation and approved and level > 1];
import DesignModel::**[@Structure][approved and level > 1];

struct Test :> System;
}

import KerML::*;
package Meta {
import DesignModel::*;
filter (Element::name == "System" and not Type::isAbstract) or
Feature::isComposite;

struct Test :> System;
feature :> system;
}

}
2 changes: 1 addition & 1 deletion kerml/src/examples/Simple Tests/MetadataTest.kerml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package MetadataTest {
import 'User Defined Extensions'::*;

package 'User Defined Extensions' {
library package 'User Defined Extensions' {

datatype ClassificationLevel :> ScalarValues::Natural;
feature uncl[1] : ClassificationLevel = 0;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package AnalysisTooling {
standard library package AnalysisTooling {
doc
/*
* This package contains definitions for metadata annotations related
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package SampledFunctions {
standard library package SampledFunctions {
doc
/*
* This package provides a library model of discretely sampled mathematical functions.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package StateSpaceRepresentation {
standard library package StateSpaceRepresentation {
doc
/*
* This package provides a model of the foundational state-space system representation,
Expand Down
2 changes: 1 addition & 1 deletion sysml.library/Domain Libraries/Analysis/TradeStudies.sysml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package TradeStudies {
standard library package TradeStudies {
doc
/*
* This package provides a simple framework for defining trade-off study analysis cases.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package CausationConnections {
standard library package CausationConnections {
doc
/*
* This package provides a library model modeling causes, effects, and causation connections
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package CauseAndEffect {
standard library package CauseAndEffect {
doc /* This package provides language-extension metadata for cause-effect modeling. */

import CausationConnections::*;
Expand Down Expand Up @@ -67,7 +67,7 @@ package CauseAndEffect {
* MulticausationMetadata is SemanticMetadata for a Multicausation connection.
*/

ref :>> baseType = multicausations as SysML::Usage;
ref :>> baseType = multicausations meta SysML::Usage;
}

metadata def <causation> CausationSemanticMetadadata :> CausationMetadata, SemanticMetadata {
Expand All @@ -76,6 +76,6 @@ package CauseAndEffect {
* CausationMetadata is SemanticMetadata for a Causation connection.
*/

ref :>> baseType = causations as SysML::Usage;
ref :>> baseType = causations meta SysML::Usage;
}
}
2 changes: 1 addition & 1 deletion sysml.library/Domain Libraries/Geometry/ShapeItems.sysml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ShapeItems {
standard library package ShapeItems {
doc
/*
* This package provides a model of items that represent basic geometric shapes.
Expand Down
2 changes: 1 addition & 1 deletion sysml.library/Domain Libraries/Geometry/SpatialItems.sysml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package SpatialItems {
standard library package SpatialItems {
doc
/*
* This package models physical items that have a spatial extent and act as a spatial frame of reference
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ImageMetadata {
standard library package ImageMetadata {
doc
/*
* This package provides attributive data and metadata to allow a model element to be
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ModelingMetadata {
standard library package ModelingMetadata {
doc
/*
* This package contains definitions of metadata generally useful for annotating models.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ParametersOfInterestMetadata {
standard library package ParametersOfInterestMetadata {
doc
/*
* This package contains definitions of metadata to identify key parameters of interest,
Expand All @@ -23,7 +23,7 @@ package ParametersOfInterestMetadata {
*/

:>> annotatedElement : SysML::Usage;
:>> baseType = measuresOfEffectiveness as SysML::Usage;
:>> baseType = measuresOfEffectiveness meta SysML::Usage;
}

metadata def <mop> MeasureOfPerformance :> SemanticMetadata {
Expand All @@ -34,6 +34,6 @@ package ParametersOfInterestMetadata {
*/

:>> annotatedElement : SysML::Usage;
:>> baseType = measuresOfPerformance as SysML::Usage;
:>> baseType = measuresOfPerformance meta SysML::Usage;
}
}
2 changes: 1 addition & 1 deletion sysml.library/Domain Libraries/Metadata/RiskMetadata.sysml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package RiskMetadata {
standard library package RiskMetadata {
doc
/*
* This package defines metadata for annotating model elements with assessments of risk.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ISQ {
standard library package ISQ {
doc
/*
* International system of quantities (ISQ), as defined in ISO/IEC 80000
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ISQAcoustics {
standard library package ISQAcoustics {
doc
/*
* International System of Quantities and Units
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ISQAtomicNuclear {
standard library package ISQAtomicNuclear {
doc
/*
* International System of Quantities and Units
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ISQBase {
standard library package ISQBase {
doc
/*
* International System of Quantities and Units
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ISQCharacteristicNumbers {
standard library package ISQCharacteristicNumbers {
doc
/*
* International System of Quantities and Units
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ISQChemistryMolecular {
standard library package ISQChemistryMolecular {
doc
/*
* International System of Quantities and Units
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ISQCondensedMatter {
standard library package ISQCondensedMatter {
doc
/*
* International System of Quantities and Units
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ISQElectromagnetism {
standard library package ISQElectromagnetism {
doc
/*
* International System of Quantities and Units
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ISQInformation {
standard library package ISQInformation {
doc
/*
* International System of Quantities and Units
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ISQLight {
standard library package ISQLight {
doc
/*
* International System of Quantities and Units
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ISQMechanics {
standard library package ISQMechanics {
doc
/*
* International System of Quantities and Units
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ISQSpaceTime {
standard library package ISQSpaceTime {
doc
/*
* International System of Quantities and Units
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ISQThermodynamics {
standard library package ISQThermodynamics {
doc
/*
* International System of Quantities and Units
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package MeasurementReferences {
standard library package MeasurementReferences {
doc
/*
* This package defines the representations for measurement references.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package Quantities {
standard library package Quantities {
doc
/*
* This package defines the root representations for quantities and their values.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package QuantityCalculations {
standard library package QuantityCalculations {
import ScalarValues::*;
import Quantities::ScalarQuantityValue;
import MeasurementReferences::ScalarMeasurementReference;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package SI {
standard library package SI {
doc
/*
* International System of (Measurement) Units -- Système International d'Unités (SI), as defined in ISO/IEC 80000
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package SIPrefixes {
standard library package SIPrefixes {
doc
/*
* Definition of SI unit prefixes as specified in ISO/IEC 80000-1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package Time {
standard library package Time {
doc
/*
* This package specifies concepts to support time-related quantities and metrology, beyond
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package <USCU> USCustomaryUnits {
standard library package <USCU> USCustomaryUnits {
doc
/*
* Measurement unit declarations generated from NIST SP811 Appendix B
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package VectorCalculations {
standard library package VectorCalculations {
private import ScalarValues::Boolean;
private import ScalarValues::Number;
private import Quantities::VectorQuantityValue;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package DerivationConnections {
standard library package DerivationConnections {
doc
/*
* This package provides a library model for derivation connections between requirements.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package RequirementDerivation {
standard library package RequirementDerivation {
doc /* This package provides language-extension metadata for modeling requirement derivation. */

import DerivationConnections::*;
Expand All @@ -12,7 +12,7 @@ package RequirementDerivation {
*/

:> annotatedElement : SysML::Usage;
:>> baseType = derivedRequirements as SysML::Usage;
:>> baseType = derivedRequirements meta SysML::Usage;
}

metadata def <derive> DerivedRequirementMetadata :> SemanticMetadata {
Expand All @@ -23,7 +23,7 @@ package RequirementDerivation {
*/

:> annotatedElement : SysML::Usage;
:>> baseType = originalRequirements as SysML::Usage;
:>> baseType = originalRequirements meta SysML::Usage;
}

metadata def <derivation> DerivationMetadata :> SemanticMetadata {
Expand All @@ -34,6 +34,6 @@ package RequirementDerivation {

:> annotatedElement : SysML::ConnectionDefinition;
:> annotatedElement : SysML::ConnectionUsage;
:>> baseType = derivations as SysML::Usage;
:>> baseType = derivations meta SysML::Usage;
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package Collections {
standard library package Collections {
doc
/*
* This package defines a standard set of Collection data types. Unlike sequences of values
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ScalarValues {
standard library package ScalarValues {
doc
/*
* This package contains a basic set of primitive scalar (non-collection) data types.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package VectorValues {
standard library package VectorValues {
doc
/*
* This package provides a basic model of abstract vectors as well as concrete vectors
Expand Down
Loading

0 comments on commit ebcd3ee

Please sign in to comment.