|
CESE 1.4.7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.simulogic.dataview.analysis.SweepTokenizer
public class SweepTokenizer
This class can format a list of selected indices (typically from the JList) into the string
or parse a sweep selection string into the list of indices.
Constructor Summary | |
---|---|
SweepTokenizer()
|
Method Summary | |
---|---|
static java.lang.String |
parseSelection(int[] indices)
Transforms the list of selected sweep indices into the string containing sweep numbers |
static int[] |
parseSweeps(java.lang.String s)
Parses the string containing sweep numbers into the list of indices to be selected |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SweepTokenizer()
Method Detail |
---|
public static final int[] parseSweeps(java.lang.String s) throws java.lang.NumberFormatException
Comma (",") separates sweep numbers and double dot ("..") sets interval to be selected (both limits are included into the selection)
s
- string to be parsed
java.lang.NumberFormatException
- if string can not be correctly parsedpublic static final java.lang.String parseSelection(int[] indices)
If the list contains 3 and more adjunct indices (e.g. 5,6,7..), they will be converted into the interval form (5..7); otherwise, comma will be used to separate sweep numbers
indices
- array of indices to process
|
CESE 1.4.7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |