public static HashMap<String, HashMap<String, Float>> getHypotheses(
            ProbabilisticNetwork bn, HashMap<String, List<String>> queries)
            throws ShanksException {
        HashMap<String, HashMap<String, Float>> result = new HashMap<String, HashMap<String, Float>>();
        for (Entry<String, List<String>> query : queries.entrySet()) {
            HashMap<String, Float> partialResult = ShanksAgentBayesianReasoningCapability
                    .getNodeHypotheses(bn, query.getKey(), query.getValue());
            result.put(query.getKey(), partialResult);
        }
        return result;
    }
public static HashMap < String , HashMap < String , Float > > getHypotheses ( ProbabilisticNetwork bn , HashMap < String , List < String > > queries ) throws ShanksException { HashMap < String , HashMap < String , Float > > result = new HashMap < String , HashMap < String , Float > > ( ) ; for ( Entry < String , List < String > > query : queries . entrySet ( ) ) { HashMap < String , Float > partialResult = ShanksAgentBayesianReasoningCapability . getNodeHypotheses ( bn , query . getKey ( ) , query . getValue ( ) ) ; result . put ( query . getKey ( ) , partialResult ) ; } return result ; }
Query several states of a set of nodes

@param bn
@param queries
in format hashmap of [node, List of states]
@return results in format hashmap of [node, hashmap]. The second hashmap
is [state, probability of the hypothesis]
@throws UnknownNodeException
@throws UnknowkNodeStateException