|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.ifremer.isisfish.datastore.SimulationInformation
public class SimulationInformation
Cette classe permet de conserver des informations sur le deroulement d'une
simulation. La plupart des informations sont automatiquement renseignees,
mais l'utilisateur peut lui aussi ajouter des informations avec la methode
addInformation(String).
| Field Summary | |
|---|---|
protected File |
file
|
protected Properties |
info
|
| Constructor Summary | |
|---|---|
SimulationInformation(File file)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addExportTime(String exportName,
long time)
|
void |
addInformation(String info)
Add additional simulation information. |
void |
addRuleInitTime(String ruleName,
long time)
Add rule init time. |
void |
addRulePostTime(String ruleName,
long time)
Add rule post operation time. |
void |
addRulePreTime(String ruleName,
long time)
Add rule pre operation time time. |
protected void |
addRuleTime(String keyName,
String ruleName,
long time)
Add rule time. |
String |
getException()
|
Map<String,Long> |
getExportTime()
Deprecated. since 3.2.0.5, use getExportTimes() instead |
long |
getExportTime(String exportName)
|
protected Map<String,Long> |
getExportTimes()
Get all export time in map. |
String |
getInfomation()
Deprecated. since 3.2.0.5, use getInformation() instead |
protected String |
getInformation()
Get other information. |
String |
getOptimizationUsage()
|
long |
getRuleInitTime(String ruleName)
Get rule init operation time. |
protected Set<String> |
getRuleNames()
Get rules names. |
long |
getRulePostTime(String ruleName)
Get rule post operation time. |
long |
getRulePreTime(String ruleName)
Get rule pre operation time. |
protected long |
getRuleTime(String prefixName,
String ruleName)
Get rule operation time. |
Date |
getSimulationEnd()
Get the date of simulation start. |
Date |
getSimulationStart()
Get the date of simulation start. |
String |
getStatistic()
|
boolean |
hasError()
Return true if an exception has been set. |
void |
setException(Throwable eee)
|
protected void |
setInfo(String key,
String value)
|
void |
setOptimizationUsage(String v)
|
void |
setSimulationEnd(Date date)
|
void |
setSimulationStart(Date date)
|
void |
setStatistic(String v)
|
protected void |
store()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Properties info
protected File file
| Constructor Detail |
|---|
public SimulationInformation(File file)
file - simulation information output file| Method Detail |
|---|
public String toString()
toString in class Objectprotected void store()
protected void setInfo(String key,
String value)
public Date getSimulationStart()
public void setSimulationStart(Date date)
public Date getSimulationEnd()
public void setSimulationEnd(Date date)
public void addExportTime(String exportName,
long time)
protected Map<String,Long> getExportTimes()
public Map<String,Long> getExportTime()
getExportTimes() instead
public long getExportTime(String exportName)
protected void addRuleTime(String keyName,
String ruleName,
long time)
keyName - (ie RULE_TIME_INIT, RULE_TIME_PRE, RULE_TIME_POST)ruleName - rule nametime - time to add
public void addRuleInitTime(String ruleName,
long time)
ruleName - rule nametime - time to add
public void addRulePreTime(String ruleName,
long time)
ruleName - rule nametime - time to add
public void addRulePostTime(String ruleName,
long time)
ruleName - rule nametime - time to addpublic long getRuleInitTime(String ruleName)
ruleName - rule name
public long getRulePreTime(String ruleName)
ruleName - rule name
public long getRulePostTime(String ruleName)
ruleName - rule name
protected long getRuleTime(String prefixName,
String ruleName)
ruleName - rule nameprotected Set<String> getRuleNames()
public String getStatistic()
public void setStatistic(String v)
public String getOptimizationUsage()
public void setOptimizationUsage(String v)
public String getException()
public void setException(Throwable eee)
public boolean hasError()
true if an exception has been set.
true if there is an exceptionpublic String getInfomation()
getInformation() instead
protected String getInformation()
public void addInformation(String info)
info - new info
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||