//------------------------------------------------------------------------------- // 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 Scheduling_ParametersStepRW extends step.core.StepCoreObjectReaderWriter { public step.core.StepCoreObject coreObject() { return new Scheduling_Parameters(); } public String entityName() { return Scheduling_Parameters.EntityName(); } public Schedulers_Type getSchedulerType(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 0); return Schedulers_Type.fromString((String) convertedStepValue(repo, stepVal)); } public Integer getQuantum(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 1); return (Integer) convertedStepValue(repo, stepVal); } public Preemptives_Type getPreemptiveType(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 2); return Preemptives_Type.fromString((String) convertedStepValue(repo, stepVal)); } public String getAutomatonName(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 3); return (String) convertedStepValue(repo, stepVal); } public Integer getCapacity(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 4); return (Integer) convertedStepValue(repo, stepVal); } public Integer getPeriod(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 5); return (Integer) convertedStepValue(repo, stepVal); } public Integer getPriority(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 6); return (Integer) convertedStepValue(repo, stepVal); } public String getUserDefinedSchedulerSource(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 7); return (String) convertedStepValue(repo, stepVal); } public String getUserDefinedSchedulerSourceFileName(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 8); return (String) convertedStepValue(repo, stepVal); } public Integer getStartTime(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 9); return (Integer) convertedStepValue(repo, stepVal); } public void initializeCoreObject(StepCoreRepository repo, step.core.StepCoreObject coreObj, StepGenericInstance si) throws Exception { super.initializeCoreObject(repo, coreObj, si); Scheduling_Parameters obj = (Scheduling_Parameters) coreObj; obj.setSchedulerType(getSchedulerType(repo, (StepInternalRepresentation) si)); obj.setQuantum(getQuantum(repo, (StepInternalRepresentation) si)); obj.setPreemptiveType(getPreemptiveType(repo, (StepInternalRepresentation) si)); obj.setAutomatonName(getAutomatonName(repo, (StepInternalRepresentation) si)); obj.setCapacity(getCapacity(repo, (StepInternalRepresentation) si)); obj.setPeriod(getPeriod(repo, (StepInternalRepresentation) si)); obj.setPriority(getPriority(repo, (StepInternalRepresentation) si)); obj.setUserDefinedSchedulerSource(getUserDefinedSchedulerSource(repo, (StepInternalRepresentation) si)); obj.setUserDefinedSchedulerSourceFileName(getUserDefinedSchedulerSourceFileName(repo, (StepInternalRepresentation) si)); obj.setStartTime(getStartTime(repo, (StepInternalRepresentation) si)); } public StepGenericInstance genericInstance(StepCoreRepository crepo, step.core.StepCoreObject coreObj) throws Exception { StepInternalRepresentation si = (StepInternalRepresentation) super.genericInstance(crepo, coreObj); Scheduling_Parameters obj = (Scheduling_Parameters) coreObj; si.add(stepValueOf(crepo, obj.getSchedulerType())); si.add(stepValueOf(crepo, obj.getQuantum())); si.add(stepValueOf(crepo, obj.getPreemptiveType())); si.add(stepValueOf(crepo, obj.getAutomatonName())); si.add(stepValueOf(crepo, obj.getCapacity())); si.add(stepValueOf(crepo, obj.getPeriod())); si.add(stepValueOf(crepo, obj.getPriority())); si.add(stepValueOf(crepo, obj.getUserDefinedSchedulerSource())); si.add(stepValueOf(crepo, obj.getUserDefinedSchedulerSourceFileName())); si.add(stepValueOf(crepo, obj.getStartTime())); return si; } }