//------------------------------------------------------------------------------- // 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 java.io.*; import step.core.*; class Time_Unit_Event_UnionStepRW extends step.core.StepCoreObjectReaderWriter { public step.core.StepCoreObject coreObject() { return new Time_Unit_Event_Union(); } public String entityName() { return Time_Unit_Event_Union.EntityName(); } public Start_Of_Task_Capacity_Type getStartOfTaskCapacity(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 0); return (Start_Of_Task_Capacity_Type) convertedStepValue(repo, stepVal); } public End_Of_Task_Capacity_Type getEndOfTaskCapacity(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 1); return (End_Of_Task_Capacity_Type) convertedStepValue(repo, stepVal); } public Write_To_Buffer_Type getWriteToBuffer(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 2); return (Write_To_Buffer_Type) convertedStepValue(repo, stepVal); } public Read_From_Buffer_Type getReadFromBuffer(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 3); return (Read_From_Buffer_Type) convertedStepValue(repo, stepVal); } public Context_Switch_Overhead_Type getContextSwitchOverhead(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 4); return (Context_Switch_Overhead_Type) convertedStepValue(repo, stepVal); } public Running_Task_Type getRunningTask(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 5); return (Running_Task_Type) convertedStepValue(repo, stepVal); } public Task_Activation_Type getTaskActivation(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 6); return (Task_Activation_Type) convertedStepValue(repo, stepVal); } public Allocate_Resource_Type getAllocateResource(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 7); return (Allocate_Resource_Type) convertedStepValue(repo, stepVal); } public Release_Resource_Type getReleaseResource(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 8); return (Release_Resource_Type) convertedStepValue(repo, stepVal); } public Wait_For_Resource_Type getWaitForResource(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 9); return (Wait_For_Resource_Type) convertedStepValue(repo, stepVal); } public Send_Message_Type getSendMessage(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get(10); return (Send_Message_Type) convertedStepValue(repo, stepVal); } public Receive_Message_Type getReceiveMessage(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get(11); return (Receive_Message_Type) convertedStepValue(repo, stepVal); } public void initializeCoreObject(StepCoreRepository repo, step.core.StepCoreObject coreObj, StepGenericInstance si) throws Exception { super.initializeCoreObject(repo, coreObj, si); Time_Unit_Event_Union obj = (Time_Unit_Event_Union) coreObj; obj.setStartOfTaskCapacity(getStartOfTaskCapacity(repo, (StepInternalRepresentation) si)); obj.setEndOfTaskCapacity(getEndOfTaskCapacity(repo, (StepInternalRepresentation) si)); obj.setWriteToBuffer(getWriteToBuffer(repo, (StepInternalRepresentation) si)); obj.setReadFromBuffer(getReadFromBuffer(repo, (StepInternalRepresentation) si)); obj.setContextSwitchOverhead(getContextSwitchOverhead(repo, (StepInternalRepresentation) si)); obj.setRunningTask(getRunningTask(repo, (StepInternalRepresentation) si)); obj.setTaskActivation(getTaskActivation(repo, (StepInternalRepresentation) si)); obj.setAllocateResource(getAllocateResource(repo, (StepInternalRepresentation) si)); obj.setReleaseResource(getReleaseResource(repo, (StepInternalRepresentation) si)); obj.setWaitForResource(getWaitForResource(repo, (StepInternalRepresentation) si)); obj.setSendMessage(getSendMessage(repo, (StepInternalRepresentation) si)); obj.setReceiveMessage(getReceiveMessage(repo, (StepInternalRepresentation) si)); } public StepGenericInstance genericInstance(StepCoreRepository crepo, step.core.StepCoreObject coreObj) throws Exception { StepInternalRepresentation si = (StepInternalRepresentation) super.genericInstance(crepo, coreObj); Time_Unit_Event_Union obj = (Time_Unit_Event_Union) coreObj; si.add(stepValueOf(crepo, obj.getStartOfTaskCapacity())); si.add(stepValueOf(crepo, obj.getEndOfTaskCapacity())); si.add(stepValueOf(crepo, obj.getWriteToBuffer())); si.add(stepValueOf(crepo, obj.getReadFromBuffer())); si.add(stepValueOf(crepo, obj.getContextSwitchOverhead())); si.add(stepValueOf(crepo, obj.getRunningTask())); si.add(stepValueOf(crepo, obj.getTaskActivation())); si.add(stepValueOf(crepo, obj.getAllocateResource())); si.add(stepValueOf(crepo, obj.getReleaseResource())); si.add(stepValueOf(crepo, obj.getWaitForResource())); si.add(stepValueOf(crepo, obj.getSendMessage())); si.add(stepValueOf(crepo, obj.getReceiveMessage())); return si; } }