Package edu.gsu.cs.dmlab.datatypes
Class ISDSolarEventReport
- java.lang.Object
-
- edu.gsu.cs.dmlab.datatypes.ISDSolarEventReport
-
- All Implemented Interfaces:
IISDEventReport
public class ISDSolarEventReport extends Object implements IISDEventReport
Class used to represent the Solar Event reports that have been pulled from HEK.- Author:
- Surabhi Priya, Dustin Kempton Data Mining Lab, Georgia State University
-
-
Constructor Summary
Constructors Constructor Description ISDSolarEventReport(com.google.gson.JsonObject jsonInput)
Constructor that expects a JsonObject as input.ISDSolarEventReport(com.google.gson.JsonObject jsonInput, EventType eventType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAttr(String attr)
Retrieves attribute from eventJson as element and returns as String.EventType
getEventType()
Method returning Event Type of this object.
-
-
-
Constructor Detail
-
ISDSolarEventReport
public ISDSolarEventReport(com.google.gson.JsonObject jsonInput)
Constructor that expects a JsonObject as input. The object is also expected to contain the "event_type" attribute and will throw an exception if this attribute is not present.- Parameters:
jsonInput
- event input in JSONObject format
-
ISDSolarEventReport
public ISDSolarEventReport(com.google.gson.JsonObject jsonInput, EventType eventType)
-
-
Method Detail
-
getAttr
public String getAttr(String attr) throws InvalidAttributeException
Description copied from interface:IISDEventReport
Retrieves attribute from eventJson as element and returns as String.- Specified by:
getAttr
in interfaceIISDEventReport
- Parameters:
attr
- The name of the attribute that the value of is desired.- Returns:
- String The string representation of the attribute value that was requested, or null if the attribute value is null.
- Throws:
InvalidAttributeException
- If the requested attribute name does not exist in the object attribute list.
-
getEventType
public EventType getEventType()
Description copied from interface:IISDEventReport
Method returning Event Type of this object.- Specified by:
getEventType
in interfaceIISDEventReport
- Returns:
- eventType The event type of this object.
-
-