boolean checkInputDependencyConstraints ( ) { if ( getInputDependencyConstraint ( ) == InputDependencyConstraint . ANY ) { // InputDependencyConstraint == ANY return IntStream . range ( 0 , inputEdges . length ) . anyMatch ( this :: isInputConsumable ) ; } else { // InputDependencyConstraint == ALL return IntStream . range ( 0 , inputEdges . length ) . allMatch ( this :: isInputConsumable ) ; } }
Check whether the InputDependencyConstraint is satisfied for this vertex .