Package adams.gui.tools
Class ConsoleOutputAnalyzerPanel.ConsoleOutputEntry
- java.lang.Object
-
- adams.gui.tools.ConsoleOutputAnalyzerPanel.ConsoleOutputEntry
-
- All Implemented Interfaces:
Serializable,Comparable<ConsoleOutputAnalyzerPanel.ConsoleOutputEntry>
- Enclosing class:
- ConsoleOutputAnalyzerPanel
public static class ConsoleOutputAnalyzerPanel.ConsoleOutputEntry extends Object implements Serializable, Comparable<ConsoleOutputAnalyzerPanel.ConsoleOutputEntry>
Represents a single line from the console output.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected intm_LineNothe line number of this entry in the output.protected Stringm_Originthe origin, e.g., path to actor.protected Stringm_Outputthe actual output.protected Stringm_Rawthe raw content.protected Stringm_Timestampthe timestamp.protected Stringm_Typethe type of output (ERR/OUT/DEBUG).static StringORIGIN_UNKNOWNunknown origin.
-
Constructor Summary
Constructors Constructor Description ConsoleOutputEntry(int lineNo, String raw)Initializes the entry with the given line from the console output.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ConsoleOutputAnalyzerPanel.ConsoleOutputEntry o)Compares this object with the specified object for order.intgetLineNo()Returns the line number of this entry.StringgetOrigin()Returns the origin of the output.StringgetOutput()Returns the actual output.StringgetRaw()Returns the raw content.StringgetTimestamp()Returns the timestamp.StringgetType()Returns the output type (ERR/OUT/DEBUG).protected voidparse()Parses the raw content.StringtoString()Returns the raw content.
-
-
-
Field Detail
-
ORIGIN_UNKNOWN
public static final String ORIGIN_UNKNOWN
unknown origin.- See Also:
- Constant Field Values
-
m_LineNo
protected int m_LineNo
the line number of this entry in the output.
-
m_Raw
protected String m_Raw
the raw content.
-
m_Origin
protected String m_Origin
the origin, e.g., path to actor.
-
m_Type
protected String m_Type
the type of output (ERR/OUT/DEBUG).
-
m_Timestamp
protected String m_Timestamp
the timestamp.
-
m_Output
protected String m_Output
the actual output.
-
-
Constructor Detail
-
ConsoleOutputEntry
public ConsoleOutputEntry(int lineNo, String raw)Initializes the entry with the given line from the console output.- Parameters:
lineNo- the line numberraw- the content to parse
-
-
Method Detail
-
parse
protected void parse()
Parses the raw content.
-
getLineNo
public int getLineNo()
Returns the line number of this entry.- Returns:
- the line number
-
getRaw
public String getRaw()
Returns the raw content.- Returns:
- the content
-
getOrigin
public String getOrigin()
Returns the origin of the output.- Returns:
- the origin
-
getType
public String getType()
Returns the output type (ERR/OUT/DEBUG).- Returns:
- the type
-
getTimestamp
public String getTimestamp()
Returns the timestamp.- Returns:
- the timestamp
-
getOutput
public String getOutput()
Returns the actual output.- Returns:
- the output
-
compareTo
public int compareTo(ConsoleOutputAnalyzerPanel.ConsoleOutputEntry o)
Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.- Specified by:
compareToin interfaceComparable<ConsoleOutputAnalyzerPanel.ConsoleOutputEntry>- Parameters:
o- the object to be compared.- Returns:
- a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
-
-