gr.uoa.di.madgik.commons.infra.nodeassignmentpolicy
Class MinimumCollocationPolicy

java.lang.Object
  extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface gr.uoa.di.madgik.commons.infra.nodeassignmentpolicy.NodeAssignmentPolicy
NodeAssignmentPolicy.Type
 
Field Summary
static float DefaultPenalty
           
 
Constructor Summary
MinimumCollocationPolicy(NodeSelector selector)
           
MinimumCollocationPolicy(NodeSelector selector, float threshold)
           
 
Method Summary
 NodeAssignmentPolicy.Type getType()
           
 void reset()
           
 HostingNode selectNode(List<HostingNode> candidates)
           
 void setPenalty(float collocationPenalty)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DefaultPenalty

public static float DefaultPenalty
Constructor Detail

MinimumCollocationPolicy

public MinimumCollocationPolicy(NodeSelector selector)

MinimumCollocationPolicy

public MinimumCollocationPolicy(NodeSelector selector,
                                float threshold)
Method Detail

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 © 2012. All Rights Reserved.