gr.uoa.di.madgik.commons.infra.collocationpolicy
Class MaximumCollocationPolicy
java.lang.Object
gr.uoa.di.madgik.commons.infra.collocationpolicy.MaximumCollocationPolicy
- All Implemented Interfaces:
- CollocationPolicy
public class MaximumCollocationPolicy
- extends java.lang.Object
- implements CollocationPolicy
This collocation policy tries to assign as many functional plan elements of the same plan as possible to the same boundary.
Conversely, the policy will attempt to spread functional plan elements of different plans to different boundaries.
- Author:
- gerasimos.farantatos - DI NKUA
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultPenalty
public static float DefaultPenalty
MaximumCollocationPolicy
public MaximumCollocationPolicy(NodeSelector selector,
float threshold)
getType
public CollocationPolicy.Type getType()
- Specified by:
getType
in interface CollocationPolicy
setPenalty
public void setPenalty(float collocationPenalty)
- Specified by:
setPenalty
in interface CollocationPolicy
selectNode
public HostingNode selectNode(java.util.List<HostingNode> candidates)
throws java.lang.Exception
- Specified by:
selectNode
in interface CollocationPolicy
- Throws:
java.lang.Exception