예제 #1
0
 /// <summary>
 /// Accessor for the unique instance of this singleton class
 /// </summary>
 /// <returns>The unique instance of this class</returns>
 public static Adapters getInstance()
 {
     sync_lock = new object();
     lock (sync_lock)
     {
         if (uniqueInstance == null)
         {
             uniqueInstance = new Adapters();
         }
         return(uniqueInstance);
     }
 }
예제 #2
0
 public FqSequence_IO(String sequencerType, String taskType, FqFile_Component fqFile)
 {
     if (taskType == SEQUENCE_TESTS_TASK)
     {
         distributes = new List <int>(40);
         for (int j = 0; j <= SequencerDiscriminator.getSequencerSpecifier(sequencerType).getDistributionSpread(); j++)
         {
             distributes.Add(0);
         }
         perSeqQuals   = new int[fqFile.getMaxSeqSize()];
         subZeroOffset = SequencerDiscriminator.getSequencerSpecifier(sequencerType).getSubZeroQualities();
     }
     else if (taskType == ADAPTER_TASK)
     {
         adapters        = Adapters.getInstance().getAdaptersList();
         removedAdapters = null;
     }
 }
 /// <summary>
 /// Accessor for the unique instance of this singleton class
 /// </summary>
 /// <returns>The unique instance of this class</returns>
 public static Adapters getInstance()
 {
     sync_lock = new object();
     lock (sync_lock)
     {
         if (uniqueInstance == null)
             uniqueInstance = new Adapters();
         return uniqueInstance;
     }
 }