[gme-users] GME Attributes: Sequences/Lists of Strings

Joe Hoffert jhoffert at dre.vanderbilt.edu
Wed Nov 8 12:25:20 CST 2006


Hi, Matt.

 

Thanks for the information. I'd also like to add an OCL constraint that
would use the sequence of strings. I doubt that OCL (either the official
version of GME's version) supports parsing/iteration of a sequence of
strings as you outline below. If it does please let me know.

 

Thanks.

 

-Joe

 

  _____  

From: gme-users-bounces at list.isis.vanderbilt.edu
[mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf Of Matthew J.
Emerson
Sent: Wednesday, November 08, 2006 12:20 PM
To: gme-users
Subject: RE: [gme-users] GME Attributes: Sequences/Lists of Strings

 

If there were a native way to do this, it would be used for specifying
enumeration labels when metamodeling (since each label is a string).

 

The best way to get the functionality you're looking for is to use a string
FieldAttribute with a tokenizing character (newline, semicolon). In a model
interpreter, you can tokenize the string from the attribute into a list.

 

--Matt

 

  _____  

From: gme-users-bounces at list.isis.vanderbilt.edu
[mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf Of Joe H.
Sent: Tuesday, November 07, 2006 3:33 PM
To: gme-users
Subject: [gme-users] GME Attributes: Sequences/Lists of Strings

 

Hello, all.

 

I want to have an attribute on an Atom that is a list or sequence of strings
(as opposed to just having a single string via a FieldAttribute). The length
of the list/sequence is unbounded/unspecified. I don't see a way to do this
and didn't see anything applicable skimming through the GME User's Manual.
Can this be done? If so, how do I do this?

 

Thanks.

 

-Joe

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20061108/72a2a53e/attachment.htm


More information about the gme-users mailing list