Package jline.lang.sections
Class CacheClassSwitcher
-
- All Implemented Interfaces:
-
java.io.Serializable,jline.lang.Copyable
public class CacheClassSwitcher extends StatefulClassSwitcher implements Serializable
A class switcher section recording cache hits and misses
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classCacheClassSwitcher.InputJobClassesObj
-
Field Summary
Fields Modifier and Type Field Description public MatrixhitClasspublic MatrixmissClasspublic MatrixactualHitProbpublic MatrixactualMissProbpublic Map<Integer, CacheClassSwitcher.InputJobClassesObj>inputJobClassesprotected SerializableFunction<ClassSwitcher.CSFunInput, Double>csFunprotected List<JobClass>jobClassesprotected doublenumberOfServersprotected Map<JobClass, ServiceBinding>serviceProcessespublic StringclassNameprotected Stringname
-
Constructor Summary
Constructors Constructor Description CacheClassSwitcher(List<JobClass> jobClasses, int items, Matrix capacity)CacheClassSwitcher(List<JobClass> jobClasses, int items, Matrix capacity, int levels)
-
Method Summary
Modifier and Type Method Description doublesimpleHitMiss(int r, int s)doublesimpleHitMiss(int r, int s, Matrix state)doublesimpleHitMiss(int r, int s, Matrix state, Matrix statep)-
Methods inherited from class jline.lang.sections.Section
getClassName -
Methods inherited from class jline.lang.sections.ClassSwitcher
applyCsFun -
Methods inherited from class jline.lang.sections.ServiceSection
containsJobClass, getServiceDistribution, getServiceProcess, removeServiceProcess, setServiceProcesses -
Methods inherited from class jline.lang.Element
getName, setName -
Methods inherited from class jline.lang.Copyable
copy -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
simpleHitMiss
double simpleHitMiss(int r, int s)
-
simpleHitMiss
double simpleHitMiss(int r, int s, Matrix state)
-
simpleHitMiss
double simpleHitMiss(int r, int s, Matrix state, Matrix statep)
-
-
-
-