code: public static void addSoftEvidences(Network bn,
              HashMap<String, HashMap<String, Double>> softEvidences)
              throws ShanksException {
          for (Entry<String, HashMap<String, Double>> softEvidence : softEvidences
                  .entrySet()) {
              ShanksAgentBayesianReasoningCapability.addSoftEvidence(bn,
                      softEvidence.getKey(), softEvidence.getValue());
          }
      }
docs: Add a set of soft-evidences to the Bayesian network to reason with it. It
  creates automatically the auxiliary nodes.
  
  @param bn
  @param softEvidences
  hashmap in format [nodeName, hashmap] to set evidences in the
  bayesian network. The second hashmap in format [nodeStatus,
  confidence]
  @throws ShanksException