|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjchrest.lib.Scene
public class Scene
Constructor Summary | |
---|---|
Scene(java.lang.String name,
int height,
int width)
|
Method Summary | |
---|---|
void |
addRow(int row,
char[] items)
|
int |
computeErrorsOfCommission(Scene scene)
Compute errors of commission of given scene against this one. |
int |
computeErrorsOfOmission(Scene scene)
Compute errors of omission of given scene against this one. |
float |
computePrecision(Scene scene)
Compute precision of given scene against this one. |
float |
computeRecall(Scene scene)
Compute recall of given scene against this one. |
int |
countItems()
Count the number of non-empty squares in the scene. |
int |
countOverlappingPieces(Scene scene)
|
int |
getHeight()
|
java.lang.String |
getItem(int row,
int column)
|
ListPattern |
getItems(int startRow,
int startColumn,
int size)
Retrieve all items within given row +/- size, column +/- size TODO: Convert this to use a circular field of view. |
java.lang.String |
getName()
|
int |
getWidth()
|
boolean |
isEmpty(int row,
int column)
|
void |
setItem(int row,
int column,
java.lang.String item)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Scene(java.lang.String name, int height, int width)
Method Detail |
---|
public java.lang.String getName()
public int getHeight()
public int getWidth()
public void addRow(int row, char[] items)
public java.lang.String getItem(int row, int column)
public void setItem(int row, int column, java.lang.String item)
public boolean isEmpty(int row, int column)
public ListPattern getItems(int startRow, int startColumn, int size)
public int countItems()
public int countOverlappingPieces(Scene scene)
public float computePrecision(Scene scene)
public float computeRecall(Scene scene)
public int computeErrorsOfOmission(Scene scene)
public int computeErrorsOfCommission(Scene scene)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |