//------------------------------------------------------------------------------- // 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 Address_SpaceStepRW extends Named_ObjectStepRW { public step.core.StepCoreObject coreObject() { return new Address_Space(); } public String entityName() { return Address_Space.EntityName(); } public String getCpuName(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 2); return (String) convertedStepValue(repo, stepVal); } public Integer getTextMemorySize(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 3); return (Integer) convertedStepValue(repo, stepVal); } public Integer getStackMemorySize(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 4); return (Integer) convertedStepValue(repo, stepVal); } public Integer getDataMemorySize(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 5); return (Integer) convertedStepValue(repo, stepVal); } public Integer getHeapMemorySize(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 6); return (Integer) convertedStepValue(repo, stepVal); } public Scheduling_Parameters getScheduling(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 7); return (Scheduling_Parameters) convertedStepValue(repo, stepVal); } public void initializeCoreObject(StepCoreRepository repo, step.core.StepCoreObject coreObj, StepGenericInstance si) throws Exception { super.initializeCoreObject(repo, coreObj, si); Address_Space obj = (Address_Space) coreObj; obj.setCpuName(getCpuName(repo, (StepInternalRepresentation) si)); obj.setTextMemorySize(getTextMemorySize(repo, (StepInternalRepresentation) si)); obj.setStackMemorySize(getStackMemorySize(repo, (StepInternalRepresentation) si)); obj.setDataMemorySize(getDataMemorySize(repo, (StepInternalRepresentation) si)); obj.setHeapMemorySize(getHeapMemorySize(repo, (StepInternalRepresentation) si)); obj.setScheduling(getScheduling(repo, (StepInternalRepresentation) si)); } public StepGenericInstance genericInstance(StepCoreRepository crepo, step.core.StepCoreObject coreObj) throws Exception { StepInternalRepresentation si = (StepInternalRepresentation) super.genericInstance(crepo, coreObj); Address_Space obj = (Address_Space) coreObj; si.add(stepValueOf(crepo, obj.getCpuName())); si.add(stepValueOf(crepo, obj.getTextMemorySize())); si.add(stepValueOf(crepo, obj.getStackMemorySize())); si.add(stepValueOf(crepo, obj.getDataMemorySize())); si.add(stepValueOf(crepo, obj.getHeapMemorySize())); si.add(stepValueOf(crepo, obj.getScheduling())); return si; } }