Skip to content

Commit ebdc9b1

Browse files
committed
PlanarCurve fixes per review. Objects, forgot b4.
1 parent 2d6a058 commit ebdc9b1

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

sysml.library/Domain Libraries/Geometry/ShapeItems.sysml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ package ShapeItems {
1414
private import ControlFunctions::'?';
1515

1616
/**
17-
* A PlanarCurve is a flat Surface with a given area.
17+
* A PlanarCurve is a Curve with a given length embeddable in a plane.
1818
*/
1919
item def PlanarCurve :> Curve {
20-
attribute :>> area [1] ;
20+
attribute :>> length [1] ;
2121

2222
constraint { notEmpty(outerSpaceDimension) & outerSpaceDimension <= 2 }
2323
}

sysml.library/Kernel Library/Objects.kerml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ package Objects {
1616
private import SequenceFunctions::notEmpty;
1717
private import SequenceFunctions::union;
1818
private import CollectionFunctions::contains;
19-
private import ScalarValues::Integer;
19+
private import ScalarValues::Integer;
20+
private import ScalarValues::Natural;
2021

2122
/**
2223
* Object is the most general class of structural occurrences that may change over time.
@@ -81,9 +82,9 @@ package Objects {
8182
struct all Surface specializes Object {
8283
feature redefines innerSpaceDimension = 2;
8384
/* The number of "holes" in this Surface, assuming it isClosed. */
84-
feature genus : Integer[0..1] default 0;
85+
feature genus : Natural[0..1] default 0;
8586

86-
inv { notEmpty(genus) implies (isClosed & genus >= 0) }
87+
inv { notEmpty(genus) implies isClosed }
8788
}
8889

8990
/*

0 commit comments

Comments
 (0)