code: public static float getHypothesis(Network bn, String nodeName, String status)
              throws ShanksException {
          int node = ShanksAgentBayesianReasoningCapability.getNode(bn, nodeName);
          String[] states = bn.getOutcomeIds(node);
          for (int i = 0; i < states.length; i++) {
              if (status.equals(states[i])) {
                  return (float) bn.getNodeValue(node)[i];
              }
          }
          throw new UnknowkNodeStateException(bn, nodeName, status);
      }
docs: Get the value of a status in a node
  
  @param bn
  @param nodeName
  @param status
  @return a float with the probability
  @throws UnknownNodeException
  @throws UnknowkNodeStateException