* @throws JSONException
*/
private void parse(String type, JSONObject gObjs, String eventId, Double t)
throws JSONException {
Types eventType = Types.fromString(type);
if (gObjs.has("filter")) {
if (gObjs.getString("filter").equals("ALL")) {
currentStream.graphCleared(sourceId, sourceTime.newEvent());
}
/*
* Map<String, Object> attributes = null; if
* (gObjs.has("attributes")) { JSONObject attrObj =
* gObjs.getJSONObject("attributes"); attributes =
* readAttributes(attrObj); }
*
* handler.handleGraphEvent( new FilterEvent(this,
* eventType.getEventType(), eventType.getElementType(),
* getFilter(eventType.getElementType(), gObjs), attributes));
*/
return;
}
if (eventType.equals(Types.CG)) {
Iterator<String> itrAttrs = gObjs.keys();
while (itrAttrs.hasNext()) {
String key = itrAttrs.next();
Object value = gObjs.get(key);
currentStream.graphAttributeChanged(sourceId,