Package pulse.tasks.processing
Class ResultFormat
- java.lang.Object
-
- pulse.tasks.processing.ResultFormat
-
- All Implemented Interfaces:
Serializable
public class ResultFormat extends Object implements Serializable
A singleton
ResultFormat, which contains a list ofNumericPropertyKeywords used for identification ofNumericProperties. The format is constructed using a string of unique characters.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>abbreviations()Creates aList<String>of default abbreviations corresponding to the list of keywords specific toNumericPropertyobjects.static voidaddResultFormatListener(ResultFormatListener rfl)List<String>descriptors()Creates aList<String>of default descriptions corresponding to the list of keywords specific toNumericPropertyobjects.booleanequals(Object o)NumericPropertyKeywordfromAbbreviation(String descriptor)Finds aNumericPropertyKeywordcontained in thenameMap, the description of which matchesdescriptor.static ResultFormatgenerateFormat(List<NumericPropertyKeyword> keys)static ResultFormatgetInstance()This class uses a singleton pattern, meaning there is only instance of this class.List<NumericPropertyKeyword>getKeywords()Retrieves the list of keyword associated with thisResultFormatstatic NumericPropertyKeyword[]getMinimalArray()intindexOf(NumericPropertyKeyword key)static voidremoveListeners()intsize()Calculates the length of the format string, which is the same as the size of the keyword list.
-
-
-
Method Detail
-
addResultFormatListener
public static void addResultFormatListener(ResultFormatListener rfl)
-
removeListeners
public static void removeListeners()
-
generateFormat
public static ResultFormat generateFormat(List<NumericPropertyKeyword> keys)
-
getInstance
public static ResultFormat getInstance()
This class uses a singleton pattern, meaning there is only instance of this class.- Returns:
- the single (static) instance of this class
-
getKeywords
public List<NumericPropertyKeyword> getKeywords()
Retrieves the list of keyword associated with thisResultFormat- Returns:
- a list of keywords that can be used to access
NumericPropertyobjects
-
abbreviations
public List<String> abbreviations()
Creates aList<String>of default abbreviations corresponding to the list of keywords specific toNumericPropertyobjects.- Returns:
- a list of abbreviations (typically, for filling the result table headers)
-
descriptors
public List<String> descriptors()
Creates aList<String>of default descriptions corresponding to the list of keywords specific toNumericPropertyobjects.- Returns:
- a list of abbreviations (typically, for filling the result table tooltips)
-
fromAbbreviation
public NumericPropertyKeyword fromAbbreviation(String descriptor)
Finds aNumericPropertyKeywordcontained in thenameMap, the description of which matchesdescriptor.- Parameters:
descriptor- aStringdescribing theNumericPropertyKeyword- Returns:
- the
NumericPropertyKeywordobject
-
size
public int size()
Calculates the length of the format string, which is the same as the size of the keyword list.- Returns:
- an integer, representing the size of the format string.
-
indexOf
public int indexOf(NumericPropertyKeyword key)
-
getMinimalArray
public static NumericPropertyKeyword[] getMinimalArray()
-
-