public Set < Node > getAllNotDead ( ) { Set < Node > allNotDeadNodesSet = new HashSet < Node > ( ) ; for ( Node node : socketToNodeMap . values ( ) ) { if ( ! NodeStatus . DEAD . equals ( node . getStatus ( ) ) ) { allNotDeadNodesSet . add ( node ) ; } } return allNotDeadNodesSet ; }
Gets all the nodes not in status DEAD .