コード例 #1
0
ファイル: SCatSequence.java プロジェクト: rforge/biocep
 void updateCats() {
   if (v == null) return;
   int cc = v.getNumCats();
   if (cc == cats) return;
   if (cc == 0 || seqToCat == null || catToSeq == null) {
     seqToCat = catToSeq = null;
     cats = cc;
     return;
   }
   /* what do we do if a sequence already existed and the number of categories changed?
   currenty we simply discard any order - but that could be changed ... */
   seqToCat = catToSeq = null;
   cats = cc;
 }
コード例 #2
0
ファイル: SCatSequence.java プロジェクト: rforge/biocep
 public SCatSequence(SVarInterface var, Object theOwner, boolean notifyVariable) {
   v = var;
   owner = theOwner;
   cats = (v != null) ? v.getNumCats() : 0;
   notifyVar = notifyVariable;
 }