|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpedviz.algorithms.GraphError
public class GraphError
Represents an error in a graph Object.
| Field Summary | |
|---|---|
static java.lang.String[] |
errorMessages
|
static int |
INVALID_SEX_DAD
|
static int |
INVALID_SEX_MOM
|
static int |
MISSING_DAD
|
static int |
MISSING_MOM
|
static int |
MULTI_PEDIGREES
|
static int |
SINGLETON
|
| Constructor Summary | |
|---|---|
GraphError(int type,
Node node)
Creates a GraphError object for a single node. |
|
GraphError(int type,
Node node,
java.lang.String message)
Creates a GraphError object for a single node with a customized message. |
|
GraphError(int type,
java.util.Vector<Node> nodes)
Creates a GraphError object for a collection of nodes. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object arg0)
|
java.util.Vector<Node> |
getNodes()
Returns a collection of all involved nodes. |
int |
getType()
Returns the type. |
boolean |
isMultipleNodes()
Returns true, when more nodes are involved. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int INVALID_SEX_MOM
public static final int INVALID_SEX_DAD
public static final int SINGLETON
public static final int MISSING_MOM
public static final int MISSING_DAD
public static final int MULTI_PEDIGREES
public static java.lang.String[] errorMessages
| Constructor Detail |
|---|
public GraphError(int type,
java.util.Vector<Node> nodes)
type - error-typenodes - involved nodes.
public GraphError(int type,
Node node)
type - error-type.node - involved node.
public GraphError(int type,
Node node,
java.lang.String message)
type - error-type.node - involved node.message - message.| Method Detail |
|---|
public int getType()
public boolean isMultipleNodes()
public java.util.Vector<Node> getNodes()
public java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(java.lang.Object arg0)
compareTo in interface java.lang.Comparable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||