//------------------------------------------------------------------------------- // 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_Triggered_Communication_Dependency_TypeStepRW extends step.core.StepCoreObjectReaderWriter { public step.core.StepCoreObject coreObject() { return new Time_Triggered_Communication_Dependency_Type(); } public String entityName() { return Time_Triggered_Communication_Dependency_Type.EntityName(); } public Generic_Task getTimeTriggeredCommunicationSink(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 0); return (Generic_Task) convertedStepValue(repo, stepVal); } public Generic_Task getTimeTriggeredCommunicationSource(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 1); return (Generic_Task) convertedStepValue(repo, stepVal); } public Time_Triggered_Communication_Timing_Property_Type getTimingProperty(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 2); return Time_Triggered_Communication_Timing_Property_Type.fromString((String) convertedStepValue(repo, stepVal)); } public void initializeCoreObject(StepCoreRepository repo, step.core.StepCoreObject coreObj, StepGenericInstance si) throws Exception { super.initializeCoreObject(repo, coreObj, si); Time_Triggered_Communication_Dependency_Type obj = (Time_Triggered_Communication_Dependency_Type) coreObj; obj.setTimeTriggeredCommunicationSink(getTimeTriggeredCommunicationSink(repo, (StepInternalRepresentation) si)); obj.setTimeTriggeredCommunicationSource(getTimeTriggeredCommunicationSource(repo, (StepInternalRepresentation) si)); obj.setTimingProperty(getTimingProperty(repo, (StepInternalRepresentation) si)); } public StepGenericInstance genericInstance(StepCoreRepository crepo, step.core.StepCoreObject coreObj) throws Exception { StepInternalRepresentation si = (StepInternalRepresentation) super.genericInstance(crepo, coreObj); Time_Triggered_Communication_Dependency_Type obj = (Time_Triggered_Communication_Dependency_Type) coreObj; si.add(stepValueOf(crepo, obj.getTimeTriggeredCommunicationSink())); si.add(stepValueOf(crepo, obj.getTimeTriggeredCommunicationSource())); si.add(stepValueOf(crepo, obj.getTimingProperty())); return si; } }