Package org.harctoolbox.valuesets
Class ValueSet
java.lang.Object
org.harctoolbox.valuesets.ValueSet
- Direct Known Subclasses:
- IterationValueSet,- RandomValueSet,- ShiftValueSet,- SingletonValueSet
A value set is either an single value or a way
 of generating repetitions. These are implemented in subclasses.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected static StringformatThing(String prefix, int variable) static voidJust for testing purposes.static ValueSetnewValueSet(Long protocolMin, Long protocolMax, String s) Factory method for parsing strings of iterations.voidreset()Resets the iterator to virgin state.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, iterator, spliterator
- 
Field Details- 
minprotected long min
- 
currentprotected long current
 
- 
- 
Constructor Details- 
ValueSetprotected ValueSet(long min) 
 
- 
- 
Method Details- 
formatThing
- 
newValueSetpublic static ValueSet newValueSet(Long protocolMin, Long protocolMax, String s) throws ParseException, org.harctoolbox.irp.NameUnassignedException Factory method for parsing strings of iterations.- Parameters:
- protocolMin- Protocol min value, or null if unknown,
- protocolMax- Protocol max value, or null if unknown.
- s- String to be parsed describing the iteration.
- Returns:
- ValueSet
- Throws:
- org.harctoolbox.irp.NameUnassignedException- if protocolMin == null or protocolMax == null and iteration uses # or *.
- ParseException- unparseable s argument.
 
- 
mainJust for testing purposes.- Parameters:
- args-
 
- 
resetpublic void reset()Resets the iterator to virgin state.
 
-