Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CONSTRAINTS OF after the definition of an association #41

Open
ltzur opened this issue Sep 29, 2020 · 0 comments
Open

CONSTRAINTS OF after the definition of an association #41

ltzur opened this issue Sep 29, 2020 · 0 comments

Comments

@ltzur
Copy link

ltzur commented Sep 29, 2020

Ausgangslage ist folgendes Modell mit zwei Klassen und zwei Assoziationen:

CLASS Organisation =
  Name : MANDATORY Text*100;
END Organisation;

CLASS RuledArea (ABSTRACT) =
  Geometry : MANDATORY GeometryCHLV95_V1.MultiSurface;
  Name : Text*100;
END RuledArea;

ASSOCIATION RuledAreaOrganisationOperatorAssoc =
  Operator -<> {0..1} Organisation;
  RuledArea1 -- {0..*} RuledArea;
END RuledAreaOrganisationOperatorAssoc;

ASSOCIATION RuledAreaOrganisationOwnerAssoc =
  Owner -<> {0..1} Organisation;
  RuledArea2 -- {0..*} RuledArea;
END RuledAreaOrganisationOwnerAssoc;

Nun soll nach den beiden Assoziationen folgende Konsistenzbedingung erfasst werden:

CONSTRAINTS OF RuledArea  =
  MANDATORY CONSTRAINT DEFINED (Operator) OR DEFINED (Owner);
END;

Dies ist im umleditor im Moment nicht möglich. Wenn sie bei der Klasse RuledArea erfasst wird, reklamiert der Compiler, weil er die beiden Rollennamen der Assoziationen noch nicht kennt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant