Examples of ITabledVariable


Examples of edu.gmu.seor.prognos.unbbayesplugin.jt.prs.bn.ITabledVariable

        stateIndexMap.put(uNode.getStateAt(i), i);
      }
     
      /////////////////////////////////////////////////////////////////////////////////////
      //3. fill zero on table 
      ITabledVariable aux = null;
      PotentialTable auxTab = null;
      if (uNode instanceof ITabledVariable) {
        aux = (ITabledVariable) uNode;
        auxTab = aux.getPotentialTable() ;
      }
      
      int curStateSize = uNode.getStatesSize()
     
      for( INode parent : uNode.getParentNodes() )
View Full Code Here

Examples of edu.gmu.seor.prognos.unbbayesplugin.jt.prs.bn.ITabledVariable

  public void addEdge(Edge edge) throws InvalidParentException {
    edge.getOriginNode().addChild(edge.getDestinationNode());
    edge.getDestinationNode().addParent(edge.getOriginNode());
      edgeList.add(edge);
      if (edge.getDestinationNode() instanceof ITabledVariable) {
      ITabledVariable v2 = (ITabledVariable) edge.getDestinationNode();
      PotentialTable auxTab = v2.getPotentialTable();
      auxTab.addVariable(edge.getOriginNode());
    }
  }
View Full Code Here

Examples of edu.gmu.seor.prognos.unbbayesplugin.jt.prs.bn.ITabledVariable

   *
   *@param  elemento  edge to be removed
   */
  private void removeArco(Edge elemento) {
      Node auxNo;
      ITabledVariable auxTabledVariable;
      PotentialTable auxPotentialTable;
 
      edgeList.remove(elemento);
 
      auxNo = elemento.getDestinationNode();
      if (auxNo instanceof ITabledVariable) {
          auxTabledVariable = (ITabledVariable)auxNo;
          auxPotentialTable = auxTabledVariable.getPotentialTable();
          auxPotentialTable.removeVariable(elemento.getOriginNode(), true);
      }
  }
View Full Code Here

Examples of edu.gmu.seor.prognos.unbbayesplugin.jt.prs.bn.ITabledVariable

  /**
   * This should be used to notify the tables which this variable is part of that
   * there were some modification at this variable's internal structure.
   */
  private void updateTables() {
    ITabledVariable aux;
    if (this instanceof ITabledVariable) {
      aux = (ITabledVariable) this;
      aux.getPotentialTable().variableModified();
    }

    for (int i = children.size() - 1; i >= 0; i--) {
      if (children.get(i) instanceof ITabledVariable) {
        aux = (ITabledVariable) children.get(i);
        aux.getPotentialTable().variableModified();
      }
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.