//------------------------------------------------------------------------------- // 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 Multi_Cores_ProcessorStepRW extends Generic_ProcessorStepRW { public step.core.StepCoreObject coreObject() { return new Multi_Cores_Processor(); } public String entityName() { return Multi_Cores_Processor.EntityName(); } public ArrayList getCores(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 5); return (ArrayList) convertedStepValue(repo, stepVal); } public String getL2CacheSystemName(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 6); return (String) convertedStepValue(repo, stepVal); } public void initializeCoreObject(StepCoreRepository repo, step.core.StepCoreObject coreObj, StepGenericInstance si) throws Exception { super.initializeCoreObject(repo, coreObj, si); Multi_Cores_Processor obj = (Multi_Cores_Processor) coreObj; obj.setCores(getCores(repo, (StepInternalRepresentation) si)); obj.setL2CacheSystemName(getL2CacheSystemName(repo, (StepInternalRepresentation) si)); } public StepGenericInstance genericInstance(StepCoreRepository crepo, step.core.StepCoreObject coreObj) throws Exception { StepInternalRepresentation si = (StepInternalRepresentation) super.genericInstance(crepo, coreObj); Multi_Cores_Processor obj = (Multi_Cores_Processor) coreObj; si.add(stepValueOf(crepo, obj.getCores())); si.add(stepValueOf(crepo, obj.getL2CacheSystemName())); return si; } }