|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmessif.buckets.split.SplitPolicy
messif.buckets.split.impl.SplitPolicyVoronoiPartitioning
public class SplitPolicyVoronoiPartitioning
This class implements Voronoi-like partitioning policy.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class messif.buckets.split.SplitPolicy |
---|
SplitPolicy.ParameterField |
Field Summary | |
---|---|
protected LocalAbstractObject[] |
pivots
Policy parameter pivot |
Fields inherited from class messif.buckets.split.SplitPolicy |
---|
PART_ID_ANY |
Constructor Summary | |
---|---|
SplitPolicyVoronoiPartitioning()
Creates a new instance of SplitPolicyBallPartitioning |
Method Summary | |
---|---|
int |
getPartitionsCount()
Returns the number of partitions of this policy. |
LocalAbstractObject[] |
getPivots()
Returns the array of pivots used for the Voronoi-like partitioning. |
int |
match(BallRegion region)
NOT IMPLEMENTED YET!!!! |
int |
match(LocalAbstractObject object)
Returns the index of partition to which the object belongs. |
void |
setPivots(LocalAbstractObject[] pivots)
Sets the pivots for Voronoi-like partitioning. |
Methods inherited from class messif.buckets.split.SplitPolicy |
---|
getBucketBallRegion, getParameter, getParameterNames, getParameterType, isComplete, isParameterFilled, isParameterLocked, lockParameter, match, setParameter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected LocalAbstractObject[] pivots
Constructor Detail |
---|
public SplitPolicyVoronoiPartitioning()
Method Detail |
---|
public LocalAbstractObject[] getPivots()
public void setPivots(LocalAbstractObject[] pivots)
pivots
- the array of pivotspublic int match(LocalAbstractObject object)
object
belongs.
match
in interface ObjectMatcher<LocalAbstractObject>
match
in class SplitPolicy
object
- an object that is tested for partition
public int getPartitionsCount()
getPartitionsCount
in class SplitPolicy
public int match(BallRegion region)
match(LocalAbstractObject)
method.
match
in class SplitPolicy
region
- a ball region that is tested for the matching condition
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |