|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.lenkaspace.creeper.model.CRBaseModel
public class CRBaseModel
Maintains an ID and can optionally hold children of the same class
| Field Summary | |
|---|---|
java.util.ArrayList<CRBaseModel> |
childModels
|
int |
id
|
| Constructor Summary | |
|---|---|
CRBaseModel(int id_)
Constructor |
|
| Method Summary | |
|---|---|
void |
addChildModel(CRBaseModel model_)
Add child model to a maintained list. |
void |
clearChildren()
Clear all arrays that store any child objects. |
int |
getId()
|
boolean |
getIsRemoved()
|
void |
onRunEnd(int runNumber_)
Called by CRController each time a run ends. |
void |
onRunStart(int runNumber_)
Called by CRController each time a run starts. |
void |
onTrialEnd(int trialNumber_,
int runNumber_)
Called by CRController each time a trial ends. |
void |
onTrialStart(int trialNumber_,
int runNumber_)
Called by CRController each time a trial starts. |
void |
removeChildModel(CRBaseModel model_)
Remove a child model |
void |
setId(int id)
|
void |
setIsRemoved(boolean is_)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int id
public java.util.ArrayList<CRBaseModel> childModels
| Constructor Detail |
|---|
public CRBaseModel(int id_)
id_ - int unique id| Method Detail |
|---|
public void onRunStart(int runNumber_)
runNumber_ - int new run numberpublic void onRunEnd(int runNumber_)
runNumber_ - int ending run number
public void onTrialStart(int trialNumber_,
int runNumber_)
trialNumber_ - int new trial numberrunNumber_ - int current run number
public void onTrialEnd(int trialNumber_,
int runNumber_)
trialNumber_ - int ending trial numberrunNumber_ - int current run numberpublic void addChildModel(CRBaseModel model_)
model_ - CRBaseModel modelpublic void removeChildModel(CRBaseModel model_)
model_ - CRBaseModel modelpublic void clearChildren()
public int getId()
public void setId(int id)
public void setIsRemoved(boolean is_)
public boolean getIsRemoved()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||