summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2017-07-25 16:59:20 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2017-07-25 16:59:20 +0200
commitd7647dda4fe577a5a9d8569e0a9e0e28496c0744 (patch)
tree83ddf15908b79b6f47ed8ee06a5e7a1d09c7e96d /instr-to-kodkod/src/VHDLModel.java
parent54bb34b819c314f2274d560bb50cb1afaeedfa84 (diff)
Gets the strings seemingly working.
Diffstat (limited to 'instr-to-kodkod/src/VHDLModel.java')
-rw-r--r--instr-to-kodkod/src/VHDLModel.java25
1 files changed, 25 insertions, 0 deletions
diff --git a/instr-to-kodkod/src/VHDLModel.java b/instr-to-kodkod/src/VHDLModel.java
index 7a9671e..ea024b8 100644
--- a/instr-to-kodkod/src/VHDLModel.java
+++ b/instr-to-kodkod/src/VHDLModel.java
@@ -350,4 +350,29 @@ public class VHDLModel
return t.get_as_relation();
}
}
+
+ public Relation get_atom_as_relation
+ (
+ final String type,
+ final String id
+ )
+ {
+ final VHDLType t;
+
+ t = types.get(type);
+
+ if (t == null)
+ {
+ return null;
+ }
+ else
+ {
+ return t.get_member_as_relation(id);
+ }
+ }
+
+ public VHDLType get_string_type ()
+ {
+ return types.get("string");
+ }
}