//------------------------------------------------------------------------------- // 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 Standard_PartitionStepRW extends ARINC_653_ObjectStepRW { public step.core.StepCoreObject coreObject() { return new Standard_Partition(); } public String entityName() { return Standard_Partition.EntityName(); } public String getPartitionIdentifier(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 0); return (String) convertedStepValue(repo, stepVal); } public String getPartitionName(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 1); return (String) convertedStepValue(repo, stepVal); } public String getPortName(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 2); return (String) convertedStepValue(repo, stepVal); } public String getPhysicalAddress(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 3); return (String) convertedStepValue(repo, stepVal); } public void initializeCoreObject(StepCoreRepository repo, step.core.StepCoreObject coreObj, StepGenericInstance si) throws Exception { super.initializeCoreObject(repo, coreObj, si); Standard_Partition obj = (Standard_Partition) coreObj; obj.setPartitionIdentifier(getPartitionIdentifier(repo, (StepInternalRepresentation) si)); obj.setPartitionName(getPartitionName(repo, (StepInternalRepresentation) si)); obj.setPortName(getPortName(repo, (StepInternalRepresentation) si)); obj.setPhysicalAddress(getPhysicalAddress(repo, (StepInternalRepresentation) si)); } public StepGenericInstance genericInstance(StepCoreRepository crepo, step.core.StepCoreObject coreObj) throws Exception { StepInternalRepresentation si = (StepInternalRepresentation) super.genericInstance(crepo, coreObj); Standard_Partition obj = (Standard_Partition) coreObj; si.add(stepValueOf(crepo, obj.getPartitionIdentifier())); si.add(stepValueOf(crepo, obj.getPartitionName())); si.add(stepValueOf(crepo, obj.getPortName())); si.add(stepValueOf(crepo, obj.getPhysicalAddress())); return si; } }