public void addInputNode(BNode inputNode){
  if (inputNode == this) {
    log.warning("cannot add itself: " + nodeId);
  }
  if (containsCycles(inputNode)) {
    log.warning("there is a cycle between " + inputNode.getId() + " and "+ nodeId);
  }
  if (this instanceof ActionNode) {
    log.warning("an action node cannot be dependent on any other node");
  }
  if (inputNode instanceof UtilityNode) {
    log.warning("an utility node cannot be the input of any other node (" + inputNode.getId() + " -> "+ nodeId+ ")");
  }
  addInputNode_internal(inputNode);
  inputNode.addOutputNode_internal(this);
}

public void addInputNode ( BNode inputNode ) { if ( inputNode == this ) { log . warning ( "cannot add itself: " + nodeId ) ; } if ( containsCycles ( inputNode ) ) { log . warning ( "there is a cycle between " + inputNode . getId ( ) + " and " + nodeId ) ; } if ( this instanceof ActionNode ) { log . warning ( "an action node cannot be dependent on any other node" ) ; } if ( inputNode instanceof UtilityNode ) { log . warning ( "an utility node cannot be the input of any other node (" + inputNode . getId ( ) + " -> " + nodeId + ")" ) ; } addInputNode_internal ( inputNode ) ; inputNode . addOutputNode_internal ( this ) ; }
adds a new relation from the node given as argument to the current node .
