//------------------------------------------------------------------------------- // 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 Partition_Schedule_Element extends ARINC_653_Object { private static String EntityName = "PARTITION_SCHEDULE_ELEMENT"; private ArrayList Window_Schedule_; private ArrayList Window_Sched_Ext_; private String PartitionIdentifier_; private String PartitionName_; private Double PeriodSeconds_; private Double PeriodDurationSeconds_; 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(); Window_Schedule_ = new ArrayList(); Window_Sched_Ext_ = new ArrayList(); PartitionIdentifier_ = ""; PartitionName_ = null; PeriodSeconds_ = 0.0; PeriodDurationSeconds_ = 0.0; } public Partition_Schedule_Element () { initializeExplicitAttributes(); } public Partition_Schedule_Element (step.core.StepCoreRepository _repo) { super(_repo); initializeExplicitAttributes(); } public void setWindowSchedule(ArrayList _v) { if (_v == null) { Window_Schedule_ = null; } else { if (Window_Schedule_ == null) { Window_Schedule_ = new ArrayList(); } else { Window_Schedule_.clear(); } Window_Schedule_.addAll(_v); } } public void windowScheduleAdd (Window_Schedule_Element _elem) { if (Window_Schedule_ == null) { Window_Schedule_ = new ArrayList(); } Window_Schedule_.add(_elem); } public boolean windowScheduleRemove(Window_Schedule_Element _elem) { if (Window_Schedule_ != null) { return Window_Schedule_.remove(_elem); } return false; } public boolean windowScheduleRemoveAll(ArrayList _v) { if (Window_Schedule_ != null) { return Window_Schedule_.removeAll(_v); } return false; } public void windowScheduleAddAll(ArrayList _v) { if (Window_Schedule_ == null) { Window_Schedule_ = new ArrayList(); } Window_Schedule_.addAll(_v); } public Window_Schedule_Element windowScheduleSet (int _pos, Window_Schedule_Element _elem) { return Window_Schedule_.set(_pos, _elem); } public ArrayList getWindowSchedule() { return Window_Schedule_; } public int windowScheduleSize () { return Window_Schedule_ == null ? 0 : Window_Schedule_.size(); } public Window_Schedule_Element windowScheduleGet (int _pos) { return Window_Schedule_.get(_pos); } public void setWindowSchedExt(ArrayList _v) { if (_v == null) { Window_Sched_Ext_ = null; } else { if (Window_Sched_Ext_ == null) { Window_Sched_Ext_ = new ArrayList(); } else { Window_Sched_Ext_.clear(); } Window_Sched_Ext_.addAll(_v); } } public void windowSchedExtAdd (Window_Sched_Ext_Type _elem) { if (Window_Sched_Ext_ == null) { Window_Sched_Ext_ = new ArrayList(); } Window_Sched_Ext_.add(_elem); } public boolean windowSchedExtRemove(Window_Sched_Ext_Type _elem) { if (Window_Sched_Ext_ != null) { return Window_Sched_Ext_.remove(_elem); } return false; } public boolean windowSchedExtRemoveAll(ArrayList _v) { if (Window_Sched_Ext_ != null) { return Window_Sched_Ext_.removeAll(_v); } return false; } public void windowSchedExtAddAll(ArrayList _v) { if (Window_Sched_Ext_ == null) { Window_Sched_Ext_ = new ArrayList(); } Window_Sched_Ext_.addAll(_v); } public Window_Sched_Ext_Type windowSchedExtSet (int _pos, Window_Sched_Ext_Type _elem) { return Window_Sched_Ext_.set(_pos, _elem); } public ArrayList getWindowSchedExt() { return Window_Sched_Ext_; } public int windowSchedExtSize () { return Window_Sched_Ext_ == null ? 0 : Window_Sched_Ext_.size(); } public Window_Sched_Ext_Type windowSchedExtGet (int _pos) { return Window_Sched_Ext_.get(_pos); } public void setPartitionIdentifier ( String _v ) { PartitionIdentifier_ = _v; } public String getPartitionIdentifier() { return PartitionIdentifier_; } public void setPartitionName ( String _v ) { PartitionName_ = _v; } public String getPartitionName() { return PartitionName_; } public void setPeriodSeconds ( Double _v ) { PeriodSeconds_ = _v; } public Double getPeriodSeconds() { return PeriodSeconds_; } public void setPeriodDurationSeconds ( Double _v ) { PeriodDurationSeconds_ = _v; } public Double getPeriodDurationSeconds() { return PeriodDurationSeconds_; } public void accept(CheddarBridge_AbstractVisitor visitor ) { visitor.accept((Partition_Schedule_Element) this); } public step.core.StepCoreObjectReaderWriter readerWriter() { return new Partition_Schedule_ElementStepRW(); } public boolean replaceReferenceWith(StepCoreObject oldObj, StepCoreObject newObj) { boolean done = false; for (ListIterator itori = getWindowSchedule().listIterator(); itori.hasNext(); ) { if (itori.next() == oldObj ) { if (newObj == null) { itori.remove(); } else { itori.set((Window_Schedule_Element)newObj); } done = true; } } for (ListIterator itori = getWindowSchedExt().listIterator(); itori.hasNext(); ) { if (itori.next() == oldObj ) { if (newObj == null) { itori.remove(); } else { itori.set((Window_Sched_Ext_Type)newObj); } done = true; } } if (super.replaceReferenceWith(oldObj, newObj)) { done = true; } return done; } }