//------------------------------------------------------------------------------- // 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 PartitionTypeStepRW extends ARINC_653_ObjectStepRW { public step.core.StepCoreObject coreObject() { return new PartitionType(); } public String entityName() { return PartitionType.EntityName(); } public ArrayList getSamplingPort(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 0); return (ArrayList) convertedStepValue(repo, stepVal); } public ArrayList getQueuingPort(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 1); return (ArrayList) convertedStepValue(repo, stepVal); } public ArrayList getProcess(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 2); return (ArrayList) convertedStepValue(repo, stepVal); } public ArrayList getPartitionExt(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 3); return (ArrayList) convertedStepValue(repo, stepVal); } public String getPartitionIdentifier(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 4); return (String) convertedStepValue(repo, stepVal); } public String getPartitionName(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 5); return (String) convertedStepValue(repo, stepVal); } public CriticalityType getCriticality(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 6); return CriticalityType.fromString((String) convertedStepValue(repo, stepVal)); } public Boolean getSystemPartition(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 7); return (Boolean) convertedStepValue(repo, stepVal); } public String getEntryPoint(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 8); return (String) convertedStepValue(repo, stepVal); } public void initializeCoreObject(StepCoreRepository repo, step.core.StepCoreObject coreObj, StepGenericInstance si) throws Exception { super.initializeCoreObject(repo, coreObj, si); PartitionType obj = (PartitionType) coreObj; obj.setSamplingPort(getSamplingPort(repo, (StepInternalRepresentation) si)); obj.setQueuingPort(getQueuingPort(repo, (StepInternalRepresentation) si)); obj.setProcess(getProcess(repo, (StepInternalRepresentation) si)); obj.setPartitionExt(getPartitionExt(repo, (StepInternalRepresentation) si)); obj.setPartitionIdentifier(getPartitionIdentifier(repo, (StepInternalRepresentation) si)); obj.setPartitionName(getPartitionName(repo, (StepInternalRepresentation) si)); obj.setCriticality(getCriticality(repo, (StepInternalRepresentation) si)); obj.setSystemPartition(getSystemPartition(repo, (StepInternalRepresentation) si)); obj.setEntryPoint(getEntryPoint(repo, (StepInternalRepresentation) si)); } public StepGenericInstance genericInstance(StepCoreRepository crepo, step.core.StepCoreObject coreObj) throws Exception { StepInternalRepresentation si = (StepInternalRepresentation) super.genericInstance(crepo, coreObj); PartitionType obj = (PartitionType) coreObj; si.add(stepValueOf(crepo, obj.getSamplingPort())); si.add(stepValueOf(crepo, obj.getQueuingPort())); si.add(stepValueOf(crepo, obj.getProcess())); si.add(stepValueOf(crepo, obj.getPartitionExt())); si.add(stepValueOf(crepo, obj.getPartitionIdentifier())); si.add(stepValueOf(crepo, obj.getPartitionName())); si.add(stepValueOf(crepo, obj.getCriticality())); si.add(stepValueOf(crepo, obj.getSystemPartition())); si.add(stepValueOf(crepo, obj.getEntryPoint())); return si; } }