//------------------------------------------------------------------------------- // 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_Union extends step.core.StepCoreObject { private static String EntityName = "TIME_UNIT_EVENT_UNION"; private Start_Of_Task_Capacity_Type start_of_task_capacity_; private End_Of_Task_Capacity_Type end_of_task_capacity_; private Write_To_Buffer_Type write_to_buffer_; private Read_From_Buffer_Type read_from_buffer_; private Context_Switch_Overhead_Type context_switch_overhead_; private Running_Task_Type running_task_; private Task_activation_Type task_activation_; private Allocate_Resource_Type allocate_resource_; private Release_Resource_Type release_resource_; private Wait_For_Resource_Type wait_for_resource_; private Send_Message_Type send_message_; private Receive_Message_Type receive_message_; private Wait_For_Memory_Type wait_for_memory_; private Address_Space_Activation_Type address_space_activation_; 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(); start_of_task_capacity_ = null; end_of_task_capacity_ = null; write_to_buffer_ = null; read_from_buffer_ = null; context_switch_overhead_ = null; running_task_ = null; task_activation_ = null; allocate_resource_ = null; release_resource_ = null; wait_for_resource_ = null; send_message_ = null; receive_message_ = null; wait_for_memory_ = null; address_space_activation_ = null; } public Time_Unit_Event_Union () { initializeExplicitAttributes(); } public Time_Unit_Event_Union (step.core.StepCoreRepository _repo) { super(_repo); initializeExplicitAttributes(); } public void setStartOfTaskCapacity ( Start_Of_Task_Capacity_Type _v ) { start_of_task_capacity_ = _v; } public Start_Of_Task_Capacity_Type getStartOfTaskCapacity() { return start_of_task_capacity_; } public void setEndOfTaskCapacity ( End_Of_Task_Capacity_Type _v ) { end_of_task_capacity_ = _v; } public End_Of_Task_Capacity_Type getEndOfTaskCapacity() { return end_of_task_capacity_; } public void setWriteToBuffer ( Write_To_Buffer_Type _v ) { write_to_buffer_ = _v; } public Write_To_Buffer_Type getWriteToBuffer() { return write_to_buffer_; } public void setReadFromBuffer ( Read_From_Buffer_Type _v ) { read_from_buffer_ = _v; } public Read_From_Buffer_Type getReadFromBuffer() { return read_from_buffer_; } public void setContextSwitchOverhead ( Context_Switch_Overhead_Type _v ) { context_switch_overhead_ = _v; } public Context_Switch_Overhead_Type getContextSwitchOverhead() { return context_switch_overhead_; } public void setRunningTask ( Running_Task_Type _v ) { running_task_ = _v; } public Running_Task_Type getRunningTask() { return running_task_; } public void setTaskActivation ( Task_activation_Type _v ) { task_activation_ = _v; } public Task_activation_Type getTaskActivation() { return task_activation_; } public void setAllocateResource ( Allocate_Resource_Type _v ) { allocate_resource_ = _v; } public Allocate_Resource_Type getAllocateResource() { return allocate_resource_; } public void setReleaseResource ( Release_Resource_Type _v ) { release_resource_ = _v; } public Release_Resource_Type getReleaseResource() { return release_resource_; } public void setWaitForResource ( Wait_For_Resource_Type _v ) { wait_for_resource_ = _v; } public Wait_For_Resource_Type getWaitForResource() { return wait_for_resource_; } public void setSendMessage ( Send_Message_Type _v ) { send_message_ = _v; } public Send_Message_Type getSendMessage() { return send_message_; } public void setReceiveMessage ( Receive_Message_Type _v ) { receive_message_ = _v; } public Receive_Message_Type getReceiveMessage() { return receive_message_; } public void setWaitForMemory ( Wait_For_Memory_Type _v ) { wait_for_memory_ = _v; } public Wait_For_Memory_Type getWaitForMemory() { return wait_for_memory_; } public void setAddressSpaceActivation ( Address_Space_Activation_Type _v ) { address_space_activation_ = _v; } public Address_Space_Activation_Type getAddressSpaceActivation() { return address_space_activation_; } public void accept(CheddarBridge_AbstractVisitor visitor ) { visitor.accept((Time_Unit_Event_Union) this); } public step.core.StepCoreObjectReaderWriter readerWriter() { return new Time_Unit_Event_UnionStepRW(); } public boolean replaceReferenceWith(StepCoreObject oldObj, StepCoreObject newObj) { boolean done = false; if (getStartOfTaskCapacity() == oldObj ) { setStartOfTaskCapacity((Start_Of_Task_Capacity_Type) newObj); done = true; } if (getEndOfTaskCapacity() == oldObj ) { setEndOfTaskCapacity((End_Of_Task_Capacity_Type) newObj); done = true; } if (getWriteToBuffer() == oldObj ) { setWriteToBuffer((Write_To_Buffer_Type) newObj); done = true; } if (getReadFromBuffer() == oldObj ) { setReadFromBuffer((Read_From_Buffer_Type) newObj); done = true; } if (getContextSwitchOverhead() == oldObj ) { setContextSwitchOverhead((Context_Switch_Overhead_Type) newObj); done = true; } if (getRunningTask() == oldObj ) { setRunningTask((Running_Task_Type) newObj); done = true; } if (getTaskActivation() == oldObj ) { setTaskActivation((Task_activation_Type) newObj); done = true; } if (getAllocateResource() == oldObj ) { setAllocateResource((Allocate_Resource_Type) newObj); done = true; } if (getReleaseResource() == oldObj ) { setReleaseResource((Release_Resource_Type) newObj); done = true; } if (getWaitForResource() == oldObj ) { setWaitForResource((Wait_For_Resource_Type) newObj); done = true; } if (getSendMessage() == oldObj ) { setSendMessage((Send_Message_Type) newObj); done = true; } if (getReceiveMessage() == oldObj ) { setReceiveMessage((Receive_Message_Type) newObj); done = true; } if (getWaitForMemory() == oldObj ) { setWaitForMemory((Wait_For_Memory_Type) newObj); done = true; } if (getAddressSpaceActivation() == oldObj ) { setAddressSpaceActivation((Address_Space_Activation_Type) newObj); done = true; } if (super.replaceReferenceWith(oldObj, newObj)) { done = true; } return done; } }