Initialise Map in OCL [message #1797996] |
Fri, 09 November 2018 11:40  |
Eclipse User |
|
|
|
Hello,
I need to store some values in a Map where the keys and values are Tuples of Strings. I currently have my Pseudomap declared like this:
def:
rel : Set(
Tuple(
k : Tuple(rst : String, ct : String),
v : Tuple(rt1 : String, rt2 : String)
)
) =
It is working, but I rather have a real Map.
In the OCL standard library, it says, that a Map(K, V) type is supported, but I cannot seem to make it work and i cannot find an example of how to use it. So could someone give me an example of how to use the Map type in OCL?
Regards
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03796 seconds