Package unbbayes.prs.mebn.entity

Examples of unbbayes.prs.mebn.entity.Entity


    String ship2Name;
    String personName;
    String organizationName;
    ResidentNode residentNode;
    ObjectEntityInstance[] arguments;
    Entity state;
    CategoricalStateEntity categoricalState = null;
   
    entity = mebn.getObjectEntityContainer().getObjectEntityByName("Ship");
    // TODO - Make sure to use a unique id later on
    shipName = "ship" + db.getShips().indexOf(ship);
View Full Code Here


    ObjectEntityInstance[] arguments = new ObjectEntityInstance[2];
    arguments[0] = mebn.getObjectEntityContainer().getEntityInstanceByName(
        "ship1");
    arguments[1] = mebn.getObjectEntityContainer().getEntityInstanceByName(
        "ship2");
    Entity state = mebn.getBooleanStatesEntityContainer()
        .getTrueStateEntity();
    mebnUtil.createRandomVariableFinding(residentNode, arguments, state);

    residentNode = mebn.getDomainResidentNode("UnusualRoute");
    arguments = new ObjectEntityInstance[1];
View Full Code Here

       
        ResidentNode residentNode = mebn.getDomainResidentNode("IsWithinRadarRange");
        ObjectEntityInstance[] arguments = new ObjectEntityInstance[2];
        arguments[0] = mebn.getObjectEntityContainer().getEntityInstanceByName("ship1");
        arguments[1] = mebn.getObjectEntityContainer().getEntityInstanceByName("ship2");
        Entity state = mebn.getBooleanStatesEntityContainer().getTrueStateEntity();
        mebnUtil.createRandomVariableFinding(residentNode, arguments, state);
       
        residentNode = mebn.getDomainResidentNode("UnusualRoute");
        arguments = new ObjectEntityInstance[1];
        arguments[0] = mebn.getObjectEntityContainer().getEntityInstanceByName("ship1");
View Full Code Here

        expected("Identifier");
      } catch (TableFunctionMalformedException e) {
        throw new InvalidConditionantException(e);
      }
    }
    Entity condvalue = null;
   
    // search for an entity with a name this.value
    ResidentNode possibleValueHolder = null;
    if (mebnNode instanceof InputNode) {
      possibleValueHolder = ((InputNode) mebnNode).getResidentNodePointer().getResidentNode();
View Full Code Here

      scan();
      if (token == 'x') {
        if (this.getNode() != null) {
          // Consistency check C09
          // Remember declared states, so we can check later if all states was declared
          Entity possibleValue = null;
          try {
            possibleValue = possibleStates.get(this.getNode().getPossibleValueIndex(this.noCaseChangeValue));
          } catch (Exception e) {
            //throw new TableFunctionMalformedException(e.getMessage());
            throw new TableFunctionMalformedException(e);
View Full Code Here

      for (int j = 0; j < parents.size(); j++) {
        SSBNNode parent = parents.get(j);
        ResidentNode parentResident = parent.getResident();
        // ignore continuous parent
        if (!(parentResident instanceof ContinuousResidentNode)) {
          Entity val = currentIteratorValue.get(j);
          if (cpsIfClause.length() > 0) {
            // there are other boolean expressions. Combine using &&
            cpsIfClause += " && ";
          }
          cpsIfClause += parent.getProbNode().getName() + " == " + val.getName();
          map.get(parentResident.getName()).add(new EntityAndArguments(val,new ArrayList<OVInstance>(parent.getArguments())));
        }
      }
      if (cpsIfClause.length() > 0) {
        // only start if-clause if there are discrete parents
View Full Code Here

  private void loadEvidence(List<EvidenceInfo> evidenceList) throws Exception {
    ResidentNode residentNode;
    ObjectEntity entity;
    ObjectEntityInstance[] arguments;
    Entity state;
    CategoricalStateEntity categoricalState;
   
    // TODO - Fix this somehow to add what has changed instead of reseting
    // everything and populating again
    mebnUtil.removeAllFindings();
View Full Code Here

   *
   * @param entitySelected
   */
  public void selectState(StateLink stateLink) {

    Entity entitySelected = stateLink.getState();
   
    if (entitySelected instanceof CategoricalStateEntity) {
      showCategoryStatesPanel(stateLink);
    } else {
      if (entitySelected instanceof BooleanStateEntity) {
View Full Code Here

TOP

Related Classes of unbbayes.prs.mebn.entity.Entity

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.