Issue #88 - Fixed Graph building

Fixed while and/or loops
This commit is contained in:
Jindra Pet��k
2013-05-05 10:28:00 +02:00
parent 3a6354276c
commit c716b9b328
5 changed files with 97 additions and 53 deletions
@@ -22,6 +22,16 @@ public class AndItem extends BinaryOpItem {
public GraphPart firstPart;
public GraphPart getFirstPart() {
if (leftSide instanceof AndItem) {
return ((AndItem) leftSide).getFirstPart();
}
if (leftSide instanceof OrItem) {
return ((OrItem) leftSide).getFirstPart();
}
return firstPart;
}
@Override
public List<GraphSourceItemPos> getNeededSources() {
List<GraphSourceItemPos> ret = super.getNeededSources();