code: public static void addEvidence(ProbabilisticNetwork bn, String nodeName,
              String status) throws ShanksException {
          ProbabilisticNode node = ShanksAgentBayesianReasoningCapability
                  .getNode(bn, nodeName);
          if (node.hasEvidence()) {
              ShanksAgentBayesianReasoningCapability.clearEvidence(bn, node);
          }
          int states = node.getStatesSize();
          for (int i = 0; i < states; i++) {
              if (status.equals(node.getStateAt(i))) {
                  node.addFinding(i);
                  try {
                      bn.updateEvidences();
                  } catch (Exception e) {
                      throw new ShanksException(e);
                  }
                  return;
              }
          }
          throw new UnknowkNodeStateException(bn, nodeName, status);
      }
docs: Add information to the Bayesian network to reason with it.
  
  @param bn
  @param nodeName
  @param status
  @throws ShanksException