scanner.next();
}
- char consensusR;
- consensusR = charValue(scanner.next());
- hmm.getNodes().get(index).setConsensusResidue(consensusR);
+ if (scanner.hasNext())
+ {
+ char consensusR;
+ consensusR = charValue(scanner.next());
+ hmm.getNodes().get(index).setConsensusResidue(consensusR);
+ }
+ if (scanner.hasNext())
+ {
char reference;
reference = charValue(scanner.next());
hmm.getNodes().get(index).setReferenceAnnotation(reference);
+ }
-
+ if (scanner.hasNext())
+ {
char value;
value = charValue(scanner.next());
hmm.getNodes().get(index).setMaskValue(value);
-
- char consensusS;
- consensusS = charValue(scanner.next());
- hmm.getNodes().get(index).setConsensusStructure(consensusS);
+ }
+ if (scanner.hasNext())
+ {
+ char consensusS;
+ consensusS = charValue(scanner.next());
+ hmm.getNodes().get(index).setConsensusStructure(consensusS);
+ }
}
+
/**
* Fills a list of doubles based on an input line.
*