//------------------------------------------------------------------------------- // This package was automatically generated from EXPRESS (ISO STEP 10303 part11) // by a java generator build with the meta CASE tool Platypus // (alain.plantec@univ-brest.fr) // // Please, be aware that any hand-made updating of this file can be lost!!. //------------------------------------------------------------------------------- package CheddarBridge; import java.util.*; import step.core.*; public class Time_Unit_Event extends step.core.StepCoreObject { private static String EntityName = "TIME_UNIT_EVENT"; private Time_Unit_Event_Type ptype_; private Time_Unit_Event_Union union_; public static String EntityName() { return EntityName; } public String entityName() { return EntityName(); } public boolean isInstanceOf(String entName) { return entName.equals(EntityName); } public boolean isKindOf(String entName) { return entName.equals(EntityName) ? true : super.isKindOf(entName); } public void initializeExplicitAttributes() { super.initializeExplicitAttributes(); ptype_ = Time_Unit_Event_Type.Start_Of_Task_Capacity; union_ = null; } public Time_Unit_Event () { initializeExplicitAttributes(); } public Time_Unit_Event (step.core.StepCoreRepository _repo) { super(_repo); initializeExplicitAttributes(); } public void setPtype ( Time_Unit_Event_Type _v ) { ptype_ = _v; } public Time_Unit_Event_Type getPtype() { return ptype_; } public void setUnion ( Time_Unit_Event_Union _v ) { union_ = _v; } public Time_Unit_Event_Union getUnion() { return union_; } public void accept(CheddarBridge_AbstractVisitor visitor ) { visitor.accept((Time_Unit_Event) this); } public step.core.StepCoreObjectReaderWriter readerWriter() { return new Time_Unit_EventStepRW(); } public boolean replaceReferenceWith(StepCoreObject oldObj, StepCoreObject newObj) { boolean done = false; if (getUnion() == oldObj ) { setUnion((Time_Unit_Event_Union) newObj); done = true; } if (super.replaceReferenceWith(oldObj, newObj)) { done = true; } return done; } }