private int calculateCapacity(int capacity, Task currentTaskNodeTask, actionStates taskState) {
		int newCapacity = 0;
		if(taskState == actionStates.INITSTATE) {
			newCapacity = capacity - currentTaskNodeTask.weight;
		} else {
			newCapacity = capacity + currentTaskNodeTask.weight;
		}
		return newCapacity;
	}