package application.slogonode.BooleanOperations;

import java.util.ArrayList;
import java.util.List;

import application.Actions.AbstractAction;
import application.slogonode.Number.ConstantNode;

public class AndNode extends BooleanOperations {

	public AndNode() {
		myOperation = "AND";
	}

	@Override
	public List<AbstractAction> evaluate() {
		List<AbstractAction> actionList = new ArrayList<AbstractAction>();
		double value = 0;
		if (myChildren.get(0).evaluate().get(0).getValue()== 1
				&& myChildren.get(1).evaluate().get(0).getValue()== 1) {
			value = 1;
		}
		actionList.addAll((new ConstantNode(value)).evaluate());
		return actionList;
	}
}
@@ -161,24 +161,15 @@
 ion.
-slogonode.Number
+Actions
 .Con
@@ -173,20 +173,22 @@
 Constant
-Node
+Action
 ;%0A%0Apubli
@@ -283,19 +283,8 @@
 %09%7D%0A%0A
-%09@Override%0A
 %09pub
@@ -448,34 +448,32 @@
 te().get(0).
-get
+my
 Value
-()
+ 
 == 1%0A%09%09%09%09&& 
@@ -512,18 +512,16 @@
 (0).
-get
+my
 Value
-()
+ 
 == 1
@@ -548,27 +548,32 @@
 %7D%0A%09%09
-actionList.addAll((
+AbstractAction action = 
 new 
@@ -584,31 +584,46 @@
 tant
-Node
+Action
 (value)
-).evaluate()
+;%0A%09%09actionList.add(action
 );%0A%09

Revert "And"