//------------------------------------------------------------------------------- // 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 Communication_Dependency_typeStepRW extends step.core.StepCoreObjectReaderWriter { public step.core.StepCoreObject coreObject() { return new Communication_Dependency_type(); } public String entityName() { return Communication_Dependency_type.EntityName(); } public Generic_Task getCommunicationDependentTask(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 0); return (Generic_Task) convertedStepValue(repo, stepVal); } public Orientation_Dependency_Type getCommunicationOrientation(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 1); return Orientation_Dependency_Type.fromString((String) convertedStepValue(repo, stepVal)); } public Generic_Message getCommunicationDependencyObject(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 2); return (Generic_Message) convertedStepValue(repo, stepVal); } public void initializeCoreObject(StepCoreRepository repo, step.core.StepCoreObject coreObj, StepGenericInstance si) throws Exception { super.initializeCoreObject(repo, coreObj, si); Communication_Dependency_type obj = (Communication_Dependency_type) coreObj; obj.setCommunicationDependentTask(getCommunicationDependentTask(repo, (StepInternalRepresentation) si)); obj.setCommunicationOrientation(getCommunicationOrientation(repo, (StepInternalRepresentation) si)); obj.setCommunicationDependencyObject(getCommunicationDependencyObject(repo, (StepInternalRepresentation) si)); } public StepGenericInstance genericInstance(StepCoreRepository crepo, step.core.StepCoreObject coreObj) throws Exception { StepInternalRepresentation si = (StepInternalRepresentation) super.genericInstance(crepo, coreObj); Communication_Dependency_type obj = (Communication_Dependency_type) coreObj; si.add(stepValueOf(crepo, obj.getCommunicationDependentTask())); si.add(stepValueOf(crepo, obj.getCommunicationOrientation())); si.add(stepValueOf(crepo, obj.getCommunicationDependencyObject())); return si; } }