code: public static HashMap<String, Float> getNodeStatesHypotheses(Network bn,
              String nodeName) throws ShanksException {
          try {
              int node = ShanksAgentBayesianReasoningCapability.getNode(bn,
                      nodeName);
              String[] states = bn.getOutcomeIds(node);
              HashMap<String, Float> result = new HashMap<String, Float>();
              for (int i = 0; i < states.length; i++) {
                  String status = states[i];
                  Float hypothesis = (float) bn.getNodeValue(node)[i];
                  result.put(status, hypothesis);
              }
              return result;
          } catch (Exception e) {
              throw new ShanksException("Problem getting hypotheses from: "
                      + nodeName + " -> Exception message: " + e.getMessage());
          }
      }
docs: To know the full status of a node
  
  @param bn
  @param nodeName
  @return hashmap in format [status, hypothesis]
  @throws UnknownNodeException