To know all values of all nodes of the Bayesian network

@param agent
@return hashmap in format [node, [status, hypothesis]]
@throws UnknownNodeException
328573
public static HashMap<String, HashMap<String, Float>> getAllHypotheses(
            BayesianReasonerShanksAgent agent) throws ShanksException {
        return ShanksAgentBayesianReasoningCapability.getAllHypotheses(agent
                .getBayesianNetwork());
    }
1031395
public static SynchronizedIterable<AgentContext> getContextsOf(Agent agent) throws Exception {
		final ExternalContextAccess skill = SREutils.getInternalSkill(agent, ExternalContextAccess.class);
		assert skill != null;
		return skill.getAllContexts();
	}
535034
@Override
  @NullSafe
  public Map<KEY, VALUE> toMap() {
    return Collections.unmodifiableMap(nullSafeMap(getMap()));
  }
922100
@JsonIgnore
    public void setUnknownFields(final Map<String,Object> unknownFields) {
        this.unknownFields.clear();
        this.unknownFields.putAll(unknownFields);
    }
103386
public Set<N> getParents(N n)
    {
        Pair<HashSet<N>, HashSet<N>> p = nodes.get(n);
        
        if(p == null)
            return null;
        
        return p.getIncoming();
    }
527297
@Override
    public List<IAtom> getConnectedAtomsList(IAtom atom) {
        List<IAtom> atomsList = new ArrayList<IAtom>();
        for (int i = 0; i < bondCount; i++) {
            if (bonds[i].contains(atom)) atomsList.add(bonds[i].getOther(atom));
        }
        return atomsList;
    }
767249
public void setAgents(java.util.Collection<AgentListEntry> agents) {
        if (agents == null) {
            this.agents = null;
            return;
        }

        this.agents = new java.util.ArrayList<AgentListEntry>(agents);
    }
472298
public Map<String, Collection<String>> getRoles(final Node node) {
        return getAgentRoles(nodeConverter.convert(node));
    }
210582
public static <K, V> HashMap<K, V> newEmptyHashMap(Iterable<?> iterable) {
        if(iterable instanceof Collection<?>)
            return Maps.newHashMapWithExpectedSize(((Collection<?>) iterable).size());
        return Maps.newHashMap();
    }
1011542
public static boolean isAgent(final String agent)
	{
		if (agent != null)
		{
			final String lowerAgent = agent.toLowerCase();
			for (final String noBot : NO_BOT_AGENTS)
			{
				if (lowerAgent.contains(noBot))
				{
					return false;
				}
			}
			for (final String bot : BOT_AGENTS)
			{
				if (lowerAgent.contains(bot))
				{
					return true;
				}
			}
		}
		return false;
	}
151106
public static void addSoftEvidences(BayesianReasonerShanksAgent agent,
            HashMap<String, HashMap<String, Double>> softEvidences)
            throws ShanksException {
        ShanksAgentBayesianReasoningCapability.addSoftEvidences(
                agent.getBayesianNetwork(), softEvidences);
    }
599161
public Map<String, Object> getMBeanResult(final String mbeanName) {
    final Map<String, Object> ret = new HashMap<>();
    try {
      final ObjectName name = new ObjectName(mbeanName);
      final MBeanInfo info = getMBeanInfo(name);

      final MBeanAttributeInfo[] mbeanAttrs = info.getAttributes();
      final Map<String, Object> attributes = new TreeMap<>();

      for (final MBeanAttributeInfo attrInfo : mbeanAttrs) {
        final Object obj = getMBeanAttribute(name, attrInfo.getName());
        attributes.put(attrInfo.getName(), obj);
      }

      ret.put("attributes", attributes);
    } catch (final Exception e) {
      logger.error("Invalid MBean Name. name = " + mbeanName, e);
      ret.put("error", "'" + mbeanName + "' is not a valid mBean name");
    }

    return ret;
  }
249659
public static void addEvidences(BayesianReasonerShanksAgent agent,
            HashMap<String, String> evidences) throws ShanksException {
        ShanksAgentBayesianReasoningCapability.addEvidences(
                agent.getBayesianNetwork(), evidences);
    }
912018
@SuppressWarnings("unchecked")
  <T extends GraphNode<N, E>> T getNodeOrFail(N val) {
    T node = (T) getNode(val);
    if (node == null) {
      throw new IllegalArgumentException(val + " does not exist in graph");
    }
    return node;
  }
280494
@Override
    public synchronized void setBeliefValue(String agent_name, String belief_name,
            Object new_value, Connector connector) {
        JadeAgentIntrospector.getInstance().dataToTest.get(agent_name).put(belief_name, new_value);
    }
45097
@ManyToOne(targetEntity = org.openprovenance.prov.sql.QualifiedName.class, cascade = {
        CascadeType.ALL
    })
    @JoinColumn(name = "AGENT")
    public org.openprovenance.prov.model.QualifiedName getAgent() {
        return agent;
    }
239516
@SuppressWarnings("unchecked")
    public Map toMap() {
        HashMap map = new HashMap();
        map.put("code", code);
        map.put("message", message);
        if (data != null)
            map.put("data", data);
        return map;
    }