//------------------------------------------------------------------------------- // 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 ARINC_653_ModuleStepRW extends ARINC_653_ObjectStepRW { public step.core.StepCoreObject coreObject() { return new ARINC_653_Module(); } public String entityName() { return ARINC_653_Module.EntityName(); } public System_HM_TableType getSystemHMList(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 0); return (System_HM_TableType) convertedStepValue(repo, stepVal); } public Module_HM_Type getModuleHMList(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 1); return (Module_HM_Type) convertedStepValue(repo, stepVal); } public ArrayList getPartition(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 2); return (ArrayList) convertedStepValue(repo, stepVal); } public ArrayList getPartitionMemory(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 3); return (ArrayList) convertedStepValue(repo, stepVal); } public Module_Schedule_Type getModuleSchedule(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 4); return (Module_Schedule_Type) convertedStepValue(repo, stepVal); } public ArrayList getPartitionHMList(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 5); return (ArrayList) convertedStepValue(repo, stepVal); } public ArrayList getConnectionList(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 6); return (ArrayList) convertedStepValue(repo, stepVal); } public ArrayList getModExt(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 7); return (ArrayList) convertedStepValue(repo, stepVal); } public String getModuleName(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 8); return (String) convertedStepValue(repo, stepVal); } public String getModuleVersion(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 9); return (String) convertedStepValue(repo, stepVal); } public String getModuleId(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get(10); return (String) convertedStepValue(repo, stepVal); } public void initializeCoreObject(StepCoreRepository repo, step.core.StepCoreObject coreObj, StepGenericInstance si) throws Exception { super.initializeCoreObject(repo, coreObj, si); ARINC_653_Module obj = (ARINC_653_Module) coreObj; obj.setSystemHMList(getSystemHMList(repo, (StepInternalRepresentation) si)); obj.setModuleHMList(getModuleHMList(repo, (StepInternalRepresentation) si)); obj.setPartition(getPartition(repo, (StepInternalRepresentation) si)); obj.setPartitionMemory(getPartitionMemory(repo, (StepInternalRepresentation) si)); obj.setModuleSchedule(getModuleSchedule(repo, (StepInternalRepresentation) si)); obj.setPartitionHMList(getPartitionHMList(repo, (StepInternalRepresentation) si)); obj.setConnectionList(getConnectionList(repo, (StepInternalRepresentation) si)); obj.setModExt(getModExt(repo, (StepInternalRepresentation) si)); obj.setModuleName(getModuleName(repo, (StepInternalRepresentation) si)); obj.setModuleVersion(getModuleVersion(repo, (StepInternalRepresentation) si)); obj.setModuleId(getModuleId(repo, (StepInternalRepresentation) si)); } public StepGenericInstance genericInstance(StepCoreRepository crepo, step.core.StepCoreObject coreObj) throws Exception { StepInternalRepresentation si = (StepInternalRepresentation) super.genericInstance(crepo, coreObj); ARINC_653_Module obj = (ARINC_653_Module) coreObj; si.add(stepValueOf(crepo, obj.getSystemHMList())); si.add(stepValueOf(crepo, obj.getModuleHMList())); si.add(stepValueOf(crepo, obj.getPartition())); si.add(stepValueOf(crepo, obj.getPartitionMemory())); si.add(stepValueOf(crepo, obj.getModuleSchedule())); si.add(stepValueOf(crepo, obj.getPartitionHMList())); si.add(stepValueOf(crepo, obj.getConnectionList())); si.add(stepValueOf(crepo, obj.getModExt())); si.add(stepValueOf(crepo, obj.getModuleName())); si.add(stepValueOf(crepo, obj.getModuleVersion())); si.add(stepValueOf(crepo, obj.getModuleId())); return si; } }