public static boolean tcaMax ( FlowNode flowNode , RandomIter tcaIter , RandomIter hacklengthIter , double maxTca , double maxDistance ) { List < FlowNode > enteringNodes = flowNode . getEnteringNodes ( ) ; for ( Node node : enteringNodes ) { double tca = node . getValueFromMap ( tcaIter ) ; if ( tca >= maxTca ) { if ( NumericsUtilities . dEq ( tca , maxTca ) ) { if ( node . getValueFromMap ( hacklengthIter ) > maxDistance ) return false ; } else return false ; } } return true ; }
Compare two value of tca and distance .