Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Consolidated discussion of syntax and semantics for constraints
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Timothy Lethbridge  
View profile  
 More options Mar 27 2012, 11:54 am
From: Timothy Lethbridge <t...@eecs.uottawa.ca>
Date: Tue, 27 Mar 2012 11:54:51 -0400 (EDT)
Local: Tues, Mar 27 2012 11:54 am
Subject: Consolidated discussion of syntax and semantics for constraints

Hi,

I have consolidated the recent discussion on constratints into the wiki
page

http://code.google.com/p/umple/wiki/OCLConstraints

Luna should be able to start with the testcases and grammar at least.

- Tim

Timothy C. Lethbridge, PhD, P.Eng., I.S.P., CSDP
Professor of Software Engineering and Computer Science
/ Professeur Titulaire de gᅵnie logiciel et d'informatique
Facultᅵ de genie / Faculty of Engineering
University of Ottawa / Universitᅵ d'Ottawa
Tel: 613-562-5800x6685   Fax: 613-562-5664    Mobile: 613-252-1850
http://www.eecs.uottawa.ca/~tcl


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Forward  
View profile  
 More options Mar 27 2012, 12:09 pm
From: Andrew Forward <aforw...@gmail.com>
Date: Tue, 27 Mar 2012 12:09:30 -0400
Local: Tues, Mar 27 2012 12:09 pm
Subject: Re: [Umple Dev] Consolidated discussion of syntax and semantics for constraints

To confirm, the following two constraints are equivalent

[a > 0] [a < 3000][a > 0 && a < 3000]

For clarify, I think we should either remote the "minimumAge" attribute, or
use it below in age > 10 (and make it age > minimumAge).  Finally, I would
make the less than (<) a less or equal (<=) and and the (>) a (>=) to avoid
semantic confusion (i.e. the minimum voting age is 18, so the contraint
would be [a >=  18]

class Student {

    Integer age;
    immutable Integer minimumAge = 16;

    immutable Integer maximumAge = 120;

    Integer studyYear;
    Boolean isMature;

    [minAge: age > 10]

    [maxAge: age < maximumAge]

}

On Tue, Mar 27, 2012 at 11:54 AM, Timothy Lethbridge <t...@eecs.uottawa.ca>wrote:

--
aforward

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Timothy Lethbridge  
View profile  
 More options Mar 27 2012, 1:10 pm
From: Timothy Lethbridge <t...@eecs.uottawa.ca>
Date: Tue, 27 Mar 2012 13:10:10 -0400 (EDT)
Local: Tues, Mar 27 2012 1:10 pm
Subject: Re: [Umple Dev] Consolidated discussion of syntax and semantics for constraints

Fixed

- Tim

Timothy C. Lethbridge, PhD, P.Eng., I.S.P., CSDP
Professor of Software Engineering and Computer Science
/ Professeur Titulaire de g�nie logiciel et d'informatique
Facult� de genie / Faculty of Engineering
University of Ottawa / Universit� d'Ottawa
Tel: 613-562-5800x6685   Fax: 613-562-5664    Mobile: 613-252-1850
http://www.eecs.uottawa.ca/~tcl

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »