- Type* addEventType(std::string name);
- Type* addLinkType(std::string name, Type* source, Type* dest);
- Type* addStateType(std::string name);
- Type* addVariableType(std::string name, std::string color);
+ Type* getOrCreateContainerType(std::string name);
+ Type* getOrCreateEventType(std::string name);
+ Type* getOrCreateLinkType(std::string name, Type* source, Type* dest);
+ Type* getOrCreateStateType(std::string name);
+ Type* getOrCreateVariableType(std::string name, std::string color);