com.cra.bnet.error
Class DuplicateEdgeError

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--com.cra.bnet.error.BnetError
                          |
                          +--com.cra.bnet.error.DuplicateEdgeError
All Implemented Interfaces:
Serializable

public class DuplicateEdgeError
extends BnetError

An error that occurs when a duplicate edge was added to a Bayesian network.

See Also:
Serialized Form

Constructor Summary
DuplicateEdgeError(BayesianNetwork network, Node source, Node target)
          Creates a new DuplicateEdgeError using the specified network model, source node, and target node.
 
Method Summary
 Node getSource()
          Returns the source node of the duplicate edge.
 Node getTarget()
          Returns the target node of the duplicate edge.
 
Methods inherited from class com.cra.bnet.error.BnetError
getNetwork
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DuplicateEdgeError

public DuplicateEdgeError(BayesianNetwork network,
                          Node source,
                          Node target)
Creates a new DuplicateEdgeError using the specified network model, source node, and target node.

Parameters:
network - Bayesian network the error occurred in.
source - source node of the duplicate edge.
target - target node of the duplicate edge.
Method Detail

getSource

public Node getSource()
Returns the source node of the duplicate edge.

Returns:
the source node of the duplicate edge.

getTarget

public Node getTarget()
Returns the target node of the duplicate edge.

Returns:
the target node of the duplicate edge.