//------------------------------------------------------------------------------- // 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 BufferStepRW extends Named_ObjectStepRW { public step.core.StepCoreObject coreObject() { return new Buffer(); } public String entityName() { return Buffer.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 String getAddressSpaceName(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 3); return (String) convertedStepValue(repo, stepVal); } public Queueing_Systems_Type getQueueingSystemType(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 4); return Queueing_Systems_Type.fromString((String) convertedStepValue(repo, stepVal)); } public Integer getSize(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 5); return (Integer) convertedStepValue(repo, stepVal); } public ArrayList getRoles(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 6); return (ArrayList) convertedStepValue(repo, stepVal); } public void initializeCoreObject(StepCoreRepository repo, step.core.StepCoreObject coreObj, StepGenericInstance si) throws Exception { super.initializeCoreObject(repo, coreObj, si); Buffer obj = (Buffer) coreObj; obj.setCpuName(getCpuName(repo, (StepInternalRepresentation) si)); obj.setAddressSpaceName(getAddressSpaceName(repo, (StepInternalRepresentation) si)); obj.setQueueingSystemType(getQueueingSystemType(repo, (StepInternalRepresentation) si)); obj.setSize(getSize(repo, (StepInternalRepresentation) si)); obj.setRoles(getRoles(repo, (StepInternalRepresentation) si)); } public StepGenericInstance genericInstance(StepCoreRepository crepo, step.core.StepCoreObject coreObj) throws Exception { StepInternalRepresentation si = (StepInternalRepresentation) super.genericInstance(crepo, coreObj); Buffer obj = (Buffer) coreObj; si.add(stepValueOf(crepo, obj.getCpuName())); si.add(stepValueOf(crepo, obj.getAddressSpaceName())); si.add(stepValueOf(crepo, obj.getQueueingSystemType())); si.add(stepValueOf(crepo, obj.getSize())); si.add(stepValueOf(crepo, obj.getRoles())); return si; } }