//------------------------------------------------------------------------------- // 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 Allocate_Resource_Type extends step.core.StepCoreObject { private static String EntityName = "ALLOCATE_RESOURCE_TYPE"; private Generic_Task allocate_task_; private Generic_Resource allocate_resource_; 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(); allocate_task_ = null; allocate_resource_ = null; } public Allocate_Resource_Type () { initializeExplicitAttributes(); } public Allocate_Resource_Type (step.core.StepCoreRepository _repo) { super(_repo); initializeExplicitAttributes(); } public void setAllocateTask ( Generic_Task _v ) { allocate_task_ = _v; } public Generic_Task getAllocateTask() { return allocate_task_; } public void setAllocateResource ( Generic_Resource _v ) { allocate_resource_ = _v; } public Generic_Resource getAllocateResource() { return allocate_resource_; } public void accept(CheddarBridge_AbstractVisitor visitor ) { visitor.accept((Allocate_Resource_Type) this); } public step.core.StepCoreObjectReaderWriter readerWriter() { return new Allocate_Resource_TypeStepRW(); } public boolean replaceReferenceWith(StepCoreObject oldObj, StepCoreObject newObj) { boolean done = false; if (getAllocateTask() == oldObj ) { setAllocateTask((Generic_Task) newObj); done = true; } if (getAllocateResource() == oldObj ) { setAllocateResource((Generic_Resource) newObj); done = true; } if (super.replaceReferenceWith(oldObj, newObj)) { done = true; } return done; } }