com.cra.bnet.error
Class SelfLoopError

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

public class SelfLoopError
extends BnetError

An error that occurs when a self-loop edge was added to a Bayesian network.

See Also:
Serialized Form

Constructor Summary
SelfLoopError(BayesianNetwork network, Node node)
          Creates a new SelfLoopError using the specified network model and node.
 
Method Summary
 Node getNode()
          Returns the node that was both the source and target of the self-loop 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

SelfLoopError

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

Parameters:
network - Bayesian network the error occurred in.
node - node that was both the source and target of the self-loop edge.
Method Detail

getNode

public Node getNode()
Returns the node that was both the source and target of the self-loop edge.

Returns:
the node that was both the source and target of the self-loop edge.