public class CoyoteCache extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.apache.log4j.Logger |
log4j
logger
|
CacheInterface |
m_cache
current replacement policy
|
protected Map<Integer,Set<Integer>> |
m_finalCluster |
protected List<Element> |
m_partialCluster
partial cluster
|
protected SeedOrderInterface |
m_seedPolicy
current seed policy
|
Statistic |
m_statistic
cache statistic
|
static boolean |
online |
| Constructor and Description |
|---|
CoyoteCache(CacheInterface cache) |
CoyoteCache(CacheInterface cache,
SeedOrderInterface seedPolicy) |
| Modifier and Type | Method and Description |
|---|---|
Set<Integer> |
get(Set<Integer> element)
Gets the finalElement to element if exists, else null
|
Set<Integer> |
get(Set<Integer> set,
Double cost)
Gets the finalElement to element if exists, else null
|
Integer |
getBestSeed()
Gets the next seed, that should be use for clustering.
|
Set<Integer> |
put(Set<Integer> finalSet)
|
void |
setSeeds(Set<Integer> seeds)
Initializes all seeds that should be use during the process.
|
String |
toString() |
public static final boolean online
public static org.apache.log4j.Logger log4j
public CacheInterface m_cache
protected SeedOrderInterface m_seedPolicy
public Statistic m_statistic
public CoyoteCache(CacheInterface cache, SeedOrderInterface seedPolicy)
cache - the Cache to useseedPolicy - set to null without a SeedPolicypublic CoyoteCache(CacheInterface cache)
public Set<Integer> get(Set<Integer> element)
public Set<Integer> get(Set<Integer> set, Double cost)
cost - the cost of the clusterpublic Integer getBestSeed()
Copyright © 2014. All rights reserved.