gr.uoa.di.madgik.commons.infra.nodeassignmentpolicy
Class MinimumCollocationPolicy
java.lang.Object
gr.uoa.di.madgik.commons.infra.nodeassignmentpolicy.MinimumCollocationPolicy
- All Implemented Interfaces:
- NodeAssignmentPolicy
public class MinimumCollocationPolicy
- extends Object
- implements NodeAssignmentPolicy
This policy tries to assign as few functional plan elements of the same plan as possible to the same boundary.
- Author:
- gerasimos.farantatos - DI NKUA
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultPenalty
public static float DefaultPenalty
MinimumCollocationPolicy
public MinimumCollocationPolicy(NodeSelector selector)
MinimumCollocationPolicy
public MinimumCollocationPolicy(NodeSelector selector,
float threshold)
getType
public NodeAssignmentPolicy.Type getType()
- Specified by:
getType in interface NodeAssignmentPolicy
setPenalty
public void setPenalty(float collocationPenalty)
- Specified by:
setPenalty in interface NodeAssignmentPolicy
selectNode
public HostingNode selectNode(List<HostingNode> candidates)
throws Exception
- Specified by:
selectNode in interface NodeAssignmentPolicy
- Throws:
Exception
reset
public void reset()
- Specified by:
reset in interface NodeAssignmentPolicy
Copyright © 2013. All Rights Reserved.