Package bio.singa.simulation.model.rules
Class AssignmentRules
- java.lang.Object
-
- bio.singa.simulation.model.rules.AssignmentRules
-
public final class AssignmentRules extends Object
- Author:
- cl
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<AssignmentRule>sortAssignmentRulesByPriority(List<AssignmentRule> assignmentRules)It is possible, thatAssignmentRules depend on each other.
-
-
-
Method Detail
-
sortAssignmentRulesByPriority
public static List<AssignmentRule> sortAssignmentRulesByPriority(List<AssignmentRule> assignmentRules)
It is possible, thatAssignmentRules depend on each other. So they have to be executed in a certain order. This method checks the dependencies of the AssignmentRules in the supplied list and returns a sorted list that is ordered by calculation priority. So the rules on top of the list should be calculated first.- Parameters:
assignmentRules- The AssignmentRules to sort.- Returns:
- A list of AssignmentRules sorted by the calculation priority.
-
-