Package pulse.tasks
Class Identifier
- java.lang.Object
-
- pulse.properties.NumericProperty
-
- pulse.tasks.Identifier
-
- All Implemented Interfaces:
Serializable,Comparable<NumericProperty>,Property
public class Identifier extends NumericProperty
An
Identifieris used to identifySearchTasks. It stores the internal task ID as its integer value and the last recorded ID.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Identifier()Creates anIdentifierby incrementing the previously recorded ID.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IdentifierexternalIdentifier(int id)static Identifierparse(String string)Seeks anIdentifierfrom the list of available tasks inTaskManagerthat matches thisstring.StringtoString()Prints out thetypeandvalueof thisNumericProperty.-
Methods inherited from class pulse.properties.NumericProperty
attemptUpdate, compareTo, equals, errorInCurrentUnits, formattedOutput, getAbbreviation, getBounds, getDescriptor, getDimensionDelta, getDimensionFactor, getError, getExcludeKeywords, getMaximum, getMinimum, getType, getValue, isDefaultSearchVariable, isDiscrete, isOptimisable, isVisibleByDefault, requireType, setAbbreviation, setDefaultSearchVariable, setDescriptor, setDimensionFactor, setDiscrete, setDomain, setError, setExcludeKeywords, setOptimisable, setValue, setVisibleByDefault, validate, valueInCurrentUnits
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface pulse.properties.Property
identifier
-
-
-
-
Method Detail
-
parse
public static Identifier parse(String string)
Seeks anIdentifierfrom the list of available tasks inTaskManagerthat matches thisstring.- Parameters:
string- the string describing the identifier.- Returns:
- a matching
Identifier.
-
externalIdentifier
public static Identifier externalIdentifier(int id)
-
toString
public String toString()
Description copied from class:NumericPropertyPrints out thetypeandvalueof thisNumericProperty.- Overrides:
toStringin classNumericProperty
-
-