|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pedviz.algorithms.ErrorChecking
public class ErrorChecking
The integrated method identifies the following basic errors: INVALID_SEX_DAD, INVALID_SEX_MOM, MISSING_DAD, MISSING_MOM, MULTI_PEDIGREES, SINGLETON.
Constructor Summary | |
---|---|
ErrorChecking(Graph graph)
Inits ErrorChecking. |
|
ErrorChecking(Graph graph,
java.lang.Object male,
java.lang.Object female)
Inits ErrorChecking. |
|
ErrorChecking(java.util.Vector<Graph> graphs)
Inits ErrorChecking for a collection of graphs. |
|
ErrorChecking(java.util.Vector<Graph> graphs,
java.lang.Object male,
java.lang.Object female)
Inits ErrorChecking for a collection of graphs. |
Method Summary | |
---|---|
void |
addChangeListener(javax.swing.event.ChangeListener l)
Registers a ChangeListener. |
java.util.Vector<GraphError> |
getErrors()
Returns a list with all errors. |
java.lang.String |
getMessage()
Returns a short description of the algorithm. |
int |
getPercentComplete()
Returns the progress in percents from 0 to 100 |
void |
run()
Starts the error-checking. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ErrorChecking(Graph graph)
graph
- graph.public ErrorChecking(Graph graph, java.lang.Object male, java.lang.Object female)
graph
- graphmale
- symbol for male (default "1")female
- symbol for female (default "2")public ErrorChecking(java.util.Vector<Graph> graphs, java.lang.Object male, java.lang.Object female)
graphs
- collection of graphs.male
- symbol for male (default "1")female
- symbol for female (default "2")public ErrorChecking(java.util.Vector<Graph> graphs)
graphs
- collection of graphs.Method Detail |
---|
public void addChangeListener(javax.swing.event.ChangeListener l)
Algorithm
addChangeListener
in interface Algorithm
l
- Changepublic java.lang.String getMessage()
Algorithm
getMessage
in interface Algorithm
public int getPercentComplete()
Algorithm
getPercentComplete
in interface Algorithm
public void run()
run
in interface java.lang.Runnable
run
in interface Algorithm
public java.util.Vector<GraphError> getErrors()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |