From f1dfb1eb04a705521238dba64e09bb9ecdea794f Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Tue, 29 Aug 2017 00:05:39 +0200 Subject: Starting to get an idea of how it's going to work. --- instance-calculator/src/VHDLArchitecture.java | 30 ++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) (limited to 'instance-calculator/src/VHDLArchitecture.java') diff --git a/instance-calculator/src/VHDLArchitecture.java b/instance-calculator/src/VHDLArchitecture.java index ffd678c..2834ab3 100644 --- a/instance-calculator/src/VHDLArchitecture.java +++ b/instance-calculator/src/VHDLArchitecture.java @@ -9,6 +9,33 @@ public class VHDLArchitecture FROM_ID = new HashMap(); } + public static void add_element (final String id) + { + if (!FROM_ID.containsKey(id)) + { + FROM_ID.put(id, new VHDLArchitecture(id)); + } + } + + public static boolean handle_belongs_to_architecture + ( + final String unknown_id, + final String arch_id + ) + { + return false; + } + + public static boolean handle_is_architecture_of + ( + final String arch_id, + final String e_id + ) + { + return false; + } + +/******************************************************************************/ private final List processes; private final List components; private final String id; @@ -17,6 +44,7 @@ public class VHDLArchitecture { this.id = id; - ports = new ArrayList(); + processes = new ArrayList(); + components = new ArrayList(); } } -- cgit v1.2.3-70-g09d2