//------------------------------------------------------------------------------- // 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 step.core.*; public class Module_Schedule_Type extends ARINC_653_Object { private static String EntityName = "MODULE_SCHEDULE_TYPE"; private ArrayList Partition_Schedule_; private ArrayList Partition_Sched_Ext_; private Double MajorFrameSeconds_; public static String EntityName() { return EntityName; } public String entityName() { return EntityName(); } public boolean isInstanceOf(String entName) { return entName.equals(EntityName); } public boolean isKindOf(String entName) { return entName.equals(EntityName) ? true : super.isKindOf(entName); } public void initializeExplicitAttributes() { super.initializeExplicitAttributes(); Partition_Schedule_ = new ArrayList(); Partition_Sched_Ext_ = new ArrayList(); MajorFrameSeconds_ = 0.0; } public Module_Schedule_Type () { initializeExplicitAttributes(); } public Module_Schedule_Type (step.core.StepCoreRepository _repo) { super(_repo); initializeExplicitAttributes(); } public void setPartitionSchedule(ArrayList _v) { if (_v == null) { Partition_Schedule_ = null; } else { if (Partition_Schedule_ == null) { Partition_Schedule_ = new ArrayList(); } else { Partition_Schedule_.clear(); } Partition_Schedule_.addAll(_v); } } public void partitionScheduleAdd (Partition_Schedule_Element _elem) { if (Partition_Schedule_ == null) { Partition_Schedule_ = new ArrayList(); } Partition_Schedule_.add(_elem); } public boolean partitionScheduleRemove(Partition_Schedule_Element _elem) { if (Partition_Schedule_ != null) { return Partition_Schedule_.remove(_elem); } return false; } public boolean partitionScheduleRemoveAll(ArrayList _v) { if (Partition_Schedule_ != null) { return Partition_Schedule_.removeAll(_v); } return false; } public void partitionScheduleAddAll(ArrayList _v) { if (Partition_Schedule_ == null) { Partition_Schedule_ = new ArrayList(); } Partition_Schedule_.addAll(_v); } public Partition_Schedule_Element partitionScheduleSet (int _pos, Partition_Schedule_Element _elem) { return Partition_Schedule_.set(_pos, _elem); } public ArrayList getPartitionSchedule() { return Partition_Schedule_; } public int partitionScheduleSize () { return Partition_Schedule_ == null ? 0 : Partition_Schedule_.size(); } public Partition_Schedule_Element partitionScheduleGet (int _pos) { return Partition_Schedule_.get(_pos); } public void setPartitionSchedExt(ArrayList _v) { if (_v == null) { Partition_Sched_Ext_ = null; } else { if (Partition_Sched_Ext_ == null) { Partition_Sched_Ext_ = new ArrayList(); } else { Partition_Sched_Ext_.clear(); } Partition_Sched_Ext_.addAll(_v); } } public void partitionSchedExtAdd (Partition_Sched_Ext_Type _elem) { if (Partition_Sched_Ext_ == null) { Partition_Sched_Ext_ = new ArrayList(); } Partition_Sched_Ext_.add(_elem); } public boolean partitionSchedExtRemove(Partition_Sched_Ext_Type _elem) { if (Partition_Sched_Ext_ != null) { return Partition_Sched_Ext_.remove(_elem); } return false; } public boolean partitionSchedExtRemoveAll(ArrayList _v) { if (Partition_Sched_Ext_ != null) { return Partition_Sched_Ext_.removeAll(_v); } return false; } public void partitionSchedExtAddAll(ArrayList _v) { if (Partition_Sched_Ext_ == null) { Partition_Sched_Ext_ = new ArrayList(); } Partition_Sched_Ext_.addAll(_v); } public Partition_Sched_Ext_Type partitionSchedExtSet (int _pos, Partition_Sched_Ext_Type _elem) { return Partition_Sched_Ext_.set(_pos, _elem); } public ArrayList getPartitionSchedExt() { return Partition_Sched_Ext_; } public int partitionSchedExtSize () { return Partition_Sched_Ext_ == null ? 0 : Partition_Sched_Ext_.size(); } public Partition_Sched_Ext_Type partitionSchedExtGet (int _pos) { return Partition_Sched_Ext_.get(_pos); } public void setMajorFrameSeconds ( Double _v ) { MajorFrameSeconds_ = _v; } public Double getMajorFrameSeconds() { return MajorFrameSeconds_; } public void accept(CheddarBridge_AbstractVisitor visitor ) { visitor.accept((Module_Schedule_Type) this); } public step.core.StepCoreObjectReaderWriter readerWriter() { return new Module_Schedule_TypeStepRW(); } public boolean replaceReferenceWith(StepCoreObject oldObj, StepCoreObject newObj) { boolean done = false; for (ListIterator itori = getPartitionSchedule().listIterator(); itori.hasNext(); ) { if (itori.next() == oldObj ) { if (newObj == null) { itori.remove(); } else { itori.set((Partition_Schedule_Element)newObj); } done = true; } } for (ListIterator itori = getPartitionSchedExt().listIterator(); itori.hasNext(); ) { if (itori.next() == oldObj ) { if (newObj == null) { itori.remove(); } else { itori.set((Partition_Sched_Ext_Type)newObj); } done = true; } } if (super.replaceReferenceWith(oldObj, newObj)) { done = true; } return done; } }