|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.sim.kiem.execution.JSONDataPool
public class JSONDataPool
The Class JSONDataPool. It implements the "brain" of the execution manager and provides the execution manager with delta data information for it's delta observer DataComponents. This also is necessary for the history steps.
Constructor Summary | |
---|---|
JSONDataPool()
Instantiates a new JSON data pool. |
Method Summary | |
---|---|
JSONObject |
getData(String[] filterKeys)
Gets the data. |
JSONObject |
getData(String[] filterKeys,
long deltaPoolIndexTo)
Gets the most current data. |
JSONObject |
getDeltaData(String[] filterKeys,
long deltaPoolIndexFrom)
Gets the delta data between (since) the deltaPoolIndexFrom and the deltaPoolIndexTo or the current index if the latter is not provided. |
JSONObject |
getDeltaData(String[] filterKeys,
long deltaPoolIndexFrom,
long deltaPoolIndexTo)
Gets the delta data. |
long |
getPoolCounter()
Gets the current pool counter. |
void |
putData(JSONObject newData)
Puts a new JSONObject into the data pool. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JSONDataPool()
Method Detail |
---|
public long getPoolCounter()
public JSONObject getData(String[] filterKeys, long deltaPoolIndexTo) throws JSONException
filterKeys
- the filter keys, optional, may be nulldeltaPoolIndexTo
- the delta pool index to
JSONException
- a JSON exceptionpublic JSONObject getData(String[] filterKeys) throws JSONException
filterKeys
- the filter keys
JSONException
- the JSON exceptionpublic JSONObject getDeltaData(String[] filterKeys, long deltaPoolIndexFrom) throws JSONException
filterKeys
- the filter keys, optional, may be nulldeltaPoolIndexFrom
- the delta pool index from
JSONException
- the JSON exceptionpublic JSONObject getDeltaData(String[] filterKeys, long deltaPoolIndexFrom, long deltaPoolIndexTo) throws JSONException
filterKeys
- the filter keysdeltaPoolIndexFrom
- the delta pool index fromdeltaPoolIndexTo
- the delta pool index to
JSONException
- the JSON exceptionpublic void putData(JSONObject newData) throws JSONException
newData
- the new JSONObject to save
JSONException
- a JSON exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |