//------------------------------------------------------------------------------- // 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 Multi_Cores_Processor extends Generic_Processor { private static String EntityName = "MULTI_CORES_PROCESSOR"; private ArrayList cores_; private String l2_cache_system_name_; 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(); cores_ = new ArrayList(); l2_cache_system_name_ = ""; } public Multi_Cores_Processor () { initializeExplicitAttributes(); } public Multi_Cores_Processor (step.core.StepCoreRepository _repo) { super(_repo); initializeExplicitAttributes(); } public void setCores(ArrayList _v) { if (_v == null) { cores_ = null; } else { if (cores_ == null) { cores_ = new ArrayList(); } else { cores_.clear(); } cores_.addAll(_v); } } public void coresAdd (Core_Unit _elem) { if (cores_ == null) { cores_ = new ArrayList(); } cores_.add(_elem); } public boolean coresRemove(Core_Unit _elem) { if (cores_ != null) { return cores_.remove(_elem); } return false; } public boolean coresRemoveAll(ArrayList _v) { if (cores_ != null) { return cores_.removeAll(_v); } return false; } public void coresAddAll(ArrayList _v) { if (cores_ == null) { cores_ = new ArrayList(); } cores_.addAll(_v); } public Core_Unit coresSet (int _pos, Core_Unit _elem) { return cores_.set(_pos, _elem); } public ArrayList getCores() { return cores_; } public int coresSize () { return cores_ == null ? 0 : cores_.size(); } public Core_Unit coresGet (int _pos) { return cores_.get(_pos); } public void setL2CacheSystemName ( String _v ) { l2_cache_system_name_ = _v; } public String getL2CacheSystemName() { return l2_cache_system_name_; } public void accept(CheddarBridge_AbstractVisitor visitor ) { visitor.accept((Multi_Cores_Processor) this); } public step.core.StepCoreObjectReaderWriter readerWriter() { return new Multi_Cores_ProcessorStepRW(); } public boolean replaceReferenceWith(StepCoreObject oldObj, StepCoreObject newObj) { boolean done = false; for (ListIterator itori = getCores().listIterator(); itori.hasNext(); ) { if (itori.next() == oldObj ) { if (newObj == null) { itori.remove(); } else { itori.set((Core_Unit)newObj); } done = true; } } if (super.replaceReferenceWith(oldObj, newObj)) { done = true; } return done; } }