/**
* To find the paths between compartments, PoI will be run from
* the nodes in the source compartment to the nodes in the target
* compartment
*/
LocalPoIQuery poi;
Set<GraphObject> result = new HashSet<GraphObject>();
//if length limit is selected and strict is unchecked.
if (options.getLimitType() && !options.isStrict())
{
poi = new LocalPoIQuery(sourceNodes, targetNodes,
true, options.getLengthLimit(), false);
}
//if length limit is selected and strict is checked.
else if (options.getLimitType() && options.isStrict())
{
poi = new LocalPoIQuery(sourceNodes, targetNodes,
true, options.getLengthLimit(), true);
}
//if shortest+k is selected and strict is unchecked.
else if (!options.getLimitType() && !options.isStrict())
{
poi = new LocalPoIQuery(sourceNodes, targetNodes,
false, options.getShortestPlusKLimit(), false);
}
//if shortest+k is selected and strict is checked.
else
{
poi = new LocalPoIQuery(sourceNodes, targetNodes,
false, options.getShortestPlusKLimit(), true);
}
//Run PoI and add result of PoI to the result set
result.addAll(poi.run());
//if no result can be found, open dialog to warn.
if (result.size() == 0)
{
MessageDialog.openWarning(main.getShell(),