Ejemplo n.º 1
0
 /// <summary>
 /// Initialize Transitions and OptimalCost
 /// </summary>
 /// <param name="trace">Workflow trace</param>
 /// <param name="pNet">Petri net</param>
 /// <param name="traceMoveCost">Trace move cost</param>
 /// <param name="modelMoveCost">Model move cost</param>
 private void InitTransitionsAndOptimalCost(WorkflowTrace trace, PetriNet pNet, int traceMoveCost, int modelMoveCost)
 {
     Transitions = AlignmentUtils.OptimalAlignmentOnTrace(trace, pNet, traceMoveCost, modelMoveCost);
     OptimalCost = AlignmentUtils.ComputeCostOfAlignment(Transitions);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initialize Transitions and OptimalCost
 /// </summary>
 /// <param name="trace">Workflow trace</param>
 /// <param name="pNet">Petri net</param>
 /// <param name="traceMoveCost">Trace move cost</param>
 /// <param name="modelMoveCost">Model move cost</param>
 private void InitTransitionsAndOptimalCost(PetriNet pNet1, PetriNet pNet2, int pNet1MoveCost, int pNet2MoveCost)
 {
     Transitions = AlignmentUtils.OptimalAlignmentOnNets(pNet1, pNet2, pNet1MoveCost, pNet2MoveCost);
     OptimalCost = AlignmentUtils.ComputeCostOfAlignment(Transitions);
 }