com.cra.bnet.error
Class DuplicateNodeError

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

public class DuplicateNodeError
extends BnetError

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

See Also:
Serialized Form

Constructor Summary
DuplicateNodeError(BayesianNetwork network, String name)
          Creates a new DuplicateNodeError using the specified name.
 
Method Summary
 String getName()
          Returns the name of the node that could not be added to the Bayesian network.
 
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

DuplicateNodeError

public DuplicateNodeError(BayesianNetwork network,
                          String name)
Creates a new DuplicateNodeError using the specified name.

Parameters:
network - Bayesian network the error occurred in.
name - name of node that could not be added to the Bayesian network.
Method Detail

getName

public String getName()
Returns the name of the node that could not be added to the Bayesian network.

Returns:
the name of the node that could not be added to the Bayesian network.