public void  CleanUpMemory()
 {
     if (loaderThreadRuning)
     {
         CancelLoadWait(3000);
     }
     blocker = null;
 } /* CleanUpMemory */
Esempio n. 2
0
        public void  CleanUpMemory()
        {
            if (loaderThreadRuning)
            {
                CancelLoadWait(2000);
            }

            loadedImages.CleanUpMemory();
            blocker = null;
        } /* CleanUpMemory */
Esempio n. 3
0
        public ClassMaintenance()
        {
            runLog         = new PicesRunLog();
            runLogGoalie   = new PicesGoalKeeper("Harvesting Run Log");
            runLogMsgQueue = new Queue <String> ();

            InitializeComponent();

            allowUpdates = PicesSipperVariables.AllowUpdates();
        }
Esempio n. 4
0
        public ImportValidatdClass()
        {
            runLog      = new PicesRunLog();
            mainWinConn = PicesDataBase.GetGlobalDatabaseManagerNewInstance(runLog);

            runLogGoalie   = new PicesGoalKeeper("ImportValidatingClass");
            runLogMsgQueue = new Queue <String> ();

            sipperFile   = mainWinConn.SipperFileRecLoad(sipperFileName);
            unknownClass = GetClassFromName(mainWinConn, "UnKnown");

            InitializeComponent();

            SourceDirectory.Text = PicesSipperVariables.HomeDir();
            SourceDirectory.Text = "D:\\Users\\kkramer\\PlanktonCompetition\\trunk\\Data\\";
        }
Esempio n. 5
0
        public InstrumentDataByDeploymentProfile(String _cruiseName,
                                                 String _stationName,
                                                 String _deploymentNum,
                                                 PicesClass _mlClass
                                                 )
        {
            cruiseName    = _cruiseName;
            stationName   = _stationName;
            deploymentNum = _deploymentNum;
            mlClass       = _mlClass;

            reportFileDir = OSservices.AddSlash(PicesSipperVariables.PicesReportDir()) + "InstrumentSummariesByDeployment";

            runLogGoalie = new PicesGoalKeeper("InstrumentDataByDeploymentProfile");

            InitializeComponent();
        }
        public SipperInstrumentDataExtraction
        (
            PicesDataBase _dbConn,
            String _cruise,
            String _station,
            String _deployment,
            String _sipperFileName
        )
        {
            dbConn         = _dbConn;
            cruise         = (_cruise == null) ? ""   : _cruise;
            station        = (_station == null) ? ""   : _station;
            deployment     = (_deployment == null) ? ""   : _deployment;
            sipperFileName = (_sipperFileName == null) ? ""   : _sipperFileName;

            runLog = new PicesRunLog();

            runLogGoalie   = new PicesGoalKeeper("Harvesting Run Log");
            runLogMsgQueue = new Queue <String> ();

            InitializeComponent();
        }
        public PlanktonClassStatisticsLoader(PicesDataBaseImageGroup _selectedImageGroup,
                                             String _cruiseName,
                                             String _stationName,
                                             String _deploymentNum,
                                             String _sipperFileName,
                                             PicesClass _mlClass,
                                             char _classKeyToUse,
                                             float _probMin,
                                             float _probMax,
                                             int _sizeMin,
                                             int _sizeMax,
                                             float _depthMin,
                                             float _depthMax
                                             )
        {
            runLog = new PicesRunLog();

            dbConn             = null;
            selectedImageGroup = _selectedImageGroup;
            cruiseName         = _cruiseName;
            stationName        = _stationName;
            deploymentNum      = _deploymentNum;
            sipperFileName     = _sipperFileName;
            mlClass            = _mlClass;
            classKeyToUse      = _classKeyToUse;
            probMin            = _probMin;
            probMax            = _probMax;
            sizeMin            = _sizeMin;
            sizeMax            = _sizeMax;
            depthMin           = _depthMin;
            depthMax           = _depthMax;

            imageCountTotal = 0;

            blocker = new PicesGoalKeeper("PlanktonClassStatisticsLoader");

            loaderThread = new Thread(new ThreadStart(LoadStatsThread));
            loaderThread.Start();
        }