Class 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 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 interface IISDEventReport
        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.