//------------------------------------------------------------------------------- // 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 Generic_Cache extends Named_Object { private static String EntityName = "GENERIC_CACHE"; private Integer number_of_block_; private Integer block_size_; private Integer associativity_; private Cache_Replacement_Type cache_replacement_; private Double hit_time_; private Double miss_time_; private Integer miss_rate_; private Cache_Coherence_Protocol_Type cache_coherence_protocol_; private Cache_Type cache_category_; 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(); number_of_block_ = 0; block_size_ = 0; associativity_ = 0; cache_replacement_ = Cache_Replacement_Type.Random; hit_time_ = 0.0; miss_time_ = 0.0; miss_rate_ = 0; cache_coherence_protocol_ = Cache_Coherence_Protocol_Type.Private_Cache_Protocol; cache_category_ = Cache_Type.Data_Cache_Type; } public Generic_Cache () { initializeExplicitAttributes(); } public Generic_Cache (step.core.StepCoreRepository _repo) { super(_repo); initializeExplicitAttributes(); } public void setNumberOfBlock ( Integer _v ) { number_of_block_ = _v; } public Integer getNumberOfBlock() { return number_of_block_; } public void setBlockSize ( Integer _v ) { block_size_ = _v; } public Integer getBlockSize() { return block_size_; } public void setAssociativity ( Integer _v ) { associativity_ = _v; } public Integer getAssociativity() { return associativity_; } public void setCacheReplacement ( Cache_Replacement_Type _v ) { cache_replacement_ = _v; } public Cache_Replacement_Type getCacheReplacement() { return cache_replacement_; } public void setHitTime ( Double _v ) { hit_time_ = _v; } public Double getHitTime() { return hit_time_; } public void setMissTime ( Double _v ) { miss_time_ = _v; } public Double getMissTime() { return miss_time_; } public void setMissRate ( Integer _v ) { miss_rate_ = _v; } public Integer getMissRate() { return miss_rate_; } public void setCacheCoherenceProtocol ( Cache_Coherence_Protocol_Type _v ) { cache_coherence_protocol_ = _v; } public Cache_Coherence_Protocol_Type getCacheCoherenceProtocol() { return cache_coherence_protocol_; } public void setCacheCategory ( Cache_Type _v ) { cache_category_ = _v; } public Cache_Type getCacheCategory() { return cache_category_; } public void accept(CheddarBridge_AbstractVisitor visitor ) { visitor.accept((Generic_Cache) this); } public step.core.StepCoreObjectReaderWriter readerWriter() { return new Generic_CacheStepRW(); } public boolean replaceReferenceWith(StepCoreObject oldObj, StepCoreObject newObj) { boolean done = false; if (super.replaceReferenceWith(oldObj, newObj)) { done = true; } return done; } }