public abstract class BaseAnalysis
extends java.lang.Object
implements java.io.Serializable
First, call the analyzeStructure(vassal.data.Cell) operation to perform the analysis of the structure. Once this operation completes, individual measures can be retrieved with operations specific to the implementing class.
Modifier and Type | Field and Description |
---|---|
protected Cell |
Structure
Link to structure being evaluated
|
Constructor and Description |
---|
BaseAnalysis() |
Modifier and Type | Method and Description |
---|---|
void |
analyzeStructure(Cell strc)
Analyze a specific structure.
|
protected abstract void |
precompute()
Perform any kind of computations that should only be performed once.
|
void |
recompute()
Recalculate structural information.
|
protected Cell Structure
public void analyzeStructure(Cell strc) throws java.lang.Exception
strc
- Structure to be analyzed.java.lang.Exception
- If computation failsprotected abstract void precompute() throws java.lang.Exception
java.lang.Exception
- If computation failspublic void recompute() throws java.lang.Exception
java.lang.Exception
- If computation fails