-class ess_type {
- public:
- char *id;
- char *name;
- char *color;
-};
-
-class s_type;
-typedef s_type *type_t;
-class s_type : public ess_type {
- public:
- e_entity_types kind;
- s_type *father;
- xbt_dict_t children;
- xbt_dict_t values; //valid for all types except variable and container
- s_type (const char *typeNameBuff, const char *key, const char *color, e_entity_types kind, type_t father);
- static type_t s_type_get_or_null (const char *name, type_t father);
- static type_t s_type_container_new (const char *name, type_t father);
- static type_t s_type_event_new (const char *name, type_t father);
+class Type {
+public:
+ char* id_;
+ char* name_;
+ char* color_;
+
+ e_entity_types kind_;
+ Type* father_;
+ xbt_dict_t children_;
+ xbt_dict_t values_; // valid for all types except variable and container
+ Type(const char* typeNameBuff, const char* key, const char* color, e_entity_types kind, Type* father);
+ static Type* getOrNull(const char* name, Type* father);
+ static Type* containerNew(const char* name, Type* father);
+ static Type* eventNew(const char* name, Type* father);
+ static Type* variableNew(const char* name, const char* color, Type* father);
+ static Type* linkNew(const char* name, Type* father, Type* source, Type* dest);
+ static Type* stateNew(const char* name, Type* father);