//------------------------------------------------------------------------------- // 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 Window_Schedule_ElementStepRW extends ARINC_653_ObjectStepRW { public step.core.StepCoreObject coreObject() { return new Window_Schedule_Element(); } public String entityName() { return Window_Schedule_Element.EntityName(); } public String getWindowIdentifier(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 0); return (String) convertedStepValue(repo, stepVal); } public Double getWindowStartSeconds(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 1); return (Double) convertedStepValue(repo, stepVal); } public Double getWindowDurationSeconds(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 2); return (Double) convertedStepValue(repo, stepVal); } public Boolean getPartitionPeriodStart(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 3); return (Boolean) convertedStepValue(repo, stepVal); } public void initializeCoreObject(StepCoreRepository repo, step.core.StepCoreObject coreObj, StepGenericInstance si) throws Exception { super.initializeCoreObject(repo, coreObj, si); Window_Schedule_Element obj = (Window_Schedule_Element) coreObj; obj.setWindowIdentifier(getWindowIdentifier(repo, (StepInternalRepresentation) si)); obj.setWindowStartSeconds(getWindowStartSeconds(repo, (StepInternalRepresentation) si)); obj.setWindowDurationSeconds(getWindowDurationSeconds(repo, (StepInternalRepresentation) si)); obj.setPartitionPeriodStart(getPartitionPeriodStart(repo, (StepInternalRepresentation) si)); } public StepGenericInstance genericInstance(StepCoreRepository crepo, step.core.StepCoreObject coreObj) throws Exception { StepInternalRepresentation si = (StepInternalRepresentation) super.genericInstance(crepo, coreObj); Window_Schedule_Element obj = (Window_Schedule_Element) coreObj; si.add(stepValueOf(crepo, obj.getWindowIdentifier())); si.add(stepValueOf(crepo, obj.getWindowStartSeconds())); si.add(stepValueOf(crepo, obj.getWindowDurationSeconds())); si.add(stepValueOf(crepo, obj.getPartitionPeriodStart())); return si; } }