From: <and...@us...> - 2014-09-20 09:20:26
|
Revision: 1314 http://sourceforge.net/p/ggc/code/1314 Author: andyrozman Date: 2014-09-20 09:20:20 +0000 (Sat, 20 Sep 2014) Log Message: ----------- Printing extended Modified Paths: -------------- trunk/ggc-core/src/ggc/core/print/PrintExtendedMonthlyReport.java trunk/ggc-nutri/src/ggc/nutri/print/PrintFoodMenuAbstract.java Modified: trunk/ggc-core/src/ggc/core/print/PrintExtendedMonthlyReport.java =================================================================== --- trunk/ggc-core/src/ggc/core/print/PrintExtendedMonthlyReport.java 2014-09-19 17:23:45 UTC (rev 1313) +++ trunk/ggc-core/src/ggc/core/print/PrintExtendedMonthlyReport.java 2014-09-20 09:20:20 UTC (rev 1314) @@ -5,6 +5,7 @@ import ggc.core.data.MonthlyValues; import ggc.core.util.DataAccess; +import com.atech.print.engine.ITextDocumentPrintSettings; import com.atech.print.engine.PrintAbstractIText; import com.atech.utils.ATDataAccessAbstract; import com.itextpdf.text.Document; @@ -19,50 +20,50 @@ * Application: GGC - GNU Gluco Control * * See AUTHORS for copyright information. - * + * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) any later * version. - * + * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. - * + * * You should have received a copy of the GNU General Public License along with * this program; if not, write to the Free Software Foundation, Inc., 59 Temple * Place, Suite 330, Boston, MA 02111-1307 USA - * + * * Filename: PrintExtendedMonthlyReport * Description: For printing Extended Monthly Report - * - * Author: andyrozman {an...@at...} + * + * Author: andyrozman {an...@at...} */ -public class PrintExtendedMonthlyReport extends PrintAbstractIText +public class PrintExtendedMonthlyReport extends PrintAbstractIText { - + MonthlyValues monthlyValues; DataAccess dataAccessLocal; - + /** * Constructor - * + * * @param mv */ public PrintExtendedMonthlyReport(MonthlyValues mv) { super(DataAccess.getInstance().getI18nControlInstance(), false); - + dataAccessLocal = (DataAccess)this.dataAccess; this.monthlyValues = mv; - + this.init(); } - + /** * {@inheritDoc} */ @@ -70,8 +71,8 @@ { Paragraph p = new Paragraph(); - Font f = new Font(this.baseFontTimes , 16, Font.BOLD); - + Font f = new Font(this.baseFontTimes , 16, Font.BOLD); + p.setAlignment(Element.ALIGN_CENTER); p.add(new Paragraph(this.i18nControl.getMessage(getTitleText()) + " - " + this.dataAccessLocal.getMonthsArray()[monthlyValues.getMonth()-1] + " " + monthlyValues.getYear(), f)); p.add(new Paragraph(this.i18nControl.getMessage("FOR") + " " + this.dataAccessLocal.getSettings().getUserName(), new Font(FontFamily.TIMES_ROMAN, 12, Font.ITALIC))); @@ -80,14 +81,14 @@ return p; } - - + + public String getTitleText() { return "EXTENDED_MONTHLY_REPORT"; } - - + + private void setComment(String text, PdfPTable table) { table.getDefaultCell().setHorizontalAlignment(Element.ALIGN_LEFT); @@ -95,8 +96,8 @@ table.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER); } - - + + private void addEmptyValues(int day, PdfPTable table) { table.addCell(day + "." + this.monthlyValues.getMonth()); @@ -108,23 +109,23 @@ table.addCell(""); table.addCell(""); } - + private void addValues(int entry, int day, DailyValuesRow dvr, PdfPTable table) { if (entry==0) table.addCell(day + "." + this.monthlyValues.getMonth()); else table.addCell(""); - - + + table.addCell(dvr.getTimeAsString()); - + if (dvr.getBG()>0.0) table.addCell(dvr.getBGAsString()); else table.addCell(""); - + table.addCell(dvr.getIns1AsString()); table.addCell(dvr.getIns2AsString()); table.addCell(dvr.getCHAsString()); @@ -133,8 +134,8 @@ setComment(dvr.getComment(), table); } - - + + /** * {@inheritDoc} */ @@ -145,16 +146,16 @@ PdfPTable datatable = new PdfPTable(numColumns); int headerwidths[] = { 10, 10, - 10, 10, 10, - 10, 10, + 10, 10, 10, + 10, 10, 30 }; // percentage datatable.setWidths(headerwidths); datatable.setWidthPercentage(100); // percentage - + datatable.getDefaultCell().setVerticalAlignment(Element.ALIGN_MIDDLE); datatable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER); datatable.getDefaultCell().setBorderWidth(1); - + datatable.addCell(createBoldTextPhrase("DATE")); datatable.addCell(createBoldTextPhrase("TIME")); datatable.addCell(createBoldTextPhrase("BG")); @@ -163,19 +164,19 @@ datatable.addCell(createBoldTextPhrase("CH_SHORT")); datatable.addCell(createBoldTextPhrase("URINE")); datatable.addCell(createBoldTextPhrase("COMMENTS")); - - + + datatable.setHeaderRows(1); // this is the end of the table header datatable.getDefaultCell().setBorderWidth(1); - + int count = 1; - - for (int i = 1; i <= this.monthlyValues.getDaysInMonth(); i++) + + for (int i = 1; i <= this.monthlyValues.getDaysInMonth(); i++) { - + DailyValues dv = this.monthlyValues.getDayValuesExtended(i); - + if (dv==null) { this.setBackground(count, datatable); @@ -191,37 +192,37 @@ count++; } } - + } - + document.add(datatable); // TO-DO - - // Stocks + + // Stocks document.add(new Paragraph(" ")); document.add(new Paragraph(" ")); document.add(new Paragraph(" ")); document.add(new Paragraph(this.i18nControl.getMessage("STOCKS"), this.textFontNormal)); - + float[] wdts = { 1, 99 }; - + PdfPTable p = new PdfPTable(2); p.getDefaultCell().setBorderWidth(0.0f); p.setWidths(wdts); p.setWidthPercentage(100); // percentage p.addCell(""); p.addCell(new Phrase(String.format(this.i18nControl.getMessage("COMMING_IN_VERSION"), "0.7"), this.textFontNormal)); - + document.add(p); - + document.add(new Paragraph(" ")); document.add(new Paragraph(" ")); - + // Doctor appointments document.add(new Paragraph(this.i18nControl.getMessage("APPOINTMENTS"), this.textFontNormal)); document.add(p); - + } @@ -243,7 +244,7 @@ @Override public String getFileNameRange() { - return "" + monthlyValues.getYear() + "_" + ATDataAccessAbstract.getLeadingZero(monthlyValues.getMonth(), 2); + return "" + monthlyValues.getYear() + "_" + ATDataAccessAbstract.getLeadingZero(monthlyValues.getMonth(), 2); } /** @@ -254,6 +255,13 @@ { return 12; } - + + @Override + public ITextDocumentPrintSettings getCustomDocumentSettings() + { + return new ITextDocumentPrintSettings(30, 30, 10, 30); + } + + } \ No newline at end of file Modified: trunk/ggc-nutri/src/ggc/nutri/print/PrintFoodMenuAbstract.java =================================================================== --- trunk/ggc-nutri/src/ggc/nutri/print/PrintFoodMenuAbstract.java 2014-09-19 17:23:45 UTC (rev 1313) +++ trunk/ggc-nutri/src/ggc/nutri/print/PrintFoodMenuAbstract.java 2014-09-20 09:20:20 UTC (rev 1314) @@ -14,6 +14,7 @@ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import com.atech.print.engine.ITextDocumentPrintSettings; import com.atech.print.engine.PrintAbstractIText; import com.itextpdf.text.Document; import com.itextpdf.text.Element; @@ -27,49 +28,49 @@ * Application: GGC - GNU Gluco Control * * See AUTHORS for copyright information. - * + * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) any later * version. - * + * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. - * + * * You should have received a copy of the GNU General Public License along with * this program; if not, write to the Free Software Foundation, Inc., 59 Temple * Place, Suite 330, Boston, MA 02111-1307 USA - * + * * Filename: PrintFoodMenuAbstract * Description: Abstract class for printing Food Menu's - * - * Author: andyrozman {an...@at...} + * + * Author: andyrozman {an...@at...} */ public abstract class PrintFoodMenuAbstract extends PrintAbstractIText { - + private static final Log LOG = LogFactory.getLog(PrintFoodMenuAbstract.class); - + DayValuesData dayValuesData; DataAccess dataAccessCore; - - + + /** * Constructor - * + * * @param mv */ public PrintFoodMenuAbstract(DayValuesData mv) { super(DataAccessNutri.getInstance().getParentI18nControlInstance(), false); - + this.dayValuesData = mv; dataAccessCore = DataAccess.getInstance(); - + this.init(); } @@ -106,7 +107,7 @@ int count = 0; - Font f = this.textFontNormal; + Font f = this.textFontNormal; PdfPTable datatable = new PdfPTable(getTableColumnsCount()); datatable.setWidths(getTableColumnWidths()); @@ -138,7 +139,7 @@ DailyValuesRow rw = (DailyValuesRow) dv.getRow(i); - if ( (!this.dataAccess.isValueSet(rw.getMealsIds())) && + if ( (!this.dataAccess.isValueSet(rw.getMealsIds())) && (!this.dataAccess.isValueSet(rw.getExtendedValue(ExtendedDailyValue.EXTENDED_FOOD_DESCRIPTION)))) continue; @@ -151,26 +152,26 @@ datatable.addCell(new Phrase(rw.getTimeAsString(), f)); - + if (this.dataAccess.isValueSet(rw.getMealsIds())) { DailyFoodEntries mpts = new DailyFoodEntries(rw.getMealsIds(), true); writeTogetherData(datatable, rw); - - + + for (int j = 0; j < mpts.getElementsCount(); j++) { DailyFoodEntry mp = mpts.getElement(j); this.writeColumnData(datatable, mp); } } - + if (this.dataAccess.isValueSet(rw.getExtendedValue(ExtendedDailyValue.EXTENDED_FOOD_DESCRIPTION))) { writeFoodDescData(datatable, rw); } - + } // for if (active_day_entry==0) @@ -188,11 +189,11 @@ } - + /** * Get Formated Value (String correctly formated from float value) - * + * * @param value * @param dec_places * @return @@ -200,25 +201,33 @@ public String getFormatedValue(float value, int dec_places) { return this.dataAccess.getDecimalHandler().getDecimalAsString(value, dec_places); // ch - + } - - - + /** * {@inheritDoc} */ @Override + public ITextDocumentPrintSettings getCustomDocumentSettings() + { + return new ITextDocumentPrintSettings(30, 30, 10, 30); + } + + + /** + * {@inheritDoc} + */ + @Override public String getFileNameRange() { return this.dayValuesData.getRangeBeginObject().getDateFilenameString() + "-" + this.dayValuesData.getRangeEndObject().getDateFilenameString(); } - - + + /** * Get text for title - * + * * @return title */ public abstract String getTitleText(); @@ -229,7 +238,7 @@ */ public abstract int getTableColumnsCount(); - /** + /** * Return columns widths for table * @return */ @@ -237,7 +246,7 @@ /** * Write additional header to documents - * + * * @param table * @throws Exception */ @@ -245,7 +254,7 @@ /** * Write together data (all data of certain type summed) - * + * * @param table * @param rw * @throws Exception @@ -254,31 +263,31 @@ /** * Write data in column - * + * * @param table * @param mp * @throws Exception */ public abstract void writeColumnData(PdfPTable table, DailyFoodEntry mp) throws Exception; - + /** * Write Food Description Data - * + * * @param table * @param mp * @throws Exception */ public abstract void writeFoodDescData(PdfPTable table, DailyValuesRow mp) throws Exception; - - + + /** * Write empty column data. If there is no data, this is used, to fill empty places. - * + * * @param table * @throws Exception */ public abstract void writeEmptyColumnData(PdfPTable table) throws Exception; - - + + } \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ru...@us...> - 2014-09-20 11:48:47
|
Revision: 1315 http://sourceforge.net/p/ggc/code/1315 Author: rumbi Date: 2014-09-20 11:48:43 +0000 (Sat, 20 Sep 2014) Log Message: ----------- RR: translation... Modified Paths: -------------- trunk/ggc-language_tool/active_translations/de/GGCPlugin_de.config trunk/ggc-language_tool/active_translations/de/GGCPlugin_de.properties trunk/ggc-language_tool/active_translations/de/GGCPumpTool_de.config trunk/ggc-language_tool/active_translations/de/GGCPumpTool_de.properties trunk/ggc-pump/src/GGCPumpTool_de.properties trunk/ggc-pump/src/GGCPumpTool_en.properties Added Paths: ----------- trunk/ggc-plugin_base/src/GGCPlugin_de.properties Modified: trunk/ggc-language_tool/active_translations/de/GGCPlugin_de.config =================================================================== --- trunk/ggc-language_tool/active_translations/de/GGCPlugin_de.config 2014-09-20 09:20:20 UTC (rev 1314) +++ trunk/ggc-language_tool/active_translations/de/GGCPlugin_de.config 2014-09-20 11:48:43 UTC (rev 1315) @@ -166,7 +166,7 @@ PRINTING__STATUS=0 TYPE_OF_REPORT__STATUS=0 SELECT_YEAR_AND_MONTH__STATUS=0 -REPORT_FOOTER__STATUS=0 +REPORT_FOOTER__STATUS=1 FOR__STATUS=0 PRINTING_SETTINGS_NOT_SET__STATUS=0 PRINTING_SETTINGS_NOT_SET_SOL__STATUS=0 Modified: trunk/ggc-language_tool/active_translations/de/GGCPlugin_de.properties =================================================================== --- trunk/ggc-language_tool/active_translations/de/GGCPlugin_de.properties 2014-09-20 09:20:20 UTC (rev 1314) +++ trunk/ggc-language_tool/active_translations/de/GGCPlugin_de.properties 2014-09-20 11:48:43 UTC (rev 1315) @@ -5,16 +5,16 @@ # ### Language: German ### # ### Created by: Reinhold Rumberger (ru...@us...)### # ### Version: 0.6.1 ### -# ### Last change: 03.07.2011 14:41:33 ### +# ### Last change: 20.09.2014 13:39:15 ### # ###################################################################### # # # Translation status: # Words/expressions: 245 -# Not translated: 236 (96 %) -# Need to be checked: 0 (0 %) +# Not translated: 235 (96 %) +# Need to be checked: 1 (0 %) # -# Translated: 9 (3 %) +# Translated: 9 (4 %) # # # @@ -241,7 +241,7 @@ PRINTING=Printing TYPE_OF_REPORT=Type Of Report SELECT_YEAR_AND_MONTH=Select Year And Month -REPORT_FOOTER=This report is from \"GGC - GNU Gluco Control\", freely available at http://ggc.sourceforge.net +REPORT_FOOTER=Dieser Bericht wurde von "GGC - GNU Gluco Control" erstellt, frei verf\u00FCgbar unter http://ggc.sourceforge.net FOR=For PRINTING_SETTINGS_NOT_SET=<html>Printing settings (Pdf Viewer) not set or set<br>incorrectly.</html> PRINTING_SETTINGS_NOT_SET_SOL=<html>Go to Tools->Preferences, tab Printing and set<br>correct path to Pdf Viewer</html> @@ -271,7 +271,7 @@ # # Libraries [1] # -NO_BINARY_PART_FOUND=Device uses special library\ncalled: '%s' which requires "native"\n(binary) file, which is not present on\nyour system. Please take a look into\n<GGC_Install>\\lib\\native\\%s\nand look for file: '%s'.\nIf it's not there you must obtain it,\nif it is there, then there is something\nwrong with it (re-obtain it).\n +NO_BINARY_PART_FOUND=Device uses special library\ncalled: '%s' which requires "native"\n(binary) file, which is not present on\nyour system. Please take a look into\n<GGC_Install>\lib\native\%s\nand look for file: '%s'.\nIf it's not there you must obtain it,\nif it is there, then there is something\nwrong with it (re-obtain it).\n # # Special Comments [1] Modified: trunk/ggc-language_tool/active_translations/de/GGCPumpTool_de.config =================================================================== --- trunk/ggc-language_tool/active_translations/de/GGCPumpTool_de.config 2014-09-20 09:20:20 UTC (rev 1314) +++ trunk/ggc-language_tool/active_translations/de/GGCPumpTool_de.config 2014-09-20 11:48:43 UTC (rev 1315) @@ -74,7 +74,7 @@ DOSE__STATUS=0 SUM__STATUS=1 FOOD__STATUS=0 -IMMEDIATE_AMOUNT__STATUS=0 +IMMEDIATE_AMOUNT__STATUS=1 PUMP_DAILY_OVERVIEW__STATUS=1 DATE__STATUS=1 TIME__STATUS=1 @@ -102,17 +102,17 @@ IS_FOOD_AND_CH_SET__STATUS=0 SET__STATUS=0 FOOD_SET_DB__STATUS=0 -FOOD_SET_DESC__STATUS=0 +FOOD_SET_DESC__STATUS=1 SELECT_ITEM__STATUS=0 BASAL_DOSE__STATUS=1 BOLUS_DOSE__STATUS=1 EVENT__STATUS=1 ALARM__STATUS=1 ERROR__STATUS=1 -REPORT__STATUS=0 +REPORT__STATUS=1 PEN_INJECTION_BASAL__STATUS=0 PEN_INJECTION_BOLUS__STATUS=0 -ADDITIONAL_DATA__STATUS=0 +ADDITIONAL_DATA__STATUS=1 BOLUS_INSULIN__STATUS=1 BASAL_INSULIN__STATUS=1 TEMPORARY_BASAL_RATE__STATUS=1 @@ -148,7 +148,7 @@ AMOUNT_MW_1__STATUS=1 AMOUNT_MW_2__STATUS=1 DURATION_SHORT__STATUS=1 -SQUARE_AMOUNT__STATUS=0 +SQUARE_AMOUNT__STATUS=1 DURATION__STATUS=1 ALARM_TYPE__STATUS=0 ALARM_CARTRIDGE_LOW__STATUS=1 @@ -177,8 +177,8 @@ EVENT_TYPE__STATUS=0 EVENT_PRIME_INFUSION_SET__STATUS=1 EVENT_CARTRIDGE_CHANGED__STATUS=1 -EVENT_BASAL_RUN__STATUS=0 -EVENT_BASAL_STOP__STATUS=0 +EVENT_BASAL_RUN__STATUS=1 +EVENT_BASAL_STOP__STATUS=1 EVENT_POWER_DOWN__STATUS=0 EVENT_POWER_UP__STATUS=0 EVENT_DATETIME_SET__STATUS=1 @@ -215,8 +215,8 @@ DATE_TILL__STATUS=0 BASE_BASAL__STATUS=0 NAME__STATUS=1 -FROM__STATUS=0 -TILL__STATUS=0 +FROM__STATUS=1 +TILL__STATUS=1 NEW__PROFILE__STATUS=1 NAME_OF_PROFILE__STATUS=1 PUMP_PROFILE_SELECTOR__STATUS=0 @@ -238,9 +238,9 @@ MN_PUMP_PRINT_EXT_DESC__STATUS=0 VALUE_SHORT__STATUS=1 OTHER_DATA__STATUS=1 -OTHER_DATA_FOOD__STATUS=0 +OTHER_DATA_FOOD__STATUS=1 PUMP_DATA_BASE__STATUS=0 -PUMP_DATA_EXT__STATUS=0 +PUMP_DATA_EXT__STATUS=1 FOOD_DB_PRINT__STATUS=0 FOOD_DESC_PRINT__STATUS=0 FOOD_DESC_PRINT_NOT_YET__STATUS=2 Modified: trunk/ggc-language_tool/active_translations/de/GGCPumpTool_de.properties =================================================================== --- trunk/ggc-language_tool/active_translations/de/GGCPumpTool_de.properties 2014-09-20 09:20:20 UTC (rev 1314) +++ trunk/ggc-language_tool/active_translations/de/GGCPumpTool_de.properties 2014-09-20 11:48:43 UTC (rev 1315) @@ -5,14 +5,14 @@ # ### Language: German ### # ### Created by: Reinhold Rumberger (ru...@us...)### # ### Version: 1.2.2 ### -# ### Last change: 19.09.2014 14:50:54 ### +# ### Last change: 20.09.2014 13:47:53 ### # ###################################################################### # # # Translation status: # Words/expressions: 264 -# Not translated: 100 (38 %) -# Need to be checked: 157 (59 %) +# Not translated: 89 (34 %) +# Need to be checked: 168 (64 %) # # Translated: 7 (3 %) # @@ -153,7 +153,7 @@ DOSE=Dose SUM=Summe FOOD=Food -IMMEDIATE_AMOUNT=Immediate Amount +IMMEDIATE_AMOUNT=Sofortige Abgabe PUMP_DAILY_OVERVIEW=T\u00E4gliche Pumpenstatistiken DATE=Datum TIME=Zeit @@ -187,19 +187,19 @@ IS_FOOD_AND_CH_SET=Is Food and CH Set SET=Set FOOD_SET_DB=Food Set (Db) -FOOD_SET_DESC=Food Set (Description) +FOOD_SET_DESC=Food Set (Beschreibung) # entry types SELECT_ITEM=Select Item -BASAL_DOSE=Basal-Dosis -BOLUS_DOSE=Bolus-Dosis +BASAL_DOSE=Basal +BOLUS_DOSE=Bolus EVENT=Ereignis ALARM=Warnung ERROR=Fehler -REPORT=Report +REPORT=Bericht PEN_INJECTION_BASAL=Pen/Injection Basal PEN_INJECTION_BOLUS=Pen/Injection Bolus -ADDITIONAL_DATA=Additional Data +ADDITIONAL_DATA=Zus\u00E4tzl. Angaben # pen/injection BOLUS_INSULIN=Bolusinsulin @@ -210,7 +210,7 @@ BASAL_TEMPORARY_BASAL_RATE=Tempor\u00E4re Basalrate BASAL_TEMPORARY_BASAL_RATE_PROFILE=Temp. Basal Rate + Profile TEMPORARY_BASAL_RATE_SHORT=TBR -TBR_TYPE_UNIT=Einheit (U) +TBR_TYPE_UNIT=Einheit (E) TBR_TYPE_PROC=Prozent (%) # profile @@ -235,8 +235,8 @@ OFF=Aus (Gestoppt) SUSPENDED=Suspended PUMP_STATUS=Pumpenstatus -BASAL_TEMPORARY_BASAL_RATE_ENDED=Tempor\u00E4re Basalrate beendet -BASAL_TEMPORARY_BASAL_RATE_CANCELED=Tempor\u00E4re Basalrate abgebrochen +BASAL_TEMPORARY_BASAL_RATE_ENDED=TBR beendet +BASAL_TEMPORARY_BASAL_RATE_CANCELED=TBR abgebrochen # # Pump Bolus [1] @@ -251,7 +251,7 @@ AMOUNT_MW_1=Menge #1 AMOUNT_MW_2=Menge #2 DURATION_SHORT=Dauer -SQUARE_AMOUNT=Square Amount +SQUARE_AMOUNT=Verz\u00F6gerte Abgabe DURATION=Dauer # @@ -263,8 +263,8 @@ ALARM_REVIEW_DATETIME=Review Date/Time ALARM_ALARM_CLOCK=Alarm Clock ALARM_PUMP_TIMER=Pump Timer -ALARM_TEMPORARY_BASAL_RATE_CANCELED=Tempor\u00E4re Basalrate abgebrochen -ALARM_TEMPORARY_BASAL_RATE_OVER=Tempor\u00E4re Basalrate abgelaufen +ALARM_TEMPORARY_BASAL_RATE_CANCELED=TBR abgebrochen +ALARM_TEMPORARY_BASAL_RATE_OVER=TBR abgelaufen ALARM_BOLUS_CANCELED=Bolus abgebrochen # @@ -292,7 +292,7 @@ EVENT_TYPE=Event Type EVENT_PRIME_INFUSION_SET=Infusionsset f\u00FCllen EVENT_CARTRIDGE_CHANGED=Ampulle gewechselt -EVENT_BASAL_RUN=Basal Run +EVENT_BASAL_RUN=Basal Start EVENT_BASAL_STOP=Basal Stop EVENT_POWER_DOWN=Power Down EVENT_POWER_UP=Power Up @@ -307,8 +307,8 @@ EVENT_BATERRY_LOW=Batterie fast leer EVENT_BATERRY_LOW_DESC=Batterie fast leer (%s) EVENT_BG_FROM_METER=BZ From Meter -EVENT_RESERVOIR_LOW=Reservoir fast leer -EVENT_RESERVOIR_LOW_DESC=Reservoir fast leer (%s) +EVENT_RESERVOIR_LOW=Ampulle fast leer +EVENT_RESERVOIR_LOW_DESC=Ampulle fast leer (%s) EVENT_SET_TEMPORARY_BASAL_RATE_TYPE=Set temporary basal rate type EVENT_SET_BASAL_PATTERN=Set basal pattern EVENT_SELF_TEST=Pumpen-Selbsttest @@ -320,8 +320,8 @@ REPORT_TYPE=Report Type REPORT_TEXT=Report Text (Value) REPORT_MISC=Misc (undefined) -REPORT_BOLUS_TOTAL_DAY=Bolussumme (Tag) -REPORT_BASAL_TOTAL_DAY=Basalsumme (Tag) +REPORT_BOLUS_TOTAL_DAY=Bolusmenge (Tag) +REPORT_BASAL_TOTAL_DAY=Basalmenge (Tag) REPORT_INSULIN_TOTAL_DAY=Insulin gesamt (Tag) # @@ -338,8 +338,8 @@ DATE_TILL=Date Till BASE_BASAL=Base Basal NAME=Name -FROM=From -TILL=Till +FROM=Von +TILL=Bis NEW__PROFILE=Neu NAME_OF_PROFILE=Profilname PUMP_PROFILE_SELECTOR=Profile Selector (Pump) @@ -372,10 +372,10 @@ MN_PUMP_PRINT_EXT=Erweitert MN_PUMP_PRINT_EXT_DESC=Extended Report for Pump data (Simple + Foods) VALUE_SHORT=Wert -OTHER_DATA=Andere Daten -OTHER_DATA_FOOD=Other Data (with Food) +OTHER_DATA=Zus\u00E4tzl. Daten +OTHER_DATA_FOOD=Zus\u00E4tzl. Daten (inkl. Nahrung) PUMP_DATA_BASE=Simple Pump Report -PUMP_DATA_EXT=Extended Pump Report +PUMP_DATA_EXT=Erweiterter Pumpenbericht FOOD_DB_PRINT=Food (Db) FOOD_DESC_PRINT=Food (Desc.) FOOD_DESC_PRINT_NOT_YET=Display of Food Db data (not implemented yet!) @@ -391,8 +391,8 @@ PCFG_BOLUS_ALARM=After Bolus Alarm PCFG_BOLUS_BLOCK=Bolus Block PCFG_BASAL_UNIT=Basal Rate Unit -UNIT_PER_HOUR=U/Std -UNIT_PER_DAY=U/Tag +UNIT_PER_HOUR=E/Std +UNIT_PER_DAY=E/Tag PCFG_MAX_BOLUS=Max. Bolusinsulin PCFG_MAX_BASAL=Max. Basalinsulin PCFG_MAX_DAILY=Max. Tagesinsulinmenge Added: trunk/ggc-plugin_base/src/GGCPlugin_de.properties =================================================================== --- trunk/ggc-plugin_base/src/GGCPlugin_de.properties (rev 0) +++ trunk/ggc-plugin_base/src/GGCPlugin_de.properties 2014-09-20 11:48:43 UTC (rev 1315) @@ -0,0 +1,362 @@ +# +# ###################################################################### +# ### GNU Glucose Control ### +# ###################################################################### +# ### Language: German ### +# ### Created by: Reinhold Rumberger (ru...@us...)### +# ### Version: 0.6.1 ### +# ### Last change: 20.09.2014 13:39:15 ### +# ###################################################################### +# +# +# Translation status: +# Words/expressions: 245 +# Not translated: 235 (96 %) +# Need to be checked: 1 (0 %) +# +# Translated: 9 (4 %) +# +# +# +## +# Collation Rules - In unicode we can create special rules for sorting where we specify +# sorting order of special characters. This will be used by tree's and special tables. +# For english this is left empty. For all other (that have non-standard, non english +# charcters) we need to set this if we want sorting to be done correctly. +# +COLLATION_RULES=< 0 < 1 < 2 < 3 < 4 < 5 < 6 < 7 < 8 < 9 < a,A,\u00E4,\u00C4,\u00E1,\u00E0,\u00C1,\u00C0,\u00E2,\u00C2 < b,B < c,C < d,D < e,E,\u00E9,\u00E8,\u00EA,\u00C9,\u00C8,\u00CA < f,F < g,G < h,H < i,I < j,J < k,K < l,L < m,M < n,N < o,O,\u00F6,\u00D6 < p,P < q,Q < r,R < s,S,\u00DF < t,T < u,U,\u00FC,\u00DC < v,V < w,W < x,X < y,Y < z,Z + +# +# General [1] +# + +# buttons and general stuff +CANCEL=Abbrechen +OK=OK +HELP=Hilfe +CLOSE=Schlie\u00DFen +APPLY=Anwenden +LOG__=log: +SELECT=Select +ERROR=Error +ADD=Add +EDIT=Edit +DELETE=Delete +NEXT=Next +YES=Yes +NO=No +WARNING=Warning +UNIT_MMOLL=mmol/L +UNIT_MGDL=mg/dL +FALSE=False +TRUE=True +DATE=Date +TIME=Time +GRAPH=Graph +SELECT_ITEM_FIRST=Please select item first. +ARE_YOU_SURE_DELETE=Are you sure you want to delete this item/entry? +QUESTION=Question +INFORMATION=Information +INVALID_DATA=Invalid data +VERSION=Version + +# weeks days and months +SU=Su +MO=Mo +TU=Tu +WE=We +TH=Th +FR=Fr +SA=Sa +JANUARY=January +FEBRUARY=February +MARCH=March +APRIL=April +MAY=May +JUNE=June +JULY=July +AUGUST=August +SEPTEMBER=September +OCTOBER=October +NOVEMBER=November +DECEMBER=December + +# +# Configuration [1] +# +MY__=My +DEVICE_COMPANY=Company +DEVICE_DEVICE=Ger\u00E4t +NO_COMPANY_SELECTED=No company selected. +NO_DEVICE_SELECTED=No device selected. +TIMEZONE_CONFIGURATION=TimeZone Configuration +SELECT_ITEM_OR_CANCEL=Select one of items or use Cancel option. +SELECT_MASS_STORAGE_DRIVE=Select Mass Storage Drive +SELECT_SERIAL_PORT=Select Serial Port +SERIAL_PORT=Serial Port +MASS_STORAGE_DRIVE=Mass Storage Drive +NEW__=New +NOT_SET=Not Set ! +TIMEZONE_PREFERENCES=TimeZone Preferences +SELECT_TIMEZONE_LIST=Select correct timezone +NEED_DAYLIGHTSAVING_FIX=Do we need daylight savings fix? +WINTERTIME_FIX=Winter Time Fix +SUMMERTIME_FIX=Summer Time Fix +DEVICE_CONNECTION=Device connection +CUSTOM_NAME=Custom name +COMMUNICATION_SETTINGS=Communication Settings +CONFIG_ERROR_NO_DEVICE_OR_PARAMETERS=<html>Configuration Error:<br>You either didn't select device, or you didn't correctly<br>enter all required parameters.<br></html> +DEVICE_VERSION=Device version + +# +# Ports [1] +# +COMMUNICATION_PORT=Communication Port + +# +# Instructions Dialog [1] +# +OOPS_DEVICE_NOT_CONFIGURED=Oops ! You forgot to configure your %s\nand currently there is no %s configured\nand/or selected. Please visit configuration\nand configure your %s. +CONFIGURED_DEVICE_INSTRUCTIONS=Configured %s and Instructions +CONFIGURED_DEVICE=Configured Device +INSTRUCTIONS=Instructions for Download +MY_DEVICE_NAME=My name +DEVICE_ICON=%s picture +DEVICE_NAME_=Device name +CONNECTION_TYPE=Connection +CONNECTION_PARAMETER=C. Parameter +STATUS=Status +DAYLIGHTSAVINGS_FIX=Time (DS) fix +DS_NO=No +DS_FIX_SHORT=Yes (W.=%s / S.=%s) +DS_FIX_LONG=Yes (Winter time fix=%s / Summer time fix=%s). Timezone: %s +DEVICE_DOESNT_SUPPORT_DS_FIX=Not supported by device ! +DEVICE_DOESNT_SUPPORT_DS_FIX_2=Device doesn't support Daylight savings fix +INSTRUCTIONS_DESC=<html>On upper right side you can see your configuration. If Status in it, is not 'Ready' then there is problem with configuration. Please exit and run configuration again and try to resolve problem. If problem still persist contact support (see Documentation). On lower right side you see instructions on how to connect device to your PC. Please follow them and after you completed, click on 'Start Download' button. You will be taken to next screen where all your device entries will be displayed as they download. All data is just displayed until you click on 'Export Data' button.</html> +START_DOWNLOAD=Start Download >>> +WAIT_UNTIL_DEVICE_PREINIT=Please wait until device is pre-inited! + +# status +ERROR_IN_CONFIG=Error in config +READY=Ready + +# Download support +DEVICE_HAS_NO_DOWNLOAD_SUPPORT=<html>Your selected device (%s [%s])<br>doesn't support downloading of data.<br></html> +DEVICE_DOWNLOAD_NOT_SUPPORTED_BY_GGC=<html>GGC at this time doesn't support downloading<br>from selected device (%s [%s]).<br>Check device listing to see if support is planned<br>or contact us for additional info.</html> +DEVICE_DOWNLOAD_NOT_SUPPORTED_GENERIC=<html>Generic devices have no download support !<br>You need to select "real" device (and correct<br>one at that).<br></html> +DEVICE_HAS_NO_DEVICE_DOWNLOAD_SUPPORT=<html>Your selected device (%s [%s])<br>doesn't support downloading of data.<br></html> +DEVICE_HAS_NO_FILE_DOWNLOAD_SUPPORT=<html>Your selected device (%s [%s])<br>doesn't support import of data through files.<br></html> +DEVICE_HAS_NO_CONFIG_DOWNLOAD_SUPPORT=<html>Your selected device (%s [%s])<br>doesn't support download of configuration.<br></html> +INTERNAL_CONFIGURATION_ERROR=<html>There seems to be internal problem<br>in configuration of application.<br></html> + +# +# File Selector [1] +# +IMPORT_FILE_SELECTOR=Import File Selector +IMPORT_FILE_SELECTOR_DESC=<html><body>Please select import file of selected type. </body></html> +SELECT_FILE=Select file: +BROWSE=Browse +MULTIPLE_IMPORT_SELECTOR=Multiple Import Selector +MULTIPLE_IMPORT_SELECTOR_DESC=<html><body>This device has several possible import types. Please select correct import type, for import type you have available. </body></html> + +# +# Transfer display [1] +# +ERROR_CONTACTING_DEVICE=We had problem contacting device.\nPlease recheck communication port settings\n(some of cables, can change their address,\nwhen reconnected). Run configuration again\nand problem should be solved!\n +BREAK_COMMUNICATION=Break Communication +EXPORT_DATA=Export Data +DATA=Data +LOG=Log +DEVICE_INFO=%s Info +ACTION=Action +READING_OLD_DATA=Reading old data (from Db) +STATUS_NONE=Unknown Status +STATUS_READY=Ready +STATUS_DOWNLOADING=Downloading +STATUS_STOPPED_DEVICE=Download stopped (by device) +STATUS_STOPPED_USER=Download stopped by user +STATUS_DOWNLOAD_FINISHED=Download finished +STATUS_READER_ERROR=Internal %s (or port) error +UNKNOWN=Unknown +NEW=New +CHANGED=Changed +OLD=Old +LOG_IS_CURRENTLY_NOT_IMPLEMENTED=Log is currently not available. +READ_DEVICE_DATA_TITLE=Read Meter Data [%s on %s] +SW_VERSION=SW Version +HW_VERSION=HW Version +SELECT_ALL=Select All +DESELECT_ALL=Deselect All +FILTER=Filter +FILTER_ALL=All +FILTER_NEW=New +FILTER_CHANGED=Changed +FILTER_EXISTING=Old +FILTER_UNKNOWN=Unknown +FILTER_NEW_CHANGED=New + Changed +FILTER_ALL_BUT_EXISTING=All except old + +# +# Export [1] +# +EXPORT_OUTPUT=Output for export +EXPORT_DEVICE_DATA=Export %s Data +GGC_APPLICATION=GGC Application +EXPORT_PROGRESS=Progress of export +START=Start +EXPORT_STATUS_READY=Ready +EXPORT_STATUS_EXPORTING=Exporting +EXPORT_STATUS_FINISHED=Finished + +# +# List [1] +# +LEGEND_DESC=<html><b>Legend:</b><br><font color="green">Green</font> = All known devices supported<br><font color="#33FFFF">Cyan</font> = Testing<br><font color="#660066">Magenta</font> = some devices implemented<br><font color="blue">Blue</font> = work in progress<br><font color="#FFCC33">Orange</font> = Planned<br><font color="red">Red</font> = Not Planned</html> + +# +# About [1] +# +SYSTEM_PROPERTIES=System Properties +ABOUT=About +PROPERTY=Property +VALUE=Value +LICENCE=Licence +CREDITS=Credits +LIBRARIES=Libraries +GGC_DEVELOPMENT_TEAM=GGC Development Team +SEE_CREDITS=(See Credits) +DEVELOPERS_DESC=Developers & features they implemented +HELPERS_DESC=People that helped (testing, lending or donating hardware,...) +FEATURES=Features +IMPLEMENTED_FEATURES=Implemented Features +SUPPORTED_DEVICES=Supported Devices +NOT_IMPLEMENTED_FEATURES=Not Implemented Features +PLANNED_DEVICES=Planned Devices +DEVICE_PLUGIN=%s Plug-in +DEVICE_PLUGIN_ABOUT=About %s Plug-in + +# +# Printing - Base [2] +# +PRINTING=Printing +TYPE_OF_REPORT=Type Of Report +SELECT_YEAR_AND_MONTH=Select Year And Month +REPORT_FOOTER=Dieser Bericht wurde von "GGC - GNU Gluco Control" erstellt, frei verf\u00FCgbar unter http://ggc.sourceforge.net +FOR=For +PRINTING_SETTINGS_NOT_SET=<html>Printing settings (Pdf Viewer) not set or set<br>incorrectly.</html> +PRINTING_SETTINGS_NOT_SET_SOL=<html>Go to Tools->Preferences, tab Printing and set<br>correct path to Pdf Viewer</html> +PDF_VIEVER_RUN_ERROR=<html>Error running PDF Viewer, unknown exception.</html> +SELECT_STARTING_RANGE=Select starting range +SELECT_ENDING_RANGE=Select ending range + +# +# Device Interfaces [1] +# +SERIAL_PORTS=Serielle Schnittstellen: COM2,... +MASS_STORAGE=Mass Storage: G:,... + +# +# Used protocols [1] +# +DEVICE_PROTOCOL=Protocol +PROT_NONE=None (dummy or N/A) +PROT_SERIAL_BRIDGE=Serial (or USB bridge) +PROT_MASS_STORAGE_XML=Mass Storage (Xml) +PROT_BLUE_TOOTH=BlueTooth +PROT_BLUETOOTH_SERIAL=Bluetooth (Serial) +PROT_SERIAL_USB=Serial (USB) +PROT_FILE_IMPORT=File import +PROT_DATABASE=Database + +# +# Libraries [1] +# +NO_BINARY_PART_FOUND=Device uses special library\ncalled: '%s' which requires "native"\n(binary) file, which is not present on\nyour system. Please take a look into\n<GGC_Install>\lib\native\%s\nand look for file: '%s'.\nIf it's not there you must obtain it,\nif it is there, then there is something\nwrong with it (re-obtain it).\n + +# +# Special Comments [1] +# +DEVICE_PIX_SPECIAL_COMMENT=Pix device displays data at end of reading and progress is just estimated. +DEVICE_DUMMY_SPECIAL_COMMENT=This is Dummy device. + +# +# Error Dialog [1] +# +ERROR_DIALOG=Error Dialog +DETAILS=Details +ERROR_SOLUTION=Solution +EXCEPTION_LOG=Exception (Stack) Trace +SEND_TO_SERVER=Send to Server +SENDING_TO_SERVER=Sending to Server +SEND_TO_SERVER_TEXT=<html>This part is not implemented yet. But at later time when<br>this works, you will able to send us report of error<br>and receive solution (if it exists).<br></html> +NO_SOLUTION_AVAILABLE=No solution available. +ERROR_COUNT=Errors (%s) + +# +# Download Device [2] +# +DOWNLOAD_DEVICE=Data from device +DOWNLOAD_FILE=Import from file +DOWNLOAD_CONFIG=Config from device +DOWNLOAD_NOT_SUPPORTED_GGC=Not supported by GGC +DOWNLOAD_NOT_SUPPORTED_BY_DEVICE=Not supported by device + +# +# File Import [2] +# +IMPORT_FILE=Import file + +# +# Devices [1] +# + +# Smart pix +PIX_ABORT_AUTOSCAN=Autoscan aborted +PIX_DETECT_DEVICES=Detecting devices +PIX_UNRECOVERABLE_ERROR=Unrecoverable error +PIX_READING_ELEMENT=Reading elements from device +PIX_FINISHED_REPORT_READY=Finished reading. Report ready. +PIX_FINISHED_READING=Finished reading. Report ready. +PIX_READING=Reading data +PIX_SCANNING=Scanning for device +PIX_CREATING_REPORT=Creating report +PIX_DEVICE_NOT_FOUND=Device not found +PIX_ERROR_INIT_DEVICE=Error on init/read device +SMARTPIX_VERSION_2=SmartPix v2.x +SMARTPIX_VERSION_3=SmartPix v3.x or higher +SMARTPIX_VERSION_INFO=<html><b>Smart Pix Version Info<br><br></b><b><i>SmartPix v1.x</i></b> - Devices with this firmware are not supported, because<br> they had too many bugs (for external use). If your device still has v1<br>firmware you can update it for free (see Roche site).<br><b><i>SmartPix v2.x</i></b> - Version 2 works ok on Windows, but there is problem<br>on other OSes (we tested on linux and Mac and it didn't work on any<br>of them)<br><b><i>SmartPix v3.x</i></b> - This version uses different type of commands for<br>controling devices, which works great on all OSes, so this is preffered<br>version to use.<br></html> + +# Minimed Pump/CGMS +MM_DEVICE_INIT_PROBLEM=%s problem on initialization with %s:\n%s\n +MM_INVALID_RETURN_VALUE=Invalid return value (%s), return value should be between %s and %s. +MM_WRONG_STATE=Device is in wrong state for successful reading (current state=%s, required state=%s). +MM_DEVICE_PUMP=Pump +MM_DEVICE_CGMS=CGMS +MM_PUMP_ERROR_REPLY=Error Reply +MM_PUMP_STATE_REPLY=State Reply +MM_ERROR_READING_DEVICE=Error on reading device. +MM_SET_RF_POWER_ON=Set RF Power On +MM_READ_PUMP_ERROR_STATUS=Read Pump Error Status (current alarm code) +MM_READ_PUMP_STATE=Read Pump State +MM_READ_TEMPORARY_BASAL=Read Temporary Basal +MM_DETECT_BOLUS=Detect bolus (set temp basal rate) +MM_ACKNOWLEDGE=Acknowledge +MM_CANCEL_SUSPEND=Cancel Suspend +MM_KEYPAD_PUSH_ACK=Keypad Push (ACK) +MM_KEYPAD_PUSH_ESC=Keypad Push (ESC) +MM_READ_FIRMWARE_VERSION=Read Firmware Version +MM_PUMP_DELIVERY_TBR=Check TBR delivery +MM_PUMP_DELIVERING_TBR=Pump is currently delivering TBR and cannot communicate with computer. + +# +# Graphs [1] +# + +# Date/range selector +DATE_RANGE_SELECTOR=Range Selector +ONE_WEEK=1 Week +TWO_WEEKS=2 Weeks +1_MONTH=1 Month +3_MONTHS=3 Months +CUSTOM=Custom +RANGE=Range Modified: trunk/ggc-pump/src/GGCPumpTool_de.properties =================================================================== --- trunk/ggc-pump/src/GGCPumpTool_de.properties 2014-09-20 09:20:20 UTC (rev 1314) +++ trunk/ggc-pump/src/GGCPumpTool_de.properties 2014-09-20 11:48:43 UTC (rev 1315) @@ -5,14 +5,14 @@ # ### Language: German ### # ### Created by: Reinhold Rumberger (ru...@us...)### # ### Version: 1.2.2 ### -# ### Last change: 19.09.2014 14:50:54 ### +# ### Last change: 20.09.2014 13:47:53 ### # ###################################################################### # # # Translation status: # Words/expressions: 264 -# Not translated: 100 (38 %) -# Need to be checked: 157 (59 %) +# Not translated: 89 (34 %) +# Need to be checked: 168 (64 %) # # Translated: 7 (3 %) # @@ -153,7 +153,7 @@ DOSE=Dose SUM=Summe FOOD=Food -IMMEDIATE_AMOUNT=Immediate Amount +IMMEDIATE_AMOUNT=Sofortige Abgabe PUMP_DAILY_OVERVIEW=T\u00E4gliche Pumpenstatistiken DATE=Datum TIME=Zeit @@ -187,19 +187,19 @@ IS_FOOD_AND_CH_SET=Is Food and CH Set SET=Set FOOD_SET_DB=Food Set (Db) -FOOD_SET_DESC=Food Set (Description) +FOOD_SET_DESC=Food Set (Beschreibung) # entry types SELECT_ITEM=Select Item -BASAL_DOSE=Basal-Dosis -BOLUS_DOSE=Bolus-Dosis +BASAL_DOSE=Basal +BOLUS_DOSE=Bolus EVENT=Ereignis ALARM=Warnung ERROR=Fehler -REPORT=Report +REPORT=Bericht PEN_INJECTION_BASAL=Pen/Injection Basal PEN_INJECTION_BOLUS=Pen/Injection Bolus -ADDITIONAL_DATA=Additional Data +ADDITIONAL_DATA=Zus\u00E4tzl. Angaben # pen/injection BOLUS_INSULIN=Bolusinsulin @@ -210,7 +210,7 @@ BASAL_TEMPORARY_BASAL_RATE=Tempor\u00E4re Basalrate BASAL_TEMPORARY_BASAL_RATE_PROFILE=Temp. Basal Rate + Profile TEMPORARY_BASAL_RATE_SHORT=TBR -TBR_TYPE_UNIT=Einheit (U) +TBR_TYPE_UNIT=Einheit (E) TBR_TYPE_PROC=Prozent (%) # profile @@ -235,8 +235,8 @@ OFF=Aus (Gestoppt) SUSPENDED=Suspended PUMP_STATUS=Pumpenstatus -BASAL_TEMPORARY_BASAL_RATE_ENDED=Tempor\u00E4re Basalrate beendet -BASAL_TEMPORARY_BASAL_RATE_CANCELED=Tempor\u00E4re Basalrate abgebrochen +BASAL_TEMPORARY_BASAL_RATE_ENDED=TBR beendet +BASAL_TEMPORARY_BASAL_RATE_CANCELED=TBR abgebrochen # # Pump Bolus [1] @@ -251,7 +251,7 @@ AMOUNT_MW_1=Menge #1 AMOUNT_MW_2=Menge #2 DURATION_SHORT=Dauer -SQUARE_AMOUNT=Square Amount +SQUARE_AMOUNT=Verz\u00F6gerte Abgabe DURATION=Dauer # @@ -263,8 +263,8 @@ ALARM_REVIEW_DATETIME=Review Date/Time ALARM_ALARM_CLOCK=Alarm Clock ALARM_PUMP_TIMER=Pump Timer -ALARM_TEMPORARY_BASAL_RATE_CANCELED=Tempor\u00E4re Basalrate abgebrochen -ALARM_TEMPORARY_BASAL_RATE_OVER=Tempor\u00E4re Basalrate abgelaufen +ALARM_TEMPORARY_BASAL_RATE_CANCELED=TBR abgebrochen +ALARM_TEMPORARY_BASAL_RATE_OVER=TBR abgelaufen ALARM_BOLUS_CANCELED=Bolus abgebrochen # @@ -292,7 +292,7 @@ EVENT_TYPE=Event Type EVENT_PRIME_INFUSION_SET=Infusionsset f\u00FCllen EVENT_CARTRIDGE_CHANGED=Ampulle gewechselt -EVENT_BASAL_RUN=Basal Run +EVENT_BASAL_RUN=Basal Start EVENT_BASAL_STOP=Basal Stop EVENT_POWER_DOWN=Power Down EVENT_POWER_UP=Power Up @@ -307,8 +307,8 @@ EVENT_BATERRY_LOW=Batterie fast leer EVENT_BATERRY_LOW_DESC=Batterie fast leer (%s) EVENT_BG_FROM_METER=BZ From Meter -EVENT_RESERVOIR_LOW=Reservoir fast leer -EVENT_RESERVOIR_LOW_DESC=Reservoir fast leer (%s) +EVENT_RESERVOIR_LOW=Ampulle fast leer +EVENT_RESERVOIR_LOW_DESC=Ampulle fast leer (%s) EVENT_SET_TEMPORARY_BASAL_RATE_TYPE=Set temporary basal rate type EVENT_SET_BASAL_PATTERN=Set basal pattern EVENT_SELF_TEST=Pumpen-Selbsttest @@ -320,8 +320,8 @@ REPORT_TYPE=Report Type REPORT_TEXT=Report Text (Value) REPORT_MISC=Misc (undefined) -REPORT_BOLUS_TOTAL_DAY=Bolussumme (Tag) -REPORT_BASAL_TOTAL_DAY=Basalsumme (Tag) +REPORT_BOLUS_TOTAL_DAY=Bolusmenge (Tag) +REPORT_BASAL_TOTAL_DAY=Basalmenge (Tag) REPORT_INSULIN_TOTAL_DAY=Insulin gesamt (Tag) # @@ -338,8 +338,8 @@ DATE_TILL=Date Till BASE_BASAL=Base Basal NAME=Name -FROM=From -TILL=Till +FROM=Von +TILL=Bis NEW__PROFILE=Neu NAME_OF_PROFILE=Profilname PUMP_PROFILE_SELECTOR=Profile Selector (Pump) @@ -372,10 +372,10 @@ MN_PUMP_PRINT_EXT=Erweitert MN_PUMP_PRINT_EXT_DESC=Extended Report for Pump data (Simple + Foods) VALUE_SHORT=Wert -OTHER_DATA=Andere Daten -OTHER_DATA_FOOD=Other Data (with Food) +OTHER_DATA=Zus\u00E4tzl. Daten +OTHER_DATA_FOOD=Zus\u00E4tzl. Daten (inkl. Nahrung) PUMP_DATA_BASE=Simple Pump Report -PUMP_DATA_EXT=Extended Pump Report +PUMP_DATA_EXT=Erweiterter Pumpenbericht FOOD_DB_PRINT=Food (Db) FOOD_DESC_PRINT=Food (Desc.) FOOD_DESC_PRINT_NOT_YET=Display of Food Db data (not implemented yet!) @@ -391,8 +391,8 @@ PCFG_BOLUS_ALARM=After Bolus Alarm PCFG_BOLUS_BLOCK=Bolus Block PCFG_BASAL_UNIT=Basal Rate Unit -UNIT_PER_HOUR=U/Std -UNIT_PER_DAY=U/Tag +UNIT_PER_HOUR=E/Std +UNIT_PER_DAY=E/Tag PCFG_MAX_BOLUS=Max. Bolusinsulin PCFG_MAX_BASAL=Max. Basalinsulin PCFG_MAX_DAILY=Max. Tagesinsulinmenge Modified: trunk/ggc-pump/src/GGCPumpTool_en.properties =================================================================== --- trunk/ggc-pump/src/GGCPumpTool_en.properties 2014-09-20 09:20:20 UTC (rev 1314) +++ trunk/ggc-pump/src/GGCPumpTool_en.properties 2014-09-20 11:48:43 UTC (rev 1315) @@ -113,7 +113,7 @@ STATUS_READER_ERROR=Internal %s (or port) error -ERROR_CONTACTING_DEVICE=We had problem contacting Meter device.\nPlease recheck communication port settings\n(some of cables, can change their address,\nwhen reconnected). Run configuration again\nand problem should be solved!\n +ERROR_CONTACTING_DEVICE=There was a problem contacting the meter device.\nPlease recheck the communication port settings\n(sometimes the cables can change their address\nwhen reconnected). Run the configuration again\nand the problem should be solved!\n DEVICE_INFO=%s Info This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ru...@us...> - 2014-09-25 02:23:08
|
Revision: 1320 http://sourceforge.net/p/ggc/code/1320 Author: rumbi Date: 2014-09-25 02:23:03 +0000 (Thu, 25 Sep 2014) Log Message: ----------- RR: cleaning up the POMs to be more readable on my tiny screen - we so need a styleguide! Modified Paths: -------------- trunk/ggc-cgm/pom.xml trunk/ggc-core/pom.xml trunk/ggc-desktop/pom.xml trunk/ggc-master-pom/pom.xml trunk/ggc-meter/pom.xml trunk/ggc-nutri/pom.xml trunk/ggc-plugin_base/pom.xml trunk/ggc-pump/pom.xml Modified: trunk/ggc-cgm/pom.xml =================================================================== --- trunk/ggc-cgm/pom.xml 2014-09-24 17:11:54 UTC (rev 1319) +++ trunk/ggc-cgm/pom.xml 2014-09-25 02:23:03 UTC (rev 1320) @@ -1,20 +1,18 @@ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" -xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>net.sf.ggc</groupId> <artifactId>ggc-parent</artifactId> <version>1.0-SNAPSHOT</version> - <relativePath>../ggc-master-pom/pom.xml</relativePath> + <relativePath>../ggc-master-pom/pom.xml</relativePath> </parent> - <name>GGC CGMS Tool Project</name> <artifactId>ggc-cgms-tool</artifactId> - <version>${ggc-cgms-tool.version}</version> + <version>${ggc-cgms-tool.version}</version> - <build> <directory>target</directory> <outputDirectory>target/classes</outputDirectory> @@ -39,10 +37,7 @@ </testResources> </build> - - <dependencies> - <dependency> <groupId>net.sf.ggc</groupId> <artifactId>ggc-core</artifactId> @@ -53,13 +48,10 @@ <artifactId>ggc-plugin-base</artifactId> </dependency> -<!-- + <!-- <dependency> <groupId>org.bidib.jbidib.org.qbang.rxtx</groupId> <artifactId>rxtxcomm</artifactId> + </dependency> --> + <dependency> - <groupId>org.bidib.jbidib.org.qbang.rxtx</groupId> - <artifactId>rxtxcomm</artifactId> - </dependency> - --> - <dependency> <groupId>com.atech-software</groupId> <artifactId>atech-tools</artifactId> </dependency> @@ -70,30 +62,18 @@ <groupId>org.jdom</groupId> <artifactId>jdom</artifactId> <version>1.1</version> - </dependency> + </dependency> - - - <dependency> <groupId>com.neuronrobotics</groupId> <artifactId>nrjavaserial</artifactId> - <version>3.9.3</version> </dependency> - - - </dependencies> - - <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> - </properties> - - </project> Modified: trunk/ggc-core/pom.xml =================================================================== --- trunk/ggc-core/pom.xml 2014-09-24 17:11:54 UTC (rev 1319) +++ trunk/ggc-core/pom.xml 2014-09-25 02:23:03 UTC (rev 1320) @@ -1,133 +1,105 @@ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" -xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - - <parent> - <groupId>net.sf.ggc</groupId> - <artifactId>ggc-parent</artifactId> - <version>1.0-SNAPSHOT</version> - <relativePath>../ggc-master-pom/pom.xml</relativePath> - </parent> - - - <name>GGC Core Project</name> - - <artifactId>ggc-core</artifactId> - <version>${ggc-core.version}</version> - - <build> - <directory>target</directory> - <outputDirectory>target/classes</outputDirectory> - <finalName>${project.artifactId}-${project.version}</finalName> - <testOutputDirectory>target/test-classes</testOutputDirectory> - <sourceDirectory>src</sourceDirectory> - <scriptSourceDirectory>src</scriptSourceDirectory> - <testSourceDirectory>src/test/java</testSourceDirectory> - <resources> - <resource> - <directory>src</directory> - <filtering>true</filtering> - <excludes> - <exclude>**/*.java</exclude> - </excludes> - </resource> - </resources> - <testResources> - <testResource> - <directory>src/test/resources</directory> - </testResource> - </testResources> - </build> - + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> - <dependencies> - - <dependency> - <groupId>com.atech-software</groupId> - <artifactId>atech-tools</artifactId> - </dependency> + <parent> + <groupId>net.sf.ggc</groupId> + <artifactId>ggc-parent</artifactId> + <version>1.0-SNAPSHOT</version> + <relativePath>../ggc-master-pom/pom.xml</relativePath> + </parent> + <name>GGC Core Project</name> - <dependency> - <groupId>org.hibernate</groupId> - <artifactId>hibernate</artifactId> - </dependency> + <artifactId>ggc-core</artifactId> + <version>${ggc-core.version}</version> - <dependency> - <groupId>net.sf.ggc.pygmy-httpd</groupId> - <artifactId>pygmy-core</artifactId> - </dependency> - - <dependency> - <groupId>net.sf.ggc.pygmy-httpd</groupId> - <artifactId>pygmy-handlers</artifactId> - </dependency> - - - - <!-- <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>3.8.1</version> - <scope>test</scope> - </dependency> --> - <!-- <dependency> - <groupId>javax.servlet</groupId> - <artifactId>servlet-api</artifactId> - <version>2.5</version> - <scope>provided</scope> - </dependency> --> - <dependency> - <groupId>com.itextpdf</groupId> - <artifactId>itextpdf</artifactId> - </dependency> + <build> + <directory>target</directory> + <outputDirectory>target/classes</outputDirectory> + <finalName>${project.artifactId}-${project.version}</finalName> + <testOutputDirectory>target/test-classes</testOutputDirectory> + <sourceDirectory>src</sourceDirectory> + <scriptSourceDirectory>src</scriptSourceDirectory> + <testSourceDirectory>src/test/java</testSourceDirectory> + <resources> + <resource> + <directory>src</directory> + <filtering>true</filtering> + <excludes> + <exclude>**/*.java</exclude> + </excludes> + </resource> + </resources> + <testResources> + <testResource> + <directory>src/test/resources</directory> + </testResource> + </testResources> + </build> - <dependency> - <groupId>commons-lang</groupId> - <artifactId>commons-lang</artifactId> - </dependency> - - <dependency> - <groupId>javax.help</groupId> - <artifactId>javahelp</artifactId> - </dependency> -<!-- - <dependency> - <groupId>net.sf.squirrel-sql.thirdparty-non-maven</groupId> - <artifactId>skinlf</artifactId> - </dependency> - --> - <dependency> - <groupId>log4j</groupId> - <artifactId>log4j</artifactId> - </dependency> + <dependencies> + <dependency> + <groupId>com.atech-software</groupId> + <artifactId>atech-tools</artifactId> + </dependency> -<!-- - <dependency> - <groupId>net.sf.jasperreports</groupId> - <artifactId>jasperreports</artifactId> - </dependency> - --> - - <dependency> - <groupId>jfree</groupId> - <artifactId>jfreechart</artifactId> - </dependency> + <dependency> + <groupId>org.hibernate</groupId> + <artifactId>hibernate</artifactId> + </dependency> - <dependency> - <groupId>com.h2database</groupId> - <artifactId>h2</artifactId> - <version>1.0.69</version> - <scope>runtime</scope> - </dependency> + <dependency> + <groupId>net.sf.ggc.pygmy-httpd</groupId> + <artifactId>pygmy-core</artifactId> + </dependency> + <dependency> + <groupId>net.sf.ggc.pygmy-httpd</groupId> + <artifactId>pygmy-handlers</artifactId> + </dependency> + <!-- <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> + <version>3.8.1</version> <scope>test</scope> </dependency> --> + <!-- <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> + <version>2.5</version> <scope>provided</scope> </dependency> --> - </dependencies> + <dependency> + <groupId>com.itextpdf</groupId> + <artifactId>itextpdf</artifactId> + </dependency> + <dependency> + <groupId>commons-lang</groupId> + <artifactId>commons-lang</artifactId> + </dependency> + <dependency> + <groupId>javax.help</groupId> + <artifactId>javahelp</artifactId> + </dependency> + <!-- <dependency> <groupId>net.sf.squirrel-sql.thirdparty-non-maven</groupId> + <artifactId>skinlf</artifactId> </dependency> --> + <dependency> + <groupId>log4j</groupId> + <artifactId>log4j</artifactId> + </dependency> - + <!-- <dependency> <groupId>net.sf.jasperreports</groupId> <artifactId>jasperreports</artifactId> + </dependency> --> + + <dependency> + <groupId>jfree</groupId> + <artifactId>jfreechart</artifactId> + </dependency> + + <dependency> + <groupId>com.h2database</groupId> + <artifactId>h2</artifactId> + <version>1.0.69</version> + <scope>runtime</scope> + </dependency> + </dependencies> </project> Modified: trunk/ggc-desktop/pom.xml =================================================================== --- trunk/ggc-desktop/pom.xml 2014-09-24 17:11:54 UTC (rev 1319) +++ trunk/ggc-desktop/pom.xml 2014-09-25 02:23:03 UTC (rev 1320) @@ -1,123 +1,101 @@ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" -xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - - <parent> - <groupId>net.sf.ggc</groupId> - <artifactId>ggc-parent</artifactId> - <version>1.0-SNAPSHOT</version> - <relativePath>../ggc-master-pom/pom.xml</relativePath> - </parent> - - - <name>GGC Desktop Project</name> - - <artifactId>ggc-desktop</artifactId> - <version>${ggc-desktop.version}</version> + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> - - <build> - <directory>target</directory> - <outputDirectory>target/classes</outputDirectory> - <finalName>${project.artifactId}-${project.version}</finalName> - <testOutputDirectory>target/test-classes</testOutputDirectory> - <sourceDirectory>src</sourceDirectory> - <scriptSourceDirectory>src</scriptSourceDirectory> - <testSourceDirectory>src/test/java</testSourceDirectory> - <resources> - <resource> - <directory>src</directory> - <filtering>true</filtering> - <excludes> - <exclude>**/*.java</exclude> - </excludes> - </resource> - </resources> - <testResources> - <testResource> - <directory>src/test/resources</directory> - </testResource> - </testResources> - </build> - + <parent> + <groupId>net.sf.ggc</groupId> + <artifactId>ggc-parent</artifactId> + <version>1.0-SNAPSHOT</version> + <relativePath>../ggc-master-pom/pom.xml</relativePath> + </parent> - <dependencies> - - <dependency> - <groupId>com.atech-software</groupId> - <artifactId>atech-tools</artifactId> - </dependency> + <name>GGC Desktop Project</name> + <artifactId>ggc-desktop</artifactId> + <version>${ggc-desktop.version}</version> - <dependency> - <groupId>net.sf.ggc</groupId> - <artifactId>ggc-core</artifactId> - </dependency> + <build> + <directory>target</directory> + <outputDirectory>target/classes</outputDirectory> + <finalName>${project.artifactId}-${project.version}</finalName> + <testOutputDirectory>target/test-classes</testOutputDirectory> + <sourceDirectory>src</sourceDirectory> + <scriptSourceDirectory>src</scriptSourceDirectory> + <testSourceDirectory>src/test/java</testSourceDirectory> + <resources> + <resource> + <directory>src</directory> + <filtering>true</filtering> + <excludes> + <exclude>**/*.java</exclude> + </excludes> + </resource> + </resources> + <testResources> + <testResource> + <directory>src/test/resources</directory> + </testResource> + </testResources> + </build> - <dependency> - <groupId>net.sf.ggc</groupId> - <artifactId>ggc-plugin-base</artifactId> - </dependency> + <dependencies> + <dependency> + <groupId>com.atech-software</groupId> + <artifactId>atech-tools</artifactId> + </dependency> - <dependency> - <groupId>net.sf.ggc</groupId> - <artifactId>ggc-meter-tool</artifactId> - </dependency> + <dependency> + <groupId>net.sf.ggc</groupId> + <artifactId>ggc-core</artifactId> + </dependency> + <dependency> + <groupId>net.sf.ggc</groupId> + <artifactId>ggc-plugin-base</artifactId> + </dependency> - <dependency> - <groupId>net.sf.ggc</groupId> - <artifactId>ggc-pump-tool</artifactId> - </dependency> + <dependency> + <groupId>net.sf.ggc</groupId> + <artifactId>ggc-meter-tool</artifactId> + </dependency> - <dependency> - <groupId>net.sf.ggc</groupId> - <artifactId>ggc-cgms-tool</artifactId> - </dependency> + <dependency> + <groupId>net.sf.ggc</groupId> + <artifactId>ggc-pump-tool</artifactId> + </dependency> - <dependency> - <groupId>net.sf.ggc</groupId> - <artifactId>ggc-nutri-tool</artifactId> - </dependency> + <dependency> + <groupId>net.sf.ggc</groupId> + <artifactId>ggc-cgms-tool</artifactId> + </dependency> - - <dependency> - <groupId>javax.help</groupId> - <artifactId>javahelp</artifactId> - </dependency> - - <dependency> - <groupId>net.sf.squirrel-sql.thirdparty-non-maven</groupId> - <artifactId>skinlf</artifactId> - </dependency> + <dependency> + <groupId>net.sf.ggc</groupId> + <artifactId>ggc-nutri-tool</artifactId> + </dependency> - <dependency> - <groupId>log4j</groupId> - <artifactId>log4j</artifactId> - </dependency> + <dependency> + <groupId>javax.help</groupId> + <artifactId>javahelp</artifactId> + </dependency> - <dependency> - <groupId>jfree</groupId> - <artifactId>jfreechart</artifactId> - </dependency> + <dependency> + <groupId>net.sf.squirrel-sql.thirdparty-non-maven</groupId> + <artifactId>skinlf</artifactId> + </dependency> -<!-- - <dependency> - <groupId>org.swinglabs</groupId> - <artifactId>pdf-renderer</artifactId> - </dependency> - - <dependency> - <groupId>com.google.guava</groupId> - <artifactId>guava</artifactId> - </dependency> - --> + <dependency> + <groupId>log4j</groupId> + <artifactId>log4j</artifactId> + </dependency> - </dependencies> + <dependency> + <groupId>jfree</groupId> + <artifactId>jfreechart</artifactId> + </dependency> - - - - - + <!-- <dependency> <groupId>org.swinglabs</groupId> <artifactId>pdf-renderer</artifactId> + </dependency> <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> + </dependency> --> + </dependencies> </project> Modified: trunk/ggc-master-pom/pom.xml =================================================================== --- trunk/ggc-master-pom/pom.xml 2014-09-24 17:11:54 UTC (rev 1319) +++ trunk/ggc-master-pom/pom.xml 2014-09-25 02:23:03 UTC (rev 1320) @@ -1,4 +1,5 @@ -<project> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <name>GGC Parent POM</name> @@ -7,69 +8,57 @@ <version>1.0-SNAPSHOT</version> <packaging>pom</packaging> - - <!-- <modules> <module>project-a</module> <module>project-b</module> </modules> --> - <!-- <artifactId>atech-tools</artifactId> <version>0.7-SNAPSHOT</version> --> - <!-- <repositories> <repository> <id>central</id> <name>Maven Repository - Switchboard</name> <layout>default</layout> <url>http://repo1.maven.org/maven2</url> - <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories> - <pluginRepositories> <pluginRepository> <id>central</id> <name>Maven Plugin - Repository</name> <url>http://repo1.maven.org/maven2</url> <layout>default</layout> - <snapshots> <enabled>false</enabled> </snapshots> <releases> <updatePolicy>never</updatePolicy> + <!-- <repositories> <repository> <id>central</id> <name>Maven Repository + Switchboard</name> <layout>default</layout> <url>http://repo1.maven.org/maven2</url> + <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories> + <pluginRepositories> <pluginRepository> <id>central</id> <name>Maven Plugin + Repository</name> <url>http://repo1.maven.org/maven2</url> <layout>default</layout> + <snapshots> <enabled>false</enabled> </snapshots> <releases> <updatePolicy>never</updatePolicy> </releases> </pluginRepository> </pluginRepositories> --> - <!-- <repositories> <repository> <id>pygmy-repo</id> <name>Pygmy Repository</name> + <!-- <repositories> <repository> <id>pygmy-repo</id> <name>Pygmy Repository</name> <layout>default</layout> <url>https://oss.sonatype.org/service/local/repositories/netsfggc-042/content/</url> --> - <!--https://oss.sonatype.org/content/repositories/netsfggc-046/net/sf/ggc/pygmy-httpd/pygmy-handlers/0.2/pygmy-handlers-0.2.pom + <!--https://oss.sonatype.org/content/repositories/netsfggc-046/net/sf/ggc/pygmy-httpd/pygmy-handlers/0.2/pygmy-handlers-0.2.pom https://oss.sonatype.org/service/local/repositories/netsfggc-042/content/ --> <!-- <snapshots> <enabled>false</enabled> </snapshots> </repository> --> <repositories> - <repository> <id>atechrepositorypublic</id> <name>Atech Software Public Repository</name> <url>http://www.atech-software.com:8081/repository/public/</url> - <!-- <url>http://www.atech-software.com:8080/nexus/content/groups/public/</url> --> + <!-- <url>http://www.atech-software.com:8080/nexus/content/groups/public/</url> --> </repository> - <!-- <repository> <id>mvnrepository</id> <name>Mvn Central Repository</name> - <url>http://www.mvnrepository.com</url> </repository> <repository> <id>jbossrepository</id> - <name>jbossrepository</name> <url>https://repository.jboss.org/nexus/</url> - </repository> <repository> <id>sonatype</id> <name>Sonatype OSS Snapshots - Repository</name> <url>http://oss.sonatype.org/content/groups/public</url> - </repository> <repository> <id>javanet</id> <name>Download Java Net Repository</name> - <url>http://download.java.net/maven/2/</url> </repository> <repository> <id>mavenrepository</id> - <name>Maven Repository Repository</name> <layout>legacy</layout> <url>http://maven-repository.com/artifacts/</url> + <!-- <repository> <id>mvnrepository</id> <name>Mvn Central Repository</name> + <url>http://www.mvnrepository.com</url> </repository> <repository> <id>jbossrepository</id> + <name>jbossrepository</name> <url>https://repository.jboss.org/nexus/</url> + </repository> <repository> <id>sonatype</id> <name>Sonatype OSS Snapshots + Repository</name> <url>http://oss.sonatype.org/content/groups/public</url> + </repository> <repository> <id>javanet</id> <name>Download Java Net Repository</name> + <url>http://download.java.net/maven/2/</url> </repository> <repository> <id>mavenrepository</id> + <name>Maven Repository Repository</name> <layout>legacy</layout> <url>http://maven-repository.com/artifacts/</url> </repository> --> - - - </repositories> - - <distributionManagement> <repository> <id>releases</id> <name>Internal Releases</name> - <!-- <url>http://www.atech-software.com:8090/repository/internal/</url> --> - <url>http://www.atech-software.com:8081/nexus/content/repositories/releases/</url> + <!-- <url>http://www.atech-software.com:8090/repository/internal/</url> --> + <url>http://www.atech-software.com:8081/nexus/content/repositories/releases/</url> </repository> <snapshotRepository> <id>snapshots</id> <name>Internal Snapshots</name> - <!-- <url>http://www.atech-software.com:8090/repository/snapshots/</url> --> - <url>http://www.atech-software.com:8081/nexus/content/repositories/snapshots/</url> + <!-- <url>http://www.atech-software.com:8090/repository/snapshots/</url> --> + <url>http://www.atech-software.com:8081/nexus/content/repositories/snapshots/</url> </snapshotRepository> </distributionManagement> - - - <build> <defaultGoal>compile</defaultGoal> <directory>target</directory> @@ -108,17 +97,15 @@ </pluginManagement> </build> - <reporting> <outputDirectory>target/site</outputDirectory> </reporting> - <!-- <modules> <module>ggc-core</module> <module>ggc-plugin-base</module> + <!-- <modules> <module>ggc-core</module> <module>ggc-plugin-base</module> </modules> --> <dependencyManagement> <dependencies> - <dependency> <groupId>net.sf.ggc</groupId> <artifactId>ggc-core</artifactId> @@ -137,7 +124,6 @@ <version>${ggc-meter-tool.version}</version> </dependency> - <dependency> <groupId>net.sf.ggc</groupId> <artifactId>ggc-pump-tool</artifactId> @@ -162,9 +148,6 @@ <version>${ggc-desktop.version}</version> </dependency> - - - <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate</artifactId> @@ -239,15 +222,10 @@ <version>${jfreechart.version}</version> </dependency> - - <!-- This should be replaced with nrserial, which is just extention of + <!-- This should be replaced with nrserial, which is just extention of rxtx that also contains binary files in jar. --> - <!-- <dependency> - <groupId>org.bidib.jbidib.org.qbang.rxtx</groupId> - <artifactId>rxtxcomm</artifactId> - <version>${rxtxcomm.version}</version> - </dependency> - --> + <!-- <dependency> <groupId>org.bidib.jbidib.org.qbang.rxtx</groupId> <artifactId>rxtxcomm</artifactId> + <version>${rxtxcomm.version}</version> </dependency> --> <dependency> <groupId>com.atech-software</groupId> @@ -261,9 +239,9 @@ <version>${jna.version}</version> </dependency> - <!--This is some outdated library which we use only for BlueTooth, it - needs to be removed or changed, but so far it's here and it's version is - fixed. This NEEDS to be removed and changed to some other library in near + <!--This is some outdated library which we use only for BlueTooth, it + needs to be removed or changed, but so far it's here and it's version is + fixed. This NEEDS to be removed and changed to some other library in near future and tested with Dana Pump (only BT device we have so far) --> <dependency> <groupId>com.ibm.old.comapi</groupId> @@ -271,9 +249,9 @@ <version>${ibm-compapi.version}</version> </dependency> - <!-- This library is created in parallel to GGC and it should be used - for USB communication. For USB devices that have HID interfaces (most of - them), we will use other library, but for legacy support we use this for + <!-- This library is created in parallel to GGC and it should be used + for USB communication. For USB devices that have HID interfaces (most of + them), we will use other library, but for legacy support we use this for now. --> <dependency> <groupId>net.sf.ggc.libusb4j</groupId> @@ -293,15 +271,11 @@ <version>${jssc.version}</version> </dependency> - - - - <dependency> - <groupId>com.neuronrobotics</groupId> - <artifactId>nrjavaserial</artifactId> - <version>${nrjavaserial.version}</version> - </dependency> - + <dependency> + <groupId>com.neuronrobotics</groupId> + <artifactId>nrjavaserial</artifactId> + <version>${nrjavaserial.version}</version> + </dependency> </dependencies> </dependencyManagement> @@ -322,9 +296,6 @@ <!-- NON MAVEN --> <ggc-lang.version>0.4.3-SNAPSHOT</ggc-lang.version> - - - <!-- Dependencies versions --> <atech-tools.version>0.7.8-SNAPSHOT</atech-tools.version> <jna.version>3.3.0</jna.version> @@ -356,8 +327,6 @@ </properties> - - <organization> <name>GGC Development Team</name> </organization> Modified: trunk/ggc-meter/pom.xml =================================================================== --- trunk/ggc-meter/pom.xml 2014-09-24 17:11:54 UTC (rev 1319) +++ trunk/ggc-meter/pom.xml 2014-09-25 02:23:03 UTC (rev 1320) @@ -1,5 +1,5 @@ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" -xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>net.sf.ggc</groupId> @@ -8,13 +8,11 @@ <relativePath>../ggc-master-pom/pom.xml</relativePath> </parent> - <name>GGC Meter Tool Project</name> <artifactId>ggc-meter-tool</artifactId> - <version>${ggc-meter-tool.version}</version> + <version>${ggc-meter-tool.version}</version> - <build> <directory>target</directory> <outputDirectory>target/classes</outputDirectory> @@ -39,10 +37,7 @@ </testResources> </build> - - <dependencies> - <dependency> <groupId>net.sf.ggc</groupId> <artifactId>ggc-core</artifactId> @@ -53,13 +48,10 @@ <artifactId>ggc-plugin-base</artifactId> </dependency> -<!-- + <!-- <dependency> <groupId>org.bidib.jbidib.org.qbang.rxtx</groupId> <artifactId>rxtxcomm</artifactId> + </dependency> --> + <dependency> - <groupId>org.bidib.jbidib.org.qbang.rxtx</groupId> - <artifactId>rxtxcomm</artifactId> - </dependency> ---> - <dependency> <groupId>com.atech-software</groupId> <artifactId>atech-tools</artifactId> </dependency> @@ -82,21 +74,13 @@ <dependency> <groupId>com.neuronrobotics</groupId> <artifactId>nrjavaserial</artifactId> - </dependency> - - </dependencies> - - <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> - </properties> - - </project> Modified: trunk/ggc-nutri/pom.xml =================================================================== --- trunk/ggc-nutri/pom.xml 2014-09-24 17:11:54 UTC (rev 1319) +++ trunk/ggc-nutri/pom.xml 2014-09-25 02:23:03 UTC (rev 1320) @@ -1,5 +1,5 @@ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" -xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>net.sf.ggc</groupId> @@ -8,13 +8,11 @@ <relativePath>../ggc-master-pom/pom.xml</relativePath> </parent> - <name>GGC Nutrition Tool Project</name> <artifactId>ggc-nutri-tool</artifactId> - <version>${ggc-nutri-tool.version}</version> + <version>${ggc-nutri-tool.version}</version> - <build> <directory>target</directory> <outputDirectory>target/classes</outputDirectory> @@ -39,10 +37,7 @@ </testResources> </build> - - <dependencies> - <dependency> <groupId>net.sf.ggc</groupId> <artifactId>ggc-core</artifactId> @@ -57,11 +52,8 @@ <groupId>com.atech-software</groupId> <artifactId>atech-tools</artifactId> </dependency> - </dependencies> - - <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> @@ -69,5 +61,4 @@ </properties> - </project> Modified: trunk/ggc-plugin_base/pom.xml =================================================================== --- trunk/ggc-plugin_base/pom.xml 2014-09-24 17:11:54 UTC (rev 1319) +++ trunk/ggc-plugin_base/pom.xml 2014-09-25 02:23:03 UTC (rev 1320) @@ -1,5 +1,5 @@ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" -xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>net.sf.ggc</groupId> @@ -8,13 +8,11 @@ <relativePath>../ggc-master-pom/pom.xml</relativePath> </parent> - <name>GGC Plugin Base Project</name> <artifactId>ggc-plugin-base</artifactId> - <version>${ggc-plugin-base.version}</version> + <version>${ggc-plugin-base.version}</version> - <build> <directory>target</directory> <outputDirectory>target/classes</outputDirectory> @@ -39,20 +37,16 @@ </testResources> </build> - - <dependencies> <dependency> <groupId>net.sf.ggc</groupId> <artifactId>ggc-core</artifactId> </dependency> -<!-- + + <!-- <dependency> <groupId>org.bidib.jbidib.org.qbang.rxtx</groupId> <artifactId>rxtxcomm</artifactId> + </dependency> --> + <dependency> - <groupId>org.bidib.jbidib.org.qbang.rxtx</groupId> - <artifactId>rxtxcomm</artifactId> - </dependency> - --> - <dependency> <groupId>com.atech-software</groupId> <artifactId>atech-tools</artifactId> </dependency> @@ -75,29 +69,20 @@ <dependency> <groupId>com.neuronrobotics</groupId> <artifactId>nrjavaserial</artifactId> - <!-- <version>3.9.3</version> --> + </dependency> + <dependency> + <groupId>jaxen</groupId> + <artifactId>jaxen</artifactId> + <version>1.1.6</version> </dependency> -<dependency> - <groupId>jaxen</groupId> - <artifactId>jaxen</artifactId> - <version>1.1.6</version> -</dependency> - - - </dependencies> - - <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> - </properties> - - </project> Modified: trunk/ggc-pump/pom.xml =================================================================== --- trunk/ggc-pump/pom.xml 2014-09-24 17:11:54 UTC (rev 1319) +++ trunk/ggc-pump/pom.xml 2014-09-25 02:23:03 UTC (rev 1320) @@ -1,5 +1,5 @@ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" -xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>net.sf.ggc</groupId> @@ -8,13 +8,11 @@ <relativePath>../ggc-master-pom/pom.xml</relativePath> </parent> - <name>GGC Pump Tool Project</name> <artifactId>ggc-pump-tool</artifactId> - <version>${ggc-pump-tool.version}</version> + <version>${ggc-pump-tool.version}</version> - <build> <directory>target</directory> <outputDirectory>target/classes</outputDirectory> @@ -39,10 +37,7 @@ </testResources> </build> - - <dependencies> - <dependency> <groupId>net.sf.ggc</groupId> <artifactId>ggc-core</artifactId> @@ -53,13 +48,10 @@ <artifactId>ggc-plugin-base</artifactId> </dependency> -<!-- + <!-- <dependency> <groupId>org.bidib.jbidib.org.qbang.rxtx</groupId> <artifactId>rxtxcomm</artifactId> + </dependency> --> + <dependency> - <groupId>org.bidib.jbidib.org.qbang.rxtx</groupId> - <artifactId>rxtxcomm</artifactId> - </dependency> ---> - <dependency> <groupId>com.atech-software</groupId> <artifactId>atech-tools</artifactId> </dependency> @@ -79,37 +71,27 @@ <artifactId>libusb4jwo</artifactId> </dependency> - <dependency> - <groupId>com.codeminders</groupId> - <artifactId>hidapi</artifactId> - </dependency> + <dependency> + <groupId>com.codeminders</groupId> + <artifactId>hidapi</artifactId> + </dependency> <dependency> <groupId>com.neuronrobotics</groupId> <artifactId>nrjavaserial</artifactId> - <version>3.9.3</version> </dependency> - -<dependency> - <groupId>jaxen</groupId> - <artifactId>jaxen</artifactId> - <version>1.1.6</version> -</dependency> - - - + <dependency> + <groupId>jaxen</groupId> + <artifactId>jaxen</artifactId> + <version>1.1.6</version> + </dependency> </dependencies> - - <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> - </properties> - - </project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ru...@us...> - 2014-09-27 19:22:42
|
Revision: 1322 http://sourceforge.net/p/ggc/code/1322 Author: rumbi Date: 2014-09-27 19:22:33 +0000 (Sat, 27 Sep 2014) Log Message: ----------- RR: eclipse code clean-up (includes formatting and organise imports) Modified Paths: -------------- trunk/ggc-cgm/src/ggc/cgms/data/CGMSDailyStatistics.java trunk/ggc-cgm/src/ggc/cgms/data/CGMSDataHandler.java trunk/ggc-cgm/src/ggc/cgms/data/CGMSDataReader.java trunk/ggc-cgm/src/ggc/cgms/data/CGMSTempValues.java trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesEntry.java trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesExtendedEntry.java trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesSubEntry.java trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesTableModel.java trunk/ggc-cgm/src/ggc/cgms/data/ExtendedCGMSValuesExtendedEntry.java trunk/ggc-cgm/src/ggc/cgms/data/cfg/CGMSConfigurationDefinition.java trunk/ggc-cgm/src/ggc/cgms/data/db/CGMSData.java trunk/ggc-cgm/src/ggc/cgms/data/db/CGMSDataExtended.java trunk/ggc-cgm/src/ggc/cgms/data/db/GGC_CGMSDb.java trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSAlarms.java trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSBaseDataType.java trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSDefsAbstract.java trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSErrors.java trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSEvents.java trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSReport.java trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSTrendArrow.java trunk/ggc-cgm/src/ggc/cgms/data/defs/extended/CGMSExtendedDataType.java trunk/ggc-cgm/src/ggc/cgms/device/AbstractCGMS.java trunk/ggc-cgm/src/ggc/cgms/device/AbstractSerialCGMS.java trunk/ggc-cgm/src/ggc/cgms/device/CGMSInterface.java trunk/ggc-cgm/src/ggc/cgms/device/DummyCGMS.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/DexcomCGMS.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/DexcomG4.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/DexcomSeven.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/DexcomSevenPlus.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/file/FRC_DexcomTxt_DM3.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/file/FRC_DexcomXml_DM3.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/DexcomCommand.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/DexcomDevice.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/DexcomDeviceProgressReport.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/DexcomDeviceReader.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/ReceiverApiType.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/data/CommandPacket.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/data/CommandParameter.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/data/ReceiverDownloadData.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/data/output/ConsoleOutputParser.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/data/output/DataOutputParserType.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/data/output/GGCOutputParser.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/DexcomG4Api.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/DexcomG4Commands.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/BytesConverterAbstract.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/BytesToDatabasePagesConverter.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/ElementToPartitionInfoConverter.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPageToEGVDataConverter.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPageToFileConverter.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPageToUserEventDataConverter.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPagesToInsertionTimeConverter.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPagesToMeterConverter.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPagesToXmlRecordConverter.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/EGVRecord.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/InsertionTimeRecord.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/ManufacturingDataRecord.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/MeterDataRecord.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/PCParameterRecord.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/UserEventDataRecord.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/XmlRecord.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/parsers/DateParser.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/parsers/DexcomCommandParserInterface.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/parsers/EmptyParser.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/parsers/IntegerParser.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/parsers/ParserType.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/parsers/ParserUtils.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/enums/BlindedModeType.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/enums/ClockModeType.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/enums/DeviceModeType.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/enums/Exercise.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/enums/GlucoseUnitType.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/enums/Health.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/enums/LanguageType.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/enums/NoiseMode.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/enums/ReceiverRecordType.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/enums/SpecialGlucoseValues.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/enums/TrendArrow.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/enums/UserEvent.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/internal/DatabasePageRange.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/internal/GenericReceiverRecordAbstract.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/util/DexcomException.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/util/DexcomExceptionType.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/util/DexcomUtils.java trunk/ggc-cgm/src/ggc/cgms/device/freestyle/FreestyleCGMS.java trunk/ggc-cgm/src/ggc/cgms/device/freestyle/FreestyleNavigator.java trunk/ggc-cgm/src/ggc/cgms/device/minimed/GuardianRealTime.java trunk/ggc-cgm/src/ggc/cgms/device/minimed/MiniMedCGMS.java trunk/ggc-cgm/src/ggc/cgms/device/minimed/MiniMedCGMSGold.java trunk/ggc-cgm/src/ggc/cgms/device/minimed/MiniMedRealTime.java trunk/ggc-cgm/src/ggc/cgms/device/minimed/file/FRC_MinimedCarelink.java trunk/ggc-cgm/src/ggc/cgms/device/minimed/file/FRC_MinimedCarelinkConfig.java trunk/ggc-cgm/src/ggc/cgms/device/minimed/file/MinimedCareLinkCGMS.java trunk/ggc-cgm/src/ggc/cgms/device/minimed/file/MinimedCareLinkCGMSData.java trunk/ggc-cgm/src/ggc/cgms/gui/viewer/CGMSDataDialog.java trunk/ggc-cgm/src/ggc/cgms/gui/viewer/CGMSDataTableModel.java trunk/ggc-cgm/src/ggc/cgms/manager/CGMSDevicesIds.java trunk/ggc-cgm/src/ggc/cgms/manager/CGMSManager.java trunk/ggc-cgm/src/ggc/cgms/manager/company/Abbott.java trunk/ggc-cgm/src/ggc/cgms/manager/company/Dexcom.java trunk/ggc-cgm/src/ggc/cgms/manager/company/Minimed.java trunk/ggc-cgm/src/ggc/cgms/plugin/BackupRestoreCGMSHandler.java trunk/ggc-cgm/src/ggc/cgms/plugin/CGMSPlugInServer.java trunk/ggc-cgm/src/ggc/cgms/test/CGMSConsoleTester.java trunk/ggc-cgm/src/ggc/cgms/util/CGMSUtil.java trunk/ggc-cgm/src/ggc/cgms/util/DataAccessCGMS.java trunk/ggc-cgm/src/ggc/cgms/util/GGC_CGMS_ICRunner.java trunk/ggc-core/src/ggc/core/data/CollectionValues.java trunk/ggc-core/src/ggc/core/data/CollectionValuesDay.java trunk/ggc-core/src/ggc/core/data/Converter_mgdL_mmolL.java trunk/ggc-core/src/ggc/core/data/DailyStatsTableModel.java trunk/ggc-core/src/ggc/core/data/DailyValues.java trunk/ggc-core/src/ggc/core/data/DailyValuesRow.java trunk/ggc-core/src/ggc/core/data/DayValuesData.java trunk/ggc-core/src/ggc/core/data/ExtendedDailyValue.java trunk/ggc-core/src/ggc/core/data/ExtendedRatioCollection.java trunk/ggc-core/src/ggc/core/data/GlucoValues.java trunk/ggc-core/src/ggc/core/data/HbA1cValues.java trunk/ggc-core/src/ggc/core/data/MonthlyValues.java trunk/ggc-core/src/ggc/core/data/PlotData.java trunk/ggc-core/src/ggc/core/data/RatioValues.java trunk/ggc-core/src/ggc/core/data/WeeklyValues.java trunk/ggc-core/src/ggc/core/data/cfg/ConfigCellRenderer.java trunk/ggc-core/src/ggc/core/data/cfg/ConfigurationManager.java trunk/ggc-core/src/ggc/core/data/defs/ExerciseStrength.java trunk/ggc-core/src/ggc/core/data/defs/Health.java trunk/ggc-core/src/ggc/core/data/graph/DataPlotSelectorPanel.java trunk/ggc-core/src/ggc/core/data/graph/GGCGraphUtil.java trunk/ggc-core/src/ggc/core/data/graph/GGCGraphViewControler.java trunk/ggc-core/src/ggc/core/data/graph/GraphViewCourse.java trunk/ggc-core/src/ggc/core/data/graph/GraphViewDaily.java trunk/ggc-core/src/ggc/core/data/graph/GraphViewFrequency.java trunk/ggc-core/src/ggc/core/data/graph/GraphViewHbA1c.java trunk/ggc-core/src/ggc/core/data/graph/GraphViewSpread.java trunk/ggc-core/src/ggc/core/data/graph/PlotSelectorData.java trunk/ggc-core/src/ggc/core/data/graph/PlotSelectorPanel.java trunk/ggc-core/src/ggc/core/db/GGCDb.java trunk/ggc-core/src/ggc/core/db/GGCDbConfig.java trunk/ggc-core/src/ggc/core/db/GGCDbLoader.java trunk/ggc-core/src/ggc/core/db/datalayer/DailyValue.java trunk/ggc-core/src/ggc/core/db/datalayer/Settings.java trunk/ggc-core/src/ggc/core/db/datalayer/SettingsColorScheme.java trunk/ggc-core/src/ggc/core/db/datalayer/StockBaseType.java trunk/ggc-core/src/ggc/core/db/datalayer/StockSubType.java trunk/ggc-core/src/ggc/core/db/datalayer/Stocks.java trunk/ggc-core/src/ggc/core/db/hibernate/AppointmentH.java trunk/ggc-core/src/ggc/core/db/hibernate/ColorSchemeH.java trunk/ggc-core/src/ggc/core/db/hibernate/DayValueH.java trunk/ggc-core/src/ggc/core/db/hibernate/DbInfoH.java trunk/ggc-core/src/ggc/core/db/hibernate/DoctorH.java trunk/ggc-core/src/ggc/core/db/hibernate/DoctorTypeH.java trunk/ggc-core/src/ggc/core/db/hibernate/FoodDescriptionH.java trunk/ggc-core/src/ggc/core/db/hibernate/FoodGroupH.java trunk/ggc-core/src/ggc/core/db/hibernate/FoodUserDescriptionH.java trunk/ggc-core/src/ggc/core/db/hibernate/FoodUserGroupH.java trunk/ggc-core/src/ggc/core/db/hibernate/GGCHibernateObject.java trunk/ggc-core/src/ggc/core/db/hibernate/InetGroupH.java trunk/ggc-core/src/ggc/core/db/hibernate/InetLinkGroupH.java trunk/ggc-core/src/ggc/core/db/hibernate/InetLinkH.java trunk/ggc-core/src/ggc/core/db/hibernate/InetTypeH.java trunk/ggc-core/src/ggc/core/db/hibernate/MealGroupH.java trunk/ggc-core/src/ggc/core/db/hibernate/MealH.java trunk/ggc-core/src/ggc/core/db/hibernate/NutritionDefinitionH.java trunk/ggc-core/src/ggc/core/db/hibernate/NutritionHomeWeightTypeH.java trunk/ggc-core/src/ggc/core/db/hibernate/SettingsH.java trunk/ggc-core/src/ggc/core/db/hibernate/StockSubTypeH.java trunk/ggc-core/src/ggc/core/db/hibernate/StockTypeH.java trunk/ggc-core/src/ggc/core/db/hibernate/StocksH.java trunk/ggc-core/src/ggc/core/db/hibernate/cgms/CGMSDataExtendedH.java trunk/ggc-core/src/ggc/core/db/hibernate/cgms/CGMSDataH.java trunk/ggc-core/src/ggc/core/db/hibernate/pump/PumpDataExtendedH.java trunk/ggc-core/src/ggc/core/db/hibernate/pump/PumpDataH.java trunk/ggc-core/src/ggc/core/db/hibernate/pump/PumpProfileH.java trunk/ggc-core/src/ggc/core/db/tool/DbToolApplicationGGC.java trunk/ggc-core/src/ggc/core/db/tool/DbToolGGC.java trunk/ggc-core/src/ggc/core/db/tool/DbToolInitDbGGC.java trunk/ggc-core/src/ggc/core/db/tool/InitDb.java trunk/ggc-core/src/ggc/core/db/tool/transfer/BackupDialog.java trunk/ggc-core/src/ggc/core/db/tool/transfer/ExportDailyValues.java trunk/ggc-core/src/ggc/core/db/tool/transfer/ExportNutritionDb.java trunk/ggc-core/src/ggc/core/db/tool/transfer/ExportSettings.java trunk/ggc-core/src/ggc/core/db/tool/transfer/GGCBackupRestoreRunner.java trunk/ggc-core/src/ggc/core/db/tool/transfer/GGCExporter.java trunk/ggc-core/src/ggc/core/db/tool/transfer/GGCImporter.java trunk/ggc-core/src/ggc/core/db/tool/transfer/ImportDailyValues.java trunk/ggc-core/src/ggc/core/db/tool/transfer/ImportNutrition.java trunk/ggc-core/src/ggc/core/db/tool/transfer/ImportSettings.java trunk/ggc-core/src/ggc/core/db/tool/transfer/RestoreGGCDialog.java trunk/ggc-core/src/ggc/core/db/tool/transfer/RestoreGGCSelectorDialog.java trunk/ggc-core/src/ggc/core/doc/util/DataAccessDoc.java trunk/ggc-core/src/ggc/core/plugins/CGMSPlugIn.java trunk/ggc-core/src/ggc/core/plugins/GGCDataReader.java trunk/ggc-core/src/ggc/core/plugins/GGCDataWriter.java trunk/ggc-core/src/ggc/core/plugins/MetersPlugIn.java trunk/ggc-core/src/ggc/core/plugins/NutriPlugIn.java trunk/ggc-core/src/ggc/core/plugins/PumpsPlugIn.java trunk/ggc-core/src/ggc/core/print/PrintExtendedMonthlyReport.java trunk/ggc-core/src/ggc/core/print/PrintSimpleMonthlyReport.java trunk/ggc-core/src/ggc/core/sync/sidiary/ParseDataFile.java trunk/ggc-core/src/ggc/core/sync/sidiary/data/DailyData.java trunk/ggc-core/src/ggc/core/sync/sidiary/data/MonthlyData.java trunk/ggc-core/src/ggc/core/test/ImportDacioDb.java trunk/ggc-core/src/ggc/core/util/DataAccess.java trunk/ggc-core/src/ggc/core/util/GGCCoreICRunner.java trunk/ggc-core/src/ggc/core/util/GGCLanguageInfo.java trunk/ggc-core/src/ggc/core/util/GGCLanguageManagerRunner.java trunk/ggc-core/src/ggc/core/util/GGCProperties.java trunk/ggc-core/src/ggc/core/util/MathUtils.java trunk/ggc-core/src/ggc/core/util/RefreshInfo.java trunk/ggc-core/src/ggc/core/util/UIUtilities.java trunk/ggc-core/src/ggc/core/web/GGCNetworkSend.java trunk/ggc-core/src/ggc/shared/bolushelper/BolusHelper.java trunk/ggc-core/src/ggc/shared/fooddesc/FoodDescriptionDialog.java trunk/ggc-core/src/ggc/shared/ratio/RatioBaseDialog.java trunk/ggc-core/src/ggc/shared/ratio/RatioCalculatorDialog.java trunk/ggc-core/src/ggc/shared/ratio/RatioEntry.java trunk/ggc-core/src/ggc/shared/ratio/RatioEntryDialog.java trunk/ggc-core/src/ggc/shared/ratio/RatioEntryDisplay.java trunk/ggc-core/src/ggc/shared/ratio/RatioEntryPanel.java trunk/ggc-core/src/ggc/shared/ratio/RatioExtendedDialog.java trunk/ggc-desktop/src/ggc/GGC.java trunk/ggc-desktop/src/ggc/gui/MainFrame.java trunk/ggc-desktop/src/ggc/gui/StatusBar.java trunk/ggc-desktop/src/ggc/gui/dialogs/AboutGGCDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/AppointmentDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/AppointmentsDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/DailyRowDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/DailyRowMealsDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/DailyStatsDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/DoctorDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/DoctorsDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/HbA1cDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/PrintingDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/PropertiesDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/SchemeDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/SchemeEDDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/defs/StockListDef.java trunk/ggc-desktop/src/ggc/gui/dialogs/graphs/CourseGraphDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/graphs/DailyGraphDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/graphs/FrequencyGraphDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/graphs/HbA1cDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/graphs/SpreadGraphDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/stock/StockAmounts.java trunk/ggc-desktop/src/ggc/gui/dialogs/stock/StockDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/stock/StockListDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/stock/StockSelectorDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/stock/StockSubTypeDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/stock/StockTypeDialog.java trunk/ggc-desktop/src/ggc/gui/graphs/AbstractGraphView.java trunk/ggc-desktop/src/ggc/gui/graphs/CourseGraphView.java trunk/ggc-desktop/src/ggc/gui/graphs/DailyGraphView.java trunk/ggc-desktop/src/ggc/gui/graphs/FrequencyGraphView.java trunk/ggc-desktop/src/ggc/gui/graphs/HbA1cView.java trunk/ggc-desktop/src/ggc/gui/graphs/JFAbstractGraphView.java trunk/ggc-desktop/src/ggc/gui/graphs/SpreadGraphView.java trunk/ggc-desktop/src/ggc/gui/little/GGCLittle.java trunk/ggc-desktop/src/ggc/gui/little/StatusBarL.java trunk/ggc-desktop/src/ggc/gui/little/panels/DailyStatsControlsL.java trunk/ggc-desktop/src/ggc/gui/little/panels/DailyStatsPanelL.java trunk/ggc-desktop/src/ggc/gui/little/panels/GeneralInfoPanelL.java trunk/ggc-desktop/src/ggc/gui/little/panels/MainLittlePanel.java trunk/ggc-desktop/src/ggc/gui/little/panels/PlugInMeterPanelL.java trunk/ggc-desktop/src/ggc/gui/little/panels/PlugInPanelL.java trunk/ggc-desktop/src/ggc/gui/little/panels/PlugInPumpPanelL.java trunk/ggc-desktop/src/ggc/gui/little/panels/ScheduleInfoPanelL.java trunk/ggc-desktop/src/ggc/gui/little/panels/StocksInfoPanelL.java trunk/ggc-desktop/src/ggc/gui/panels/info/AbstractInfoPanel.java trunk/ggc-desktop/src/ggc/gui/panels/info/DeviceInfoPanel.java trunk/ggc-desktop/src/ggc/gui/panels/info/GeneralInfoPanel.java trunk/ggc-desktop/src/ggc/gui/panels/info/HbA1cInfoPanel.java trunk/ggc-desktop/src/ggc/gui/panels/info/InfoPanel.java trunk/ggc-desktop/src/ggc/gui/panels/info/InfoPanelsIds.java trunk/ggc-desktop/src/ggc/gui/panels/info/OtherInfoPanel.java trunk/ggc-desktop/src/ggc/gui/panels/info/PlugInsInfoPanel.java trunk/ggc-desktop/src/ggc/gui/panels/info/ScheduleInfoPanel.java trunk/ggc-desktop/src/ggc/gui/panels/info/StatisticsInfoPanel.java trunk/ggc-desktop/src/ggc/gui/panels/info/StocksInfoPanel.java trunk/ggc-desktop/src/ggc/gui/panels/prefs/AbstractPrefOptionsPanel.java trunk/ggc-desktop/src/ggc/gui/panels/prefs/PrefFontsAndColorPane.java trunk/ggc-desktop/src/ggc/gui/panels/prefs/PrefGeneralPane.java trunk/ggc-desktop/src/ggc/gui/panels/prefs/PrefLanguagePane.java trunk/ggc-desktop/src/ggc/gui/panels/prefs/PrefMainPane.java trunk/ggc-desktop/src/ggc/gui/panels/prefs/PrefMedicalDataPane.java trunk/ggc-desktop/src/ggc/gui/panels/prefs/PrefModePane.java trunk/ggc-desktop/src/ggc/gui/panels/prefs/PrefNutritionConfPane.java trunk/ggc-desktop/src/ggc/gui/panels/prefs/PrefPrintingPane.java trunk/ggc-desktop/src/ggc/gui/panels/prefs/PrefRenderingQualityPane.java trunk/ggc-desktop/src/ggc/gui/test/Testing.java trunk/ggc-meter/src/ggc/meter/data/MeterDataHandler.java trunk/ggc-meter/src/ggc/meter/data/MeterDataReader.java trunk/ggc-meter/src/ggc/meter/data/MeterValuesEntry.java trunk/ggc-meter/src/ggc/meter/data/MeterValuesEntrySpecial.java trunk/ggc-meter/src/ggc/meter/data/MeterValuesExtTableModel.java trunk/ggc-meter/src/ggc/meter/data/MeterValuesTableModel.java trunk/ggc-meter/src/ggc/meter/data/cfg/MeterConfigurationDefinition.java trunk/ggc-meter/src/ggc/meter/data/db/GGCMeterDb.java trunk/ggc-meter/src/ggc/meter/device/AbstractMeter.java trunk/ggc-meter/src/ggc/meter/device/AbstractOtherMeter.java trunk/ggc-meter/src/ggc/meter/device/AbstractSerialMeter.java trunk/ggc-meter/src/ggc/meter/device/AbstractUsbMeter.java trunk/ggc-meter/src/ggc/meter/device/AbstractXmlMeter.java trunk/ggc-meter/src/ggc/meter/device/DummyMeter.java trunk/ggc-meter/src/ggc/meter/device/MeterInterface.java trunk/ggc-meter/src/ggc/meter/device/abbott/Freestyle.java trunk/ggc-meter/src/ggc/meter/device/abbott/FreestyleFlash.java trunk/ggc-meter/src/ggc/meter/device/abbott/FreestyleFreedom.java trunk/ggc-meter/src/ggc/meter/device/abbott/FreestyleFreedomLite.java trunk/ggc-meter/src/ggc/meter/device/abbott/FreestyleLite.java trunk/ggc-meter/src/ggc/meter/device/abbott/FreestyleMeter.java trunk/ggc-meter/src/ggc/meter/device/abbott/OptiumXceed.java trunk/ggc-meter/src/ggc/meter/device/abbott/PrecisionXtra.java trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekActive.java trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekAdvantage.java trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekAviva.java trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekAvivaCombo.java trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekComfort.java trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekCompact.java trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekCompactPlus.java trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekGo.java trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekIntegra.java trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekNano.java trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekPerforma.java trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekSensor.java trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekSmartPixMeter.java trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaBreeze.java trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaBreeze2.java trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaContour.java trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaContourLink.java trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaContourTest.java trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaContourUSB.java trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaDEX.java trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaEliteXL.java trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaMeter.java trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaMeterUsb.java trunk/ggc-meter/src/ggc/meter/device/menarini/GlucofixMio.java trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchBasic.java trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchFastTake.java trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchII.java trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchInDuo.java trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchMeter.java trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchMeter2.java trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchProfile.java trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchSelect.java trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchSureStep.java trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchUltra.java trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchUltra2.java trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchUltraEasy.java trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchUltraLink.java trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchUltraMini.java trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchUltraSmart.java trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchVerioPro.java trunk/ggc-meter/src/ggc/meter/gui/config/SimpleConfiguration_v2_Dialog.java trunk/ggc-meter/src/ggc/meter/manager/MeterDevicesIds.java trunk/ggc-meter/src/ggc/meter/manager/MeterManager.java trunk/ggc-meter/src/ggc/meter/manager/company/Abbott.java trunk/ggc-meter/src/ggc/meter/manager/company/AscensiaBayer.java trunk/ggc-meter/src/ggc/meter/manager/company/DiabeticSupplyOfSunCoast.java trunk/ggc-meter/src/ggc/meter/manager/company/HipoGuard.java trunk/ggc-meter/src/ggc/meter/manager/company/HomeDiagnostic.java trunk/ggc-meter/src/ggc/meter/manager/company/LifeScan.java trunk/ggc-meter/src/ggc/meter/manager/company/Menarini.java trunk/ggc-meter/src/ggc/meter/manager/company/Prodigy.java trunk/ggc-meter/src/ggc/meter/manager/company/Roche.java trunk/ggc-meter/src/ggc/meter/manager/company/Sanvita.java trunk/ggc-meter/src/ggc/meter/manager/company/USDiagnostic.java trunk/ggc-meter/src/ggc/meter/manager/company/Wavesense.java trunk/ggc-meter/src/ggc/meter/plugin/MeterPlugInServer.java trunk/ggc-meter/src/ggc/meter/test/MeterConsoleTester.java trunk/ggc-meter/src/ggc/meter/test/MeterConsoleTesterAlex.java trunk/ggc-meter/src/ggc/meter/test/TimeTests.java trunk/ggc-meter/src/ggc/meter/test/XmlTests.java trunk/ggc-meter/src/ggc/meter/util/DataAccessMeter.java trunk/ggc-meter/src/ggc/meter/util/GGCMeterICRunner.java trunk/ggc-nutri/src/ggc/nutri/data/GGCTreeRoot.java trunk/ggc-nutri/src/ggc/nutri/data/GGCTreeRootDyn.java trunk/ggc-nutri/src/ggc/nutri/data/GGCTreeRootStatic.java trunk/ggc-nutri/src/ggc/nutri/data/HomeWeightComparator.java trunk/ggc-nutri/src/ggc/nutri/data/NutritionGroupModel.java trunk/ggc-nutri/src/ggc/nutri/data/NutritionTreeModel.java trunk/ggc-nutri/src/ggc/nutri/db/GGCDbCache.java trunk/ggc-nutri/src/ggc/nutri/db/GGCDbNutri.java trunk/ggc-nutri/src/ggc/nutri/db/datalayer/DailyFoodEntries.java trunk/ggc-nutri/src/ggc/nutri/db/datalayer/DailyFoodEntry.java trunk/ggc-nutri/src/ggc/nutri/db/datalayer/FoodDescription.java trunk/ggc-nutri/src/ggc/nutri/db/datalayer/FoodGroup.java trunk/ggc-nutri/src/ggc/nutri/db/datalayer/GlycemicNutrients.java trunk/ggc-nutri/src/ggc/nutri/db/datalayer/HomeWeightSpecial.java trunk/ggc-nutri/src/ggc/nutri/db/datalayer/Meal.java trunk/ggc-nutri/src/ggc/nutri/db/datalayer/MealGroup.java trunk/ggc-nutri/src/ggc/nutri/db/datalayer/MealNutrition.java trunk/ggc-nutri/src/ggc/nutri/db/datalayer/MealPart.java trunk/ggc-nutri/src/ggc/nutri/db/datalayer/MealParts.java trunk/ggc-nutri/src/ggc/nutri/db/datalayer/NutritionDefinition.java trunk/ggc-nutri/src/ggc/nutri/db/datalayer/NutritionHomeWeightType.java trunk/ggc-nutri/src/ggc/nutri/dialogs/DailyValuesMealSelectorDialog.java trunk/ggc-nutri/src/ggc/nutri/dialogs/FoodPartMainSelectorDialog.java trunk/ggc-nutri/src/ggc/nutri/dialogs/FoodPartSelectorDialog.java trunk/ggc-nutri/src/ggc/nutri/dialogs/HWSelectorDialog.java trunk/ggc-nutri/src/ggc/nutri/dialogs/MealSelectorDialog.java trunk/ggc-nutri/src/ggc/nutri/dialogs/MealSpecialSelectorDialog.java trunk/ggc-nutri/src/ggc/nutri/dialogs/NutritionGroupDialog.java trunk/ggc-nutri/src/ggc/nutri/dialogs/NutritionTreeDialog.java trunk/ggc-nutri/src/ggc/nutri/dialogs/TestNutritionData.java trunk/ggc-nutri/src/ggc/nutri/display/DailyFoodEntryDisplay.java trunk/ggc-nutri/src/ggc/nutri/display/HomeWeightDataDisplay.java trunk/ggc-nutri/src/ggc/nutri/display/MealFoodDisplay.java trunk/ggc-nutri/src/ggc/nutri/display/MealNutritionsDisplay.java trunk/ggc-nutri/src/ggc/nutri/display/MealPartsDisplay.java trunk/ggc-nutri/src/ggc/nutri/display/NutritionDataDisplay.java trunk/ggc-nutri/src/ggc/nutri/gui/print/PrintFoodDialog.java trunk/ggc-nutri/src/ggc/nutri/panels/GGCTreePanel.java trunk/ggc-nutri/src/ggc/nutri/panels/PanelMealSelector.java trunk/ggc-nutri/src/ggc/nutri/panels/PanelNutritionFood.java trunk/ggc-nutri/src/ggc/nutri/panels/PanelNutritionFoodEdit.java trunk/ggc-nutri/src/ggc/nutri/panels/PanelNutritionFoodGroup.java trunk/ggc-nutri/src/ggc/nutri/panels/PanelNutritionFoodGroupEdit.java trunk/ggc-nutri/src/ggc/nutri/panels/PanelNutritionMain.java trunk/ggc-nutri/src/ggc/nutri/panels/PanelNutritionMeal.java trunk/ggc-nutri/src/ggc/nutri/panels/PanelNutritionMealEdit.java trunk/ggc-nutri/src/ggc/nutri/plugin/BackupRestoreNutriHandler.java trunk/ggc-nutri/src/ggc/nutri/plugin/NutriPlugInServer.java trunk/ggc-nutri/src/ggc/nutri/print/PrintFoodMenuAbstract.java trunk/ggc-nutri/src/ggc/nutri/print/PrintFoodMenuBase.java trunk/ggc-nutri/src/ggc/nutri/print/PrintFoodMenuExt1.java trunk/ggc-nutri/src/ggc/nutri/print/PrintFoodMenuExt2.java trunk/ggc-nutri/src/ggc/nutri/print/PrintFoodMenuExt3.java trunk/ggc-nutri/src/ggc/nutri/util/DataAccessNutri.java trunk/ggc-nutri/src/ggc/nutri/util/GGCNutriICRunner.java trunk/ggc-plugin_base/src/ggc/core/db/hibernate/GGCHibernateObject.java trunk/ggc-plugin_base/src/ggc/plugin/DevicePlugInServer.java trunk/ggc-plugin_base/src/ggc/plugin/cfg/CommunicationPortComponent.java trunk/ggc-plugin_base/src/ggc/plugin/cfg/CommunicationPortSelector.java trunk/ggc-plugin_base/src/ggc/plugin/cfg/CommunicationSettingsPanel.java trunk/ggc-plugin_base/src/ggc/plugin/cfg/DeviceConfigEntry.java trunk/ggc-plugin_base/src/ggc/plugin/cfg/DeviceConfiguration.java trunk/ggc-plugin_base/src/ggc/plugin/cfg/DeviceConfigurationDefinition.java trunk/ggc-plugin_base/src/ggc/plugin/cfg/DeviceConfigurationDialog.java trunk/ggc-plugin_base/src/ggc/plugin/cfg/DeviceSelectorDialog.java trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceDataHandler.java trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceDefsAbstract.java trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceTempValues.java trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceValues.java trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceValuesConfigTable.java trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceValuesConfigTableModel.java trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceValuesDay.java trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceValuesEntry.java trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceValuesEntryInterface.java trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceValuesRange.java trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceValuesTable.java trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceValuesTableModel.java trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceValuesWriter.java trunk/ggc-plugin_base/src/ggc/plugin/data/GGCPlugInFileReaderContext.java trunk/ggc-plugin_base/src/ggc/plugin/data/progress/ProgressData.java trunk/ggc-plugin_base/src/ggc/plugin/data/progress/ProgressReportInterface.java trunk/ggc-plugin_base/src/ggc/plugin/data/progress/ProgressType.java trunk/ggc-plugin_base/src/ggc/plugin/db/PluginDb.java trunk/ggc-plugin_base/src/ggc/plugin/device/DeviceAbstract.java trunk/ggc-plugin_base/src/ggc/plugin/device/DeviceIdentification.java trunk/ggc-plugin_base/src/ggc/plugin/device/DeviceInterface.java trunk/ggc-plugin_base/src/ggc/plugin/device/DownloadSupportType.java trunk/ggc-plugin_base/src/ggc/plugin/device/PlugInBaseException.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/abbott/CoPilot.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/accuchek/AccuChekSmartPix.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/accuchek/AccuChekSmartPixReaderAbstract.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/accuchek/AccuChekSmartPixReaderV2.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/accuchek/AccuChekSmartPixReaderV3.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/accuchek/AccuChekSmartPixSpecialConfig.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/accuchek/FRC_AccuChekSmartPixXml.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/MinimedDevice.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/MinimedDeviceConfig.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/MinimedDeviceUtil.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/MinimedDevicesIds.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/MinimedSpecialConfig.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/cmd/BadDeviceValueException.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/cmd/MinimedCommand.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/cmd/MinimedCommandHistoryCGMS.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/cmd/MinimedCommandHistoryData.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/cmd/MinimedCommandReply.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/cmd/MinimedReplyDecoder.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/cmd/MinimedReplyHistoryDecoder.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/comm/MinimedComm_ComLink.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/comm/MinimedComm_ComStation.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/comm/MinimedComm_Interface.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/comm/MinimedComm_USBLink.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/file/MinimedCareLink.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/file/MinimedCareLinkData.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/file/MinimedCareLinkDate.java trunk/ggc-plugin_base/src/ggc/plugin/graph/PlugInGraphDialog.java trunk/ggc-plugin_base/src/ggc/plugin/graph/data/GraphTypes.java trunk/ggc-plugin_base/src/ggc/plugin/graph/data/GraphValue.java trunk/ggc-plugin_base/src/ggc/plugin/graph/data/GraphValuesCapable.java trunk/ggc-plugin_base/src/ggc/plugin/graph/data/GraphValuesCollection.java trunk/ggc-plugin_base/src/ggc/plugin/graph/data/PlugInGraphConstants.java trunk/ggc-plugin_base/src/ggc/plugin/graph/data/PlugInGraphDb.java trunk/ggc-plugin_base/src/ggc/plugin/graph/panel/AxesEditorPanel.java trunk/ggc-plugin_base/src/ggc/plugin/graph/panel/DefinitionsPanel.java trunk/ggc-plugin_base/src/ggc/plugin/graph/util/PlugInGraphContext.java trunk/ggc-plugin_base/src/ggc/plugin/graph/view/AbstractGraphView.java trunk/ggc-plugin_base/src/ggc/plugin/graph/view/CourseGraphView.java trunk/ggc-plugin_base/src/ggc/plugin/graph/view/JFAbstractGraphView.java trunk/ggc-plugin_base/src/ggc/plugin/gui/AboutBaseDialog.java trunk/ggc-plugin_base/src/ggc/plugin/gui/DeviceDisplayConfigDialog.java trunk/ggc-plugin_base/src/ggc/plugin/gui/DeviceDisplayDataDialog.java trunk/ggc-plugin_base/src/ggc/plugin/gui/DeviceExportDialog.java trunk/ggc-plugin_base/src/ggc/plugin/gui/DeviceFileSelector.java trunk/ggc-plugin_base/src/ggc/plugin/gui/DeviceInstructionsDialog.java trunk/ggc-plugin_base/src/ggc/plugin/gui/DevicePreInitRunner.java trunk/ggc-plugin_base/src/ggc/plugin/gui/DeviceReaderRunner.java trunk/ggc-plugin_base/src/ggc/plugin/gui/DeviceSpecialConfigPanelAbstract.java trunk/ggc-plugin_base/src/ggc/plugin/gui/DeviceSpecialConfigPanelInterface.java trunk/ggc-plugin_base/src/ggc/plugin/gui/DeviceWriterRunner.java trunk/ggc-plugin_base/src/ggc/plugin/gui/OldDataReaderAbstract.java trunk/ggc-plugin_base/src/ggc/plugin/gui/file/AbstractFileSelectorDialog.java trunk/ggc-plugin_base/src/ggc/plugin/gui/file/AbstractFileSelectorPanel.java trunk/ggc-plugin_base/src/ggc/plugin/gui/file/ImportFileSelectorDialog.java trunk/ggc-plugin_base/src/ggc/plugin/gui/file/MultipleFileSelectorDialog.java trunk/ggc-plugin_base/src/ggc/plugin/list/BaseListAbstractPanel.java trunk/ggc-plugin_base/src/ggc/plugin/list/BaseListBrowserPanel.java trunk/ggc-plugin_base/src/ggc/plugin/list/BaseListDialog.java trunk/ggc-plugin_base/src/ggc/plugin/list/BaseListEntry.java trunk/ggc-plugin_base/src/ggc/plugin/list/BaseListMainPanel.java trunk/ggc-plugin_base/src/ggc/plugin/list/BaseListModel.java trunk/ggc-plugin_base/src/ggc/plugin/list/BaseListRenderer.java trunk/ggc-plugin_base/src/ggc/plugin/list/BaseListRoot.java trunk/ggc-plugin_base/src/ggc/plugin/manager/DeviceCompany.java trunk/ggc-plugin_base/src/ggc/plugin/manager/DeviceImplementationStatus.java trunk/ggc-plugin_base/src/ggc/plugin/manager/DeviceManager.java trunk/ggc-plugin_base/src/ggc/plugin/manager/EmptyMgrDevices.java trunk/ggc-plugin_base/src/ggc/plugin/manager/MgrDevice.java trunk/ggc-plugin_base/src/ggc/plugin/manager/company/AbstractDeviceCompany.java trunk/ggc-plugin_base/src/ggc/plugin/manager/company/DeviceCompanyInterface.java trunk/ggc-plugin_base/src/ggc/plugin/output/AbstractOutputWriter.java trunk/ggc-plugin_base/src/ggc/plugin/output/ConsoleOutputWriter.java trunk/ggc-plugin_base/src/ggc/plugin/output/DummyOutputWriter.java trunk/ggc-plugin_base/src/ggc/plugin/output/FileOutputWriter.java trunk/ggc-plugin_base/src/ggc/plugin/output/GGCFileOutputWriter.java trunk/ggc-plugin_base/src/ggc/plugin/output/OutputUtil.java trunk/ggc-plugin_base/src/ggc/plugin/output/OutputWriter.java trunk/ggc-plugin_base/src/ggc/plugin/output/OutputWriterData.java trunk/ggc-plugin_base/src/ggc/plugin/output/OutputWriterType.java trunk/ggc-plugin_base/src/ggc/plugin/protocol/BlueToothProtocol.java trunk/ggc-plugin_base/src/ggc/plugin/protocol/ConnectionProtocols.java trunk/ggc-plugin_base/src/ggc/plugin/protocol/DatabaseProtocol.java trunk/ggc-plugin_base/src/ggc/plugin/protocol/FileProtocol.java trunk/ggc-plugin_base/src/ggc/plugin/protocol/SerialProtocol.java trunk/ggc-plugin_base/src/ggc/plugin/protocol/USBProtocol.java trunk/ggc-plugin_base/src/ggc/plugin/protocol/XmlProtocol.java trunk/ggc-plugin_base/src/ggc/plugin/protocol/XmlProtocolFile.java trunk/ggc-plugin_base/src/ggc/plugin/test/TestDeviceInstructions.java trunk/ggc-plugin_base/src/ggc/plugin/util/DataAccessPlugInBase.java trunk/ggc-plugin_base/src/ggc/plugin/util/DeviceValuesEntryUtil.java trunk/ggc-plugin_base/src/ggc/plugin/util/GGCPluginICRunner.java trunk/ggc-plugin_base/src/ggc/plugin/util/I18nControlPlugin.java trunk/ggc-plugin_base/src/ggc/plugin/util/LogEntryType.java trunk/ggc-plugin_base/src/ggc/plugin/util/PlugInDeviceUtil.java trunk/ggc-plugin_base/src/ggc/plugin/util/TimeZoneComparator.java trunk/ggc-pump/src/ggc/pump/data/PumpDailyStatistics.java trunk/ggc-pump/src/ggc/pump/data/PumpDataHandler.java trunk/ggc-pump/src/ggc/pump/data/PumpDataReader.java trunk/ggc-pump/src/ggc/pump/data/PumpTempValues.java trunk/ggc-pump/src/ggc/pump/data/PumpValuesEntry.java trunk/ggc-pump/src/ggc/pump/data/PumpValuesEntryConfig.java trunk/ggc-pump/src/ggc/pump/data/PumpValuesEntryExt.java trunk/ggc-pump/src/ggc/pump/data/PumpValuesEntryInterface.java trunk/ggc-pump/src/ggc/pump/data/PumpValuesEntryProfile.java trunk/ggc-pump/src/ggc/pump/data/PumpValuesTableModel.java trunk/ggc-pump/src/ggc/pump/data/bre/BREData.java trunk/ggc-pump/src/ggc/pump/data/bre/BREDataCollection.java trunk/ggc-pump/src/ggc/pump/data/bre/BasalEstimationData.java trunk/ggc-pump/src/ggc/pump/data/bre/RatioData.java trunk/ggc-pump/src/ggc/pump/data/cfg/PumpConfigurationDefinition.java trunk/ggc-pump/src/ggc/pump/data/db/GGCPumpDb.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpAdditionalDataType.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpAlarms.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpBasalSubType.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpBaseType.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpBolusType.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpConfiguration.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpDataType.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpDefsAbstract.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpErrors.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpEvents.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpReport.java trunk/ggc-pump/src/ggc/pump/data/graph/GraphViewBasalRateEstimator.java trunk/ggc-pump/src/ggc/pump/data/graph/GraphViewDailyPump.java trunk/ggc-pump/src/ggc/pump/data/graph/GraphViewProfileEditor.java trunk/ggc-pump/src/ggc/pump/data/graph/bre/BREGraphsAbstract.java trunk/ggc-pump/src/ggc/pump/data/graph/bre/GraphViewBasalRate.java trunk/ggc-pump/src/ggc/pump/data/graph/bre/GraphViewBasals.java trunk/ggc-pump/src/ggc/pump/data/graph/bre/GraphViewRatios.java trunk/ggc-pump/src/ggc/pump/data/graph/bre/Test.java trunk/ggc-pump/src/ggc/pump/data/profile/Profile.java trunk/ggc-pump/src/ggc/pump/data/profile/ProfileSubEntry.java trunk/ggc-pump/src/ggc/pump/data/profile/ProfileSubOther.java trunk/ggc-pump/src/ggc/pump/data/profile/ProfileSubPattern.java trunk/ggc-pump/src/ggc/pump/db/PumpData.java trunk/ggc-pump/src/ggc/pump/db/PumpDataExtended.java trunk/ggc-pump/src/ggc/pump/db/PumpProfile.java trunk/ggc-pump/src/ggc/pump/device/AbstractBlueToothPump.java trunk/ggc-pump/src/ggc/pump/device/AbstractPump.java trunk/ggc-pump/src/ggc/pump/device/AbstractSerialPump.java trunk/ggc-pump/src/ggc/pump/device/AbstractXmlPump.java trunk/ggc-pump/src/ggc/pump/device/DummyPump.java trunk/ggc-pump/src/ggc/pump/device/PumpInterface.java trunk/ggc-pump/src/ggc/pump/device/accuchek/AccuChekCombo.java trunk/ggc-pump/src/ggc/pump/device/accuchek/AccuChekDTron.java trunk/ggc-pump/src/ggc/pump/device/accuchek/AccuChekSmartPixPump.java trunk/ggc-pump/src/ggc/pump/device/accuchek/AccuChekSpirit.java trunk/ggc-pump/src/ggc/pump/device/accuchek/DisetronicDTron.java trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR1200.java trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR1250.java trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR2020.java trunk/ggc-pump/src/ggc/pump/device/animas/AnimasPing.java trunk/ggc-pump/src/ggc/pump/device/animas/AnimasPump.java trunk/ggc-pump/src/ggc/pump/device/animas/FRC_EZManager_v2.java trunk/ggc-pump/src/ggc/pump/device/cozmo/FRC_CoPilotXMLPump.java trunk/ggc-pump/src/ggc/pump/device/dana/DanaDiabecare_II.java trunk/ggc-pump/src/ggc/pump/device/dana/DanaDiabecare_III_R.java trunk/ggc-pump/src/ggc/pump/device/dana/DanaDiabecare_IIS.java trunk/ggc-pump/src/ggc/pump/device/dana/DanaPump.java trunk/ggc-pump/src/ggc/pump/device/dana/PacketStreamReader.java trunk/ggc-pump/src/ggc/pump/device/deltec/DeltecCosmo1700.java trunk/ggc-pump/src/ggc/pump/device/deltec/DeltecCosmo1800.java trunk/ggc-pump/src/ggc/pump/device/deltec/DeltecPump.java trunk/ggc-pump/src/ggc/pump/device/insulet/IRFReader.java trunk/ggc-pump/src/ggc/pump/device/insulet/InsuletOmniPod.java trunk/ggc-pump/src/ggc/pump/device/insulet/InsuletPump.java trunk/ggc-pump/src/ggc/pump/device/insulet/MacBinaryDecoderOutputStream.java trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed508.java trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed511.java trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed512.java trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed515.java trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed522.java trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed523.java trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed553.java trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed554_Veo.java trunk/ggc-pump/src/ggc/pump/device/minimed/MinimedPump.java trunk/ggc-pump/src/ggc/pump/device/minimed/MinimedPumpDevice.java trunk/ggc-pump/src/ggc/pump/device/minimed/MinimedSPM.java trunk/ggc-pump/src/ggc/pump/device/minimed/MinimedSPMData.java trunk/ggc-pump/src/ggc/pump/device/minimed/MinimedSPMPump.java trunk/ggc-pump/src/ggc/pump/device/minimed/PumpSimple.java trunk/ggc-pump/src/ggc/pump/device/minimed/comm/MinimedReply.java trunk/ggc-pump/src/ggc/pump/device/minimed/data/Command.java trunk/ggc-pump/src/ggc/pump/device/minimed/data/CommandHistoryData.java trunk/ggc-pump/src/ggc/pump/device/minimed/data/DecodeHistoryData.java trunk/ggc-pump/src/ggc/pump/device/minimed/data/MMPCommand.java trunk/ggc-pump/src/ggc/pump/device/minimed/data/TestReturnData.java trunk/ggc-pump/src/ggc/pump/device/minimed/file/FRC_MinimedCarelink.java trunk/ggc-pump/src/ggc/pump/device/minimed/file/FRC_MinimedCarelinkConfig.java trunk/ggc-pump/src/ggc/pump/device/minimed/file/MinimedCareLinkPump.java trunk/ggc-pump/src/ggc/pump/device/minimed/file/MinimedCareLinkPumpData.java trunk/ggc-pump/src/ggc/pump/device/minimed/file/MinimedCareLinkPumpProfile.java trunk/ggc-pump/src/ggc/pump/device/minimed/new_dev/Minimed512.java trunk/ggc-pump/src/ggc/pump/graph/PumpGraphContext.java trunk/ggc-pump/src/ggc/pump/gui/PumpPrintDialog.java trunk/ggc-pump/src/ggc/pump/gui/bre/BasalRateEstimator.java trunk/ggc-pump/src/ggc/pump/gui/bre/BasalRateEstimatorAlgorithm.java trunk/ggc-pump/src/ggc/pump/gui/manual/PumpDataAdditionalWizardOne.java trunk/ggc-pump/src/ggc/pump/gui/manual/PumpDataAdditionalWizardTwo.java trunk/ggc-pump/src/ggc/pump/gui/manual/PumpDataDialog.java trunk/ggc-pump/src/ggc/pump/gui/manual/PumpDataRowDialog.java trunk/ggc-pump/src/ggc/pump/gui/manual/PumpDataTableModel.java trunk/ggc-pump/src/ggc/pump/gui/manual/PumpDataTypeComponent.java trunk/ggc-pump/src/ggc/pump/gui/profile/ProfileEditor.java trunk/ggc-pump/src/ggc/pump/gui/profile/ProfileEntryDialog.java trunk/ggc-pump/src/ggc/pump/gui/profile/ProfileSelector.java trunk/ggc-pump/src/ggc/pump/gui/profile/ProfileSelectorPump.java trunk/ggc-pump/src/ggc/pump/manager/PumpDevicesIds.java trunk/ggc-pump/src/ggc/pump/manager/PumpManager.java trunk/ggc-pump/src/ggc/pump/manager/company/AbstractPumpDeviceCompany.java trunk/ggc-pump/src/ggc/pump/manager/company/Animas.java trunk/ggc-pump/src/ggc/pump/manager/company/Deltec.java trunk/ggc-pump/src/ggc/pump/manager/company/GenericPumpDevice.java trunk/ggc-pump/src/ggc/pump/manager/company/Insulet.java trunk/ggc-pump/src/ggc/pump/manager/company/Minimed.java trunk/ggc-pump/src/ggc/pump/manager/company/Roche.java trunk/ggc-pump/src/ggc/pump/manager/company/Sooil.java trunk/ggc-pump/src/ggc/pump/plugin/BackupRestorePumpHandler.java trunk/ggc-pump/src/ggc/pump/plugin/PumpPlugInServer.java trunk/ggc-pump/src/ggc/pump/print/PrintPumpBasalCheckSheet.java trunk/ggc-pump/src/ggc/pump/print/PrintPumpDataAbstract.java trunk/ggc-pump/src/ggc/pump/print/PrintPumpDataBase.java trunk/ggc-pump/src/ggc/pump/print/PrintPumpDataDailyTimeSheet.java trunk/ggc-pump/src/ggc/pump/print/PrintPumpDataExt.java trunk/ggc-pump/src/ggc/pump/test/DanaPumpTester.java trunk/ggc-pump/src/ggc/pump/test/MinimedConsoleTester.java trunk/ggc-pump/src/ggc/pump/test/MinimedDecoderTester.java trunk/ggc-pump/src/ggc/pump/test/PumpConsoleTester.java trunk/ggc-pump/src/ggc/pump/test/XmlTests.java trunk/ggc-pump/src/ggc/pump/test/hid/HIDAPITest.java trunk/ggc-pump/src/ggc/pump/test/hid/HidApplet.java trunk/ggc-pump/src/ggc/pump/util/DataAccessPump.java trunk/ggc-pump/src/ggc/pump/util/GGCPumpICRunner.java Modified: trunk/ggc-cgm/src/ggc/cgms/data/CGMSDailyStatistics.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/CGMSDailyStatistics.java 2014-09-27 13:46:18 UTC (rev 1321) +++ trunk/ggc-cgm/src/ggc/cgms/data/CGMSDailyStatistics.java 2014-09-27 19:22:33 UTC (rev 1322) @@ -1,6 +1,7 @@ package ggc.cgms.data; import ggc.cgms.util.DataAccessCGMS; +import ggc.plugin.util.DataAccessPlugInBase; import java.util.ArrayList; @@ -32,12 +33,11 @@ * Author: Andy {an...@at...} */ - -public class CGMSDailyStatistics extends StatisticsCollection +public class CGMSDailyStatistics extends StatisticsCollection { - //public int bg_type = -1; + // public int bg_type = -1; DataAccessCGMS da_pump = DataAccessCGMS.getInstance(); - + /** * Constructor */ @@ -45,26 +45,25 @@ { super(DataAccessCGMS.getInstance(), new CGMSValuesSubEntry()); } - /** * Process Special Statistics * * @see com.atech.misc.statistics.StatisticsCollection#processSpecialStatistics() */ + @Override public void processSpecialStatistics() { - //DataAccessCGMS.notImplemented("CGMSDailyStatistics::processSpecialStatistics()"); + // DataAccessCGMS.notImplemented("CGMSDailyStatistics::processSpecialStatistics()"); - - if (this.items.size()==0) + if (this.items.size() == 0) { this.special_processed = true; return; } - - //System.out.println("SS: " + da_pump.getBGMeasurmentType()); - if (da_pump.getBGMeasurmentType()==DataAccessCGMS.BG_MMOL) + + // System.out.println("SS: " + da_pump.getBGMeasurmentType()); + if (da_pump.getBGMeasurmentType() == DataAccessPlugInBase.BG_MMOL) { setBGValue(CGMSValuesSubEntry.STAT_AVG_BG1); setBGValue(CGMSValuesSubEntry.STAT_MIN_BG1); @@ -73,109 +72,104 @@ setBGValue(CGMSValuesSubEntry.STAT_MIN_BG2); setBGValue(CGMSValuesSubEntry.STAT_MAX_BG2); } - - - setValue(CGMSValuesSubEntry.STAT_STD_DEV_BG1, getStandardDeviation(1)); - setValue(CGMSValuesSubEntry.STAT_STD_DEV_BG2, getStandardDeviation(2)); - + + setValue(CGMSValuesSubEntry.STAT_STD_DEV_BG1, getStandardDeviation(1)); + setValue(CGMSValuesSubEntry.STAT_STD_DEV_BG2, getStandardDeviation(2)); + ArrayList<CGMSValuesSubEntry> lst = new ArrayList<CGMSValuesSubEntry>(); - + /* - for(int i=0; i<this.items.size(); i++) - { - CGMSValuesSubEntry pve = (CGMSValuesSubEntry)this.items.get(i); - - if (pve.base_type==PumpBaseType.PUMP_DATA_BASAL) - lst.add(pve); - }*/ + * for(int i=0; i<this.items.size(); i++) + * { + * CGMSValuesSubEntry pve = (CGMSValuesSubEntry)this.items.get(i); + * if (pve.base_type==PumpBaseType.PUMP_DATA_BASAL) + * lst.add(pve); + * } + */ - //float v = this.stat_objects.get(index-1).sum; + // float v = this.stat_objects.get(index-1).sum; - //int count = 0; + // int count = 0; float sum = 0; - - - for(int i=0; i<lst.size(); i++) + + for (int i = 0; i < lst.size(); i++) { CGMSValuesSubEntry pve = lst.get(i); - + if (isCurrentlyIgnoredEntry(pve)) + { continue; - -// if ((pve.base_type == PumpBaseType.PUMP_DATA_BASAL) && -// (pve.sub_type == PumpBasalSubType.PUMP_BASAL_PROFILE)) -// continue; + } - if ((i+1)==lst.size()) + // if ((pve.base_type == PumpBaseType.PUMP_DATA_BASAL) && + // (pve.sub_type == PumpBasalSubType.PUMP_BASAL_PROFILE)) + // continue; + + if (i + 1 == lst.size()) { int s = 24 - pve.getDateTimeObject().hour_of_day; float val = m_da.getFloatValueFromString(pve.getValue()); - sum += s * val; - - // System.out.println("Time diff: " + s + ", val=" + val); + sum += s * val; + + // System.out.println("Time diff: " + s + ", val=" + val); } else { - CGMSValuesSubEntry pve2 = lst.get(i+1); + CGMSValuesSubEntry pve2 = lst.get(i + 1); if (isCurrentlyIgnoredEntry(pve2)) + { continue; - -// if ((pve2.base_type == PumpBaseType.PUMP_DATA_BASAL) && -// (pve2.sub_type == PumpBasalSubType.PUMP_BASAL_PROFILE)) -// continue; - - - //System.out.println("Hour: " + pve2.getDateTimeObject().hour_of_day + ", hour2=" + pve.getDateTimeObject().hour_of_day); + } - //System.out.println("pve2: " + pve2.getBaseTypeString() + pve2.getSubTypeString()); - + // if ((pve2.base_type == PumpBaseType.PUMP_DATA_BASAL) && + // (pve2.sub_type == PumpBasalSubType.PUMP_BASAL_PROFILE)) + // continue; + + // System.out.println("Hour: " + + // pve2.getDateTimeObject().hour_of_day + ", hour2=" + + // pve.getDateTimeObject().hour_of_day); + + // System.out.println("pve2: " + pve2.getBaseTypeString() + + // pve2.getSubTypeString()); + int s = pve2.getDateTimeObject().hour_of_day - pve.getDateTimeObject().hour_of_day; float val = da_pump.getFloatValueFromString(pve.getValue()); - sum += s * val; + sum += s * val; - //System.out.println("Time diff: " + s + ", val=" + val); + // System.out.println("Time diff: " + s + ", val=" + val); } - + System.out.println("Sum: " + sum); } - - - - //this.stat_objects.get(PumpValuesEntry.INS_SUM_BASAL-1).setCount(lst.size()); - //this.stat_objects.get(PumpValuesEntry.INS_AVG_BASAL-1).setSum(sum/24.0f); - //this.stat_objects.get(PumpValuesEntry.INS_SUM_BASAL-1).setCount(lst.size()); - - -// public static final int BG_AVG =13; -// public static final int BG_MAX =14; -// public static final int BG_MIN =15; -// public static final int BG_COUNT =16; -// public static final int BG_STD_DEV =17; - - - - - - + // this.stat_objects.get(PumpValuesEntry.INS_SUM_BASAL-1).setCount(lst.size()); + + // this.stat_objects.get(PumpValuesEntry.INS_AVG_BASAL-1).setSum(sum/24.0f); + // this.stat_objects.get(PumpValuesEntry.INS_SUM_BASAL-1).setCount(lst.size()); + + // public static final int BG_AVG =13; + // public static final int BG_MAX =14; + // public static final int BG_MIN =15; + // public static final int BG_COUNT =16; + // public static final int BG_STD_DEV =17; + this.special_processed = true; } - - + private boolean isCurrentlyIgnoredEntry(CGMSValuesSubEntry pve) { return false; } - - + private float getStandardDeviation(int type) { - if (type==1) + if (type == 1) { - float f = this.getValueInternal(CGMSValuesSubEntry.STAT_AVG_BG1) - this.getValueInternal(CGMSValuesSubEntry.STAT_MIN_BG1); + float f = this.getValueInternal(CGMSValuesSubEntry.STAT_AVG_BG1) + - this.getValueInternal(CGMSValuesSubEntry.STAT_MIN_BG1); if (f < 0) { @@ -187,7 +181,8 @@ } else { - float f = this.getValueInternal(CGMSValuesSubEntry.STAT_AVG_BG2) - this.getValueInternal(CGMSValuesSubEntry.STAT_MIN_BG2); + float f = this.getValueInternal(CGMSValuesSubEntry.STAT_AVG_BG2) + - this.getValueInternal(CGMSValuesSubEntry.STAT_MIN_BG2); if (f < 0) { @@ -197,29 +192,25 @@ else return f; } - + } - - + private void setBGValue(int index) { - float v = this.stat_objects.get(index-1).sum; - float new_val = da_pump.getBGValueDifferent(DataAccessCGMS.BG_MGDL, v); - + float v = this.stat_objects.get(index - 1).sum; + float new_val = da_pump.getBGValueDifferent(DataAccessPlugInBase.BG_MGDL, v); + setValue(index, new_val); } - + private float getValueInternal(int index) { - return this.stat_objects.get(index-1).getStatistics(); + return this.stat_objects.get(index - 1).getStatistics(); } - - + private void setValue(int index, float val) { - this.stat_objects.get(index-1).sum = val; + this.stat_objects.get(index - 1).sum = val; } - - - -} + +} Modified: trunk/ggc-cgm/src/ggc/cgms/data/CGMSDataHandler.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/CGMSDataHandler.java 2014-09-27 13:46:18 UTC (rev 1321) +++ trunk/ggc-cgm/src/ggc/cgms/data/CGMSDataHandler.java 2014-09-27 19:22:33 UTC (rev 1322) @@ -6,7 +6,6 @@ import java.util.Hashtable; - /** * Application: GGC - GNU Gluco Control * Plug-in: Meter Tool (support for Meter devices) @@ -36,8 +35,6 @@ public class CGMSDataHandler extends DeviceDataHandler { - - /** * Constructor * @@ -47,43 +44,42 @@ { super(da); } - - - - + /** * Execute export Db * * @see ggc.plugin.data.DeviceDataHandler#executeExportDb() */ - /* public void executeExportDb() - { - //System.out.println("Checked entries: " + this.getDeviceValuesTableModel().getCheckedEntries()); - this.m_server.setReturnData(this.getDeviceValuesTableModel().getCheckedEntries(), this); - }*/ - - + /* + * public void executeExportDb() + * { + * //System.out.println("Checked entries: " + + * this.getDeviceValuesTableModel().getCheckedEntries()); + * this.m_server.setReturnData(this.getDeviceValuesTableModel(). + * getCheckedEntries(), this); + * } + */ + /** * Execute Export Other (not supported for now) * * @see ggc.plugin.data.DeviceDataHandler#executeExportOther() */ + @Override public void executeExportOther() { } - - + /** * Create Device Values Table Model */ + @Override public void createDeviceValuesTableModel() { - this.m_model = new CGMSValuesTableModel(this, m_da.getSourceDevice()); //m_da.getSourceDevice()); - //System.out.println("Model"); + this.m_model = new CGMSValuesTableModel(this, m_da.getSourceDevice()); // m_da.getSourceDevice()); + // System.out.println("Model"); } - - /** * Set Device Data * @@ -93,33 +89,26 @@ @Override public void setDeviceData(Hashtable<String, ?> data) { - if ((data==null) || (data.size()==0)) + if (data == null || data.size() == 0) { - //System.out.println("NO Old data: " + old_data); - old_data = new Hashtable<String,DayValueH>(); + // System.out.println("NO Old data: " + old_data); + old_data = new Hashtable<String, DayValueH>(); } else { - old_data = (Hashtable<String,DayValueH>)data; - //System.out.println("Old data: " + old_data); + old_data = data; + // System.out.println("Old data: " + old_data); } } - - - /** * Set Reading Finished */ public void setReadingFinished() { - + // TODO Auto-generated method stub - + } - - - - -} \ No newline at end of file +} Modified: trunk/ggc-cgm/src/ggc/cgms/data/CGMSDataReader.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/CGMSDataReader.java 2014-09-27 13:46:18 UTC (rev 1321) +++ trunk/ggc-cgm/src/ggc/cgms/data/CGMSDataReader.java 2014-09-27 19:22:33 UTC (rev 1322) @@ -39,10 +39,10 @@ public class CGMSDataReader extends OldDataReaderAbstract { private static Log log =... [truncated message content] |
From: <and...@us...> - 2014-10-09 21:35:02
|
Revision: 1329 http://sourceforge.net/p/ggc/code/1329 Author: andyrozman Date: 2014-10-09 21:34:52 +0000 (Thu, 09 Oct 2014) Log Message: ----------- - Plugins problem, needs further debuging - ATechDate changes - PumpDailySpreadsheetReport Modified Paths: -------------- trunk/ggc-cgm/src/ggc/cgms/gui/viewer/CGMSDataDialog.java trunk/ggc-core/src/ggc/core/data/graph/GraphViewSpread.java trunk/ggc-core/src/ggc/core/plugins/CGMSPlugIn.java trunk/ggc-core/src/ggc/core/plugins/MetersPlugIn.java trunk/ggc-core/src/ggc/core/plugins/NutriPlugIn.java trunk/ggc-core/src/ggc/core/plugins/PumpsPlugIn.java trunk/ggc-core/src/ggc/shared/ratio/RatioEntry.java trunk/ggc-plugin_base/src/ggc/plugin/util/DataAccessPlugInBase.java trunk/ggc-pump/pom.xml trunk/ggc-pump/src/ggc/pump/data/PumpValuesHour.java trunk/ggc-pump/src/ggc/pump/data/PumpValuesHourProcessor.java trunk/ggc-pump/src/ggc/pump/print/PrintPumpDataDailyTimeSheet.java Modified: trunk/ggc-cgm/src/ggc/cgms/gui/viewer/CGMSDataDialog.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/gui/viewer/CGMSDataDialog.java 2014-10-09 16:34:06 UTC (rev 1328) +++ trunk/ggc-cgm/src/ggc/cgms/gui/viewer/CGMSDataDialog.java 2014-10-09 21:34:52 UTC (rev 1329) @@ -174,13 +174,13 @@ this.model.fireTableChanged(null); } - private ArrayList<CGMSValuesSubEntry> getDataList(List<DeviceValuesEntry> list_in) + private ArrayList<CGMSValuesSubEntry> getDataList(List<DeviceValuesEntry> list) { ArrayList<CGMSValuesSubEntry> lst = new ArrayList<CGMSValuesSubEntry>(); - for (int i = 0; i < list_in.size(); i++) + for (int i = 0; i < list.size(); i++) { - lst.add((CGMSValuesSubEntry) list_in.get(i)); + lst.add((CGMSValuesSubEntry) list.get(i)); } return lst; Modified: trunk/ggc-core/src/ggc/core/data/graph/GraphViewSpread.java =================================================================== --- trunk/ggc-core/src/ggc/core/data/graph/GraphViewSpread.java 2014-10-09 16:34:06 UTC (rev 1328) +++ trunk/ggc-core/src/ggc/core/data/graph/GraphViewSpread.java 2014-10-09 21:34:52 UTC (rev 1329) @@ -97,7 +97,7 @@ /** * Get Title (used by GraphViewer) - * + * * @return title as string */ @Override @@ -263,7 +263,7 @@ private long getFakeDateMs(ATechDate date) { - gc_temp.set(Calendar.HOUR_OF_DAY, date.hourOfDay); + gc_temp.set(Calendar.HOUR_OF_DAY, date.getHourOfDay()); gc_temp.set(Calendar.MINUTE, date.minute); return gc_temp.getTimeInMillis(); @@ -272,7 +272,8 @@ /** * Set Plot * - * @param chart JFreeChart instance + * @param chart + * JFreeChart instance */ @SuppressWarnings("deprecation") public void setPlot(JFreeChart chart) Modified: trunk/ggc-core/src/ggc/core/plugins/CGMSPlugIn.java =================================================================== --- trunk/ggc-core/src/ggc/core/plugins/CGMSPlugIn.java 2014-10-09 16:34:06 UTC (rev 1328) +++ trunk/ggc-core/src/ggc/core/plugins/CGMSPlugIn.java 2014-10-09 21:34:52 UTC (rev 1329) @@ -14,28 +14,22 @@ import com.atech.plugin.PlugInServer; /** - * Application: GGC - GNU Gluco Control - * - * See AUTHORS for copyright information. - * - * This program is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation; either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program; if not, write to the Free Software Foundation, Inc., 59 Temple - * Place, Suite 330, Boston, MA 02111-1307 USA - * - * Filename: CGMSPlugIn - * Description: Class CGMS Plugin Client - * - * Author: andyrozman {an...@at...} + * Application: GGC - GNU Gluco Control + * See AUTHORS for copyright information. + * This program is free software; you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation; either version 2 of the License, or (at your option) any later + * version. + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., 59 Temple + * Place, Suite 330, Boston, MA 02111-1307 USA + * Filename: CGMSPlugIn + * Description: Class CGMS Plugin Client + * Author: andyrozman {an...@at...} */ public class CGMSPlugIn extends PlugInClient @@ -69,8 +63,8 @@ /** * Constructor * - * @param parent - * @param ic + * @param parent + * @param ic */ public CGMSPlugIn(Component parent, I18nControlAbstract ic) { @@ -104,8 +98,9 @@ } catch (Exception ex) { - System.out.println("CGMSPlugInServer::Exception:" + ex); - ex.printStackTrace(); + this.installed = false; + // System.out.println("CGMSPlugInServer::Exception:" + ex); + // ex.printStackTrace(); } } @@ -155,7 +150,7 @@ this.featureNotImplemented(commands[0]); } - /** + /** * actionPerformed */ @Override @@ -220,8 +215,10 @@ } /** - * This is method which can be used by server side to do certain action. Mainly this will be used - * to run refreshes and such actions. This needs to be implemented by Client side, if you wish to use + * This is method which can be used by server side to do certain action. + * Mainly this will be used + * to run refreshes and such actions. This needs to be implemented by Client + * side, if you wish to use * it. * * @param action_type Modified: trunk/ggc-core/src/ggc/core/plugins/MetersPlugIn.java =================================================================== --- trunk/ggc-core/src/ggc/core/plugins/MetersPlugIn.java 2014-10-09 16:34:06 UTC (rev 1328) +++ trunk/ggc-core/src/ggc/core/plugins/MetersPlugIn.java 2014-10-09 21:34:52 UTC (rev 1329) @@ -152,35 +152,39 @@ */ public void readMeterData() { + + this.executeCommand(MetersPlugIn.COMMAND_READ_METER_DATA); + // this.featureNotImplemented(commands[MetersPlugIn.COMMAND_READ_METER_DATA]); - int command = MetersPlugIn.COMMAND_READ_METER_DATA; + // int command = MetersPlugIn.COMMAND_READ_METER_DATA; + // + // if (m_server == null) + // { + // if (this.isCommandImplemented(command)) + // { + // // + // this.showMessage(String.format(ic.getMessage("PLUGIN_NOT_INSTALLED"), + // // this.getName())); + // this.showMessage(ic.getMessage("PLUGIN_NOT_INSTALLED")); + // } + // else + // { + // this.featureNotImplemented(commands[command]); + // } + // } + // else + // { + // m_server.executeCommand(command); + // // TODO + // /* + // * GGCDataReader greader = new + // * GGCDataReader(DataAccess.getInstance().getDb(), + // * GGCDataReader.DATA_METER); + // * greader.start(); + // * m_server.executeCommand(command, greader); + // */ + // } - if (m_server == null) - { - if (this.isCommandImplemented(command)) - { - // this.showMessage(String.format(ic.getMessage("PLUGIN_NOT_INSTALLED"), - // this.getName())); - this.showMessage(ic.getMessage("PLUGIN_NOT_INSTALLED")); - } - else - { - this.featureNotImplemented(commands[command]); - } - } - else - { - m_server.executeCommand(command); - // TODO - /* - * GGCDataReader greader = new - * GGCDataReader(DataAccess.getInstance().getDb(), - * GGCDataReader.DATA_METER); - * greader.start(); - * m_server.executeCommand(command, greader); - */ - } - } /** Modified: trunk/ggc-core/src/ggc/core/plugins/NutriPlugIn.java =================================================================== --- trunk/ggc-core/src/ggc/core/plugins/NutriPlugIn.java 2014-10-09 16:34:06 UTC (rev 1328) +++ trunk/ggc-core/src/ggc/core/plugins/NutriPlugIn.java 2014-10-09 21:34:52 UTC (rev 1329) @@ -13,28 +13,22 @@ import com.atech.plugin.PlugInServer; /** - * Application: GGC - GNU Gluco Control - * - * See AUTHORS for copyright information. - * - * This program is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation; either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program; if not, write to the Free Software Foundation, Inc., 59 Temple - * Place, Suite 330, Boston, MA 02111-1307 USA - * - * Filename: PumpsPlugIn - * Description: Class Pump Plugin Client - * - * Author: andyrozman {an...@at...} + * Application: GGC - GNU Gluco Control + * See AUTHORS for copyright information. + * This program is free software; you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation; either version 2 of the License, or (at your option) any later + * version. + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., 59 Temple + * Place, Suite 330, Boston, MA 02111-1307 USA + * Filename: PumpsPlugIn + * Description: Class Pump Plugin Client + * Author: andyrozman {an...@at...} */ public class NutriPlugIn extends PlugInClient @@ -56,7 +50,7 @@ public static final int COMMAND_DB_MEAL = 2; /** - * Command: Load Database + * Command: Load Database */ public static final int COMMAND_LOAD_DATABASE = 3; @@ -132,7 +126,8 @@ } catch (Exception ex) { - System.out.println("Ex:" + ex); + this.installed = false; + // System.out.println("Ex:" + ex); } } Modified: trunk/ggc-core/src/ggc/core/plugins/PumpsPlugIn.java =================================================================== --- trunk/ggc-core/src/ggc/core/plugins/PumpsPlugIn.java 2014-10-09 16:34:06 UTC (rev 1328) +++ trunk/ggc-core/src/ggc/core/plugins/PumpsPlugIn.java 2014-10-09 21:34:52 UTC (rev 1329) @@ -15,28 +15,22 @@ import com.atech.utils.ATDataAccessLMAbstract; /** - * Application: GGC - GNU Gluco Control - * - * See AUTHORS for copyright information. - * - * This program is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation; either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program; if not, write to the Free Software Foundation, Inc., 59 Temple - * Place, Suite 330, Boston, MA 02111-1307 USA - * - * Filename: PumpsPlugIn - * Description: Class Pump Plugin Client - * - * Author: andyrozman {an...@at...} + * Application: GGC - GNU Gluco Control + * See AUTHORS for copyright information. + * This program is free software; you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation; either version 2 of the License, or (at your option) any later + * version. + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., 59 Temple + * Place, Suite 330, Boston, MA 02111-1307 USA + * Filename: PumpsPlugIn + * Description: Class Pump Plugin Client + * Author: andyrozman {an...@at...} */ public class PumpsPlugIn extends PlugInClient @@ -143,8 +137,9 @@ } catch (Exception ex) { - System.out.println("PumpsPlugIn::Exception:" + ex); - ex.printStackTrace(); + this.installed = false; + // System.out.println("PumpsPlugIn::Exception:" + ex); + // ex.printStackTrace(); } } @@ -300,8 +295,10 @@ } /** - * This is method which can be used by server side to do certain action. Mainly this will be used - * to run refreshes and such actions. This needs to be implemented by Client side, if you wish to use + * This is method which can be used by server side to do certain action. + * Mainly this will be used + * to run refreshes and such actions. This needs to be implemented by Client + * side, if you wish to use * it. * * @param action_type Modified: trunk/ggc-core/src/ggc/shared/ratio/RatioEntry.java =================================================================== --- trunk/ggc-core/src/ggc/shared/ratio/RatioEntry.java 2014-10-09 16:34:06 UTC (rev 1328) +++ trunk/ggc-core/src/ggc/shared/ratio/RatioEntry.java 2014-10-09 21:34:52 UTC (rev 1329) @@ -159,9 +159,9 @@ /** * Get Column Name + * @param index * @return - * * @see javax.swing.table.AbstractTableModel#getColumnName(int) */ public String getColumnName(int index) Modified: trunk/ggc-plugin_base/src/ggc/plugin/util/DataAccessPlugInBase.java =================================================================== --- trunk/ggc-plugin_base/src/ggc/plugin/util/DataAccessPlugInBase.java 2014-10-09 16:34:06 UTC (rev 1328) +++ trunk/ggc-plugin_base/src/ggc/plugin/util/DataAccessPlugInBase.java 2014-10-09 21:34:52 UTC (rev 1329) @@ -660,6 +660,22 @@ } + public String getDisplayedBGString(Float bgValue) + { + float val = 0.0f; + + if (bgValue != null) + { + val = getDisplayedBG(bgValue); + } + + if (this.m_BG_unit == BG_MGDL) + return DataAccessPlugInBase.Decimal0Format.format(val); + else + return DataAccessPlugInBase.Decimal1Format.format(val); + + } + /** * Get BG Value (converted to current display type) * Modified: trunk/ggc-pump/pom.xml =================================================================== --- trunk/ggc-pump/pom.xml 2014-10-09 16:34:06 UTC (rev 1328) +++ trunk/ggc-pump/pom.xml 2014-10-09 21:34:52 UTC (rev 1329) @@ -86,6 +86,12 @@ <artifactId>jaxen</artifactId> <version>1.1.6</version> </dependency> + + <dependency> + <groupId>postgresql</groupId> + <artifactId>postgresql</artifactId> + <version>8.4-702.jdbc3</version> + </dependency> </dependencies> <properties> Modified: trunk/ggc-pump/src/ggc/pump/data/PumpValuesHour.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/data/PumpValuesHour.java 2014-10-09 16:34:06 UTC (rev 1328) +++ trunk/ggc-pump/src/ggc/pump/data/PumpValuesHour.java 2014-10-09 21:34:52 UTC (rev 1329) @@ -5,10 +5,73 @@ public class PumpValuesHour { int hour; - HashMap<Long, Float> bgs = new HashMap<Long, Float>(); - public void addBGEntry(PumpValuesEntryExt extData) + private HashMap<Long, Float> bgs = new HashMap<Long, Float>(); + private float chs = 0.0f; + private float bolus = 0.0f; + + public void addBGEntry(PumpValuesEntryExt pumpValuesEntryExt) { - bgs.put(extData.getDateTime(), Float.parseFloat(extData.getValue())); + this.bgs.put(pumpValuesEntryExt.getDateTime(), Float.parseFloat(pumpValuesEntryExt.getValue())); } + + public HashMap<Long, Float> getBgs() + { + return bgs; + } + + public void setBgs(HashMap<Long, Float> bgs) + { + this.bgs = bgs; + } + + public float getBgProcessedValue() + { + float sum = 0.0f; + + for (Float f : bgs.values()) + { + sum += f.floatValue(); + } + + if (bgs.size() > 1) + { + return sum / (bgs.size() * 1.0f); + } + + return sum; + } + + public void addCHEntry(String chValue) + { + try + { + chs += Float.parseFloat(chValue); + } + catch (Exception ex) + {} + } + + public float getCH() + { + return chs; + } + + public void addBolus(String bolusIn) + { + try + { + bolus += Float.parseFloat(bolusIn); + } + catch (Exception ex) + { + System.out.println("Parse Bolus. " + bolusIn + ", Ex.: " + ex); + } + } + + public float getBolus() + { + return bolus; + } + } Modified: trunk/ggc-pump/src/ggc/pump/data/PumpValuesHourProcessor.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/data/PumpValuesHourProcessor.java 2014-10-09 16:34:06 UTC (rev 1328) +++ trunk/ggc-pump/src/ggc/pump/data/PumpValuesHourProcessor.java 2014-10-09 21:34:52 UTC (rev 1329) @@ -1,6 +1,8 @@ package ggc.pump.data; import ggc.plugin.data.DeviceValuesEntry; +import ggc.pump.data.defs.PumpAdditionalDataType; +import ggc.pump.data.defs.PumpBaseType; import ggc.pump.util.DataAccessPump; import java.util.List; @@ -35,16 +37,42 @@ { PumpValuesHour pumpValuesHour = new PumpValuesHour(); - String keyBG = dataAccessPump.getI18nControlInstance().getMessage(PumpDeviceValueType.BG.getAdditionalKey()); + String keyBG = dataAccessPump.getAdditionalTypes().getTypeDescription(PumpAdditionalDataType.PUMP_ADD_DATA_BG); + String keyCH = dataAccessPump.getAdditionalTypes().getTypeDescription(PumpAdditionalDataType.PUMP_ADD_DATA_CH); + // String keyBG = + // dataAccessPump.getI18nControlInstance().getMessage(PumpDeviceValueType.BG.getAdditionalKey()); + + // System.out.println("KeyBG: " + keyBG + ", " + keyBG1); + for (DeviceValuesEntry entry : deviceValues) { PumpValuesEntry pve = (PumpValuesEntry) entry; + // System.out.println("Time: ") + + // System.out.println("PVE Additional Data: " + + // pve.getAdditionalData()); + if (pve.getAdditionalData().containsKey(keyBG)) { pumpValuesHour.addBGEntry(pve.getAdditionalData().get(keyBG)); } + + if (pve.getAdditionalData().containsKey(keyCH)) + { + pumpValuesHour.addCHEntry(pve.getAdditionalData().get(keyCH).getValue()); + } + + if ((pve.getBaseType() == PumpBaseType.PUMP_DATA_BOLUS) + || (pve.getBaseType() == PumpBaseType.PUMP_DATA_PEN_INJECTION_BOLUS)) + { + pumpValuesHour.addBolus(pve.getValue()); + System.out.println("Bolus"); + } + + // if keyCH + } return pumpValuesHour; Modified: trunk/ggc-pump/src/ggc/pump/print/PrintPumpDataDailyTimeSheet.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/print/PrintPumpDataDailyTimeSheet.java 2014-10-09 16:34:06 UTC (rev 1328) +++ trunk/ggc-pump/src/ggc/pump/print/PrintPumpDataDailyTimeSheet.java 2014-10-09 21:34:52 UTC (rev 1329) @@ -7,6 +7,7 @@ import ggc.plugin.data.DeviceValuesDay; import ggc.plugin.data.DeviceValuesEntry; import ggc.plugin.data.DeviceValuesRange; +import ggc.plugin.util.DataAccessPlugInBase; import ggc.pump.data.PumpDeviceValueType; import ggc.pump.data.PumpValuesHour; import ggc.pump.data.PumpValuesHourProcessor; @@ -32,29 +33,24 @@ import com.itextpdf.text.pdf.PdfPTable; /** - * Application: GGC - GNU Gluco Control - * Plug-in: Pump Tool (support for Pump devices) - * - * See AUTHORS for copyright information. - * - * This program is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation; either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program; if not, write to the Free Software Foundation, Inc., 59 Temple - * Place, Suite 330, Boston, MA 02111-1307 USA - * - * Filename: PrintPumpDataDailyTimeSheet - * Description: Report with daily values in smaller tables (one for each day and all hours displayed) - * - * Author: Andy {an...@at...} + * Application: GGC - GNU Gluco Control + * Plug-in: Pump Tool (support for Pump devices) + * See AUTHORS for copyright information. + * This program is free software; you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation; either version 2 of the License, or (at your option) any later + * version. + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., 59 Temple + * Place, Suite 330, Boston, MA 02111-1307 USA + * Filename: PrintPumpDataDailyTimeSheet + * Description: Report with daily values in smaller tables (one for each day and + * all hours displayed) + * Author: Andy {an...@at...} */ // WARNING: THIS IS WORK IN PROGRESS, PLEASE DON'T EDIT. Andy @@ -110,8 +106,8 @@ // FIXME read from parameters - gc_from = new GregorianCalendar(2013, 9, 20); - gc_to = new GregorianCalendar(2013, 9, 28); + gc_from = new GregorianCalendar(2014, 8, 20); + gc_to = new GregorianCalendar(2014, 8, 28); deviceValuesRange = DataAccessPump.getInstance().getDb().getRangePumpValues(gc_from, gc_to); @@ -147,6 +143,17 @@ } /** + * TODO + * + * - main view table (day, comment, space) + * - multiple BG in comment + * - comments + * - bolus swuare or extended + * - sums + * + */ + + /** * {@inheritDoc} */ @@ -194,7 +201,7 @@ if (j == 0) { - datatable.addCell(this.createNormalTextPhrase("Mo")); + datatable.addCell(this.createNormalTextPhrase("???")); datatable.addCell(this.createBoldTextPhrase("BASAL")); writeHourlyValues(PumpDeviceValueType.BASAL, datatable, deviceValuesDay); @@ -202,7 +209,7 @@ else if (j == 1) { PdfPCell cell = new PdfPCell(); - cell.setPhrase(this.createBoldTextPhrase("1.")); + cell.setPhrase(this.createBoldTextPhrase(gcCurrent.get(Calendar.DAY_OF_MONTH) + ".")); // cell.setBorderColorBottom(BaseColor.WHITE); cell.setBorder(Rectangle.LEFT | Rectangle.RIGHT | Rectangle.TOP); cell.setBorderWidth(1); @@ -228,10 +235,12 @@ // Rectangle.BOTTOM); // cell.setBorder(1); // cell.setBorder(0); + cell.setBorderWidth(1); cell.setVerticalAlignment(Element.ALIGN_MIDDLE); cell.setHorizontalAlignment(Element.ALIGN_CENTER); - cell.setPhrase(this.createBoldTextPhrase("MAY")); + cell.setPhrase(this.createBoldTextPhrase(dataAccessPump.getMonthsArray()[gcCurrent.get(Calendar.MONTH)] + .substring(0, 3))); datatable.addCell(cell); datatable.addCell(this.createBoldTextPhrase("BG")); @@ -248,7 +257,7 @@ cell.setBorderWidth(1); cell.setVerticalAlignment(Element.ALIGN_TOP); cell.setHorizontalAlignment(Element.ALIGN_CENTER); - cell.setPhrase(this.createBoldTextPhrase("2014")); + cell.setPhrase(this.createBoldTextPhrase("" + gcCurrent.get(Calendar.YEAR))); // cell.setBorder(0); datatable.addCell(cell); @@ -290,30 +299,72 @@ } else { - PumpValuesHour pvh = pumpValuesHourProcessor.createPumpValuesHour(entries); + PumpValuesHour pumpValuesHour = pumpValuesHourProcessor.createPumpValuesHour(entries); float value = pumpValuesHourProcessor.getValueForType(entries, type); sum += value; if (type == PumpDeviceValueType.BOLUS) { + + if (pumpValuesHour.getBolus() > 0.0f) + { + sum += pumpValuesHour.getBolus(); + table.addCell(this.createNormalTextPhraseSmall(DataAccessPlugInBase.Decimal2Format + .format(pumpValuesHour.getBolus()))); + } + else + { + table.addCell(this.createEmptyTextPhraseSmall()); + } + // float value = // pumpValuesHourProcessor.getValueForType(entries, // PumpDeviceValueType.BOLUS); - table.addCell(this.createNormalTextPhraseSmall(DataAccessPump.Decimal2Format.format(value))); + // table.addCell(this.createNormalTextPhraseSmall(DataAccessPlugInBase.Decimal2Format + // .format(value))); } else if (type == PumpDeviceValueType.BG) { // float value = // pumpValuesHourProcessor.getValueForType(entries, // PumpDeviceValueType.BG); - table.addCell(this.createNormalTextPhraseSmall(DataAccessPump.Decimal1Format.format(value))); + + if (pumpValuesHour.getBgs().size() > 1) + { + table.addCell(this.createNormalTextPhraseSmall("!!!!")); + } + else if (pumpValuesHour.getBgs().size() == 1) + { + sum += pumpValuesHour.getBgProcessedValue(); + count++; + table.addCell(this.createNormalTextPhraseSmall(dataAccessPump + .getDisplayedBGString(pumpValuesHour.getBgProcessedValue()))); + } + else + { + table.addCell(this.createEmptyTextPhraseSmall()); + } + + // table.addCell(this.createNormalTextPhraseSmall(DataAccessPump.Decimal1Format.format(value))); } else - // CH { + // CH + if (pumpValuesHour.getCH() > 0.0f) + { + sum += pumpValuesHour.getCH(); + table.addCell(this.createNormalTextPhraseSmall(DataAccessPlugInBase.Decimal0Format + .format(pumpValuesHour.getCH()))); + } + else + { + table.addCell(this.createEmptyTextPhraseSmall()); + } + // table.addCell(this.createNormalTextPhraseSmall("100")); - table.addCell(this.createNormalTextPhraseSmall(DataAccessPump.Decimal0Format.format(value))); + // table.addCell(this.createNormalTextPhraseSmall(DataAccessPlugInBase.Decimal0Format + // .format(value))); } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <and...@us...> - 2014-10-13 10:21:29
|
Revision: 1331 http://sourceforge.net/p/ggc/code/1331 Author: andyrozman Date: 2014-10-13 10:21:26 +0000 (Mon, 13 Oct 2014) Log Message: ----------- - Daily Time Sheet Report version 0.1 finsihed (missing translations and some minor bugs, display should be colored and comments splitted) - Pump Profile Report - Some minor changes Modified Paths: -------------- trunk/ggc-meter/pom.xml trunk/ggc-plugin_base/src/GGCPlugin_de.properties trunk/ggc-plugin_base/src/GGCPlugin_en.properties trunk/ggc-plugin_base/src/ggc/plugin/util/DataAccessPlugInBase.java trunk/ggc-pump/src/GGCPumpTool_de.properties trunk/ggc-pump/src/GGCPumpTool_en.properties trunk/ggc-pump/src/ggc/pump/data/PumpValuesEntry.java trunk/ggc-pump/src/ggc/pump/data/PumpValuesEntryProfile.java trunk/ggc-pump/src/ggc/pump/data/PumpValuesHour.java trunk/ggc-pump/src/ggc/pump/data/PumpValuesHourProcessor.java trunk/ggc-pump/src/ggc/pump/data/db/GGCPumpDb.java trunk/ggc-pump/src/ggc/pump/data/graph/GraphViewProfileEditor.java trunk/ggc-pump/src/ggc/pump/data/profile/Profile.java trunk/ggc-pump/src/ggc/pump/data/profile/ProfileSubEntry.java trunk/ggc-pump/src/ggc/pump/data/profile/ProfileSubOther.java trunk/ggc-pump/src/ggc/pump/data/profile/ProfileSubPattern.java trunk/ggc-pump/src/ggc/pump/db/PumpProfile.java trunk/ggc-pump/src/ggc/pump/device/accuchek/AccuChekSmartPixPump.java trunk/ggc-pump/src/ggc/pump/device/dana/DanaDiabecare_III_R.java trunk/ggc-pump/src/ggc/pump/device/minimed/MinimedSPMPump.java trunk/ggc-pump/src/ggc/pump/device/minimed/file/MinimedCareLinkPumpProfile.java trunk/ggc-pump/src/ggc/pump/gui/PumpPrintDialog.java trunk/ggc-pump/src/ggc/pump/gui/profile/ProfileEntryDialog.java trunk/ggc-pump/src/ggc/pump/print/PrintPumpDataDailyTimeSheet.java trunk/ggc-pump/src/ggc/pump/print/PrintPumpDataExt.java trunk/ggc-pump/src/ggc/pump/print/PrintPumpDataProfiles.java Modified: trunk/ggc-meter/pom.xml =================================================================== --- trunk/ggc-meter/pom.xml 2014-10-10 16:59:08 UTC (rev 1330) +++ trunk/ggc-meter/pom.xml 2014-10-13 10:21:26 UTC (rev 1331) @@ -37,6 +37,8 @@ <directory>src/test/resources</directory> </testResource> </testResources> + + </build> <dependencies> @@ -79,6 +81,7 @@ </dependency> </dependencies> + <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> Modified: trunk/ggc-plugin_base/src/GGCPlugin_de.properties =================================================================== --- trunk/ggc-plugin_base/src/GGCPlugin_de.properties 2014-10-10 16:59:08 UTC (rev 1330) +++ trunk/ggc-plugin_base/src/GGCPlugin_de.properties 2014-10-13 10:21:26 UTC (rev 1331) @@ -68,6 +68,15 @@ TH=Th FR=Fr SA=Sa +DAY=Tag + +SUNDAY=Sontag +MONDAY=Montag +TUESDAY=Dienstag +WEDNESDAY=Mittwoch +THURSDAY=Donnerstag +FRIDAY=Freitag +SATURDAY=Samstag JANUARY=January FEBRUARY=February MARCH=March Modified: trunk/ggc-plugin_base/src/GGCPlugin_en.properties =================================================================== --- trunk/ggc-plugin_base/src/GGCPlugin_en.properties 2014-10-10 16:59:08 UTC (rev 1330) +++ trunk/ggc-plugin_base/src/GGCPlugin_en.properties 2014-10-13 10:21:26 UTC (rev 1331) @@ -75,6 +75,15 @@ TH=Th FR=Fr SA=Sa + +SUNDAY=Sunday +MONDAY=Monday +TUESDAY=Tuesday +WEDNESDAY=Wednesday +THURSDAY=Thursday +FRIDAY=Friday +SATURDAY=Saturday + JANUARY=January FEBRUARY=February MARCH=March Modified: trunk/ggc-plugin_base/src/ggc/plugin/util/DataAccessPlugInBase.java =================================================================== --- trunk/ggc-plugin_base/src/ggc/plugin/util/DataAccessPlugInBase.java 2014-10-10 16:59:08 UTC (rev 1330) +++ trunk/ggc-plugin_base/src/ggc/plugin/util/DataAccessPlugInBase.java 2014-10-13 10:21:26 UTC (rev 1331) @@ -50,25 +50,25 @@ * Plug-in: GGC PlugIn Base (base class for all plugins) * * See AUTHORS for copyright information. - * + * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) any later * version. - * + * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. - * + * * You should have received a copy of the GNU General Public License along with * this program; if not, write to the Free Software Foundation, Inc., 59 Temple * Place, Suite 330, Boston, MA 02111-1307 USA - * + * * Filename: DataAccessPlugInBase * Description: This is superclass for all DataAccess classes for each plugin. Here are defined * plugin specific features. - * + * * Author: Andy {an...@at...} */ @@ -237,7 +237,7 @@ PlugInServer plugin_server; /** - * Entry Status Icons + * Entry Status Icons */ public static String entry_status_icons[] = { "led_gray.gif", "led_green.gif", "led_yellow.gif", "led_red.gif" }; @@ -267,10 +267,10 @@ /** * * This is DataAccessPlugInBase constructor; Since classes use Singleton Pattern, - * constructor is protected and can be accessed only with getInstance() + * constructor is protected and can be accessed only with getInstance() * method.<br><br> - * - * @param lm language manager + * + * @param lm language manager * @param icr i18n control runner * */ @@ -286,7 +286,7 @@ /** * Get PlugIn Server Instance - * + * * @param server */ public void setPlugInServerInstance(PlugInServer server) @@ -296,8 +296,8 @@ /** * Set PlugIn Server Instance - * - * @return + * + * @return */ public PlugInServer getPlugInServerInstance() { @@ -308,13 +308,13 @@ // ****** Init Methods ***** // ******************************************************** - /** + /** * Get Application Name */ @Override public abstract String getApplicationName(); - /** + /** * Check Prerequisites for Plugin */ @Override @@ -322,7 +322,7 @@ { } - /** + /** * Get Images Root */ @Override @@ -333,13 +333,13 @@ /** * Get Images for Devices - * + * * @see ggc.plugin.util.DataAccessPlugInBase#getDeviceImagesRoot() - * @return String with images path + * @return String with images path */ public abstract String getDeviceImagesRoot(); - /** + /** * loadBackupRestoreCollection */ @Override @@ -358,7 +358,7 @@ /** * Get About Dialog image name - * + * * @return */ public String getAboutImageName() @@ -368,7 +368,7 @@ /** * Get About Image Size - * + * * @return */ public int[] getAboutImageSize() @@ -382,7 +382,7 @@ /** * Get About Plugin Copyright - * + * * @return */ public String getAboutPluginCopyright() @@ -398,7 +398,7 @@ /** * Get PlugIn Libraries - * + * * @return */ public ArrayList<LibraryInfoEntry> getPlugInLibraries() @@ -408,7 +408,7 @@ /** * Get Plugin Developers - * + * * @return */ public ArrayList<CreditsGroup> getPlugInDevelopers() @@ -418,7 +418,7 @@ /** * Get Plugin Features - * + * * @return */ public ArrayList<FeaturesGroup> getPlugInFeatures() @@ -440,8 +440,8 @@ /** * Get WebLister Port, return poer on which WebLister is residing - * - * @return number of port + * + * @return number of port */ public int getWebListerPort() { @@ -455,7 +455,7 @@ /** * Get Web Lister Title - * + * * @return web lister title */ public String getWebListerTitle() @@ -465,7 +465,7 @@ /** * Get Web Lister Description - * + * * @return description text */ public String getWebListerDescription() @@ -475,7 +475,7 @@ /** * Get Web Lister Items - * + * * @return */ public ArrayList<BaseListEntry> getWebListerItems() @@ -494,7 +494,7 @@ /** * Get Device Configuration Definition - * + * * @return DeviceConfigurationDefinition instance */ public DeviceConfigurationDefinition getDeviceConfigurationDefinition() @@ -504,7 +504,7 @@ /** * Get Device COnfiguration - * + * * @return DeviceConfiguration instance */ public DeviceConfiguration getDeviceConfiguration() @@ -528,7 +528,7 @@ /** * Get Plugin Version - * + * * @return version as string */ public String getPlugInVersion() @@ -557,7 +557,7 @@ /** * Get BG Measurment Type - * + * * @return type as int of measurement type */ public int getBGMeasurmentType() @@ -567,7 +567,7 @@ /** * Set BG Measurment Type - * + * * @param type as int of measurement type */ public void setBGMeasurmentType(int type) @@ -577,7 +577,7 @@ /** * Get BG Measurment Type Name - * + * * @return type as string */ public String getBGMeasurmentTypeName() @@ -587,8 +587,8 @@ /** * Get BG Measurment Type Name - * - * @param type type index + * + * @param type type index * @return type as string */ public String getBGTypeName(int type) @@ -598,7 +598,7 @@ /** * Get BG Type Name Static - * + * * @param type measurment type * @return name as string */ @@ -633,8 +633,8 @@ } /** - * Get Displayed BG String - * + * Get Displayed BG String + * * @param bgValue * @return */ @@ -678,7 +678,7 @@ /** * Get BG Value (converted to current display type) - * + * * @param bg_value bg values * @return bg_value */ @@ -696,7 +696,7 @@ /** * Get BG Value by type - * + * * @param type input type * @param bg_value bg value to convert * @return converted value @@ -715,7 +715,7 @@ /** * Get BG Value by type - * + * * @param input_type input type * @param output_type output type * @param bg_value bg value to convert @@ -744,7 +744,7 @@ /** * Get BG Value In Selected Format - * + * * @param bg_value bg value to convert * @return converted value */ @@ -762,7 +762,7 @@ /** * Get BG Value by Type - * + * * @param input_type input type * @param output_type output type * @param bg_value_s bg value to convert (as String) @@ -786,7 +786,7 @@ /** * Get BG Value Different - * + * * @param type current type * @param bg_value BG value * @return converted BG value @@ -806,7 +806,7 @@ /** * Create Db - * + * * @param db */ public void createDb(HibernateDb db) @@ -815,7 +815,7 @@ createCustomDb(); } - /** + /** * Get HibernateDb instance (for working with database in plugin) */ @Override @@ -826,7 +826,7 @@ /** * Create Custom Db - * + * * This is for plug-in specific database implementation */ public abstract void createCustomDb(); @@ -836,8 +836,8 @@ // ******************************************************** /** - * Get Device Manager - * + * Get Device Manager + * * @return DeviceManager instance */ public DeviceManager getManager() @@ -879,7 +879,7 @@ /** * Get Columns for Retrieval Entry - * + * * @return */ public String[] getColumnsTable() @@ -889,7 +889,7 @@ /** * Get Columns Width for Retrieval Entry - * + * * @return */ public int[] getColumnsWidthTable() @@ -899,7 +899,7 @@ /** * Get Entry Statuses - * + * * @return */ public String[] getEntryStatuses() @@ -909,7 +909,7 @@ /** * Get Data Entry Object - * + * * @return */ public DeviceValuesEntry getDataEntryObject() @@ -924,7 +924,7 @@ /** * Get Device Data Handler - * + * * @return DeviceDataHandler instance */ public DeviceDataHandler getDeviceDataHandler() @@ -934,7 +934,7 @@ /** * Get Reading Statuses - * + * * @return */ public String[] getReadingStatuses() @@ -944,7 +944,7 @@ /** * Get Filtering States - * + * * @return */ public String[] getFilteringStates() @@ -962,7 +962,7 @@ /** * Get Start Year - * + * * @see com.atech.utils.ATDataAccessAbstract#getStartYear() */ @Override @@ -973,7 +973,7 @@ /** * Load Graph Config Properties - * + * * @see com.atech.utils.ATDataAccessAbstract#loadGraphConfigProperties() */ @Override @@ -983,7 +983,7 @@ /** * Sleep MS - * + * * @param ms */ public void sleepMS(int ms) @@ -998,7 +998,7 @@ /** * Check if specified exception was caused by UnsatisfiedLinkError - * + * * @param ex1 * @return */ @@ -1018,9 +1018,9 @@ } /** - * Get Extended data for UnsatisfiedLinkError (if we add new libraries that need native + * Get Extended data for UnsatisfiedLinkError (if we add new libraries that need native * parts, this is the method to extend it). - * + * * @param ex1 * @return String[], it contains following data: [0] = library name, [1] = native file name, [2] = short os name */ @@ -1049,7 +1049,7 @@ /** * Check Native Library - * + * * @param native_dll_file * @return */ @@ -1088,7 +1088,7 @@ /** * Load Special Parameters - * + * * @see com.atech.utils.ATDataAccessAbstract#loadSpecialParameters() */ @Override @@ -1106,7 +1106,7 @@ // TODO Auto-generated method stub } - /** + /** * Get Selected Lang Index */ @Override @@ -1115,7 +1115,7 @@ return 0; } - /** + /** * Set Selected Lang Index */ @Override @@ -1132,7 +1132,7 @@ /** * Get Old Data Reader (instance of OldDataReaderAbstract which can read data already in database - * for comparison purposes) - * + * * @return */ public OldDataReaderAbstract getOldDataReader() @@ -1142,7 +1142,7 @@ /** * Get Current User Id - * + * * @return */ @Override @@ -1153,7 +1153,7 @@ /** * Set Current User Id - * + * * @param user_id */ @Override @@ -1164,7 +1164,7 @@ /** * Is Data Download Screen Wide - * + * * @return */ public boolean isDataDownloadSceenWide() @@ -1174,7 +1174,7 @@ /** * Yes/No option - * + * * @param val * @return */ @@ -1192,11 +1192,11 @@ * 0 = No status * 1 = Device not selected * 2 = Device doesn't support Download - * + * * 10 = Download from device supported * 11 = Download from fileexport supported * 12 = 10 + 11 - * + * * @return */ public int getDownloadStatus() @@ -1213,7 +1213,7 @@ /** * Get Selected Device Instance - * + * * @return */ public DeviceInterface getSelectedDeviceInstance() @@ -1235,7 +1235,7 @@ /** * Get Source Device - * + * * @return */ public String getSourceDevice() @@ -1245,7 +1245,7 @@ /** * Get Configuration Manager - * + * * @return */ public ConfigurationManager getConfigurationManager() @@ -1255,7 +1255,7 @@ /** * Set Configuration Manager - * + * * @param conf_mgr */ public void setConfigurationManager(ConfigurationManager conf_mgr) @@ -1265,7 +1265,7 @@ /** * Get Max Decimals that will be used by DecimalHandler - * + * * @return */ @Override @@ -1275,9 +1275,9 @@ } /** - * Get Parent I18nControl Instance. This will be used where translation will be taken + * Get Parent I18nControl Instance. This will be used where translation will be taken * from parent (Core). For example in printing. - * + * * @return */ public I18nControlAbstract getParentI18nControlInstance() @@ -1286,11 +1286,11 @@ } /** - * Set Parent I18nControl Instance. This will be used where translation will be taken + * Set Parent I18nControl Instance. This will be used where translation will be taken * from parent (Core). For example in printing. - * - * @param ic - * + * + * @param ic + * */ public void setParentI18nControlInstance(I18nControlAbstract ic) { @@ -1299,7 +1299,7 @@ /** * Get PlugIn Device Util - * + * * @return */ public PlugInDeviceUtil getPluginDeviceUtil() @@ -1362,6 +1362,14 @@ days[5] = i18n_plugin.getMessage("SATURDAY"); days[6] = i18n_plugin.getMessage("SUNDAY"); + gcDays[0] = m_i18n.getMessage("SUNDAY"); + gcDays[1] = m_i18n.getMessage("MONDAY"); + gcDays[2] = m_i18n.getMessage("TUESDAY"); + gcDays[3] = m_i18n.getMessage("WEDNESDAY"); + gcDays[4] = m_i18n.getMessage("THURSDAY"); + gcDays[5] = m_i18n.getMessage("FRIDAY"); + gcDays[6] = m_i18n.getMessage("SATURDAY"); + reading_statuses = new String[7]; reading_statuses[0] = i18n_plugin.getMessage("STATUS_NONE"); @@ -1387,7 +1395,7 @@ /** * Path Resolver - * + * * @param path * @return */ @@ -1404,7 +1412,7 @@ /** * Get BG Converter - * + * * @return */ public Converter_mgdL_mmolL getBGConverter() @@ -1444,7 +1452,7 @@ /** * Get Graph Context - * + * * @return */ public PlugInGraphContext getGraphContext() Modified: trunk/ggc-pump/src/GGCPumpTool_de.properties =================================================================== --- trunk/ggc-pump/src/GGCPumpTool_de.properties 2014-10-10 16:59:08 UTC (rev 1330) +++ trunk/ggc-pump/src/GGCPumpTool_de.properties 2014-10-13 10:21:26 UTC (rev 1331) @@ -16,15 +16,15 @@ # # Translated: 7 (3 %) # -# -# +# +# ## # Collation Rules - In unicode we can create special rules for sorting where we specify # sorting order of special characters. This will be used by tree's and special tables. # For english this is left empty. For all other (that have non-standard, non english # charcters) we need to set this if we want sorting to be done correctly. # -COLLATION_RULES=< 0 < 1 < 2 < 3 < 4 < 5 < 6 < 7 < 8 < 9 < a,A,\u00E4,\u00C4,\u00E1,\u00E0,\u00C1,\u00C0,\u00E2,\u00C2 < b,B < c,C < d,D < e,E,\u00E9,\u00E8,\u00EA,\u00C9,\u00C8,\u00CA < f,F < g,G < h,H < i,I < j,J < k,K < l,L < m,M < n,N < o,O,\u00F6,\u00D6 < p,P < q,Q < r,R < s,S,\u00DF < t,T < u,U,\u00FC,\u00DC < v,V < w,W < x,X < y,Y < z,Z +COLLATION_RULES=< 0 < 1 < 2 < 3 < 4 < 5 < 6 < 7 < 8 < 9 < a,A,\u00E4,\u00C4,\u00E1,\u00E0,\u00C1,\u00C0,\u00E2,\u00C2 < b,B < c,C < d,D < e,E,\u00E9,\u00E8,\u00EA,\u00C9,\u00C8,\u00CA < f,F < g,G < h,H < i,I < j,J < k,K < l,L < m,M < n,N < o,O,\u00F6,\u00D6 < p,P < q,Q < r,R < s,S,\u00DF < t,T < u,U,\u00FC,\u00DC < v,V < w,W < x,X < y,Y < z,Z # # Plug-in Specific [1] @@ -376,6 +376,7 @@ OTHER_DATA_FOOD=Zus\u00E4tzl. Daten (inkl. Nahrung) PUMP_DATA_BASE=Simple Pump Report PUMP_DATA_EXT=Erweiterter Pumpenbericht +PUMP_DATA_DAILY_TIMESHEET=Tagliche Pumpenbericht mit Zeittabelen FOOD_DB_PRINT=Food (Db) FOOD_DESC_PRINT=Food (Desc.) FOOD_DESC_PRINT_NOT_YET=Display of Food Db data (not implemented yet!) Modified: trunk/ggc-pump/src/GGCPumpTool_en.properties =================================================================== --- trunk/ggc-pump/src/GGCPumpTool_en.properties 2014-10-10 16:59:08 UTC (rev 1330) +++ trunk/ggc-pump/src/GGCPumpTool_en.properties 2014-10-13 10:21:26 UTC (rev 1331) @@ -3,36 +3,36 @@ # !S! MODULE=GGC Pump Tool # !S! MODULE_VERSION=1.2.2 # -# ###################################################################### -# ### GGC Pump Tool ### # ###################################################################### +# ### GGC Pump Tool ### +# ###################################################################### # ### Language: English ### # ### Created by: Andy Rozman (an...@at...) ### # ### Last change: 4th June 2011 ### # ### Library Version: 1.2.2 ### # ### Application Version: 0.5 ### -# ###################################################################### -# -# Please use this file as default language file. Do not try to translate +# ###################################################################### +# +# Please use this file as default language file. Do not try to translate # from any other files, since this is the Master language file. Create the -# same header and specify application version number for easier changes at +# same header and specify application version number for easier changes at # later time. -# Translations should be grouped by groups as specified here. +# Translations should be grouped by groups as specified here. # Older groups are done by packages, newer by logical name. # # In brackets there are now tags which define urgency of some text beeing translated # !S! GROUP_PRIORITY_1=Needed, urgent (Base functionality, options which will be used by user mostly) -# !S! GROUP_PRIORITY_2=Needed +# !S! GROUP_PRIORITY_2=Needed # !S! GROUP_PRIORITY_3=Not used yet (in public releases) # !S! GROUP_PRIORITY_4=In implementation -# +# # * - If tags also has *, then it means that this string can change regulary, last update is in [] # -# If there are double brackets (( )) these elements are from old langauge file and shouldn't be translated +# If there are double brackets (( )) these elements are from old langauge file and shouldn't be translated # at this time. # -# Most of keywords are copies from Meter Plugin and some are from GGC, so most can be copied +# Most of keywords are copies from Meter Plugin and some are from GGC, so most can be copied # from either of this locations. # @@ -79,7 +79,7 @@ MN_PUMP_PROFILES_DESC=Basal profiles MN_PUMPS_MANUAL_ENTRY=Manual entry MN_PUMPS_MANUAL_ENTRY_DESC=Manual entry of data (if your device is not supported) -MN_PUMPS_ADDITIONAL_DATA=Additional data +MN_PUMPS_ADDITIONAL_DATA=Additional data MN_PUMPS_ADDITIONAL_DATA_DESC=Additional data entry (BG, Activity, ...) MN_PUMPS_ABOUT=About... MN_PUMPS_ABOUT_DESC=About Pump Plugin (copyright, features, credits,...) @@ -111,7 +111,7 @@ PROFILE_TYPE_SH=Profile CONFIGURED_DEVICE=Configured Pump -STATUS_READER_ERROR=Internal %s (or port) error +STATUS_READER_ERROR=Internal %s (or port) error ERROR_CONTACTING_DEVICE=There was a problem contacting the meter device.\nPlease recheck the communication port settings\n(sometimes the cables can change their address\nwhen reconnected). Run the configuration again\nand the problem should be solved!\n DEVICE_INFO=%s Info @@ -144,7 +144,7 @@ # -# !G! Pump companies desc. (this is not description of company, but about our connection with company) [2] +# !G! Pump companies desc. (this is not description of company, but about our connection with company) [2] # ROCHE_DESC=We got full support from Roche and the implementation is planned to start in March 2009. MINIMED_DESC=We got partial support from this company and implementation will start in December 2008. @@ -259,7 +259,7 @@ # # !G! Pump Basal [1] -# +# BASAL_TYPE=Basal Type SELECT_BASAL_TYPE=Select Basal Type BASAL_VALUE=Value @@ -408,18 +408,21 @@ # # !G! Printing - Plugin specific [2] -# +# MN_PUMP=Pump MN_PUMP_PRINT_DESC=Report for Pumps Data -MN_PUMP_PRINT_SIMPLE=Simple +MN_PUMP_PRINT_SIMPLE=Simple MN_PUMP_PRINT_SIMPLE_DESC=Simple Report for Pump data -MN_PUMP_PRINT_EXT=Extended +MN_PUMP_PRINT_EXT=Extended MN_PUMP_PRINT_EXT_DESC=Extended Report for Pump data (Simple + Foods) +MN_PUMP_PRINT_DAILY_TIMESHEET=Daily Timesheets +MN_PUMP_PRINT_DAILY_TIMESHEET_DESC=Report with Daily Timesheets VALUE_SHORT=Value OTHER_DATA=Other Data OTHER_DATA_FOOD=Other Data (with Food) PUMP_DATA_BASE=Simple Pump Report PUMP_DATA_EXT=Extended Pump Report +PUMP_DATA_DAILY_TIMESHEET=Pump Report Daily Timesheet FOOD_DB_PRINT=Food (Db) FOOD_DESC_PRINT=Food (Desc.) @@ -441,9 +444,9 @@ UNIT_PER_HOUR=U/hr UNIT_PER_DAY=U/day -PCFG_MAX_BOLUS=Max Bolus Insulin +PCFG_MAX_BOLUS=Max Bolus Insulin PCFG_MAX_BASAL=Max Basal Insulin -PCFG_MAX_DAILY=Max Daily Insulin +PCFG_MAX_DAILY=Max Daily Insulin PCFG_GLUCOSE_UNIT=Blood Glucose Unit PCFG_EASY_MODE=Easy Mode Modified: trunk/ggc-pump/src/ggc/pump/data/PumpValuesEntry.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/data/PumpValuesEntry.java 2014-10-10 16:59:08 UTC (rev 1330) +++ trunk/ggc-pump/src/ggc/pump/data/PumpValuesEntry.java 2014-10-13 10:21:26 UTC (rev 1331) @@ -17,6 +17,7 @@ import java.util.GregorianCalendar; import java.util.Hashtable; +import org.apache.commons.lang.StringUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.hibernate.Session; @@ -32,24 +33,24 @@ * Plug-in: Pump Tool (support for Pump devices) * * See AUTHORS for copyright information. - * + * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) any later * version. - * + * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. - * + * * You should have received a copy of the GNU General Public License along with * this program; if not, write to the Free Software Foundation, Inc., 59 Temple * Place, Suite 330, Boston, MA 02111-1307 USA - * + * * Filename: PumpValuesEntry * Description: Pump Values Entry, with all data, also statistics item. - * + * * Author: Andy {an...@at...} */ @@ -86,7 +87,7 @@ /** * Constructor - * + * * @param tr */ public PumpValuesEntry(boolean tr) @@ -96,7 +97,7 @@ } /** - * Constructor + * Constructor */ public PumpValuesEntry() { @@ -104,9 +105,9 @@ } /** - * Constructor - * - * @param src + * Constructor + * + * @param src */ public PumpValuesEntry(String src) { @@ -127,7 +128,7 @@ /** * Constructor - * + * * @param base_type */ public PumpValuesEntry(int base_type) @@ -147,7 +148,7 @@ /** * Constructor - * + * * @param pdh */ public PumpValuesEntry(PumpDataH pdh) @@ -170,7 +171,7 @@ /** * Add Additional Data - * + * * @param adv */ public void addAdditionalData(PumpValuesEntryExt adv) @@ -180,7 +181,7 @@ /** * Get Additional Data - * + * * @return */ public Hashtable<String, PumpValuesEntryExt> getAdditionalData() @@ -215,7 +216,7 @@ /** * Set Sub Type - * + * * @param sub_type */ public void setSubType(int sub_type) @@ -225,7 +226,7 @@ /** * Set Value - * + * * @param val */ public void setValue(String val) @@ -235,8 +236,8 @@ /** * Set Value - * - * @return + * + * @return */ public String getValue() { @@ -254,7 +255,7 @@ /** * Add Parameter - * + * * @param key * @param valuex */ @@ -421,7 +422,7 @@ /** * Get Sub Type - * + * * @return */ public int getSubType() @@ -431,7 +432,7 @@ /** * Get Sub Type - * + * * @return */ public String getBaseTypeString() @@ -441,7 +442,7 @@ /** * Get Sub Type - * + * * @return */ public String getSubTypeString() @@ -508,7 +509,7 @@ /** * Is Food Set - * + * * @return */ public String isFoodSet() @@ -567,7 +568,7 @@ /** * Get Value HTML - * + * * @return */ public String getValueHTML() @@ -639,7 +640,7 @@ /** * Get Value Print - * + * * @return */ public String getValuePrint() @@ -728,8 +729,8 @@ /** * Get Additional Display - * - * @param type + * + * @param type * @return */ public String getAdditionalDataPrint(int type) @@ -805,7 +806,7 @@ } /** - * Prepare Entry [PlugIn Framework v1] + * Prepare Entry [PlugIn Framework v1] */ @Override public void prepareEntry() @@ -839,7 +840,7 @@ /** * Get Db Objects [PlugIn Framework v1] - * + * * @return ArrayList of elements extending GGCHibernateObject */ @Override @@ -858,7 +859,7 @@ /** * Create Comment - * + * * @return */ public String createComment() @@ -881,13 +882,50 @@ // OutputUtil o= null; // return "PumpValuesEntry [date/time=" + this.datetime + ",bg=" + // this.bg_str + " " + OutputUtil.getBGUnitName(this.bg_unit) + "]"; - return "PumpValuesEntry [date/time=" + this.datetime + ", base_type=" + this.getBaseTypeString() - + ", sub_type=" + this.getSubTypeString() + ", value=" + this.getValue() + "]"; + + StringBuffer sb = new StringBuffer(); + sb.append("PumpValuesEntry [date/time=" + this.datetime + ", base_type=" + this.getBaseTypeString()); + + if (this.getSubType() != 0) + { + sb.append(", sub_type=" + this.getSubTypeString()); + } + + if (StringUtils.isNotBlank(this.getValue())) + { + sb.append(", value=" + this.getValue()); + } + + if (this.additional_data.size() > 0) + { + sb.append(", add_data=" + this.additional_data); + } + + sb.append("]"); + + return sb.toString(); + + // if (this.additional_data.size()==0) + // { + // return "PumpValuesEntry [date/time=" + this.datetime + ", base_type=" + // + this.getBaseTypeString() + // + ", sub_type=" + this.getSubTypeString() + ", value=" + + // this.getValue() + "]"; + // } + // else + // { + // return "PumpValuesEntry [date/time=" + this.datetime + ", base_type=" + // + this.getBaseTypeString() + // + ", sub_type=" + this.getSubTypeString() + ", value=" + + // this.getValue() + ", add_data=" + this.additional_data + "]"; + // + // } + } /** * DbAdd - Add this object to database - * + * * @param sess Hibernate Session object * @throws Exception (HibernateException) with error * @return id in type of String @@ -920,7 +958,7 @@ /** * DbDelete - Delete this object in database - * + * * @param sess Hibernate Session object * @throws Exception (HibernateException) with error * @return true if action done or Exception if not @@ -938,7 +976,7 @@ /** * DbEdit - Edit this object in database - * + * * @param sess Hibernate Session object * @throws Exception (HibernateException) with error * @return true if action done or Exception if not @@ -969,7 +1007,7 @@ /** * DbGet - Loads this object. Id must be set. - * + * * @param sess Hibernate Session object * @throws Exception (HibernateException) with error * @return true if action done or Exception if not @@ -992,7 +1030,7 @@ /** * DbHasChildren - Shows if this entry has any children object, this is needed for delete - * + * * @param sess Hibernate Session object * @throws Exception (HibernateException) with error * @return true if action done or Exception if not @@ -1008,9 +1046,9 @@ * 1 = add action * 2 = edit action * 3 = delete action - * This is used mainly for objects, contained in lists and dialogs, used for + * This is used mainly for objects, contained in lists and dialogs, used for * processing by higher classes (classes calling selectors, wizards, etc... - * + * * @return number of action */ public int getAction() @@ -1020,7 +1058,7 @@ /** * getObjectName - returns name of DatabaseObject - * + * * @return name of object (not Hibernate object) */ public String getObjectName() @@ -1030,7 +1068,7 @@ /** * isDebugMode - returns debug mode of object - * + * * @return true if object in debug mode */ public boolean isDebugMode() @@ -1049,7 +1087,7 @@ /** * Get DateTime (long) - * + * * @return */ @Override @@ -1060,7 +1098,7 @@ /** * Get DateTime format - * + * * @return format of date time (precission) */ @Override @@ -1071,7 +1109,7 @@ /** * Set DateTime Object (ATechDate) - * + * * @param dt ATechDate instance */ @Override @@ -1122,7 +1160,7 @@ /** * Get DateTime Object (ATechDate) - * + * * @return ATechDate instance */ @Override @@ -1133,7 +1171,7 @@ /** * Get Id - * + * * @return */ /* @@ -1145,7 +1183,7 @@ /** * Get Comment - * + * * @return */ public String getComment() @@ -1155,7 +1193,7 @@ /** * Set Comment - * + * * @param value */ public void setComment(String value) @@ -1254,7 +1292,7 @@ /** * Get Max Statistics Object - we can have several Statistic types defined here - * + * * @return */ public int getMaxStatisticsObject() @@ -1263,10 +1301,10 @@ } /** - * Get Statistics Action - we define how statistic is done (we have several predefined + * Get Statistics Action - we define how statistic is done (we have several predefined * types of statistics - * - * @param index index for statistics item + * + * @param index index for statistics item * @return */ public int getStatisticsAction(int index) @@ -1312,9 +1350,9 @@ /** * Get Value For Item - * - * @param index index for statistics item - * @return + * + * @param index index for statistics item + * @return */ public float getValueForItem(int index) { @@ -1398,7 +1436,7 @@ /** * Is Special Action - tells if selected statistics item has special actions - * + * * @param index * @return */ @@ -1432,7 +1470,7 @@ /** * If we have any special actions for any of objects - * + * * @return */ public boolean weHaveSpecialActions() @@ -1440,7 +1478,7 @@ return true; } - /** + /** * Get MultiLine ToolTip */ @Override @@ -1449,7 +1487,7 @@ return null; } - /** + /** * Get MultiLine ToolTip */ @Override @@ -1498,7 +1536,7 @@ /** * Get Food Tip - * + * * @return */ public String getFoodTip() @@ -1523,7 +1561,7 @@ } - /** + /** * Is Indexed (multiline tooltip) */ @Override @@ -1533,9 +1571,9 @@ } /** - * Get Table Column Value (in case that we need special display values for download data table, this method - * can be used, if it's the same as getColumnValue, we can just call that one. - * + * Get Table Column Value (in case that we need special display values for download data table, this method + * can be used, if it's the same as getColumnValue, we can just call that one. + * * @param column * @return */ @@ -1572,7 +1610,7 @@ /** * Get Special Id - * + * * @return */ public String getSpecialId() @@ -1582,7 +1620,7 @@ /** * Get DeviceValuesEntry Name - * + * * @return */ public String getDVEName() @@ -1592,8 +1630,8 @@ /** * Get Value of object - * - * + * + * */ /* * public String getValue() @@ -1606,7 +1644,7 @@ /** * Set Id (this is used for changing old objects in framework v2) - * + * * @param id_in */ public void setId(long id_in) @@ -1616,7 +1654,7 @@ /** * Get Id (this is used for changing old objects in framework v2) - * + * * @return id of old object */ public long getId() @@ -1626,7 +1664,7 @@ /** * Set Source - * + * * @param src */ public void setSource(String src) @@ -1636,8 +1674,8 @@ } /** - * Get Source - * + * Get Source + * * @return */ public String getSource() @@ -1647,7 +1685,7 @@ /** * Get Additional Data Count - * + * * @return */ public int getAdditionalDataCount() Modified: trunk/ggc-pump/src/ggc/pump/data/PumpValuesEntryProfile.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/data/PumpValuesEntryProfile.java 2014-10-10 16:59:08 UTC (rev 1330) +++ trunk/ggc-pump/src/ggc/pump/data/PumpValuesEntryProfile.java 2014-10-13 10:21:26 UTC (rev 1331) @@ -263,12 +263,12 @@ { for (int i = 1; i < this.sub_entries.size(); i++) { - long dt_end = this.sub_entries.get(i).time_start; + long dt_end = this.sub_entries.get(i).timeStart; ATechDate atd = new ATechDate(ATechDate.FORMAT_TIME_ONLY_MIN, dt_end); atd.add(Calendar.MINUTE, -1); - this.sub_entries.get(i - 1).time_end = (int) atd.getATDateTimeAsLong(); + this.sub_entries.get(i - 1).timeEnd = (int) atd.getATDateTimeAsLong(); } } Modified: trunk/ggc-pump/src/ggc/pump/data/PumpValuesHour.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/data/PumpValuesHour.java 2014-10-10 16:59:08 UTC (rev 1330) +++ trunk/ggc-pump/src/ggc/pump/data/PumpValuesHour.java 2014-10-13 10:21:26 UTC (rev 1331) @@ -1,6 +1,7 @@ package ggc.pump.data; import ggc.pump.data.defs.PumpBaseType; +import ggc.pump.data.defs.PumpBolusType; import ggc.pump.util.DataAccessPump; import java.util.HashMap; @@ -10,6 +11,7 @@ import org.apache.commons.logging.LogFactory; import com.atech.utils.data.ATechDate; +import com.atech.utils.data.ExceptionHandling; public class PumpValuesHour { @@ -19,12 +21,16 @@ private StringBuffer sbBgs = new StringBuffer(); private float chs = 0.0f; private float bolus = 0.0f; + private float bolusSpecial = 0.0f; + private StringBuffer sbBolus = new StringBuffer(); + private static final Log LOG = LogFactory.getLog(PumpValuesHour.class); DataAccessPump dataAccessPump; public PumpValuesHour(DataAccessPump da) { this.dataAccessPump = da; + this.dataAccessPump.setNumberParsingExceptionHandling(ExceptionHandling.THROW_EXCEPTION); } public void addBGEntry(PumpValuesEntryExt pumpValuesEntryExt) @@ -81,7 +87,7 @@ { try { - return Float.parseFloat(value); + return dataAccessPump.getFloatValueFromStringWithException(value, 0.0f); } catch (Exception ex) { @@ -106,9 +112,67 @@ { // special boluses // pump values - bolus += parseFloat(pve.getValue(), "Pump-Bolus"); + + switch (pve.getSubType()) + { + case PumpBolusType.PUMP_BOLUS_STANDARD: + case PumpBolusType.PUMP_BOLUS_AUDIO_SCROLL: + case PumpBolusType.PUMP_BOLUS_DUAL_NORMAL: + { + this.bolus += this.parseFloat(pve.getValue(), "Pump-Bolus"); + } + break; + + case PumpBolusType.PUMP_BOLUS_DUAL_SQUARE: + case PumpBolusType.PUMP_BOLUS_SQUARE: + { + addBolusSpecial(getTimeAsString(pve.getDateTime()) + "=" + pve.getValue()); + + String val = pve.getValue(); + val = val.substring("AMOUNT_SQUARE=".length(), val.indexOf(";DURATION=")); + + this.bolusSpecial += this.parseFloat(val, "Pump-Bolus-Square"); + // pve.setValue("AMOUNT_SQUARE=" + amount + ";DURATION=" + // + e); + } + break; + + case PumpBolusType.PUMP_BOLUS_MULTIWAVE: + { + // immediate (as normal) + String val = pve.getValue(); + + // System.out.println("MW: " + val); + + val = val.substring("AMOUNT=".length(), val.indexOf(";AMOUNT_SQUARE=")); + + // System.out.println("MW-2: " + val); + + this.bolus += this.parseFloat(val, "Pump-Bolus-Multiwave(Imm)"); + + // square + val = pve.getValue(); + val = val.substring(val.indexOf("AMOUNT_SQUARE=")); + + addBolusSpecial(getTimeAsString(pve.getDateTime()) + "=" + val); + + // String val = pve.getValue(); + val = val.substring("AMOUNT_SQUARE=".length(), val.indexOf(";DURATION=")); + + this.bolusSpecial += this.parseFloat(val, "Pump-Bolus-Multiwave(Sq)"); + + // pve.setValue(String.format("AMOUNT=%s;AMOUNT_SQUARE=%s;DURATION=%s", + // pve.setValue("AMOUNT_1=%s;AMOUNT_2=%s + // pve.setValue("IMMEDIATE_AMOUNT=%s;AMOUNT_SQUARE=%s;DURATION=%s" + + } + break; + + default: + {} + break; + } } - } public float getBolus() @@ -124,4 +188,42 @@ return mBgs; } + public float getBolusSpecialForSum() + { + return bolusSpecial; + } + + public void setBolusSpecial(float bolusSpecial) + { + this.bolusSpecial = bolusSpecial; + } + + public void addBolusSpecial(String blsSpecial) + { + // BOLUS_SQUARE + // AMOUNT_SQUARE=%s;DURATION=%s + + blsSpecial = blsSpecial.replaceAll("AMOUNT_SQUARE=", + this.dataAccessPump.getI18nControlInstance().getMessage("BOLUS_SQUARE") + " "); + blsSpecial = blsSpecial.replaceAll(";DURATION=", " ("); + blsSpecial += ")"; + + sbBolus.append(" "); + sbBolus.append(blsSpecial); + sbBolus.append(","); + } + + public boolean hasBolusSpecial() + { + return (sbBolus.length() > 0); + } + + public String getBolusSpecial() + { + String mSpBol = sbBolus.substring(0, sbBolus.length() - 1); + mSpBol.trim(); + + return mSpBol; + } + } Modified: trunk/ggc-pump/src/ggc/pump/data/PumpValuesHourProcessor.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/data/PumpValuesHourProcessor.java 2014-10-10 16:59:08 UTC (rev 1330) +++ trunk/ggc-pump/src/ggc/pump/data/PumpValuesHourProcessor.java 2014-10-13 10:21:26 UTC (rev 1331) @@ -3,17 +3,22 @@ import ggc.plugin.data.DeviceValuesEntry; import ggc.pump.data.defs.PumpAdditionalDataType; import ggc.pump.data.defs.PumpBaseType; +import ggc.pump.db.PumpProfile; import ggc.pump.util.DataAccessPump; import java.util.ArrayList; +import java.util.GregorianCalendar; import java.util.HashMap; import java.util.List; +import org.apache.commons.lang.StringUtils; + public class PumpValuesHourProcessor { DataAccessPump dataAccessPump = DataAccessPump.getInstance(); HashMap<PumpDeviceValueType, List<String>> comments = null; + HashMap<String, String> index = new HashMap<String, String>(); public void clearComments() { @@ -33,25 +38,25 @@ } - public float getValueForType(List<DeviceValuesEntry> deviceValues, PumpDeviceValueType valueType) + public PumpProfile getProfileForHour(List<PumpProfile> profiles, GregorianCalendar gregorianCalendar, int hour, + String profileName) { - if (valueType == PumpDeviceValueType.BG) + + if (profiles.size() == 1) { - String key = dataAccessPump.getI18nControlInstance().getMessage(valueType.getAdditionalKey()); - // List<String> additionalData = + return profiles.get(0); + } - for (DeviceValuesEntry entry : deviceValues) + for (PumpProfile profile : profiles) + { + // FIXME doesn't totally work, need to check Andy + if (profile.containsPatternForHourAndDate(gregorianCalendar, hour)) { - PumpValuesEntry pve = (PumpValuesEntry) entry; - - if (pve.getAdditionalData().containsKey(key)) - { - - } + return profile; } } - return 0.0f; + return null; } public PumpValuesHour createPumpValuesHour(List<DeviceValuesEntry> deviceValues) @@ -60,6 +65,8 @@ String keyBG = dataAccessPump.getAdditionalTypes().getTypeDescription(PumpAdditionalDataType.PUMP_ADD_DATA_BG); String keyCH = dataAccessPump.getAdditionalTypes().getTypeDescription(PumpAdditionalDataType.PUMP_ADD_DATA_CH); + String keyComment = dataAccessPump.getAdditionalTypes().getTypeDescription( + PumpAdditionalDataType.PUMP_ADD_DATA_COMMENT); // String keyBG = // dataAccessPump.getI18nControlInstance().getMessage(PumpDeviceValueType.BG.getAdditionalKey()); @@ -70,6 +77,8 @@ { PumpValuesEntry pve = (PumpValuesEntry) entry; + // System.out.println(pve); + // System.out.println("Time: ") // System.out.println("PVE Additional Data: " + @@ -85,11 +94,37 @@ pumpValuesHour.addCHEntry(pve.getAdditionalData().get(keyCH).getValue()); } + if (pve.getAdditionalData().containsKey(keyComment)) + { + String com = pve.getAdditionalData().get(keyComment).getValue(); + + if (StringUtils.isNotBlank(com)) + { + if (!this.index.containsKey(pve.toString())) + { + this.addComments(PumpDeviceValueType.COMMENT, com); + this.index.put(pve.toString(), ""); + } + + // System.out.println(pve); + // System.out.println(pve.getAdditionalData().get(keyComment)); + } + } + if ((pve.getBaseType() == PumpBaseType.PUMP_DATA_BOLUS) || (pve.getBaseType() == PumpBaseType.PUMP_DATA_PEN_INJECTION_BOLUS)) { pumpValuesHour.addBolus(pve); } + + if (StringUtils.isNotBlank(pve.getComment())) + { + if (!this.index.containsKey(pve.toString())) + { + this.addComments(PumpDeviceValueType.COMMENT, pve.getComment()); + this.index.put(pve.toString(), ""); + } + } } return pumpValuesHour; @@ -122,7 +157,51 @@ fullComment.append("; "); } - return fullComment.toString(); + listComms = comments.get(PumpDeviceValueType.BOLUS); + + if (!listComms.isEmpty()) + { + StringBuffer sb = new StringBuffer(); + sb.append(dataAccessPump.getI18nControlInstance().getMessage("BOLUS")); + sb.append(": "); + + for (String entry : listComms) + { + sb.append(entry); + sb.append(","); + } + + fullComment.append(sb.toString().substring(0, sb.length() - 1)); + fullComment.append("; "); + } + + listComms = comments.get(PumpDeviceValueType.COMMENT); + + if (!listComms.isEmpty()) + { + StringBuffer sb = new StringBuffer(); + sb.append(dataAccessPump.getI18nControlInstance().getMessage("OTHER")); + sb.append(": "); + + for (String entry : listComms) + { + sb.append(entry); + sb.append(","); + } + + fullComment.append(sb.toString().substring(0, sb.length() - 1)); + fullComment.append("; "); + } + + if (fullComment.length() == 0) + { + return ""; + } + else + { + return fullComment.toString().substring(0, fullComment.length() - 2); + } + } } Modified: trunk/ggc-pump/src/ggc/pump/data/db/GGCPumpDb.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/data/db/GGCPumpDb.java 2014-10-10 16:59:08 UTC (rev 1330) +++ trunk/ggc-pump/src/ggc/pump/data/db/GGCPumpDb.java 2014-10-13 10:21:26 UTC (rev 1331) @@ -25,6 +25,7 @@ import java.util.GregorianCalendar; import java.util.Hashtable; import java.util.Iterator; +import java.util.List; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -409,6 +410,8 @@ */ public PumpProfile getProfileForDayAndTime(GregorianCalendar gc) { + // FIXME this doesn't work like it should, we need to get active + // profile, not all profiles active on specific day log.info("getProfileForDayAndTime() - Run"); String sql = ""; @@ -445,6 +448,61 @@ } /** + * Get Profiles + * + * @return + */ + public List<PumpProfile> getProfilesForRange(GregorianCalendar gcFrom, GregorianCalendar gcTill) + { + // FIXME this doesn't work like it should, we need to get active + // profile, not all profiles active on specific day + log.info("getProfilesForRange() - Run"); + + String sql = ""; + + List<PumpProfile> listProfiles = new ArrayList<PumpProfile>(); + + long dtFrom = ATechDate.getATDateTimeFromGC(gcFrom, ATechDate.FORMAT_DATE_AND_TIME_S); + long dtTill = ATechDate.getATDateTimeFromGC(gcTill, ATechDate.FORMAT_DATE_AND_TIME_S); + + System.out.println("From: " + dtFrom + ", till: " + dtTill); + + try + { + sql = "SELECT dv " + // + "from ggc.core.db.hibernate.pump.PumpProfileH as dv " + // + "where (dv.active_from > " + dtFrom + // + " and active_from <> 0 )" + // + " or active_till > " + dtFrom + // + // " and dv.active_till < " + dtTill + + // " and dv.active_till > " + dtFrom + + // " or dv.active_till is null) " + // + " and dv.person_id=" + m_da.getCurrentUserId(); + + // " and (dv.active_till < " + dtFrom + + + Query q = this.db.getSession().createQuery(sql); + + Iterator<?> it = q.list().iterator(); + + while (it.hasNext()) + { + PumpProfileH pdh = (PumpProfileH) it.next(); + listProfiles.add(new PumpProfile(pdh)); + } + + } + catch (Exception ex) + { + log.debug("Sql: " + sql); + log.error("getProfilesForRange(). Exception: " + ex, ex); + } + + return listProfiles; + + } + + /** * Get All Elements Count * * @return Modified: trunk/ggc-pump/src/ggc/pump/data/graph/GraphViewProfileEditor.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/data/graph/GraphViewProfileEditor.java 2014-10-10 16:59:08 UTC (rev 1330) +++ trunk/ggc-pump/src/ggc/pump/data/graph/GraphViewProfileEditor.java 2014-10-13 10:21:26 UTC (rev 1331) @@ -139,7 +139,7 @@ { ProfileSubEntry pse = this.profiles_entries.get(i); - for (int k = pse.time_start; k <= pse.time_end; k++) + for (int k = pse.timeStart; k <= pse.timeEnd; k++) { int h = k / 100; @@ -197,7 +197,7 @@ { ProfileSubEntry pse = this.profiles_entries.get(j1); - if (tm >= pse.time_start && tm <= pse.time_end) + if (tm >= pse.timeStart && tm <= pse.timeEnd) { last = j1; Modified: trunk/ggc-pump/src/ggc/pump/data/profile/Profile.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/data/profile/Profile.java 2014-10-10 16:59:08 UTC (rev 1330) +++ trunk/ggc-pump/src/ggc/pump/data/profile/Profile.java 2014-10-13 10:21:26 UTC (rev 1331) @@ -149,16 +149,16 @@ { // if (first.amount!=this.pattern_entries.get(i).amount) { - int time_h = (int) Math.floor(this.pattern_entries.get(i).time_start / 100); + int time_h = (int) Math.floor(this.pattern_entries.get(i).timeStart / 100); int end_time = (time_h - 1) * 100 + 59; - this.pattern_entries.get(i - 1).time_end = end_time; + this.pattern_entries.get(i - 1).timeEnd = end_time; } } - this.pattern_entries.get(this.pattern_entries.size() - 1).time_end = 2359; + this.pattern_entries.get(this.pattern_entries.size() - 1).timeEnd = 2359; Collections.sort(this.pattern_entries); @@ -180,7 +180,7 @@ { if (first.amount != this.pattern_entries.get(i).amount) { - first.time_end = last.time_end; + first.timeEnd = last.timeEnd; pe.add(first); first = this.pattern_entries.get(i); @@ -189,7 +189,7 @@ last = this.pattern_entries.get(i); } - first.time_end = last.time_end; + first.timeEnd = last.timeEnd; pe.add(first); this.pattern_entries.clear(); Modified: trunk/ggc-pump/src/ggc/pump/data/profile/ProfileSubEntry.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/data/profile/ProfileSubEntry.java 2014-10-10 16:59:08 UTC (rev 1330) +++ trunk/ggc-pump/src/ggc/pump/data/profile/ProfileSubEntry.java 2014-10-13 10:21:26 UTC (rev 1331) @@ -11,24 +11,24 @@ * Plug-in: Pump Tool (support for Pump devices) * * See AUTHORS for copyright information. - * + * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) any later * version. - * + * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. - * + * * You should have received a copy of the GNU General Public License along with * this program; if not, write to the Free Software Foundation, Inc., 59 Temple * Place, Suite 330, Boston, MA 02111-1307 USA - * - * Filename: ###---### + * + * Filename: ###---### * Description: - * + * * Author: Andy {an...@at...} */ @@ -48,23 +48,63 @@ /** * Profile Id */ - public String profile_id = ""; + public String profileId = ""; /** * The time_start. */ - public int time_start; + public int timeStart; /** * The time_end. */ - public int time_end; + public int timeEnd; /** * The amount. */ public float amount; + public String getProfileId() + { + return profileId; + } + + public void setProfileId(String profileId) + { + this.profileId = profileId; + } + + public int getTimeStart() + { + return timeStart; + } + + public void setTimeStart(int timeStart) + { + this.timeStart = timeStart; + } + + public int getTimeEnd() + { + return timeEnd; + } + + public void setTimeEnd(int timeEnd) + { + this.timeEnd = timeEnd; + } + + public float getAmount() + { + return amount; + } + + public void setAmount(float amount) + { + this.amount = amount; + } + /** * Instantiates a new profile sub entry. */ @@ -74,7 +114,7 @@ /** * Instantiates a new profile sub entry. - * + * * @param input the input */ public ProfileSubEntry(String input) @@ -83,65 +123,65 @@ DataAccessPump da = DataAccessPump.getInstance(); - time_start = da.getIntValueFromString(ss[0]); - time_end = da.getIntValueFromString(ss[1]); + timeStart = da.getIntValueFromString(ss[0]); + timeEnd = da.getIntValueFromString(ss[1]); amount = da.getFloatValueFromString(ss[2]); } /** * Sets the values. - * + * * @param pse the new values */ public void setValues(ProfileSubEntry pse) { - this.time_start = pse.time_start; - this.time_end = pse.time_end; + this.timeStart = pse.timeStart; + this.timeEnd = pse.timeEnd; this.amount = pse.amount; } /** * Gets the packed. - * + * * @return the packed */ public String getPacked() { - return time_start + "-" + time_end + "=" + DataAccessPlugInBase.Decimal2Format.format(amount); + return timeStart + "-" + timeEnd + "=" + DataAccessPlugInBase.Decimal2Format.format(amount); } - /** + /** * toString */ @Override public String toString() { - return ATechDate.getTimeString(ATechDate.FORMAT_TIME_ONLY_MIN, time_start) + " - " - + ATechDate.getTimeString(ATechDate.FORMAT_TIME_ONLY_MIN, time_end) + " = " + return ATechDate.getTimeString(ATechDate.FORMAT_TIME_ONLY_MIN, timeStart) + " - " + + ATechDate.getTimeString(ATechDate.FORMAT_TIME_ONLY_MIN, timeEnd) + " = " + DataAccessPlugInBase.Decimal2Format.format(amount); } /** * Compare. - * + * * @param pse1 the pse1 * @param pse2 the pse2 - * + * * @return the int */ public int compare(ProfileSubEntry pse1, ProfileSubEntry pse2) { // System.out.println("Same: " + ... [truncated message content] |
From: <and...@us...> - 2014-10-25 22:17:37
|
Revision: 1334 http://sourceforge.net/p/ggc/code/1334 Author: andyrozman Date: 2014-10-25 22:17:27 +0000 (Sat, 25 Oct 2014) Log Message: ----------- - some refactoring and bug fixing Modified Paths: -------------- trunk/ggc-core/src/ggc/core/db/GGCDbLoader.java trunk/ggc-core/src/ggc/core/doc/util/DataAccessDoc.java trunk/ggc-core/src/ggc/core/util/DataAccess.java trunk/ggc-desktop/pom.xml Added Paths: ----------- trunk/ggc-core/src/ggc/core/plugins/GGCPluginType.java trunk/ggc-core/src/ggc/core/util/GGCSoftwareMode.java Modified: trunk/ggc-core/src/ggc/core/db/GGCDbLoader.java =================================================================== --- trunk/ggc-core/src/ggc/core/db/GGCDbLoader.java 2014-10-14 20:58:19 UTC (rev 1333) +++ trunk/ggc-core/src/ggc/core/db/GGCDbLoader.java 2014-10-25 22:17:27 UTC (rev 1334) @@ -1,5 +1,6 @@ package ggc.core.db; +import ggc.core.plugins.GGCPluginType; import ggc.core.plugins.NutriPlugIn; import ggc.core.util.DataAccess; import ggc.core.util.RefreshInfo; @@ -102,40 +103,9 @@ public GGCDbLoader(DataAccess da) { m_da = da; - // System.out.println("GGCDbLoader in development mode"); - // part_start = true; } /** - * Constructor - * - * @param da - * @param bar - */ - /* - * public GGCDbLoader(DataAccess da) //, StatusBar bar) - * { - * m_da = da; - * //m_bar = bar; - * // System.out.println("GGCDbLoader inited"); - * } - */ - - /** - * Constructor - * - * @param da - * @param bar2 - */ - /* - * public GGCDbLoader(DataAccess da, StatusBarL bar2) - * { - * m_da = da; - * m_barL = bar2; - * } - */ - - /** * Run (Thread) * * @see java.lang.Thread#run() @@ -239,9 +209,9 @@ // 5 - Load plugin data - if (m_da.isPluginAvailable(DataAccess.PLUGIN_NUTRITION)) + if (m_da.isPluginAvailable(GGCPluginType.NUTRITION_TOOL_PLUGIN)) { - m_da.getPlugIn(DataAccess.PLUGIN_NUTRITION).executeCommand(NutriPlugIn.COMMAND_LOAD_DATABASE); + m_da.getPlugIn(GGCPluginType.NUTRITION_TOOL_PLUGIN).executeCommand(NutriPlugIn.COMMAND_LOAD_DATABASE); } m_da.setDbLoadingStatus(GGCDbLoader.DB_DATA_PLUGINS); setDbStatus(RefreshInfo.DB_LOADED); Modified: trunk/ggc-core/src/ggc/core/doc/util/DataAccessDoc.java =================================================================== --- trunk/ggc-core/src/ggc/core/doc/util/DataAccessDoc.java 2014-10-14 20:58:19 UTC (rev 1333) +++ trunk/ggc-core/src/ggc/core/doc/util/DataAccessDoc.java 2014-10-25 22:17:27 UTC (rev 1334) @@ -18,6 +18,7 @@ import ggc.core.plugins.PumpsPlugIn; import ggc.core.util.DataAccess; import ggc.core.util.GGCProperties; +import ggc.core.util.GGCSoftwareMode; import java.awt.Color; import java.awt.Component; @@ -431,10 +432,9 @@ * * @return */ - @Override public boolean isPenInjectionMode() { - return getSoftwareMode() == GGC_MODE_PEN_INJECTION; + return getSoftwareMode() == GGCSoftwareMode.PEN_INJECTION_MODE; } /** @@ -442,10 +442,9 @@ * * @return */ - @Override public boolean isPumpMode() { - return getSoftwareMode() == GGC_MODE_PUMP; + return getSoftwareMode() == GGCSoftwareMode.PUMP_MODE; } /** @@ -453,12 +452,9 @@ * * @return */ - @Override - public int getSoftwareMode() + public GGCSoftwareMode getSoftwareMode() { - // System.out.println("Sw Mode: " + - // this.m_cfgMgr.getIntValue("SW_MODE")); - return this.m_cfgMgr.getIntValue("SW_MODE"); + return GGCSoftwareMode.getEnum(this.m_cfgMgr.getIntValue("SW_MODE")); } /** Added: trunk/ggc-core/src/ggc/core/plugins/GGCPluginType.java =================================================================== --- trunk/ggc-core/src/ggc/core/plugins/GGCPluginType.java (rev 0) +++ trunk/ggc-core/src/ggc/core/plugins/GGCPluginType.java 2014-10-25 22:17:27 UTC (rev 1334) @@ -0,0 +1,27 @@ +package ggc.core.plugins; + +public enum GGCPluginType +{ + METER_TOOL_PLUGIN("MetersPlugIn"), // + PUMP_TOOL_PLUGIN("PumpsPlugIn"), // + NUTRITION_TOOL_PLUGIN("NutritionPlugIn"), // + CGMS_TOOL_PLUGIN("CGMSPlugIn"); + + private String key; + + private GGCPluginType(String key) + { + this.key = key; + } + + public String getKey() + { + return key; + } + + public void setKey(String key) + { + this.key = key; + } + +} Modified: trunk/ggc-core/src/ggc/core/util/DataAccess.java =================================================================== --- trunk/ggc-core/src/ggc/core/util/DataAccess.java 2014-10-14 20:58:19 UTC (rev 1333) +++ trunk/ggc-core/src/ggc/core/util/DataAccess.java 2014-10-25 22:17:27 UTC (rev 1334) @@ -13,6 +13,7 @@ import ggc.core.db.datalayer.SettingsColorScheme; import ggc.core.db.tool.DbToolApplicationGGC; import ggc.core.plugins.CGMSPlugIn; +import ggc.core.plugins.GGCPluginType; import ggc.core.plugins.MetersPlugIn; import ggc.core.plugins.NutriPlugIn; import ggc.core.plugins.PumpsPlugIn; @@ -170,32 +171,32 @@ /** * Plug In - Meter Tool */ - public static final String PLUGIN_METERS = "MetersPlugIn"; + // public static final String PLUGIN_METERS = "MetersPlugIn"; /** * Plug In - Pump Tool */ - public static final String PLUGIN_PUMPS = "PumpsPlugIn"; + // public static final String PLUGIN_PUMPS = "PumpsPlugIn"; /** * Plug In - CGMS Tool */ - public static final String PLUGIN_CGMS = "CGMSPlugIn"; + // public static final String PLUGIN_CGMS = "CGMSPlugIn"; /** * Plug In - Nutrition Tool */ - public static final String PLUGIN_NUTRITION = "NutritionPlugIn"; + // public static final String PLUGIN_NUTRITION = "NutritionPlugIn"; /** * GGC Mode: Pen/Injection */ - public static final int GGC_MODE_PEN_INJECTION = 0; + // public static final int GGC_MODE_PEN_INJECTION = 0; /** * GGC Mode: Pump */ - public static final int GGC_MODE_PUMP = 1; + // public static final int GGC_MODE_PUMP = 1; /** * Converter: BG @@ -426,7 +427,7 @@ */ public boolean isPenInjectionMode() { - return getSoftwareMode() == GGC_MODE_PEN_INJECTION; + return getSoftwareMode() == GGCSoftwareMode.PEN_INJECTION_MODE; } /** @@ -436,7 +437,7 @@ */ public boolean isPumpMode() { - return getSoftwareMode() == GGC_MODE_PUMP; + return getSoftwareMode() == GGCSoftwareMode.PUMP_MODE; } /** @@ -444,11 +445,9 @@ * * @return */ - public int getSoftwareMode() + public GGCSoftwareMode getSoftwareMode() { - // System.out.println("Sw Mode: " + - // this.m_cfgMgr.getIntValue("SW_MODE")); - return this.m_cfgMgr.getIntValue("SW_MODE"); + return GGCSoftwareMode.getEnum(this.m_cfgMgr.getIntValue("SW_MODE")); } /** @@ -722,19 +721,33 @@ { log.debug("init Plugins: Meter Tool"); - addPlugIn(DataAccess.PLUGIN_METERS, new MetersPlugIn(this.m_main, this.m_i18n)); + addPlugIn(GGCPluginType.METER_TOOL_PLUGIN.getKey(), // + new MetersPlugIn(this.m_main, this.m_i18n)); log.debug("init Plugins: Pumps Tool"); - addPlugIn(DataAccess.PLUGIN_PUMPS, new PumpsPlugIn(this.m_main, this)); + addPlugIn(GGCPluginType.PUMP_TOOL_PLUGIN.getKey(), // + new PumpsPlugIn(this.m_main, this)); log.debug("init Plugins: CGMS Tool"); - addPlugIn(DataAccess.PLUGIN_CGMS, new CGMSPlugIn(this.m_main, this.m_i18n)); + addPlugIn(GGCPluginType.CGMS_TOOL_PLUGIN.getKey(), // + new CGMSPlugIn(this.m_main, this.m_i18n)); log.debug("init Plugins: Nutrition Tool"); - addPlugIn(DataAccess.PLUGIN_NUTRITION, new NutriPlugIn(this.m_main, this.m_i18n)); + addPlugIn(GGCPluginType.NUTRITION_TOOL_PLUGIN.getKey(), // + new NutriPlugIn(this.m_main, this.m_i18n)); } + public PlugInClient getPlugIn(GGCPluginType pluginType) + { + return this.getPlugIn(pluginType.getKey()); + } + + public boolean isPluginAvailable(GGCPluginType pluginType) + { + return isPluginAvailable(pluginType.getKey()); + } + /** * Get Hibernate Db */ Added: trunk/ggc-core/src/ggc/core/util/GGCSoftwareMode.java =================================================================== --- trunk/ggc-core/src/ggc/core/util/GGCSoftwareMode.java (rev 0) +++ trunk/ggc-core/src/ggc/core/util/GGCSoftwareMode.java 2014-10-25 22:17:27 UTC (rev 1334) @@ -0,0 +1,42 @@ +package ggc.core.util; + +import java.util.HashMap; + +public enum GGCSoftwareMode +{ + PEN_INJECTION_MODE(0), // + PUMP_MODE(1); + + private int mode; + + private static HashMap<Integer, GGCSoftwareMode> map = new HashMap<Integer, GGCSoftwareMode>(); + + static + { + for (GGCSoftwareMode el : values()) + { + map.put(el.getMode(), el); + } + } + + GGCSoftwareMode(int mode) + { + this.mode = mode; + } + + public int getMode() + { + return mode; + } + + public void setMode(int mode) + { + this.mode = mode; + } + + public static GGCSoftwareMode getEnum(int value) + { + return map.get(value); + } + +} Modified: trunk/ggc-desktop/pom.xml =================================================================== --- trunk/ggc-desktop/pom.xml 2014-10-14 20:58:19 UTC (rev 1333) +++ trunk/ggc-desktop/pom.xml 2014-10-25 22:17:27 UTC (rev 1334) @@ -94,6 +94,12 @@ <artifactId>jfreechart</artifactId> </dependency> + <dependency> + <groupId>postgresql</groupId> + <artifactId>postgresql</artifactId> + <version>8.4-702.jdbc3</version> + </dependency> + <!-- <dependency> <groupId>org.swinglabs</groupId> <artifactId>pdf-renderer</artifactId> </dependency> <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> </dependency> --> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <and...@us...> - 2014-11-11 16:45:36
|
Revision: 1337 http://sourceforge.net/p/ggc/code/1337 Author: andyrozman Date: 2014-11-11 16:45:32 +0000 (Tue, 11 Nov 2014) Log Message: ----------- - DeviceTemp Values changes and some classes that use it - DeviceImplementationConfiguration - not used yet Modified Paths: -------------- trunk/ggc-plugin_base/docs/Changelog trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceTempValues.java trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceValuesWriter.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/cmd/MinimedReplyDecoder.java trunk/ggc-pump/src/ggc/pump/data/PumpTempValues.java trunk/ggc-pump/src/ggc/pump/device/dana/DanaDiabecare_III_R.java trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed523.java trunk/ggc-pump/src/ggc/pump/device/minimed/file/MinimedCareLinkPump.java Added Paths: ----------- trunk/ggc-plugin_base/src/ggc/plugin/device/DeviceImplementationConfiguration.java Modified: trunk/ggc-plugin_base/docs/Changelog =================================================================== --- trunk/ggc-plugin_base/docs/Changelog 2014-10-29 14:36:17 UTC (rev 1336) +++ trunk/ggc-plugin_base/docs/Changelog 2014-11-11 16:45:32 UTC (rev 1337) @@ -2,6 +2,14 @@ Changes file for GGC Plug-In Base ================================== +0.6.4 [11.11.2014 - ] + * DeviceTempValues, added isNumericValue parameter, and added several constructors with CodeEnumWithTranslation parameters as base and sub + type + * DeviceValuesWriter, added numeric parameter and better handling for value (we parsed value to change , to ., now this is dependand on + numericParameter in DeviceTempValues or by command. + + + 0.6.3 [21.9.2014] * fixes of pdf-viewer classes Modified: trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceTempValues.java =================================================================== --- trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceTempValues.java 2014-10-29 14:36:17 UTC (rev 1336) +++ trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceTempValues.java 2014-11-11 16:45:32 UTC (rev 1337) @@ -3,30 +3,31 @@ import ggc.plugin.output.OutputWriterData; import com.atech.utils.data.ATechDate; +import com.atech.utils.data.CodeEnumWithTranslation; /** * Application: GGC - GNU Gluco Control * Plug-in: GGC PlugIn Base (base class for all plugins) * * See AUTHORS for copyright information. - * + * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) any later * version. - * + * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. - * + * * You should have received a copy of the GNU General Public License along with * this program; if not, write to the Free Software Foundation, Inc., 59 Temple * Place, Suite 330, Boston, MA 02111-1307 USA - * + * * Filename: DeviceValues * Description: Collection of DeviceValuesDay. - * + * * Author: Andy {an...@at...} */ @@ -36,6 +37,7 @@ protected int base_type = 1; protected int sub_type = 0; protected String value_template; + private Boolean isNumericValue; /** * @param _object_type @@ -44,9 +46,35 @@ */ public DeviceTempValues(int _object_type, int _base_type, int _sub_type) { - this(_object_type, _base_type, _sub_type, null); + this(_object_type, _base_type, _sub_type, null, null); } + public DeviceTempValues(int _object_type, int _base_type, int _sub_type, Boolean isNumericValue) + { + this(_object_type, _base_type, _sub_type, null, isNumericValue); + } + + public DeviceTempValues(int _object_type, CodeEnumWithTranslation _base_type, int _sub_type) + { + this(_object_type, _base_type.getCode(), _sub_type, null, null); + } + + public DeviceTempValues(int _object_type, CodeEnumWithTranslation _base_type, CodeEnumWithTranslation _sub_type) + { + this(_object_type, _base_type.getCode(), _sub_type.getCode(), null, null); + } + + public DeviceTempValues(int _object_type, CodeEnumWithTranslation _base_type, int _sub_type, Boolean isNumericValue) + { + this(_object_type, _base_type.getCode(), _sub_type, null, isNumericValue); + } + + public DeviceTempValues(int _object_type, CodeEnumWithTranslation _base_type, CodeEnumWithTranslation _sub_type, + Boolean isNumericValue) + { + this(_object_type, _base_type.getCode(), _sub_type.getCode(), null, isNumericValue); + } + /** * @param _object_type * @param _base_type @@ -54,26 +82,43 @@ */ public DeviceTempValues(int _object_type, int _base_type) { - this(_object_type, _base_type, 0, null); + this(_object_type, _base_type, 0, null, null); } + public DeviceTempValues(int _object_type, CodeEnumWithTranslation _base_type) + { + this(_object_type, _base_type.getCode(), 0, null, null); + } + + public DeviceTempValues(int _object_type, int _base_type, Boolean isNumericValue) + { + this(_object_type, _base_type, 0, null, isNumericValue); + } + + public DeviceTempValues(int _object_type, CodeEnumWithTranslation _base_type, Boolean isNumericValue) + { + this(_object_type, _base_type.getCode(), 0, null, isNumericValue); + } + /** * @param _object_type * @param _base_type * @param _sub_type - * @param _value_template + * @param _value_template */ - public DeviceTempValues(int _object_type, int _base_type, int _sub_type, String _value_template) + public DeviceTempValues(int _object_type, int _base_type, int _sub_type, String _value_template, + Boolean isNumericValue) { this.object_type = _object_type; this.base_type = _base_type; this.sub_type = _sub_type; this.value_template = _value_template; + this.isNumericValue = isNumericValue; } /** * Get Data - * + * * @param dt * @param _sub_type * @return @@ -85,7 +130,7 @@ /** * Get Data - * + * * @param dt * @param _value * @return @@ -97,7 +142,7 @@ /** * Get Data - * + * * @param dt * @param _sub_type * @param _value @@ -105,4 +150,14 @@ */ public abstract OutputWriterData getData(ATechDate dt, int _sub_type, String _value); + public Boolean getIsNumericValue() + { + return isNumericValue; + } + + public void setIsNumericValue(Boolean isNumericValue) + { + this.isNumericValue = isNumericValue; + } + } Modified: trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceValuesWriter.java =================================================================== --- trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceValuesWriter.java 2014-10-29 14:36:17 UTC (rev 1336) +++ trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceValuesWriter.java 2014-11-11 16:45:32 UTC (rev 1337) @@ -4,6 +4,7 @@ import java.util.Hashtable; +import org.apache.commons.lang.StringUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -14,24 +15,24 @@ * Plug-in: GGC PlugIn Base (base class for all plugins) * * See AUTHORS for copyright information. - * + * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) any later * version. - * + * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. - * + * * You should have received a copy of the GNU General Public License along with * this program; if not, write to the Free Software Foundation, Inc., 59 Temple * Place, Suite 330, Boston, MA 02111-1307 USA - * + * * Filename: DeviceValuesWriter * Description: Collection of DeviceTempValues - * + * * Author: Andy {an...@at...} */ @@ -56,7 +57,7 @@ /** * Constructor - * @param is_silent + * @param is_silent */ public DeviceValuesWriter(boolean is_silent) { @@ -75,7 +76,7 @@ /** * Set output writer - * + * * @param ow */ public void setOutputWriter(OutputWriter ow) @@ -84,19 +85,49 @@ } /** - * Write Object - * @param _type - * @param _datetime - * @param _value - * @return + * Write Object + * @param _type + * @param _datetime + * @param _value + * @return */ public boolean writeObject(String _type, ATechDate _datetime, String _value) { + return this.writeObject(_type, _datetime, _value, StringUtils.isNotBlank(_value)); + } + + /** + * Write Object + * @param _type + * @param _datetime + * @param _value + * @return + */ + public boolean writeObject(String _type, ATechDate _datetime, String _value, boolean isNumericValue) + { if (this.containsKey(_type)) { - _value = _value.replace(',', '.'); DeviceTempValues dtv = this.get(_type); + if (StringUtils.isNotBlank(_value)) + { + boolean numeric = false; + + if (dtv.getIsNumericValue() != null) + { + numeric = dtv.getIsNumericValue().booleanValue(); + } + else + { + numeric = isNumericValue; + } + + if (numeric) + { + _value = _value.replace(',', '.'); + } + } + if (!this.is_silent_mode) { output_writer.writeData(dtv.getData(_datetime, _value)); @@ -111,13 +142,13 @@ } /** - * Write Object - * - * @param _type - * @param _datetime - * @param code_type - * @param _value - * @return + * Write Object + * + * @param _type + * @param _datetime + * @param code_type + * @param _value + * @return */ public boolean writeObject(String _type, ATechDate _datetime, int code_type, String _value) { Added: trunk/ggc-plugin_base/src/ggc/plugin/device/DeviceImplementationConfiguration.java =================================================================== --- trunk/ggc-plugin_base/src/ggc/plugin/device/DeviceImplementationConfiguration.java (rev 0) +++ trunk/ggc-plugin_base/src/ggc/plugin/device/DeviceImplementationConfiguration.java 2014-11-11 16:45:32 UTC (rev 1337) @@ -0,0 +1,6 @@ +package ggc.plugin.device; + +public class DeviceImplementationConfiguration +{ + +} Modified: trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/cmd/MinimedReplyDecoder.java =================================================================== --- trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/cmd/MinimedReplyDecoder.java 2014-10-29 14:36:17 UTC (rev 1336) +++ trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/cmd/MinimedReplyDecoder.java 2014-11-11 16:45:32 UTC (rev 1337) @@ -15,7 +15,6 @@ import com.atech.utils.ATDataAccessAbstract; import com.atech.utils.data.ATechDate; import com.atech.utils.data.CRCUtils; -import com.atech.utils.data.HexUtils; public class MinimedReplyDecoder { @@ -254,7 +253,7 @@ /** * Decode Insulin Sensitivities - * + * * @param cmd * @return */ @@ -680,7 +679,7 @@ public boolean sensorSettings(MinimedCommand cmd) { - HexUtils hu = this.util.getHexUtils(); + CRCUtils hu = this.util.getHexUtils(); int rd[] = cmd.reply.raw_data; if (this.device.getMinimedDeviceId() == MinimedDevicesIds.PUMP_MINIMED_522) @@ -1030,7 +1029,7 @@ /** * Get Unsigned Short - * + * * @param mc * @param parameter * @return @@ -1042,7 +1041,7 @@ /** * Get Unsigned Short - * + * * @param mc * @param parameter * @return @@ -1055,7 +1054,7 @@ /** * Get String - * + * * @param mc * @return */ @@ -1066,9 +1065,9 @@ /** * Get String - * + * * @param mc - * @param parameter + * @param parameter * @return */ public String getString(MinimedCommand mc, int parameter) Modified: trunk/ggc-pump/src/ggc/pump/data/PumpTempValues.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/data/PumpTempValues.java 2014-10-29 14:36:17 UTC (rev 1336) +++ trunk/ggc-pump/src/ggc/pump/data/PumpTempValues.java 2014-11-11 16:45:32 UTC (rev 1337) @@ -4,67 +4,73 @@ import ggc.plugin.output.OutputWriterData; import com.atech.utils.data.ATechDate; +import com.atech.utils.data.CodeEnumWithTranslation; /** * Application: GGC - GNU Gluco Control * Plug-in: CGMS Tool (support for CGMS devices) * * See AUTHORS for copyright information. - * + * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) any later * version. - * + * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. - * + * * You should have received a copy of the GNU General Public License along with * this program; if not, write to the Free Software Foundation, Inc., 59 Temple * Place, Suite 330, Boston, MA 02111-1307 USA - * + * * Filename: PumpTempValues - * Description: Class for Writer - * + * Description: Class for Writer + * * Author: Andy {an...@at...} */ public class PumpTempValues extends DeviceTempValues { - /** - * @param _object_type - * @param _base_type - * @param _sub_type - */ - public PumpTempValues(int _object_type, int _base_type, int _sub_type) + public PumpTempValues(int _object_type, int _base_type, int _sub_type, Boolean isNumericValue) { + this(_object_type, _base_type, _sub_type, null, isNumericValue); + } - super(_object_type, _base_type, _sub_type, null); + public PumpTempValues(int _object_type, CodeEnumWithTranslation _base_type, int _sub_type, Boolean isNumericValue) + { + this(_object_type, _base_type.getCode(), _sub_type, null, isNumericValue); } - /** - * @param _object_type - * @param _base_type - * @param _sub_type - * @param _value_template - */ - public PumpTempValues(int _object_type, int _base_type, int _sub_type, String _value_template) + public PumpTempValues(int _object_type, CodeEnumWithTranslation _base_type, CodeEnumWithTranslation _sub_type, + Boolean isNumericValue) { - super(_object_type, _base_type, _sub_type, _value_template); + this(_object_type, _base_type.getCode(), _sub_type.getCode(), null, isNumericValue); } + public PumpTempValues(int _object_type, int _base_type, Boolean isNumericValue) + { + this(_object_type, _base_type, 0, null, isNumericValue); + } + + public PumpTempValues(int _object_type, CodeEnumWithTranslation _base_type, Boolean isNumericValue) + { + this(_object_type, _base_type.getCode(), 0, null, isNumericValue); + } + /** - * Constructor - * * @param _object_type * @param _base_type + * @param _sub_type + * @param _value_template */ - public PumpTempValues(int _object_type, int _base_type) + public PumpTempValues(int _object_type, int _base_type, int _sub_type, String _value_template, + Boolean isNumericValue) { - super(_object_type, _base_type); + super(_object_type, _base_type, _sub_type, _value_template, isNumericValue); } /** @@ -94,7 +100,7 @@ * } */ - /** + /** * getData */ @Override Modified: trunk/ggc-pump/src/ggc/pump/device/dana/DanaDiabecare_III_R.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/dana/DanaDiabecare_III_R.java 2014-10-29 14:36:17 UTC (rev 1336) +++ trunk/ggc-pump/src/ggc/pump/device/dana/DanaDiabecare_III_R.java 2014-11-11 16:45:32 UTC (rev 1337) @@ -44,24 +44,24 @@ * devices) * * See AUTHORS for copyright information. - * + * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) any later * version. - * + * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. - * + * * You should have received a copy of the GNU General Public License along with * this program; if not, write to the Free Software Foundation, Inc., 59 Temple * Place, Suite 330, Boston, MA 02111-1307 USA - * + * * Filename: DanaDiabecare_III Description: Dana Diabecare R/III device * implementation - * + * * Author: Andy {an...@at...} */ @@ -206,7 +206,7 @@ /** * Constructor - * + * * @param cmp */ public DanaDiabecare_III_R(AbstractDeviceCompany cmp) @@ -217,7 +217,7 @@ /** * Constructor - * + * * @param params * @param writer */ @@ -229,7 +229,7 @@ /** * Constructor - * + * * @param params * @param writer * @param da @@ -290,7 +290,7 @@ /** * getName - Get Name of device - * + * * @return name of device */ public String getName() @@ -300,7 +300,7 @@ /** * getIconName - Get Icon of device - * + * * @return icon name */ public String getIconName() @@ -311,7 +311,7 @@ /** * getDeviceId - Get Device Id, within MgrCompany class Should be * implemented by device class. - * + * * @return id of device within company */ public int getDeviceId() @@ -322,7 +322,7 @@ /** * getInstructions - get instructions for device Should be implemented by * meter class. - * + * * @return instructions for reading data */ public String getInstructions() @@ -332,7 +332,7 @@ /** * getComment - Get Comment for device - * + * * @return comment or null */ public String getComment() @@ -342,7 +342,7 @@ /** * getImplementationStatus - Get Implementation Status - * + * * @return implementation status as number * @see ggc.plugin.manager.DeviceImplementationStatus */ @@ -354,7 +354,7 @@ /** * getDeviceClassName - Get Class name of device implementation, used by * Reflection at later time - * + * * @return class name as string */ public String getDeviceClassName() @@ -364,7 +364,7 @@ /** * Get Max Memory Records - * + * * @return */ public int getMaxMemoryRecords() @@ -412,11 +412,11 @@ /** * Gets the device record. - * + * * @param command * @param write - * - * + * + * * @throws Exception * the exception */ @@ -623,7 +623,7 @@ /** * Read data. - * + * * @param buffer * the buffer * @return the int @@ -636,8 +636,7 @@ try { if (this.read(buffer, 0, 4) == 0) - { - } + {} num = buffer[2] - 1; this.read(buffer, 4, num + 4); @@ -645,8 +644,7 @@ byte num4 = (byte) ((v >> 8) & 0xff); byte num5 = (byte) (v & 0xff); if ((buffer[4 + num] != num4) || (buffer[4 + num + 1] != num5)) - { - } + {} } catch (Exception ex) @@ -704,7 +702,7 @@ /** * serialEvent - * + * * @param event */ public void serialEvent(SerialPortEvent event) @@ -714,7 +712,7 @@ /** * Get Download Support Type - * + * * @return */ public int getDownloadSupportType() @@ -724,7 +722,7 @@ /** * Get Download Support Type for Configuration - * + * * @return */ /* @@ -734,7 +732,7 @@ /** * How Many Months Of Data Stored - * + * * @return */ public int howManyMonthsOfDataStored() @@ -746,7 +744,7 @@ * Get Temporary Basal Type Definition "TYPE=Unit;STEP=0.1" * "TYPE=Procent;STEP=10;MIN=0;MAX=200" * "TYPE=Both;STEP_UNIT=0.1;STEP=10;MIN=0;MAX=200" - * + * * @return */ public String getTemporaryBasalTypeDefinition() @@ -757,7 +755,7 @@ /** * Get Bolus Step (precission) - * + * * @return */ public float getBolusStep() @@ -767,7 +765,7 @@ /** * Get Basal Step (precission) - * + * * @return */ public float getBasalStep() @@ -777,7 +775,7 @@ /** * Are Pump Settings Set (Bolus step, Basal step and TBR settings) - * + * * @return */ public boolean arePumpSettingsSet() @@ -787,7 +785,7 @@ /** * Map pump specific alarms to PumpTool specific alarm codes - * + * * @return */ public Hashtable<String, Integer> getAlarmMappings() @@ -798,7 +796,7 @@ /** * Get Bolus Mappings - Map pump specific bolus to Pump Tool specific event * codes - * + * * @return */ public Hashtable<String, Integer> getBolusMappings() @@ -809,7 +807,7 @@ /** * Get Error Mappings - Map pump specific errors to Pump Tool specific event * codes - * + * * @return */ public Hashtable<String, Integer> getErrorMappings() @@ -819,7 +817,7 @@ /** * Map pump specific events to PumpTool specific event codes - * + * * @return */ public Hashtable<String, Integer> getEventMappings() @@ -830,7 +828,7 @@ /** * Get Report Mappings - Map pump specific reports to Pump Tool specific * event codes - * + * * @return */ public Hashtable<String, Integer> getReportMappings() @@ -862,7 +860,7 @@ * hasSpecialProgressStatus - in most cases we read data directly from * device, in this case we have normal progress status, but with some * special devices we calculate progress through other means. - * + * * @return true is progress status is special */ @Override @@ -873,7 +871,7 @@ /** * This is method for reading configuration - * + * * @throws PlugInBaseException */ @Override @@ -1024,7 +1022,7 @@ /** * This is for reading device information. This should be used only if * normal dump doesn't retrieve this information (most dumps do). - * + * * @throws PlugInBaseException */ @Override @@ -1193,31 +1191,35 @@ this.dvw = new DeviceValuesWriter(); this.dvw.setOutputWriter(this.output_writer); + // added isNumeric, could cause problem + // bolus - standard this.dvw.put("1_66", new PumpTempValues(PumpTempValues.OBJECT_BASE, PumpBaseType.Bolus.getCode(), - PumpBolusType.PUMP_BOLUS_STANDARD)); + PumpBolusType.PUMP_BOLUS_STANDARD, true)); // bolus - wave (this is unhandled, data is not all available) this.dvw.put("1_69", new PumpTempValues(PumpTempValues.OBJECT_BASE, PumpBaseType.Bolus.getCode(), - PumpBolusType.PUMP_BOLUS_MULTIWAVE)); + PumpBolusType.PUMP_BOLUS_MULTIWAVE, false)); // daily insulin record this.dvw.put("2_68", new PumpTempValues(PumpTempValues.OBJECT_BASE, PumpBaseType.Report.getCode(), - PumpReport.PUMP_REPORT_INSULIN_TOTAL_DAY)); + PumpReport.PUMP_REPORT_INSULIN_TOTAL_DAY, true)); // CH (carbohydrates) - this.dvw.put("8_82", new PumpTempValues(PumpTempValues.OBJECT_EXT, PumpAdditionalDataType.PUMP_ADD_DATA_CH, 0)); + this.dvw.put("8_82", new PumpTempValues(PumpTempValues.OBJECT_EXT, PumpAdditionalDataType.PUMP_ADD_DATA_CH, 0, + true)); // prime this.dvw.put("3_80", new PumpTempValues(PumpTempValues.OBJECT_BASE, PumpBaseType.Event.getCode(), - PumpEvents.PUMP_EVENT_PRIME_INFUSION_SET)); + PumpEvents.PUMP_EVENT_PRIME_INFUSION_SET, false)); // BG - this.dvw.put("6_71", new PumpTempValues(PumpTempValues.OBJECT_EXT, PumpAdditionalDataType.PUMP_ADD_DATA_BG, 0)); + this.dvw.put("6_71", new PumpTempValues(PumpTempValues.OBJECT_EXT, PumpAdditionalDataType.PUMP_ADD_DATA_BG, 0, + true)); // alarm - this.dvw.put("5_66", new PumpTempValues(PumpTempValues.OBJECT_BASE, PumpBaseType.Alarm.getCode(), 0)); + this.dvw.put("5_66", new PumpTempValues(PumpTempValues.OBJECT_BASE, PumpBaseType.Alarm.getCode(), 0, false)); // error - this.dvw.put("4_2", new PumpTempValues(PumpTempValues.OBJECT_BASE, PumpBaseType.Error.getCode(), 0)); + this.dvw.put("4_2", new PumpTempValues(PumpTempValues.OBJECT_BASE, PumpBaseType.Error.getCode(), 0, false)); } @@ -1276,14 +1278,14 @@ /** * Creates the crc. - * + * * @param data * the data * @param offset * the offset * @param length * the length - * + * * @return the int */ public int createCRC(byte[] data, int offset, int length) Modified: trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed523.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed523.java 2014-10-29 14:36:17 UTC (rev 1336) +++ trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed523.java 2014-11-11 16:45:32 UTC (rev 1337) @@ -14,31 +14,31 @@ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; -import com.atech.utils.data.HexUtils; +import com.atech.utils.data.CRCUtils; /** * Application: GGC - GNU Gluco Control * Plug-in: Pump Tool (support for Pump devices) * * See AUTHORS for copyright information. - * + * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) any later * version. - * + * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. - * + * * You should have received a copy of the GNU General Public License along with * this program; if not, write to the Free Software Foundation, Inc., 59 Temple * Place, Suite 330, Boston, MA 02111-1307 USA - * - * Filename: Minimed522 + * + * Filename: Minimed522 * Description: Minimed 522/722 implementation (just settings) - * + * * Author: Andy {an...@at...} */ @@ -49,10 +49,10 @@ /** * Constructor - * + * * @param da - data access instance - * @param device_type - device type - * @param full_port - full port identification + * @param device_type - device type + * @param full_port - full port identification * @param writer - output writer instance */ public Minimed523(DataAccessPlugInBase da, int device_type, String full_port, OutputWriter writer) @@ -62,9 +62,9 @@ /** * Constructor - * + * * @param da - data access instance - * @param full_port - full port identification + * @param full_port - full port identification * @param writer - output writer instance */ public Minimed523(DataAccessPlugInBase da, String full_port, OutputWriter writer) @@ -74,7 +74,7 @@ /** * Constructor - * + * * @param cmp */ public Minimed523(AbstractDeviceCompany cmp) @@ -163,8 +163,8 @@ } /** - * getName - Get Name of meter. - * + * getName - Get Name of meter. + * * @return name of meter */ @Override @@ -175,7 +175,7 @@ /** * getIconName - Get Icon of meter - * + * * @return icon name */ @Override @@ -185,9 +185,9 @@ } /** - * getDeviceId - Get Device Id, within MgrCompany class + * getDeviceId - Get Device Id, within MgrCompany class * Should be implemented by device class. - * + * * @return id of device within company */ @Override @@ -199,8 +199,8 @@ /** * getInstructions - get instructions for device * Should be implemented by meter class. - * - * @return instructions for reading data + * + * @return instructions for reading data */ @Override public String getInstructions() @@ -209,8 +209,8 @@ } /** - * getComment - Get Comment for device - * + * getComment - Get Comment for device + * * @return comment or null */ @Override @@ -220,8 +220,8 @@ } /** - * getImplementationStatus - Get Implementation Status - * + * getImplementationStatus - Get Implementation Status + * * @return implementation status as number * @see ggc.plugin.manager.DeviceImplementationStatus */ @@ -233,7 +233,7 @@ /** * getDeviceClassName - Get Class name of device implementation, used by Reflection at later time - * + * * @return class name as string */ @Override @@ -242,7 +242,7 @@ return "ggc.pump.device.minimed.Minimed522"; } - /** + /** * Get Max Memory Records */ @Override @@ -253,7 +253,7 @@ /** * Get Download Support Type - * + * * @return */ @Override @@ -264,7 +264,7 @@ /** * How Many Months Of Data Stored - * + * * @return */ @Override @@ -278,7 +278,7 @@ * "TYPE=Unit;STEP=0.1" * "TYPE=Procent;STEP=10;MIN=0;MAX=200" * "TYPE=Both;STEP_UNIT=0.1;STEP=10;MIN=0;MAX=200" - * + * * @return */ @Override @@ -290,7 +290,7 @@ /** * Get Bolus Step (precission) - * + * * @return */ @Override @@ -301,7 +301,7 @@ /** * Get Basal Step (precission) - * + * * @return */ @Override @@ -312,7 +312,7 @@ /** * Are Pump Settings Set (Bolus step, Basal step and TBR settings) - * + * * @return */ @Override @@ -436,7 +436,7 @@ // util.getHexUtils().getHexCompact(cmd.reply.raw_data)); int[] rd = cmd.reply.raw_data; - HexUtils hu = util.getHexUtils(); + CRCUtils hu = util.getHexUtils(); int i = hu.makeInt(rd[0], rd[1]); Modified: trunk/ggc-pump/src/ggc/pump/device/minimed/file/MinimedCareLinkPump.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/minimed/file/MinimedCareLinkPump.java 2014-10-29 14:36:17 UTC (rev 1336) +++ trunk/ggc-pump/src/ggc/pump/device/minimed/file/MinimedCareLinkPump.java 2014-11-11 16:45:32 UTC (rev 1337) @@ -23,23 +23,23 @@ * devices) * * See AUTHORS for copyright information. - * + * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) any later * version. - * + * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. - * + * * You should have received a copy of the GNU General Public License along with * this program; if not, write to the Free Software Foundation, Inc., 59 Temple * Place, Suite 330, Boston, MA 02111-1307 USA - * + * * Filename: MinimedCareLinkPump Description: Minimed CareLink Pump - * + * * Author: Andy {an...@at...} */ @@ -66,7 +66,7 @@ /** * Constructor - * + * * @param da * @param ow * @param reading_type @@ -291,66 +291,66 @@ // FIXME this.dvw.put("Prime", new PumpTempValues(PumpTempValues.OBJECT_BASE, PumpBaseType.Event.getCode(), - PumpEvents.PUMP_EVENT_PRIME_INFUSION_SET)); + PumpEvents.PUMP_EVENT_PRIME_INFUSION_SET, true)); this.dvw.put("Rewind", new PumpTempValues(PumpTempValues.OBJECT_BASE, PumpBaseType.Event.getCode(), - PumpEvents.PUMP_EVENT_CARTRIDGE_REWIND)); + PumpEvents.PUMP_EVENT_CARTRIDGE_REWIND, false)); this.dvw.put("AlarmPump", - new PumpTempValues(PumpTempValues.OBJECT_BASE_SET_SUBTYPE, PumpBaseType.Alarm.getCode())); + new PumpTempValues(PumpTempValues.OBJECT_BASE_SET_SUBTYPE, PumpBaseType.Alarm.getCode(), false)); this.dvw.put("BolusNormal", new PumpTempValues(PumpTempValues.OBJECT_BASE, PumpBaseType.Bolus.getCode(), - PumpBolusType.PUMP_BOLUS_STANDARD)); + PumpBolusType.PUMP_BOLUS_STANDARD, true)); this.dvw.put("BolusSquare", new PumpTempValues(PumpTempValues.OBJECT_BASE, PumpBaseType.Bolus.getCode(), - PumpBolusType.PUMP_BOLUS_SQUARE)); + PumpBolusType.PUMP_BOLUS_SQUARE, false)); // ? this.dvw.put("BolusMultiwave", new PumpTempValues(PumpTempValues.OBJECT_BASE, PumpBaseType.Bolus.getCode(), - PumpBolusType.PUMP_BOLUS_MULTIWAVE)); + PumpBolusType.PUMP_BOLUS_MULTIWAVE, false)); this.dvw.put("BolusWizardBolusEstimate", new PumpTempValues(PumpTempValues.OBJECT_BASE, PumpBaseType.Event.getCode(), - PumpEvents.PUMP_EVENT_BOLUS_WIZARD)); + PumpEvents.PUMP_EVENT_BOLUS_WIZARD, false)); this.dvw.put("BGReceived", new PumpTempValues(PumpTempValues.OBJECT_EXT, - PumpAdditionalDataType.PUMP_ADD_DATA_BG)); + PumpAdditionalDataType.PUMP_ADD_DATA_BG, true)); // ChangeTempBasalPercent this.dvw.put("ChangeTempBasalPercent", new PumpTempValues(PumpTempValues.OBJECT_BASE, PumpBaseType.Basal.getCode(), - PumpBasalSubType.PUMP_BASAL_TEMPORARY_BASAL_RATE)); + PumpBasalSubType.PUMP_BASAL_TEMPORARY_BASAL_RATE, false)); this.dvw.put("TBROver", new PumpTempValues(PumpTempValues.OBJECT_BASE, PumpBaseType.Basal.getCode(), - PumpBasalSubType.PUMP_BASAL_TEMPORARY_BASAL_RATE_ENDED)); + PumpBasalSubType.PUMP_BASAL_TEMPORARY_BASAL_RATE_ENDED, false)); this.dvw.put("ChangeActiveBasalProfilePattern", new PumpTempValues(PumpTempValues.OBJECT_BASE, - PumpBaseType.Basal.getCode(), PumpBasalSubType.PUMP_BASAL_PROFILE)); + PumpBaseType.Basal.getCode(), PumpBasalSubType.PUMP_BASAL_PROFILE, false)); this.dvw.put("ChangeSuspendEnable", new PumpTempValues(PumpTempValues.OBJECT_BASE, - PumpBaseType.Event.getCode(), PumpEvents.PUMP_EVENT_BASAL_STOP)); + PumpBaseType.Event.getCode(), PumpEvents.PUMP_EVENT_BASAL_STOP, false)); this.dvw.put("ChangeSuspendEnableNot", new PumpTempValues(PumpTempValues.OBJECT_BASE, PumpBaseType.Event.getCode(), - PumpEvents.PUMP_EVENT_BASAL_RUN)); + PumpEvents.PUMP_EVENT_BASAL_RUN, false)); this.dvw.put("ResultDailyTotal", new PumpTempValues(PumpTempValues.OBJECT_BASE, PumpBaseType.Report.getCode(), - PumpReport.PUMP_REPORT_INSULIN_TOTAL_DAY)); + PumpReport.PUMP_REPORT_INSULIN_TOTAL_DAY, true)); this.dvw.put("SelfTest", new PumpTempValues(PumpTempValues.OBJECT_BASE, PumpBaseType.Event.getCode(), - PumpEvents.PUMP_EVENT_SELF_TEST)); + PumpEvents.PUMP_EVENT_SELF_TEST, false)); this.dvw.put("ChangeTime", new PumpTempValues(PumpTempValues.OBJECT_BASE, PumpBaseType.Event.getCode(), - PumpEvents.PUMP_EVENT_SELF_TEST)); + PumpEvents.PUMP_EVENT_SELF_TEST, false)); this.dvw.put( "JournalEntryPumpLowBattery", new PumpTempValues(PumpTempValues.OBJECT_BASE, PumpBaseType.Alarm.getCode(), PumpAlarms.BatteryLow - .getCode())); + .getCode(), false)); this.dvw.put( "JournalEntryPumpLowReservoir", new PumpTempValues(PumpTempValues.OBJECT_BASE, PumpBaseType.Alarm.getCode(), PumpAlarms.CartridgeLow - .getCode())); + .getCode(), false)); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <and...@us...> - 2014-12-01 16:08:15
|
Revision: 1341 http://sourceforge.net/p/ggc/code/1341 Author: andyrozman Date: 2014-12-01 16:08:07 +0000 (Mon, 01 Dec 2014) Log Message: ----------- Minor code fixes - because of enums and extended DeviceTempValues Modified Paths: -------------- trunk/ggc-cgm/src/ggc/cgms/data/CGMSTempValues.java trunk/ggc-desktop/src/ggc/gui/MainFrame.java trunk/ggc-desktop/src/ggc/gui/dialogs/DailyRowDialog.java trunk/ggc-desktop/src/ggc/gui/panels/info/DeviceInfoPanel.java trunk/ggc-desktop/src/ggc/gui/panels/info/GeneralInfoPanel.java trunk/ggc-desktop/src/ggc/gui/panels/info/PlugInsInfoPanel.java trunk/ggc-desktop/src/ggc/gui/panels/info/StatisticsInfoPanel.java Modified: trunk/ggc-cgm/src/ggc/cgms/data/CGMSTempValues.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/CGMSTempValues.java 2014-11-30 20:43:05 UTC (rev 1340) +++ trunk/ggc-cgm/src/ggc/cgms/data/CGMSTempValues.java 2014-12-01 16:08:07 UTC (rev 1341) @@ -53,9 +53,9 @@ * @param _sub_type * @param _value_template */ - public CGMSTempValues(int _object_type, int _base_type, int _sub_type, String _value_template) + public CGMSTempValues(int _object_type, int _base_type, int _sub_type, String _value_template, Boolean isNumericValue) { - super(_object_type, _base_type, _sub_type, _value_template); + super(_object_type, _base_type, _sub_type, _value_template, isNumericValue); } /** Modified: trunk/ggc-desktop/src/ggc/gui/MainFrame.java =================================================================== --- trunk/ggc-desktop/src/ggc/gui/MainFrame.java 2014-11-30 20:43:05 UTC (rev 1340) +++ trunk/ggc-desktop/src/ggc/gui/MainFrame.java 2014-12-01 16:08:07 UTC (rev 1341) @@ -6,6 +6,7 @@ import ggc.core.db.GGCDbLoader; import ggc.core.db.tool.transfer.BackupDialog; import ggc.core.db.tool.transfer.RestoreGGCSelectorDialog; +import ggc.core.plugins.GGCPluginType; import ggc.core.util.DataAccess; import ggc.core.util.RefreshInfo; import ggc.gui.dialogs.AboutGGCDialog; @@ -294,8 +295,8 @@ { // System.out.println("SW: " + m_da.getSoftwareMode()); - if (m_da.getSoftwareMode() == -1) - return; + //if (m_da.getSoftwareMode() == -1) + // return; String title_full = " GGC - GNU Gluco Control (" + GGC.full_version + ")"; @@ -1091,19 +1092,19 @@ if (command.startsWith("meters_")) { - m_da.getPlugIn(DataAccess.PLUGIN_METERS).actionPerformed(e); + m_da.getPlugIn(GGCPluginType.METER_TOOL_PLUGIN).actionPerformed(e); } else if (command.startsWith("pumps_") || command.startsWith("report_print_pump")) { - m_da.getPlugIn(DataAccess.PLUGIN_PUMPS).actionPerformed(e); + m_da.getPlugIn(GGCPluginType.PUMP_TOOL_PLUGIN).actionPerformed(e); } else if (command.startsWith("cgms_")) { - m_da.getPlugIn(DataAccess.PLUGIN_CGMS).actionPerformed(e); + m_da.getPlugIn(GGCPluginType.CGMS_TOOL_PLUGIN).actionPerformed(e); } else if (command.startsWith("food_")) { - m_da.getPlugIn(DataAccess.PLUGIN_NUTRITION).actionPerformed(e); + m_da.getPlugIn(GGCPluginType.NUTRITION_TOOL_PLUGIN).actionPerformed(e); } else if (command.equals("file_quit")) { @@ -1455,7 +1456,7 @@ this.menuBar.add(this.menus.get("MENU_FILE")); this.menuBar.add(this.menus.get("MENU_PEN")); - JMenu menu = getPlugInMenu(DataAccess.PLUGIN_NUTRITION); + JMenu menu = getPlugInMenu(GGCPluginType.NUTRITION_TOOL_PLUGIN); if (menu != null) { @@ -1490,9 +1491,9 @@ this.menuBar.add(this.menus.get("MENU_PRINT")); - String[] keys = { DataAccess.PLUGIN_METERS, DataAccess.PLUGIN_PUMPS, DataAccess.PLUGIN_CGMS, }; + GGCPluginType[] keys = { GGCPluginType.METER_TOOL_PLUGIN, GGCPluginType.PUMP_TOOL_PLUGIN, GGCPluginType.CGMS_TOOL_PLUGIN, }; - for (String key : keys) + for (GGCPluginType key : keys) { if (m_da.isPluginAvailable(key)) { @@ -1520,7 +1521,7 @@ this.refreshMenus(false); } - private JMenu getPlugInMenu(String name) + private JMenu getPlugInMenu(GGCPluginType name) { if (m_da.isPluginAvailable(name)) { Modified: trunk/ggc-desktop/src/ggc/gui/dialogs/DailyRowDialog.java =================================================================== --- trunk/ggc-desktop/src/ggc/gui/dialogs/DailyRowDialog.java 2014-11-30 20:43:05 UTC (rev 1340) +++ trunk/ggc-desktop/src/ggc/gui/dialogs/DailyRowDialog.java 2014-12-01 16:08:07 UTC (rev 1341) @@ -4,6 +4,7 @@ import ggc.core.data.DailyValues; import ggc.core.data.DailyValuesRow; import ggc.core.data.ExtendedDailyValue; +import ggc.core.plugins.GGCPluginType; import ggc.core.plugins.NutriPlugIn; import ggc.core.util.DataAccess; import ggc.core.util.GGCProperties; @@ -626,9 +627,9 @@ if (m_da.isValueSet(this.m_dailyValuesRow.getMealsIds())) { - PlugInClient pc = DataAccess.getInstance().getPlugIn(DataAccess.PLUGIN_NUTRITION); + PlugInClient pc = DataAccess.getInstance().getPlugIn(GGCPluginType.NUTRITION_TOOL_PLUGIN); - if (pc.isActiveWarning(true, this)) + if ((pc!=null) && (pc.isActiveWarning(true, this))) { Object[] data = pc.executeCommandDialogReturn(this, NutriPlugIn.COMMAND_RECALCULATE_CH, this.m_dailyValuesRow.getMealsIds()); @@ -677,9 +678,9 @@ private void commandEditFood() { - PlugInClient pc = DataAccess.getInstance().getPlugIn(DataAccess.PLUGIN_NUTRITION); + PlugInClient pc = DataAccess.getInstance().getPlugIn(GGCPluginType.NUTRITION_TOOL_PLUGIN); - if (pc.isActiveWarning(true, this)) + if ((pc!=null) && (pc.isActiveWarning(true, this))) { Object[] data = pc.executeCommandDialogReturn(this, NutriPlugIn.COMMAND_DB_FOOD_SELECTOR, this.m_dailyValuesRow.getMealsIds()); Modified: trunk/ggc-desktop/src/ggc/gui/panels/info/DeviceInfoPanel.java =================================================================== --- trunk/ggc-desktop/src/ggc/gui/panels/info/DeviceInfoPanel.java 2014-11-30 20:43:05 UTC (rev 1340) +++ trunk/ggc-desktop/src/ggc/gui/panels/info/DeviceInfoPanel.java 2014-12-01 16:08:07 UTC (rev 1341) @@ -1,5 +1,6 @@ package ggc.gui.panels.info; +import ggc.core.plugins.GGCPluginType; import ggc.core.util.DataAccess; import java.awt.BorderLayout; @@ -127,12 +128,18 @@ @Override public void doRefresh() { - if (m_da.getPlugIn(DataAccess.PLUGIN_METERS) == null) - return; - - lblMeter.setText(getDeviceInfo(m_da.getPlugIn(DataAccess.PLUGIN_METERS))); - lblPump.setText(getDeviceInfo(m_da.getPlugIn(DataAccess.PLUGIN_PUMPS))); - lblCgms.setText(getDeviceInfo(m_da.getPlugIn(DataAccess.PLUGIN_CGMS))); + if (m_da.isPluginAvailable(GGCPluginType.METER_TOOL_PLUGIN)) + { + lblMeter.setText(getDeviceInfo(m_da.getPlugIn(GGCPluginType.METER_TOOL_PLUGIN))); + } + if (m_da.isPluginAvailable(GGCPluginType.PUMP_TOOL_PLUGIN)) + { + lblPump.setText(getDeviceInfo(m_da.getPlugIn(GGCPluginType.PUMP_TOOL_PLUGIN))); + } + if (m_da.isPluginAvailable(GGCPluginType.CGMS_TOOL_PLUGIN)) + { + lblCgms.setText(getDeviceInfo(m_da.getPlugIn(GGCPluginType.CGMS_TOOL_PLUGIN))); + } } /** Modified: trunk/ggc-desktop/src/ggc/gui/panels/info/GeneralInfoPanel.java =================================================================== --- trunk/ggc-desktop/src/ggc/gui/panels/info/GeneralInfoPanel.java 2014-11-30 20:43:05 UTC (rev 1340) +++ trunk/ggc-desktop/src/ggc/gui/panels/info/GeneralInfoPanel.java 2014-12-01 16:08:07 UTC (rev 1341) @@ -8,6 +8,7 @@ import javax.swing.JLabel; +import ggc.core.util.GGCSoftwareMode; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -50,7 +51,7 @@ // private JLabel lblMeter = new JLabel(); // private JLabel lblPumps = new JLabel(); // private JLabel lblCGMS = new JLabel(); - private int current_mode = -1; + private GGCSoftwareMode currentMode = null; private Hashtable<String, JLabel> list_elems; private static Log log = LogFactory.getLog(GeneralInfoPanel.class); @@ -101,31 +102,31 @@ // add(new JLabel()); // add(new JLabel()); - changeMode(DataAccess.GGC_MODE_PEN_INJECTION); + changeMode(GGCSoftwareMode.PEN_INJECTION_MODE); } - private void changeMode(int new_mode) + private void changeMode(GGCSoftwareMode newMode) { - if (this.current_mode == new_mode) + if (newMode.equals(this.currentMode)) return; this.removeAll(); - this.current_mode = new_mode; + this.currentMode = newMode; String[] sel_elements = null; - if (new_mode == DataAccess.GGC_MODE_PEN_INJECTION) + if (newMode.equals(GGCSoftwareMode.PEN_INJECTION_MODE)) { sel_elements = this.pen_mode; } - else if (new_mode == DataAccess.GGC_MODE_PUMP) + else if (newMode.equals(GGCSoftwareMode.PUMP_MODE)) { sel_elements = this.pump_mode; } else { - log.warn("Error setting mode in General Panel: " + new_mode); + log.warn("Error setting mode in General Panel: " + newMode); return; } Modified: trunk/ggc-desktop/src/ggc/gui/panels/info/PlugInsInfoPanel.java =================================================================== --- trunk/ggc-desktop/src/ggc/gui/panels/info/PlugInsInfoPanel.java 2014-11-30 20:43:05 UTC (rev 1340) +++ trunk/ggc-desktop/src/ggc/gui/panels/info/PlugInsInfoPanel.java 2014-12-01 16:08:07 UTC (rev 1341) @@ -1,5 +1,6 @@ package ggc.gui.panels.info; +import ggc.core.plugins.GGCPluginType; import ggc.core.util.DataAccess; import java.awt.BorderLayout; @@ -112,18 +113,25 @@ @Override public void refreshInfo() { - if (m_da.getPlugIn(DataAccess.PLUGIN_METERS) == null) - return; + if (m_da.isPluginAvailable(GGCPluginType.METER_TOOL_PLUGIN)) + { + lblMeter.setText(m_da.getPlugIn(GGCPluginType.METER_TOOL_PLUGIN).getShortStatus()); + } - lblMeter.setText(m_da.getPlugIn(DataAccess.PLUGIN_METERS).getShortStatus()); - lblPump.setText(m_da.getPlugIn(DataAccess.PLUGIN_PUMPS).getShortStatus()); - lblCgms.setText(m_da.getPlugIn(DataAccess.PLUGIN_CGMS).getShortStatus()); - lblNutri.setText(m_da.getPlugIn(DataAccess.PLUGIN_NUTRITION).getShortStatus()); + if (m_da.isPluginAvailable(GGCPluginType.PUMP_TOOL_PLUGIN)) + { + lblPump.setText(m_da.getPlugIn(GGCPluginType.PUMP_TOOL_PLUGIN).getShortStatus()); + } - // lblMeter.setText(getDeviceInfo(m_da.getPlugIn(DataAccess.PLUGIN_METERS))); - // lblPump.setText(getDeviceInfo(m_da.getPlugIn(DataAccess.PLUGIN_PUMPS))); - // lblCgms.setText(getDeviceInfo(m_da.getPlugIn(DataAccess.PLUGIN_CGMS))); - // m_da.getPlugIn(key) + if (m_da.isPluginAvailable(GGCPluginType.CGMS_TOOL_PLUGIN)) + { + lblCgms.setText(m_da.getPlugIn(GGCPluginType.CGMS_TOOL_PLUGIN).getShortStatus()); + } + + if (m_da.isPluginAvailable(GGCPluginType.NUTRITION_TOOL_PLUGIN)) + { + lblCgms.setText(m_da.getPlugIn(GGCPluginType.NUTRITION_TOOL_PLUGIN).getShortStatus()); + } } /** Modified: trunk/ggc-desktop/src/ggc/gui/panels/info/StatisticsInfoPanel.java =================================================================== --- trunk/ggc-desktop/src/ggc/gui/panels/info/StatisticsInfoPanel.java 2014-11-30 20:43:05 UTC (rev 1340) +++ trunk/ggc-desktop/src/ggc/gui/panels/info/StatisticsInfoPanel.java 2014-12-01 16:08:07 UTC (rev 1341) @@ -1,6 +1,7 @@ package ggc.gui.panels.info; import ggc.core.data.CollectionValues; +import ggc.core.plugins.GGCPluginType; import ggc.core.util.DataAccess; import java.awt.GridLayout; @@ -15,6 +16,7 @@ import javax.swing.SwingConstants; import javax.swing.border.TitledBorder; +import ggc.core.util.GGCSoftwareMode; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -200,7 +202,7 @@ // System.out.println("Statictics::doRefresh()"); - if (m_da.getSoftwareMode() == DataAccess.GGC_MODE_PEN_INJECTION) + if (m_da.getSoftwareMode() == GGCSoftwareMode.PEN_INJECTION_MODE) { log.debug("Statistics - Pen/Injection Mode"); @@ -237,7 +239,7 @@ gcs[0] = startDate; gcs[1] = endDate; - Object obj = m_da.getPlugIn(DataAccess.PLUGIN_PUMPS).getReturnObject(100, gcs); + Object obj = m_da.getPlugIn(GGCPluginType.PUMP_TOOL_PLUGIN).getReturnObject(100, gcs); if (obj != null) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <and...@us...> - 2015-02-03 15:39:04
|
Revision: 1342 http://sourceforge.net/p/ggc/code/1342 Author: andyrozman Date: 2015-02-03 15:38:48 +0000 (Tue, 03 Feb 2015) Log Message: ----------- - Animas Imported into Pump,CGMS and Base - Some minor changes in all modules - there are some errors in this checkin Modified Paths: -------------- trunk/ggc-cgm/doc/Changelog trunk/ggc-cgm/doc/TO-DO_CGMTool.txt trunk/ggc-cgm/src/GGC_CGMSTool_en.properties trunk/ggc-cgm/src/GGC_CGMSTool_si.properties trunk/ggc-cgm/src/ggc/cgms/data/CGMSDataHandler.java trunk/ggc-cgm/src/ggc/cgms/data/CGMSTempValues.java trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesSubEntry.java trunk/ggc-cgm/src/ggc/cgms/data/db/CGMSData.java trunk/ggc-cgm/src/ggc/cgms/data/db/CGMSDataExtended.java trunk/ggc-cgm/src/ggc/cgms/data/db/GGC_CGMSDb.java trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSAlarms.java trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSBaseDataType.java trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSDefsAbstract.java trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSErrors.java trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSEvents.java trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSTrendArrow.java trunk/ggc-cgm/src/ggc/cgms/device/AbstractCGMS.java trunk/ggc-cgm/src/ggc/cgms/device/AbstractSerialCGMS.java trunk/ggc-cgm/src/ggc/cgms/device/CGMSInterface.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/DexcomCGMS.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/DexcomG4.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/DexcomSeven.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/file/FRC_DexcomXml_DM3.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/DexcomCommand.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/DexcomDevice.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/DexcomDeviceProgressReport.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/DexcomDeviceReader.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/ReceiverApiType.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/data/CommandPacket.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/data/CommandParameter.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/data/ReceiverDownloadData.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/data/ReceiverDownloadDataConfig.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/data/output/GGCOutputParser.java trunk/ggc-cgm/src/ggc/cgms/device/minimed/MiniMedCGMS.java trunk/ggc-cgm/src/ggc/cgms/device/minimed/file/MinimedCareLinkCGMS.java trunk/ggc-cgm/src/ggc/cgms/device/minimed/file/MinimedCareLinkCGMSData.java trunk/ggc-cgm/src/ggc/cgms/gui/viewer/CGMSDataDialog.java trunk/ggc-cgm/src/ggc/cgms/gui/viewer/CGMSDataTableModel.java trunk/ggc-cgm/src/ggc/cgms/manager/CGMSDevicesIds.java trunk/ggc-cgm/src/ggc/cgms/plugin/BackupRestoreCGMSHandler.java trunk/ggc-cgm/src/ggc/cgms/plugin/CGMSPlugInServer.java trunk/ggc-cgm/src/ggc/cgms/test/CGMSConsoleTester.java trunk/ggc-cgm/src/ggc/cgms/util/CGMSUtil.java trunk/ggc-cgm/src/ggc/cgms/util/DataAccessCGMS.java trunk/ggc-cgm/src/html/cgms/dexcom.html trunk/ggc-cgm/src/html/cgms/minimed.html trunk/ggc-core/src/ggc/core/db/GGCDbLoader.java trunk/ggc-core/src/ggc/core/db/hibernate/pump/PumpDataExtendedH.java trunk/ggc-core/src/ggc/core/plugins/GGCPluginType.java trunk/ggc-core/src/ggc/core/util/DataAccess.java trunk/ggc-plugin_base/pom.xml trunk/ggc-plugin_base/src/GGCPlugin_de.properties trunk/ggc-plugin_base/src/GGCPlugin_en.properties trunk/ggc-plugin_base/src/GGCPlugin_fr.properties trunk/ggc-plugin_base/src/GGCPlugin_si.properties trunk/ggc-plugin_base/src/ggc/plugin/DevicePlugInServer.java trunk/ggc-plugin_base/src/ggc/plugin/cfg/CommunicationPortSelector.java trunk/ggc-plugin_base/src/ggc/plugin/cfg/DeviceConfigurationDialog.java trunk/ggc-plugin_base/src/ggc/plugin/cfg/DeviceSelectorDialog.java trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceValuesConfigTableModel.java trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceValuesTable.java trunk/ggc-plugin_base/src/ggc/plugin/data/progress/ProgressReportInterface.java trunk/ggc-plugin_base/src/ggc/plugin/device/DeviceAbstract.java trunk/ggc-plugin_base/src/ggc/plugin/device/DeviceIdentification.java trunk/ggc-plugin_base/src/ggc/plugin/device/DeviceInterface.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/abbott/CoPilot.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/accuchek/AccuChekSmartPix.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/accuchek/AccuChekSmartPixReaderV2.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/accuchek/AccuChekSmartPixSpecialConfig.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/MinimedDevice.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/MinimedDeviceUtil.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/comm/MinimedComm_ComLink.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/file/MinimedCareLink.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/file/MinimedCareLinkData.java trunk/ggc-plugin_base/src/ggc/plugin/graph/PlugInGraphDialog.java trunk/ggc-plugin_base/src/ggc/plugin/graph/data/GraphValuesCollection.java trunk/ggc-plugin_base/src/ggc/plugin/gui/DeviceDisplayConfigDialog.java trunk/ggc-plugin_base/src/ggc/plugin/gui/DeviceDisplayDataDialog.java trunk/ggc-plugin_base/src/ggc/plugin/gui/DeviceExportDialog.java trunk/ggc-plugin_base/src/ggc/plugin/gui/DeviceInstructionsDialog.java trunk/ggc-plugin_base/src/ggc/plugin/gui/DevicePreInitRunner.java trunk/ggc-plugin_base/src/ggc/plugin/gui/DeviceReaderRunner.java trunk/ggc-plugin_base/src/ggc/plugin/gui/file/ImportFileSelectorDialog.java trunk/ggc-plugin_base/src/ggc/plugin/list/BaseListBrowserPanel.java trunk/ggc-plugin_base/src/ggc/plugin/list/BaseListDialog.java trunk/ggc-plugin_base/src/ggc/plugin/list/BaseListMainPanel.java trunk/ggc-plugin_base/src/ggc/plugin/list/BaseListRenderer.java trunk/ggc-plugin_base/src/ggc/plugin/manager/DeviceImplementationStatus.java trunk/ggc-plugin_base/src/ggc/plugin/manager/company/AbstractDeviceCompany.java trunk/ggc-plugin_base/src/ggc/plugin/output/AbstractOutputWriter.java trunk/ggc-plugin_base/src/ggc/plugin/output/ConsoleOutputWriter.java trunk/ggc-plugin_base/src/ggc/plugin/output/DummyOutputWriter.java trunk/ggc-plugin_base/src/ggc/plugin/output/FileOutputWriter.java trunk/ggc-plugin_base/src/ggc/plugin/output/GGCFileOutputWriter.java trunk/ggc-plugin_base/src/ggc/plugin/output/OutputWriter.java trunk/ggc-plugin_base/src/ggc/plugin/protocol/BlueToothProtocol.java trunk/ggc-plugin_base/src/ggc/plugin/protocol/SerialProtocol.java trunk/ggc-plugin_base/src/ggc/plugin/protocol/XmlProtocol.java trunk/ggc-plugin_base/src/ggc/plugin/protocol/XmlProtocolFile.java trunk/ggc-plugin_base/src/ggc/plugin/util/DataAccessPlugInBase.java trunk/ggc-plugin_base/src/ggc/plugin/util/I18nControlPlugin.java trunk/ggc-plugin_base/src/ggc/plugin/util/PlugInDeviceUtil.java trunk/ggc-pump/docs/BUGS.txt trunk/ggc-pump/docs/Changelog trunk/ggc-pump/docs/TO-DO_PumpTool.txt trunk/ggc-pump/pom.xml trunk/ggc-pump/src/GGCPumpTool_de.properties trunk/ggc-pump/src/GGCPumpTool_en.properties trunk/ggc-pump/src/GGCPumpTool_si.properties trunk/ggc-pump/src/ggc/pump/data/PumpDailyStatistics.java trunk/ggc-pump/src/ggc/pump/data/PumpValuesEntry.java trunk/ggc-pump/src/ggc/pump/data/PumpValuesEntryConfig.java trunk/ggc-pump/src/ggc/pump/data/PumpValuesEntryExt.java trunk/ggc-pump/src/ggc/pump/data/PumpValuesEntryProfile.java trunk/ggc-pump/src/ggc/pump/data/PumpValuesHour.java trunk/ggc-pump/src/ggc/pump/data/PumpValuesHourProcessor.java trunk/ggc-pump/src/ggc/pump/data/PumpValuesTableModel.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpAdditionalDataType.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpAlarms.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpBasalSubType.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpBaseType.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpBolusType.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpErrors.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpEvents.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpReport.java trunk/ggc-pump/src/ggc/pump/data/graph/GraphViewDailyPump.java trunk/ggc-pump/src/ggc/pump/device/AbstractBlueToothPump.java trunk/ggc-pump/src/ggc/pump/device/AbstractPump.java trunk/ggc-pump/src/ggc/pump/device/AbstractSerialPump.java trunk/ggc-pump/src/ggc/pump/device/AbstractXmlPump.java trunk/ggc-pump/src/ggc/pump/device/DummyPump.java trunk/ggc-pump/src/ggc/pump/device/PumpInterface.java trunk/ggc-pump/src/ggc/pump/device/accuchek/AccuChekSmartPixPump.java trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR1200.java trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR1250.java trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR2020.java trunk/ggc-pump/src/ggc/pump/device/animas/AnimasPump.java trunk/ggc-pump/src/ggc/pump/device/animas/FRC_EZManager_v2.java trunk/ggc-pump/src/ggc/pump/device/cozmo/FRC_CoPilotXMLPump.java trunk/ggc-pump/src/ggc/pump/device/dana/DanaDiabecare_III_R.java trunk/ggc-pump/src/ggc/pump/device/dana/DanaPump.java trunk/ggc-pump/src/ggc/pump/device/deltec/DeltecPump.java trunk/ggc-pump/src/ggc/pump/device/insulet/InsuletPump.java trunk/ggc-pump/src/ggc/pump/device/minimed/MinimedPump.java trunk/ggc-pump/src/ggc/pump/device/minimed/MinimedPumpDevice.java trunk/ggc-pump/src/ggc/pump/device/minimed/MinimedSPMPump.java trunk/ggc-pump/src/ggc/pump/device/minimed/PumpSimple.java trunk/ggc-pump/src/ggc/pump/device/minimed/file/MinimedCareLinkPump.java trunk/ggc-pump/src/ggc/pump/device/minimed/file/MinimedCareLinkPumpData.java trunk/ggc-pump/src/ggc/pump/gui/PumpPrintDialog.java trunk/ggc-pump/src/ggc/pump/gui/bre/BasalRateEstimator.java trunk/ggc-pump/src/ggc/pump/gui/manual/PumpDataAdditionalWizardOne.java trunk/ggc-pump/src/ggc/pump/gui/manual/PumpDataAdditionalWizardTwo.java trunk/ggc-pump/src/ggc/pump/gui/manual/PumpDataRowDialog.java trunk/ggc-pump/src/ggc/pump/gui/manual/PumpDataTableModel.java trunk/ggc-pump/src/ggc/pump/gui/manual/PumpDataTypeComponent.java trunk/ggc-pump/src/ggc/pump/gui/profile/ProfileEditor.java trunk/ggc-pump/src/ggc/pump/gui/profile/ProfileEntryDialog.java trunk/ggc-pump/src/ggc/pump/gui/profile/ProfileSelectorPump.java trunk/ggc-pump/src/ggc/pump/manager/PumpDevicesIds.java trunk/ggc-pump/src/ggc/pump/manager/company/AbstractPumpDeviceCompany.java trunk/ggc-pump/src/ggc/pump/manager/company/Animas.java trunk/ggc-pump/src/ggc/pump/manager/company/GenericPumpDevice.java trunk/ggc-pump/src/ggc/pump/plugin/BackupRestorePumpHandler.java trunk/ggc-pump/src/ggc/pump/plugin/PumpPlugInServer.java trunk/ggc-pump/src/ggc/pump/print/PrintPumpBasalCheckSheet.java trunk/ggc-pump/src/ggc/pump/print/PrintPumpDataBase.java trunk/ggc-pump/src/ggc/pump/print/PrintPumpDataDailyTimeSheet.java trunk/ggc-pump/src/ggc/pump/print/PrintPumpDataExt.java trunk/ggc-pump/src/ggc/pump/print/PrintPumpDataProfiles.java trunk/ggc-pump/src/ggc/pump/test/DanaPumpTester.java trunk/ggc-pump/src/ggc/pump/test/MinimedConsoleTester.java trunk/ggc-pump/src/ggc/pump/test/PumpConsoleTester.java trunk/ggc-pump/src/ggc/pump/test/hid/HIDAPITest.java trunk/ggc-pump/src/ggc/pump/test/hid/HidApplet.java trunk/ggc-pump/src/ggc/pump/util/DataAccessPump.java trunk/ggc-pump/src/html/pumps/animas.html trunk/ggc-pump/src/html/pumps/minimed.html trunk/ggc-pump/src/html/pumps/roche.html trunk/ggc-pump/src/html/pumps/sooil.html Added Paths: ----------- trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSObject.java trunk/ggc-cgm/src/ggc/cgms/device/animas/ trunk/ggc-cgm/src/ggc/cgms/device/animas/AnimasCGMS.java trunk/ggc-cgm/src/ggc/cgms/device/animas/OneTouchVibe.java trunk/ggc-cgm/src/ggc/cgms/device/animas/TODO_animas_CGMS.txt trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/ trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/AnimasCGMSDeviceReader.java trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/converter/ trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/converter/AnimasDexcomDataConverter.java trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/data/ trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/data/AnimasCGMSDataWriter.java trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/data/AnimasCGMSDeviceData.java trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/data/dto/ trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/data/dto/AnimasDexcomHistoryEntry.java trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/data/dto/AnimasDexcomWarning.java trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/data/dto/CGMSSettings.java trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/data/enums/ trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/data/enums/AnimasCGMSWarningType.java trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/handler/ trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/handler/AnimasDexcomDataHandler.java trunk/ggc-cgm/src/html/cgms/pics/dx_dexcomG4.jpg trunk/ggc-cgm/src/icons/cgms/dx_dexcomG4.jpg trunk/ggc-core/src/ggc/core/util/GGCI18nControl.java trunk/ggc-core/src/ggc/core/util/GGCI18nControlContext.java trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceValueConfigEntry.java trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceValueConfigEntryInterface.java trunk/ggc-plugin_base/src/ggc/plugin/data/enums/ trunk/ggc-plugin_base/src/ggc/plugin/data/enums/ClockModeType.java trunk/ggc-plugin_base/src/ggc/plugin/data/enums/GlucoseUnitType.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/ trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/AnimasDeviceProgressReport.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/AnimasDeviceReader.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/comm/ trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/comm/AnimasCommProtocolAbstract.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/comm/AnimasCommProtocolV1.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/comm/AnimasCommProtocolV2.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/converter/ trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/converter/AnimasAbstractDataConverter.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/data/ trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/data/AnimasDeviceData.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/data/AnimasDevicePacket.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/data/AnimasPreparedDataEntry.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/data/dto/ trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/data/dto/PumpConnectorInfo.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/data/dto/PumpInfo.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/data/dto/SettingEntry.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/enums/ trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/enums/AnimasDataType.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/enums/AnimasDeviceCommand.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/enums/AnimasDeviceType.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/enums/AnimasImplementationType.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/enums/AnimasSettingSubType.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/enums/AnimasSoundType.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/enums/AnimasTransferType.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/enums/advsett/ trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/enums/advsett/BolusSpeed.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/enums/advsett/BolusStepSize.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/enums/advsett/Language.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/enums/advsett/OcclusionSensitivity.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/enums/advsett/SoundValueType.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/handler/ trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/handler/AbstractDeviceDataHandler.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/handler/AnimasDataConverter.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/handler/AnimasDataWriter.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/util/ trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/util/AnimasException.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/util/AnimasExceptionType.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/util/AnimasUtils.java trunk/ggc-plugin_base/src/ggc/plugin/output/OutputWriterConfigData.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpConfigurationOld.java trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR1000.java trunk/ggc-pump/src/ggc/pump/device/animas/OneTouchPing.java trunk/ggc-pump/src/ggc/pump/device/animas/OneTouchVibe.java trunk/ggc-pump/src/ggc/pump/device/animas/TODO_animas.txt trunk/ggc-pump/src/ggc/pump/device/animas/impl/ trunk/ggc-pump/src/ggc/pump/device/animas/impl/AnimasPumpDeviceReader.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/converter/ trunk/ggc-pump/src/ggc/pump/device/animas/impl/converter/AnimasBaseDataConverter.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/data/ trunk/ggc-pump/src/ggc/pump/device/animas/impl/data/AnimasPumpDeviceData.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/data/dto/ trunk/ggc-pump/src/ggc/pump/device/animas/impl/data/dto/BasalLogDay.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/data/dto/BasalLogEntry.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/data/dto/BasalProfile.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/data/dto/BasalProfileEntry.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/data/dto/BolusEntry.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/data/dto/BolusExtEntry.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/data/dto/PumpSettings.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/data/dto/SettingTimeValueEntry.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/handler/ trunk/ggc-pump/src/ggc/pump/device/animas/impl/handler/AnimasBaseDataHandler.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/handler/AnimasPumpDataWriter.java trunk/ggc-pump/src/ggc/pump/test/TestAnimas.java trunk/ggc-pump/src/html/pumps/pics/ani_vibe.gif trunk/ggc-pump/src/html/pumps/pics/roc_combo.jpg trunk/ggc-pump/src/icons/pumps/an_vibe.gif Removed Paths: ------------- trunk/ggc-cgm/src/html/cgms/.abbott.html trunk/ggc-cgm/src/html/cgms/.dexcom.html trunk/ggc-cgm/src/html/cgms/.minimed.html trunk/ggc-pump/src/ggc/pump/data/defs/PumpConfiguration.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpDataType.java Modified: trunk/ggc-cgm/doc/Changelog =================================================================== --- trunk/ggc-cgm/doc/Changelog 2014-12-01 16:08:07 UTC (rev 1341) +++ trunk/ggc-cgm/doc/Changelog 2015-02-03 15:38:48 UTC (rev 1342) @@ -2,6 +2,10 @@ Changes file for GGC CGM Tool ============================== +1.2.0 [4.1.2015] + * some minor changes all around + * updated Lists + 1.1 [30.8.2014] * Added Dexcom G4 device * changed some classes to enums Modified: trunk/ggc-cgm/doc/TO-DO_CGMTool.txt =================================================================== --- trunk/ggc-cgm/doc/TO-DO_CGMTool.txt 2014-12-01 16:08:07 UTC (rev 1341) +++ trunk/ggc-cgm/doc/TO-DO_CGMTool.txt 2015-02-03 15:38:48 UTC (rev 1342) @@ -20,8 +20,8 @@ * Graphs (0.6) * Specific CGM models implementations: o Abbott - no support at this time - o Dexcom - no reply yet - o MiniMed (2009) - protocol not public (use Carelink export file) + o Dexcom - Dexcom 7 not supported + o MiniMed (2015-16) - protocol not public (use Carelink export file) =============================================================================== @@ -33,9 +33,12 @@ * Output types: o Console and file output (0.5) o GGC Db Output (for manual import) (0.5) - o GGC Output (GUI integration) (0.5) + o GGC Output (GUI integration) (0.5) + * Specific CGM models implementations: + o Dexcom G4 + =============================================================================== DISCAREDED: Modified: trunk/ggc-cgm/src/GGC_CGMSTool_en.properties =================================================================== --- trunk/ggc-cgm/src/GGC_CGMSTool_en.properties 2014-12-01 16:08:07 UTC (rev 1341) +++ trunk/ggc-cgm/src/GGC_CGMSTool_en.properties 2015-02-03 15:38:48 UTC (rev 1342) @@ -83,14 +83,13 @@ SELECTOR_DEVICE=%s Device Selector - # # !G! Instructions Dialog [1] # OOPS_DEVICE_NOT_CONFIGURED=Oops ! You forgot to configure your %s\nand currently there is no %s configured\nand/or selected. Please visit configuration\nand configure your %s. CONFIGURED_DEVICE_INSTRUCTIONS=Configured %s and Instructions DEVICE_ICON=%s picture -STATUS_READER_ERROR=Internal %s (or port) error +STATUS_READER_ERROR=Internal %s (or port) error ERROR_CONTACTING_DEVICE=We had problem contacting CGMS device.\nPlease recheck communication port settings\n(some of cables, can change their address,\nwhen reconnected). Run configuration again\nand problem should be solved!\n DEVICE_INFO=%s Info @@ -118,7 +117,7 @@ # !G! List [1] # DEVICE_LIST_WEB=CGMS List -DEVICE_LIST_WEB_DESC=<html>Pumps list contains most of Pumps (even most of models). For each of this pumps, there is configuration entry, which contains only basic settings for device (profile names, TBR settings, etc). Devices which support download have that shown in selector (DL column). Pumps in list are color coded, and color determines status of devices of selected company. Color coding description is shown at bottom of this page.<br></html> +DEVICE_LIST_WEB_DESC=<html>CGMS list contains most of CGMS (even most of models). For each of this CGMS, there is configuration entry, which contains some basic settings for device. Devices which support download have that shown in selector (DL column). CGMSes in list are color coded, and color determines status of devices of selected company. Color coding description is shown at bottom of this page.<br></html> # @@ -130,6 +129,8 @@ # # !G! CGMS Instructions [1] # +INSTRUCTIONS_DEXCOM=<html>Instructions for CGMS reading:<br><ul><li>We currently support only import of Dexcom 3<br>application export files (TXT or XML).</li><li>Reading from device, might or might not be<br>supported in future (depending on company <br>support).</li><li>Select correct file and file type in next<br>screens and import will start.</li></ul></html> +DEXCOM_INSTRUCTIONS_DL_SERIAL_USB=<html>Instructions for CGMS reading:<br><li>Attach Dexcom device to computer via USB.</li><li>Click on "Start Download"</li></html> # @@ -187,18 +188,48 @@ CGMS_EXT_INSULIN=Insulin CGMS_EXT_HEALTH=Health CGMS_EXT_EXERCISE=Exercise +HEALTH_DESCRIPTION=Health - %s # -# !G! Meter Instructions [1] +# !G! CGMS Events [2] # -INSTRUCTIONS_DEXCOM=<html>Instructions for CGMS reading:<br><ul><li>We currently support only import of Dexcom 3<br>application export files (TXT or XML).</li><li>Reading from device, might or might not be<br>supported in future (depending on company <br>support).</li><li>Select correct file and file type in next<br>screens and import will start.</li></ul></html> +EVENT_CONTROLLER_POWER_DOWN=Controller Power Down +EVENT_CONTROLLER_POWER_UP=Controller Power Down +EVENT_SENSOR_CONNECTION_LOST=Sensor Connection Lost +EVENT_START_SENSOR=Start Sensor +EVENT_STOP_SENSOR=End Sensor +EVENT_CALIBRATION_WITH_METER=Calibration With Meter +EVENT_WAITING_FOR_CALIBRATION=Waiting for Calibration +EVENT_SET_CALIBRATION_FACTOR=Set Calibration Factor +EVENT_SENSOR_PRE_INIT=Sensor Pre-Init +EVENT_SENSOR_INIT=Sensor Init +EVENT_SENSOR_BURST=Sensor Burst +EVENT_SENSOR_WEAK_SIGNAL=Sensor Weak Signal +EVENT_SENSOR_LOW_BG=Sensor Low BG +EVENT_SENSOR_CALIBRATION_WITH_METER_NOW=Sensor Calibration With Meter Now +# +# !G! CGMS Errors [2] +# +ERROR_SENSOR_CALIB_ERROR=Sensor Calibration Error +ERROR_SENSOR_END_OF_LIFE=Sensor End Of Life +ERROR_SENSOR_BAD=Sensor Bad # -# New Keywords (they are grouped), this need to be copied to right locations, after release +# !G! CGMS Alarms [2] # -DEXCOM_INSTRUCTIONS_DL_SERIAL_USB=No instructions available. - -HEALTH_DESCRIPTION=Health - %s +ALARM_CALIBRATION_REQUIRED=Sensor Calibration Required +ALARM_WEAK_SIGNAL=Sensor Weak Signal +ALARM_SENSOR_ALARM=Sensor Alarm +ALARM_CALIBRATION_ERROR=Calibration Error +ALARM_SENSOR_END_OF_LIFE=Sensor End Of Life approaching +ALARM_SENSOR_END_OF_LIFE_DESC=Sensor End Of Life approaching - %s +ALARM_SENSOR_ERROR=Sensor Error +ALARM_SENSOR_CHANGE_REQUIRED=Sensor Change Required +ALARM_SENSOR_SIGNAL_LOST=Sensor Signal Lost +ALARM_HIGH_GLUCOSE_PREDICTED=High Glucose Predicted +ALARM_LOW_GLUCOSE_PREDICTED=Low Glucose Predicted +ALARM_HIGH_GLUCOSE=High Glucose +ALARM_LOW_GLUCOSE=Low Glucose Modified: trunk/ggc-cgm/src/GGC_CGMSTool_si.properties =================================================================== --- trunk/ggc-cgm/src/GGC_CGMSTool_si.properties 2014-12-01 16:08:07 UTC (rev 1341) +++ trunk/ggc-cgm/src/GGC_CGMSTool_si.properties 2015-02-03 15:38:48 UTC (rev 1342) @@ -72,7 +72,7 @@ # # Device Selector [1] # -SELECTOR_DEVICE=Izbirnik za \u010Drpalke +SELECTOR_DEVICE=Izbirnik za CGMSe # # Instructions Dialog [1] @@ -103,7 +103,7 @@ # # List [1] # -DEVICE_LIST_WEB=Seznam \u010Crpalk +DEVICE_LIST_WEB=Seznam CGMSov DEVICE_LIST_WEB_DESC=<html>Seznam CGMSov vsebuje ve\u010Dino CGMSov (tudi modelov). Za vsakega od teh CGMSov imamo konfiguracijske vnose, kjer so prikazane osnovne nastavitve za napravo. Naprave, ki podpirajo prenos podatkov bodo prikazane v izbirniku (DL stolpec). CGMSi v seznamu so barvno kodirani in barva dolo\u010Da status naprav dolo\u010Denega podjetja. Legenda za barvno kodiranje je na spodnjem delu te strani.<br><html> # Modified: trunk/ggc-cgm/src/ggc/cgms/data/CGMSDataHandler.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/CGMSDataHandler.java 2014-12-01 16:08:07 UTC (rev 1341) +++ trunk/ggc-cgm/src/ggc/cgms/data/CGMSDataHandler.java 2015-02-03 15:38:48 UTC (rev 1342) @@ -76,7 +76,7 @@ @Override public void createDeviceValuesTableModel() { - this.m_model = new CGMSValuesTableModel(this, m_da.getSourceDevice()); // m_da.getSourceDevice()); + this.m_model = new CGMSValuesTableModel(this, m_da.getSourceDevice()); // dataAccess.getSourceDevice()); // System.out.println("Model"); } Modified: trunk/ggc-cgm/src/ggc/cgms/data/CGMSTempValues.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/CGMSTempValues.java 2014-12-01 16:08:07 UTC (rev 1341) +++ trunk/ggc-cgm/src/ggc/cgms/data/CGMSTempValues.java 2015-02-03 15:38:48 UTC (rev 1342) @@ -1,5 +1,8 @@ package ggc.cgms.data; +import com.atech.utils.data.CodeEnum; +import ggc.cgms.data.defs.CGMSBaseDataType; +import ggc.cgms.data.defs.CGMSObject; import ggc.plugin.data.DeviceTempValues; import ggc.plugin.output.OutputWriterData; @@ -34,55 +37,74 @@ public class CGMSTempValues extends DeviceTempValues { - // FIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - /** - * @param _object_type - * @param _base_type - * @param _sub_type + * @param objectType + * @param baseType + * @param subType */ - public CGMSTempValues(int _object_type, int _base_type, int _sub_type) + public CGMSTempValues(int objectType, int baseType, int subType) { - super(_object_type, _base_type, _sub_type, null); + super(objectType, baseType, subType, null); } + /** - * @param _object_type - * @param _base_type - * @param _sub_type - * @param _value_template + * @param objectType + * @param baseType + * @param subType */ - public CGMSTempValues(int _object_type, int _base_type, int _sub_type, String _value_template, Boolean isNumericValue) + public CGMSTempValues(CGMSObject objectType, CGMSBaseDataType baseType, CodeEnum subType) { - super(_object_type, _base_type, _sub_type, _value_template, isNumericValue); + super(objectType.getCode(), baseType.getCode(), subType.getCode(), null); } /** - * @param _object_type - * @param _base_type + * @param objectType + * @param baseType + * @param subType + * @param _value_template */ - public CGMSTempValues(int _object_type, int _base_type) + public CGMSTempValues(int objectType, int baseType, int subType, String _value_template, Boolean isNumericValue) { - super(_object_type, _base_type); + super(objectType, baseType, subType, _value_template, isNumericValue); } + /** - * Pump Object: Base + * @param objectType + * @param baseType + * @param subType + * @param _value_template */ - public static final int OBJECT_BASE = 1; + public CGMSTempValues(CGMSObject objectType, CGMSBaseDataType baseType, int subType, String _value_template, Boolean isNumericValue) + { + super(objectType.getCode(), baseType.getCode(), subType, _value_template, isNumericValue); + } - // we have base object, and value is in fact sub_type + + /** - * + * @param objectType + * @param baseType */ - public static final int OBJECT_BASE_SET_SUBTYPE = 4; + public CGMSTempValues(int objectType, int baseType) + { + super(objectType, baseType); + } + /** - * Pump Object: Extended + * @param objectType + * @param baseType */ - public static final int OBJECT_SUB_ENTRY = 2; + public CGMSTempValues(CGMSObject objectType, CGMSBaseDataType baseType) + { + super(objectType.getCode(), baseType.getCode()); + } + + /* * public void writeObject(OutputWriter ow, String _value) * { @@ -93,10 +115,10 @@ * getData */ @Override - public OutputWriterData getData(ATechDate dt, int _sub_type, String _value) + public OutputWriterData getData(ATechDate dt, int subType, String _value) { String val = _value; - int stype = _sub_type; + int stype = subType; if (stype == -1) { @@ -108,7 +130,7 @@ val = ""; } - if (this.object_type == CGMSTempValues.OBJECT_BASE) + if (this.object_type == CGMSObject.Base.getCode()) { CGMSValuesEntry pve = new CGMSValuesEntry(); /* @@ -136,7 +158,7 @@ * return pve; * } */ - else if (this.object_type == CGMSTempValues.OBJECT_SUB_ENTRY) + else if (this.object_type == CGMSObject.SubEntry.getCode()) { // SUB_TYPE= ; VALUE=; ISIG= Modified: trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesSubEntry.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesSubEntry.java 2014-12-01 16:08:07 UTC (rev 1341) +++ trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesSubEntry.java 2015-02-03 15:38:48 UTC (rev 1342) @@ -527,12 +527,12 @@ public void setType(int type) { this.type = type; - this.typeObject = CGMSBaseDataType.getEnum(type); + this.typeObject = CGMSBaseDataType.getByCode(type); } public void setType(CGMSBaseDataType type) { - this.type = type.getValue(); + this.type = type.getCode(); this.typeObject = type; } Modified: trunk/ggc-cgm/src/ggc/cgms/data/db/CGMSData.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/db/CGMSData.java 2014-12-01 16:08:07 UTC (rev 1341) +++ trunk/ggc-cgm/src/ggc/cgms/data/db/CGMSData.java 2015-02-03 15:38:48 UTC (rev 1342) @@ -18,6 +18,7 @@ /** * Application: GGC - GNU Gluco Control + * Plug-in: CGMS Tool (support for CGMS devices) * * See AUTHORS for copyright information. * Modified: trunk/ggc-cgm/src/ggc/cgms/data/db/CGMSDataExtended.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/db/CGMSDataExtended.java 2014-12-01 16:08:07 UTC (rev 1341) +++ trunk/ggc-cgm/src/ggc/cgms/data/db/CGMSDataExtended.java 2015-02-03 15:38:48 UTC (rev 1342) @@ -17,6 +17,7 @@ /** * Application: GGC - GNU Gluco Control + * Plug-in: CGMS Tool (support for CGMS devices) * * See AUTHORS for copyright information. * Modified: trunk/ggc-cgm/src/ggc/cgms/data/db/GGC_CGMSDb.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/db/GGC_CGMSDb.java 2014-12-01 16:08:07 UTC (rev 1341) +++ trunk/ggc-cgm/src/ggc/cgms/data/db/GGC_CGMSDb.java 2015-02-03 15:38:48 UTC (rev 1342) @@ -77,7 +77,7 @@ { // DataAccessCGMS.notImplemented("GGC_CGMSDb::getDailyCGMSValues()"); - // DeviceValuesDay dV = new DeviceValuesDay(m_da); + // DeviceValuesDay dV = new DeviceValuesDay(dataAccess); // dV.setDateTimeGC(gc); log.info("getCGMSDayStats()"); Modified: trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSAlarms.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSAlarms.java 2014-12-01 16:08:07 UTC (rev 1341) +++ trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSAlarms.java 2015-02-03 15:38:48 UTC (rev 1342) @@ -1,5 +1,12 @@ package ggc.cgms.data.defs; +import com.atech.i18n.I18nControlAbstract; +import com.atech.utils.data.CodeEnum; +import com.atech.utils.data.CodeEnumWithTranslation; +import ggc.cgms.util.DataAccessCGMS; + +import java.util.Hashtable; + /** * Application: GGC - GNU Gluco Control * Plug-in: CGMS Tool (support for CGMS devices) @@ -31,78 +38,114 @@ // (they were copied from similar // class, with different type of data. -public class CGMSAlarms extends CGMSDefsAbstract +public enum CGMSAlarms implements CodeEnumWithTranslation { + UnknownAlarm(0, ""), - // Device + BatteryLow(50, "ALARM_BATTERY_LOW"), + ReviewDateTime(51, "ALARM_REVIEW_DATETIME"), + AlarmClock(52, "ALARM_ALARM_CLOCK"), - /** - * - */ - public static final int CGMS_ALARM_METER_BG_NOW = 104; // Meter BG Now (104) + CalibrationRequired(104, "ALARM_CALIBRATION_REQUIRED"), // deprecated , MeterBgNow + WeakSignal(112, "ALARM_WEAK_SIGNAL"), // + SensorAlarm(105, "ALARM_SENSOR_ALARM"), // + CalibrationError(106, "ALARM_CALIBRATION_ERROR"), // + SensorEndOfLifeAproaching(107, "ALARM_SENSOR_END_OF_LIFE"), // + SensorEndOfLifeAproachingDescription(120, "ALARM_SENSOR_END_OF_LIFE_DESC"), // + SensorError(109, "ALARM_SENSOR_ERROR"), // + SensorChangeRequired(108, "ALARM_SENSOR_CHANGE_REQUIRED"), // deprecated + SensorLost(113, "ALARM_SENSOR_SIGNAL_LOST"), // + HighGlucosePredicted(114, "ALARM_HIGH_GLUCOSE_PREDICTED"), // + LowGlucosePredicted(115, "ALARM_LOW_GLUCOSE_PREDICTED"), // + HighGlucose(101, "ALARM_HIGH_GLUCOSE"), // + LowGlucose(102, "ALARM_LOW_GLUCOSE"), // + ; - /** - * - */ - public static final int CGMS_ALARM_WEAK_SIGNAL = 112; // Weak Signal (112) - // SENSOR + static Hashtable<String, CGMSAlarms> translationMapping = new Hashtable<String, CGMSAlarms>(); + static Hashtable<Integer, CGMSAlarms> codeMapping = new Hashtable<Integer, CGMSAlarms>(); - /** - * - */ - public static final int CGMS_ALARM_SENSOR_ALARM = 105; // (105) + static + { + I18nControlAbstract ic = DataAccessCGMS.getInstance().getI18nControlInstance(); - /** - * - */ - public static final int CGMS_ALARM_CALIBRATION_ERROR = 106; // Calibration - // Error (106) + for (CGMSAlarms pbt : values()) + { + pbt.setTranslation(ic.getMessage(pbt.i18nKey)); + translationMapping.put(pbt.getTranslation(), pbt); + codeMapping.put(pbt.code, pbt); + } + } - /** - * - */ - public static final int CGMS_ALARM_SENSOR_END = 107; // Sensor End (107) - /** - * - */ - public static final int CGMS_ALARM_SENSOR_CHANGE = 108; // Change Sensor - // (108) - /** - * - */ - public static final int CGMS_ALARM_SENSOR_ERROR = 109; // Sensor Error (109) + int code; + String i18nKey; + String translation; - /** - * - */ - public static final int CGMS_ALARM_SENSOR_LOST = 113; // Lost Sensor (113) + private CGMSAlarms(int code, String i18nKey) + { + this.code = code; + this.i18nKey = i18nKey; + } - // BG - /** - * - */ - public static final int CGMS_ALARM_HIGH_GLUCOSE_PREDICTED = 114; // High - // Glucose - // Predicted - // (114) - /** - * - */ - public static final int CGMS_ALARM_LOW_GLUCOSE_PREDICTED = 115; // Low - // Glucose - // Predicted - // (115) + public String getTranslation() + { + return translation; + } - /** - * - */ - public static final int CGMS_ALARM_HIGH_GLUCOSE = 101; // High Glucose (101) - /** - * - */ - public static final int CGMS_ALARM_LOW_GLUCOSE = 102; // Low Glucose (102) + public void setTranslation(String translation) + { + this.translation = translation; + } + + public int getCode() + { + return code; + } + + + public String getI18nKey() + { + return i18nKey; + } + + + public static CGMSAlarms getByCode(int code) + { + if (codeMapping.containsKey(code)) + { + return codeMapping.get(code); + } + else + { + return CGMSAlarms.UnknownAlarm; + } + } + + + + + // Device + +// // Meter BG Now (104) +// // Weak Signal (112) +// +// // SENSOR +// +// // Sensor Alarm (105) +// // Calibration Error (106) +// // Sensor End (107) +// // Change Sensor (108) +// // Sensor Error (109) +// // Lost Sensor (113) +// +// // BG +// +// // High Glucose Predicted (114) +// // Low Glucose Predicted (115) +// // High Glucose (101) +// // Low Glucose (102) + } Modified: trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSBaseDataType.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSBaseDataType.java 2014-12-01 16:08:07 UTC (rev 1341) +++ trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSBaseDataType.java 2015-02-03 15:38:48 UTC (rev 1342) @@ -1,6 +1,12 @@ package ggc.cgms.data.defs; +import com.atech.i18n.I18nControlAbstract; +import com.atech.utils.data.CodeEnum; +import com.atech.utils.data.CodeEnumWithTranslation; +import ggc.cgms.util.DataAccessCGMS; + import java.util.HashMap; +import java.util.Hashtable; /** * Application: GGC - GNU Gluco Control @@ -35,7 +41,7 @@ // TODO this class/enum is in refactoring process -public enum CGMSBaseDataType +public enum CGMSBaseDataType implements CodeEnumWithTranslation { // CGMS_BG_READING(1), @@ -50,65 +56,94 @@ // // CGMS_TREND(6), - None(0, "NONE"), SensorReading(1, "CGMS_READING"), MeterCalibration(2, "CALIBRATION_READINGS"), DeviceAlarm(3, - "CGMS_DATA_ALARM"), DeviceEvent(4, "CGMS_DATA_EVENT"), DeviceError(5, "CGMS_DATA_ERROR"), SensorReadingTrend( - 6, "CGMS_READING_TREND"), + None(0, "NONE"), // + SensorReading(1, "CGMS_READING"), // + MeterCalibration(2, "CALIBRATION_READINGS"), // + DeviceAlarm(3, "CGMS_DATA_ALARM"), // + DeviceEvent(4, "CGMS_DATA_EVENT"), // + DeviceError(5, "CGMS_DATA_ERROR"), // + SensorReadingTrend(6, "CGMS_READING_TREND"), // ; - // DataAccessCGMS.value_type[1] = - // this.i18n_plugin.getMessage("CGMS_READING"); - // DataAccessCGMS.value_type[2] = - // this.i18n_plugin.getMessage("CALIBRATION_READINGS"); - // DataAccessCGMS.value_type[4] = - // this.i18n_plugin.getMessage("CGMS_DATA_EVENT"); - // DataAccessCGMS.value_type[3] = - // this.i18n_plugin.getMessage("CGMS_DATA_ALARM"); - // DataAccessCGMS.value_type[5] = - // this.i18n_plugin.getMessage("CGMS_DATA_ERROR"); - // DataAccessCGMS.value_type[6] = - // this.i18n_plugin.getMessage("CGMS_READING_TREND"); - private int dataType; + static Hashtable<String, CGMSBaseDataType> translationMapping = new Hashtable<String, CGMSBaseDataType>(); + static Hashtable<Integer, CGMSBaseDataType> codeMapping = new Hashtable<Integer, CGMSBaseDataType>(); - private String description; - private static HashMap<Integer, CGMSBaseDataType> map = new HashMap<Integer, CGMSBaseDataType>(); - static { - for (CGMSBaseDataType el : values()) + I18nControlAbstract ic = DataAccessCGMS.getInstance().getI18nControlInstance(); + + for (CGMSBaseDataType pbt : values()) { - map.put(el.getValue(), el); + pbt.setTranslation(ic.getMessage(pbt.i18nKey)); + translationMapping.put(pbt.getTranslation(), pbt); + codeMapping.put(pbt.code, pbt); } } - private CGMSBaseDataType(int type, String description) + int code; + String i18nKey; + String translation; + + private CGMSBaseDataType(int code, String i18nKey) { - this.dataType = type; - this.description = description; + this.code = code; + this.i18nKey = i18nKey; } - public int getValue() + + public String getTranslation() { - return dataType; + return translation; } - public static CGMSBaseDataType getEnum(int value) + public void setTranslation(String translation) { - if (map.containsKey(value)) - return map.get(value); - else - return CGMSBaseDataType.None; + this.translation = translation; } - public String getDescription() + public int getCode() { - return description; + return code; } - public void setDescription(String description) + public String getI18nKey() { - this.description = description; + return i18nKey; } + + /** + * Get Type from Description + * + * @param str + * type as string + * @return type as int + */ + public int getTypeFromDescription(String str) + { + if (translationMapping.containsKey(str)) + { + return translationMapping.get(str).getCode(); + } + else + { + return 0; + } + } + + public static CGMSBaseDataType getByCode(int code) + { + if (codeMapping.containsKey(code)) + { + return codeMapping.get(code); + } + else + { + return CGMSBaseDataType.None; + } + } + + } Modified: trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSDefsAbstract.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSDefsAbstract.java 2014-12-01 16:08:07 UTC (rev 1341) +++ trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSDefsAbstract.java 2015-02-03 15:38:48 UTC (rev 1342) @@ -32,7 +32,7 @@ { // protected DataAccessPump da = DataAccessPump.getInstance(); - // protected I18nControlAbstract ic = da.getI18nControlInstance(); + // protected I18nControlAbstract i18nControlAbstract = da.getI18nControlInstance(); /** * Constructor Modified: trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSErrors.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSErrors.java 2014-12-01 16:08:07 UTC (rev 1341) +++ trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSErrors.java 2015-02-03 15:38:48 UTC (rev 1342) @@ -1,5 +1,12 @@ package ggc.cgms.data.defs; +import com.atech.i18n.I18nControlAbstract; +import com.atech.utils.data.CodeEnum; +import com.atech.utils.data.CodeEnumWithTranslation; +import ggc.cgms.util.DataAccessCGMS; + +import java.util.Hashtable; + /** * Application: GGC - GNU Gluco Control * Plug-in: CGMS Tool (support for CGMS devices) @@ -31,78 +38,121 @@ // (they were copied from similar // class, with different type of data. -public class CGMSErrors +public enum CGMSErrors implements CodeEnumWithTranslation { - /** - * - */ - public static final int CGM_ERROR_UNKNOWN_ERROR = -1; // __________________________151 + UnknownError(0, "ERROR_UNKNOWN_ERROR"), // + BatteryDepleted(2, "ERROR_BATTERY_DEPLETED"), // + AutomaticOff(3, "ERROR_AUTOMATIC_OFF"), // + EndOfOperation(5, "ERROR_END_OF_OPERATION"), // + MechanicalError(6, "ERROR_MECHANICAL_ERROR"), // + ElectronicError(7, "ERROR_ELECTRONIC_ERROR"), // + PowerInterrupt(12, "ERROR_POWER_INTERRUPT"), // + LanguageError(13, "ERROR_LANGUAGE_ERROR"), // + SensorCalibrationError(40, "ERROR_SENSOR_CALIB_ERROR"), // + SensorEndOfLife(41, "ERROR_SENSOR_END_OF_LIFE"), // + SensorBad(42, "ERROR_SENSOR_BAD"), // + ; - /** - * - */ - public static final int CGM_ERROR_BATTERY_DEPLETED = 2;// __________________________152 - /** - * - */ - public static final int CGM_ERROR_AUTOMATIC_OFF = 3; // _____________________________152 - /** - * - */ - public static final int CGM_ERROR_END_OF_OPERATION = 5; // __________________________154 - /** - * - */ - public static final int CGM_ERROR_MECHANICAL_ERROR = 6; // _________________________155 - /** - * - */ - public static final int CGM_ERROR_ELECTRONIC_ERROR = 7; // _________________________156 - /** - * - */ - public static final int CGM_ERROR_POWER_INTERRUPT = 8; // __________________________157 - /** - * - */ - public static final int CGM_ERROR_DATA_INTERRUPTED = 12; // _________________________159 - /** - * - */ - public static final int CGM_ERROR_LANGUAGE_ERROR = 13; // __________________________160 - // sensor - /** - * - */ - public static final int CGMS_ERROR_SENSOR_CALIBRATION_ERROR = 40; // ___________________160 + static Hashtable<String, CGMSErrors> translationMapping = new Hashtable<String, CGMSErrors>(); + static Hashtable<Integer, CGMSErrors> codeMapping = new Hashtable<Integer, CGMSErrors>(); - /** - * - */ - public static final int CGMS_ERROR_SENSOR_END_OF_LIFE = 41; // ___________________160 + static + { + I18nControlAbstract ic = DataAccessCGMS.getInstance().getI18nControlInstance(); + for (CGMSErrors pbt : values()) + { + pbt.setTranslation(ic.getMessage(pbt.i18nKey)); + translationMapping.put(pbt.getTranslation(), pbt); + codeMapping.put(pbt.code, pbt); + } + } + + int code; + String i18nKey; + String translation; + + private CGMSErrors(int code, String i18nKey) + { + this.code = code; + this.i18nKey = i18nKey; + } + + + public String getTranslation() + { + return translation; + } + + public void setTranslation(String translation) + { + this.translation = translation; + } + + public int getCode() + { + return code; + } + + public String getI18nKey() + { + return i18nKey; + } + + /** - * + * Get Type from Description + * + * @param str + * type as string + * @return type as int */ - public static final int CGMS_ERROR_SENSOR_BAD = 42; // ___________________160 + public int getTypeFromDescription(String str) + { + if (translationMapping.containsKey(str)) + { + return translationMapping.get(str).getCode(); + } + else + { + return 0; + } + } - /* - * Minimed - * No Delivery (4) - * Sensor Alert: High Glucose (101) - * Sensor Alert: Low Glucose (102) - * Sensor Alert: Meter BG Now (104) - * Sensor Alarm (105) - * Sensor Alert: Calibration Error (106) - * Sensor Alert: Sensor End (107) - * Sensor Alert: Change Sensor (108) - * Sensor Alert: Sensor Error (109) - * Sensor Alert: Weak Signal (112) - * Sensor Alert: Lost Sensor (113) - * Sensor Alert: High Glucose Predicted (114) - * Sensor Alert: Low Glucose Predicted (115) - */ + public static CGMSErrors getByCode(int code) + { + if (codeMapping.containsKey(code)) + { + return codeMapping.get(code); + } + else + { + return CGMSErrors.UnknownError; + } + } + + + + +// public static final int CGM_ERROR_UNKNOWN_ERROR = -1; // __________________________151 +// public static final int CGM_ERROR_BATTERY_DEPLETED = 2;// __________________________152 +// public static final int CGM_ERROR_AUTOMATIC_OFF = 3; // _____________________________152 +// public static final int CGM_ERROR_END_OF_OPERATION = 5; // __________________________154 +// public static final int CGM_ERROR_MECHANICAL_ERROR = 6; // _________________________155 +// public static final int CGM_ERROR_ELECTRONIC_ERROR = 7; // _________________________156 +// public static final int CGM_ERROR_POWER_INTERRUPT = 8; // __________________________157 +// public static final int CGM_ERROR_DATA_INTERRUPTED = 12; // _________________________159 +// public static final int CGM_ERROR_LANGUAGE_ERROR = 13; // __________________________160 +// +// // sensor +// +// public static final int CGMS_ERROR_SENSOR_CALIBRATION_ERROR = 40; // ___________________160 +// public static final int CGMS_ERROR_SENSOR_END_OF_LIFE = 41; // ___________________160 +// public static final int CGMS_ERROR_SENSOR_BAD = 42; // ___________________160 + + + } Modified: trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSEvents.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSEvents.java 2014-12-01 16:08:07 UTC (rev 1341) +++ trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSEvents.java 2015-02-03 15:38:48 UTC (rev 1342) @@ -1,5 +1,12 @@ package ggc.cgms.data.defs; +import com.atech.i18n.I18nControlAbstract; +import com.atech.utils.data.CodeEnum; +import com.atech.utils.data.CodeEnumWithTranslation; +import ggc.cgms.util.DataAccessCGMS; + +import java.util.Hashtable; + /** * Application: GGC - GNU Gluco Control * Plug-in: CGMS Tool (support for CGMS devices) @@ -31,91 +38,144 @@ // (they were copied from similar // class, with different type of data. -public class CGMSEvents +public enum CGMSEvents implements CodeEnumWithTranslation { - // start / end - /** - * - */ - public static final int CGMS_EVENT_CONTROLER_POWER_DOWN = 1; - /** - * - */ - public static final int CGMS_EVENT_CONTROLER_POWER_UP = 2; + UnknownEvent(0, "EVENT_UNKNOWN"), // - // date/time - /** - * - */ - public static final int CGMS_EVENT_DATETIME_SET = 3; - /** - * - */ - public static final int CGMS_EVENT_DATETIME_CHANGED = 4; + ControllerPowerDown(1, "EVENT_CONTROLLER_POWER_DOWN"), // + ControllerPowerUp(2, "EVENT_CONTROLLER_POWER_UP"), // + DateTimeSet(3, "EVENT_DATETIME_SET"), // + DateTimeChanged(4, "EVENT_DATETIME_CORRECT"), // - // SENSOR - basic functions + // sensor basic functions - /** - * - */ - public static final int CGMS_EVENT_SENSOR_POWER_DOWN = 40; + //SensorPowerDown(40), // deprecated + //SensorPowerUp(41), // deprecated + SensorConnectionLost(42, "EVENT_SENSOR_CONNECTION_LOST"), // + SensorStart(43, "EVENT_START_SENSOR"), // + SensorStop(44, "EVENT_STOP_SENSOR"), // + SensorCalibrationWithMeter(50, "EVENT_CALIBRATION_WITH_METER"), // + SensorWaitingForCalibration(51, "EVENT_WAITING_FOR_CALIBRATION"), // + SensorSetCalibrationFactor(52, "EVENT_SET_CALIBRATION_FACTOR"), // - /** - * - */ - public static final int CGMS_EVENT_SENSOR_POWER_UP = 41; + // sensor init/operation + SensorPreInit(60, "EVENT_SENSOR_PRE_INIT"), + SensorInit(61, "EVENT_SENSOR_INIT"), + SensorBurst(62, "EVENT_SENSOR_BURST"), + SensorWeakSignal(63, "EVENT_SENSOR_WEAK_SIGNAL"), // - /** - * - */ - public static final int CGMS_EVENT_SENSOR_LOST = 42; + SensorDataLowBg(64, "EVENT_SENSOR_LOW_BG"), // deprecated + SensorCalibrationWithMeterNow(70, "EVENT_SENSOR_CALIBRATION_WITH_METER_NOW") - public static final int CGMS_EVENT_SENSOR_START = 43; - public static final int CGMS_EVENT_SENSOR_STOP = 44; + ; - /** - * - */ - public static final int CGMS_EVENT_SENSOR_CALIBRATION_METER_BG_NOW = 50; - /** - * - */ - public static final int CGMS_EVENT_SENSOR_CALIBRATION_WAITING = 51; + static Hashtable<String, CGMSEvents> translationMapping = new Hashtable<String, CGMSEvents>(); + static Hashtable<Integer, CGMSEvents> codeMapping = new Hashtable<Integer, CGMSEvents>(); - /** - * - */ - public static final int CGMS_EVENT_SENSOR_CALIBRATION_FACTOR = 52; + static + { + I18nControlAbstract ic = DataAccessCGMS.getInstance().getI18nControlInstance(); - // sensor init/operation + for (CGMSEvents pbt : values()) + { + pbt.setTranslation(ic.getMessage(pbt.i18nKey)); + translationMapping.put(pbt.getTranslation(), pbt); + codeMapping.put(pbt.code, pbt); + } + } - /** - * - */ - public static final int CGMS_EVENT_SENSOR_PRE_INIT = 60; + int code; + String i18nKey; + String translation; - /** - * - */ - public static final int CGMS_EVENT_SENSOR_INIT = 61; + private CGMSEvents(int code, String i18nKey) + { + this.code = code; + this.i18nKey = i18nKey; + } - /** - * - */ - public static final int CGMS_EVENT_SENSOR_BURST = 62; - /** - * - */ - public static final int CGMS_EVENT_SENSOR_WEAK_SIGNAL = 63; + public String getTranslation() + { + return translation; + } - // Data + public void setTranslation(String translation) + { + this.translation = translation; + } + + public int getCode() + { + return code; + } + + public String getI18nKey() + { + return i18nKey; + } + + /** - * + * Get Type from Description + * + * @param str + * type as string + * @return type as int */ - public static final int CGMS_EVENT_DATA_LOW_BG = 64; + public int getTypeFromDescription(String str) + { + if (translationMapping.containsKey(str)) + { + return translationMapping.get(str).getCode(); + } + else + { + return 0; + } + } + public static CGMSEvents getByCode(int code) + { + if (codeMapping.containsKey(code)) + { + return codeMapping.get(code); + } + else + { + return CGMSEvents.UnknownEvent; + } + } + +// // start / end +// public static final int CGMS_EVENT_CONTROLER_POWER_DOWN = 1; +// public static final int CGMS_EVENT_CONTROLER_POWER_UP = 2; +// +// // date/time +// public static final int CGMS_EVENT_DATETIME_SET = 3; +// public static final int CGMS_EVENT_DATETIME_CHANGED = 4; +// +// // SENSOR - basic functions +// public static final int CGMS_EVENT_SENSOR_POWER_DOWN = 40; +// public static final int CGMS_EVENT_SENSOR_POWER_UP = 41; +// public static final int CGMS_EVENT_SENSOR_LOST = 42; +// public static final int CGMS_EVENT_SENSOR_START = 43; +// public static final int CGMS_EVENT_SENSOR_STOP = 44; +// public static final int CGMS_EVENT_SENSOR_CALIBRATION_METER_BG_NOW = 50; +// public static final int CGMS_EVENT_SENSOR_CALIBRATION_WAITING = 51; +// public static final int CGMS_EVENT_SENSOR_CALIBRATION_FACTOR = 52; +// +// // sensor init/operation +// +// public static final int CGMS_EVENT_SENSOR_PRE_INIT = 60; +// public static final int CGMS_EVENT_SENSOR_INIT = 61; +// public static final int CGMS_EVENT_SENSOR_BURST = 62; +// public static final int CGMS_EVENT_SENSOR_WEAK_SIGNAL = 63; +// +// // Data +// public static final int CGMS_EVENT_DATA_LOW_BG = 64; + } Added: trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSObject.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSObject.java (rev 0) +++ trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSObject.java 2015-02-03 15:38:48 UTC (rev 1342) @@ -0,0 +1,27 @@ +package ggc.cgms.data.defs; + +import com.atech.utils.data.CodeEnum; + +/** + * Created by andy on 16.01.15. + */ +public enum CGMSObject implements CodeEnum +{ + Base(1), // + SubEntry(2), // + ; + + int code; + + private CGMSObject(int code) + { + this.code = code; + } + + + public int getCode() + { + return this.code; + } + +} Modified: trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSTrendArrow.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSTrendArrow.java 2014-12-01 16:08:07 UTC (rev 1341) +++ trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSTrendArrow.java 2015-02-03 15:38:48 UTC (rev 1342) @@ -5,9 +5,17 @@ public enum CGMSTrendArrow { - DoubleUp(1), SingleUp(2), FortyFiveUp(3), Flat(4), FortyFiveDown(5), SingleDown(6), DoubleDown(7), + DoubleUp(1), // + SingleUp(2), // + FortyFiveUp(3), // + Flat(4), // + FortyFiveDown(5),// + SingleDown(6), // + DoubleDown(7), // - None(0), NotComputable(8), RateOutOfRange(9), ; + None(0), // + NotComputable(8), // + RateOutOfRange(9), ; private int value; private static HashMap<Integer, CGMSTrendArrow> map = new HashMap<Integer, CGMSTrendArrow>(); Modified: trunk/ggc-cgm/src/ggc/cgms/device/AbstractCGMS.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/AbstractCGMS.java 2014-12-01 16:08:07 UTC (rev 1341) +++ trunk/ggc-cgm/src/ggc/cgms/device/AbstractCGMS.java 2015-02-03 15:38:48 UTC (rev 1342) @@ -10,7 +10,7 @@ /** * Application: GGC - GNU Gluco Control - * Plug-in: Pump Tool (support for Pump devices) + * Plug-in: CGMS Tool (support for CGMS devices) * * See AUTHORS for copyright information. * @@ -41,7 +41,7 @@ // AbstractDeviceCompany cgms_company; // protected int m_status = 0; - // protected I18nControlAbstract ic = null; + // protected I18nControlAbstract i18nControlAbstract = null; // //DataAccessPump.getInstance().getI18nControlInstance(); // protected String m_info = ""; @@ -52,11 +52,11 @@ // protected String[] profile_names = null; protected String device_name; - // protected OutputWriter output_writer; + // protected OutputWriter outputWriter; protected String parameter; - // protected DataAccessCGMS m_da; - // protected GGCPlugInF... [truncated message content] |
From: <and...@us...> - 2015-02-03 15:48:58
|
Revision: 1343 http://sourceforge.net/p/ggc/code/1343 Author: andyrozman Date: 2015-02-03 15:48:43 +0000 (Tue, 03 Feb 2015) Log Message: ----------- Full checkin of all changes Modified Paths: -------------- trunk/ggc-desktop/pom.xml trunk/ggc-desktop/src/ggc/gui/MainFrame.java trunk/ggc-desktop/src/ggc/gui/dialogs/AppointmentDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/DailyRowDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/DailyRowMealsDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/PrintingDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/PropertiesDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/defs/StockListDef.java trunk/ggc-desktop/src/ggc/gui/dialogs/graphs/HbA1cDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/stock/StockAmounts.java trunk/ggc-desktop/src/ggc/gui/dialogs/stock/StockDialog.java trunk/ggc-desktop/src/ggc/gui/graphs/FrequencyGraphView.java trunk/ggc-desktop/src/ggc/gui/little/GGCLittle.java trunk/ggc-desktop/src/ggc/gui/little/StatusBarL.java trunk/ggc-desktop/src/ggc/gui/little/panels/DailyStatsControlsL.java trunk/ggc-desktop/src/ggc/gui/little/panels/GeneralInfoPanelL.java trunk/ggc-desktop/src/ggc/gui/little/panels/PlugInPumpPanelL.java trunk/ggc-desktop/src/ggc/gui/panels/info/DeviceInfoPanel.java trunk/ggc-desktop/src/ggc/gui/panels/info/GeneralInfoPanel.java trunk/ggc-desktop/src/ggc/gui/panels/info/HbA1cInfoPanel.java trunk/ggc-desktop/src/ggc/gui/panels/info/PlugInsInfoPanel.java trunk/ggc-desktop/src/ggc/gui/panels/info/StatisticsInfoPanel.java trunk/ggc-desktop/src/ggc/gui/panels/prefs/PrefFontsAndColorPane.java trunk/ggc-desktop/src/ggc/gui/panels/prefs/PrefGeneralPane.java trunk/ggc-desktop/src/ggc/gui/panels/prefs/PrefLanguagePane.java trunk/ggc-desktop/src/ggc/gui/panels/prefs/PrefMedicalDataPane.java trunk/ggc-desktop/src/ggc/gui/panels/prefs/PrefModePane.java trunk/ggc-desktop/src/ggc/gui/panels/prefs/PrefPrintingPane.java trunk/ggc-desktop/src/ggc/gui/panels/prefs/PrefRenderingQualityPane.java trunk/ggc-master-pom/pom.xml trunk/ggc-meter/src/ggc/meter/data/MeterDataHandler.java trunk/ggc-meter/src/ggc/meter/data/MeterDataReader.java trunk/ggc-meter/src/ggc/meter/data/MeterValuesEntry.java trunk/ggc-meter/src/ggc/meter/data/db/GGCMeterDb.java trunk/ggc-meter/src/ggc/meter/device/AbstractMeter.java trunk/ggc-meter/src/ggc/meter/device/AbstractOtherMeter.java trunk/ggc-meter/src/ggc/meter/device/AbstractSerialMeter.java trunk/ggc-meter/src/ggc/meter/device/AbstractUsbMeter.java trunk/ggc-meter/src/ggc/meter/device/AbstractXmlMeter.java trunk/ggc-meter/src/ggc/meter/device/DummyMeter.java trunk/ggc-meter/src/ggc/meter/device/abbott/FreestyleMeter.java trunk/ggc-meter/src/ggc/meter/device/abbott/OptiumXceed.java trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekSmartPixMeter.java trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaContourTest.java trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaMeter.java trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaMeterUsb.java trunk/ggc-meter/src/ggc/meter/device/menarini/GlucofixMio.java trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchMeter.java trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchMeter2.java trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchUltra2.java trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchUltraSmart.java trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchVerioPro.java trunk/ggc-meter/src/ggc/meter/plugin/MeterPlugInServer.java trunk/ggc-meter/src/ggc/meter/test/TimeTests.java trunk/ggc-meter/src/ggc/meter/util/DataAccessMeter.java trunk/ggc-nutri/src/ggc/nutri/db/GGCDbNutri.java trunk/ggc-nutri/src/ggc/nutri/db/datalayer/DailyFoodEntry.java trunk/ggc-nutri/src/ggc/nutri/db/datalayer/MealPart.java trunk/ggc-nutri/src/ggc/nutri/dialogs/DailyValuesMealSelectorDialog.java trunk/ggc-nutri/src/ggc/nutri/dialogs/FoodPartMainSelectorDialog.java trunk/ggc-nutri/src/ggc/nutri/dialogs/MealSpecialSelectorDialog.java trunk/ggc-nutri/src/ggc/nutri/dialogs/NutritionGroupDialog.java trunk/ggc-nutri/src/ggc/nutri/dialogs/TestNutritionData.java trunk/ggc-nutri/src/ggc/nutri/display/HomeWeightDataDisplay.java trunk/ggc-nutri/src/ggc/nutri/panels/PanelMealSelector.java trunk/ggc-nutri/src/ggc/nutri/panels/PanelNutritionFood.java trunk/ggc-nutri/src/ggc/nutri/panels/PanelNutritionFoodEdit.java trunk/ggc-nutri/src/ggc/nutri/panels/PanelNutritionFoodGroup.java trunk/ggc-nutri/src/ggc/nutri/panels/PanelNutritionFoodGroupEdit.java trunk/ggc-nutri/src/ggc/nutri/panels/PanelNutritionMeal.java trunk/ggc-nutri/src/ggc/nutri/panels/PanelNutritionMealEdit.java trunk/ggc-nutri/src/ggc/nutri/plugin/BackupRestoreNutriHandler.java trunk/ggc-nutri/src/ggc/nutri/plugin/NutriPlugInServer.java trunk/ggc-nutri/src/ggc/nutri/print/PrintFoodMenuExt2.java trunk/ggc-nutri/src/ggc/nutri/print/PrintFoodMenuExt3.java trunk/ggc-nutri/src/ggc/nutri/util/DataAccessNutri.java Added Paths: ----------- trunk/ggc-help/ trunk/ggc-help/pom.xml trunk/ggc-help/src/ trunk/ggc-help/src/main/ trunk/ggc-help/src/main/java/ trunk/ggc-help/src/main/resources/ trunk/ggc-help/src/main/resources/help/ trunk/ggc-help/src/main/resources/help/en/ trunk/ggc-help/src/main/resources/help/en/GGC.hs trunk/ggc-help/src/main/resources/help/en/GGC.xml trunk/ggc-help/src/main/resources/help/en/GGCIndex.xml trunk/ggc-help/src/main/resources/help/en/GGCTOC.xml trunk/ggc-help/src/main/resources/help/en/GGC_en.hs trunk/ggc-help/src/main/resources/help/en/JavaHelpSearch/ trunk/ggc-help/src/main/resources/help/en/JavaHelpSearch/DOC.TAB trunk/ggc-help/src/main/resources/help/en/JavaHelpSearch/DOCS trunk/ggc-help/src/main/resources/help/en/JavaHelpSearch/DOCS.TAB trunk/ggc-help/src/main/resources/help/en/JavaHelpSearch/OFFSETS trunk/ggc-help/src/main/resources/help/en/JavaHelpSearch/POSITIONS trunk/ggc-help/src/main/resources/help/en/JavaHelpSearch/SCHEMA trunk/ggc-help/src/main/resources/help/en/JavaHelpSearch/TMAP trunk/ggc-help/src/main/resources/help/en/Map.jhm trunk/ggc-help/src/main/resources/help/en/images/ trunk/ggc-help/src/main/resources/help/en/images/popup.gif trunk/ggc-help/src/main/resources/help/en/pages/ trunk/ggc-help/src/main/resources/help/en/pages/DeviceTool_Configuration.html trunk/ggc-help/src/main/resources/help/en/pages/DeviceTool_Configuration_DeviceSelector.html trunk/ggc-help/src/main/resources/help/en/pages/DeviceTool_Configuration_PortSelector.html trunk/ggc-help/src/main/resources/help/en/pages/DeviceTool_Export_Data.html trunk/ggc-help/src/main/resources/help/en/pages/DeviceTool_File_Import.html trunk/ggc-help/src/main/resources/help/en/pages/DeviceTool_File_Import_Type.html trunk/ggc-help/src/main/resources/help/en/pages/DeviceTool_List.html trunk/ggc-help/src/main/resources/help/en/pages/DeviceTool_Read_Instruction.html trunk/ggc-help/src/main/resources/help/en/pages/DeviceTool_Reading_Config_View.html trunk/ggc-help/src/main/resources/help/en/pages/DeviceTool_Reading_View.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_BG_Daily_Add.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_BG_Daily_View.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_BG_Graph_Course.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_BG_Graph_Frequency.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_BG_Graph_Spread.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_BG_HbA1c.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Backup_Restore.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_File_Login.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_File_Logout.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Food_Meal_Group_Edit.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Food_Meal_Group_View.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Food_Meal_Main.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Food_Meal_Meal_Edit.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Food_Meal_Meal_View.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Food_Meal_Select_FoodParts.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Food_Print.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Food_USDA_Group.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Food_USDA_Main.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Food_USDA_View.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Food_User_Food_Edit.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Food_User_Food_View.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Food_User_Group_Edit.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Food_User_Group_View.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Food_User_Main.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Food_User_Select_HomeWeight.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Food_User_Select_HomeWeight_Main.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Food_User_Select_Nutrition.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Food_User_Select_Nutrition_Main.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_MFS_Daily_Selector.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_MFS_Food_Description.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_MFS_Item_Selector.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Main.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_PenInj_FoodDescription.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_PenInj_Print.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Prefs_Colors_Fonts.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Prefs_General.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Prefs_Language.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Prefs_Main.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Prefs_MedicalData.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Prefs_Mode.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Prefs_Printing.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Prefs_Rendering.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Print_FoodMenu.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Print_Pen.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Print_Pump.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Ratio_Base.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Ratio_Calculator.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Ratio_Extended.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Tools_Backup.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Tools_BolusHelper.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Tools_FoodDescription.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Tools_Restore.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Tools_Restore_File_Selector.html trunk/ggc-help/src/main/resources/help/en/pages/GGC_Tools_Update.html trunk/ggc-help/src/main/resources/help/en/pages/PumpTool_Data_AddEdit.html trunk/ggc-help/src/main/resources/help/en/pages/PumpTool_Data_Additional_1.html trunk/ggc-help/src/main/resources/help/en/pages/PumpTool_Data_Additional_2.html trunk/ggc-help/src/main/resources/help/en/pages/PumpTool_Data_Overview.html trunk/ggc-help/src/main/resources/help/en/pages/PumpTool_Print.html trunk/ggc-help/src/main/resources/help/en/pages/PumpTool_Profile_Editor.html trunk/ggc-help/src/main/resources/help/en/pages/PumpTool_Profile_Entry_Editor.html trunk/ggc-help/src/main/resources/help/en/pages/PumpTool_Profile_Selector.html trunk/ggc-help/src/main/resources/help/en/pages/PumpTool_Profile_Type_Selector.html trunk/ggc-help/src/main/resources/help/en/pages/PumpTool_Read_Instruction.html trunk/ggc-help/src/main/resources/help/en/pages/PumpTool_Reading_View.html trunk/ggc-help/src/main/resources/help/en/pages/new/ trunk/ggc-help/src/main/resources/help/en/pages/new/PumpTool_Print.html trunk/ggc-help/src/main/resources/help/en/pages/new/PumpTool_Profile_Type_Selector.html trunk/ggc-help/src/main/resources/help/en/pages/pics/ trunk/ggc-help/src/main/resources/help/en/pages/pics/meter_info.jpg trunk/ggc-help/src/main/resources/help/si/ trunk/ggc-help/src/main/resources/help/si/GGC.hs trunk/ggc-help/src/main/resources/help/si/GGC.xml trunk/ggc-help/src/main/resources/help/si/GGCIndex.xml trunk/ggc-help/src/main/resources/help/si/GGCTOC.xml trunk/ggc-help/src/main/resources/help/si/JavaHelpSearch/ trunk/ggc-help/src/main/resources/help/si/Map.jhm trunk/ggc-help/src/main/resources/help/si/images/ trunk/ggc-help/src/main/resources/help/si/images/popup.gif trunk/ggc-help/src/main/resources/help/si/pages/ trunk/ggc-help/src/main/resources/help/si/pages/DeviceTool_Configuration.html trunk/ggc-help/src/main/resources/help/si/pages/DeviceTool_Configuration_DeviceSelector.html trunk/ggc-help/src/main/resources/help/si/pages/DeviceTool_Configuration_PortSelector.html trunk/ggc-help/src/main/resources/help/si/pages/DeviceTool_Export_Data.html trunk/ggc-help/src/main/resources/help/si/pages/DeviceTool_File_Import.html trunk/ggc-help/src/main/resources/help/si/pages/DeviceTool_File_Import_Type.html trunk/ggc-help/src/main/resources/help/si/pages/DeviceTool_List.html trunk/ggc-help/src/main/resources/help/si/pages/DeviceTool_Read_Instruction.html trunk/ggc-help/src/main/resources/help/si/pages/DeviceTool_Reading_Config_View.html trunk/ggc-help/src/main/resources/help/si/pages/DeviceTool_Reading_View.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_BG_Daily_Add.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_BG_Daily_View.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_BG_Graph_Course.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_BG_Graph_Frequency.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_BG_Graph_Spread.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_BG_HbA1c.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Backup_Restore.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_File_Login.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_File_Logout.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Food_Meal_Group_Edit.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Food_Meal_Group_View.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Food_Meal_Main.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Food_Meal_Meal_Edit.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Food_Meal_Meal_View.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Food_Meal_Select_FoodParts.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Food_Print.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Food_USDA_Group.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Food_USDA_Main.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Food_USDA_View.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Food_User_Food_Edit.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Food_User_Food_View.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Food_User_Group_Edit.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Food_User_Group_View.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Food_User_Main.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Food_User_Select_HomeWeight.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Food_User_Select_HomeWeight_Main.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Food_User_Select_Nutrition.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Food_User_Select_Nutrition_Main.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_MFS_Daily_Selector.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_MFS_Food_Description.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_MFS_Item_Selector.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Main.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_PenInj_Print.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Prefs_Colors_Fonts.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Prefs_General.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Prefs_Language.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Prefs_Main.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Prefs_MedicalData.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Prefs_Mode.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Prefs_Printing.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Prefs_Rendering.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Print_FoodMenu.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Print_Pen.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Print_Pump.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Ratio_Base.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Ratio_Calculator.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Ratio_Extended.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Tools_Backup.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Tools_BolusHelper.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Tools_FoodDescription.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Tools_Restore.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Tools_Restore_File_Selector.html trunk/ggc-help/src/main/resources/help/si/pages/GGC_Tools_Update.html trunk/ggc-help/src/main/resources/help/si/pages/PumpTool_Data_AddEdit.html trunk/ggc-help/src/main/resources/help/si/pages/PumpTool_Data_Additional_1.html trunk/ggc-help/src/main/resources/help/si/pages/PumpTool_Data_Additional_2.html trunk/ggc-help/src/main/resources/help/si/pages/PumpTool_Data_Overview.html trunk/ggc-help/src/main/resources/help/si/pages/PumpTool_Print.html trunk/ggc-help/src/main/resources/help/si/pages/PumpTool_Profile_Editor.html trunk/ggc-help/src/main/resources/help/si/pages/PumpTool_Profile_Entry_Editor.html trunk/ggc-help/src/main/resources/help/si/pages/PumpTool_Profile_Selector.html trunk/ggc-help/src/main/resources/help/si/pages/PumpTool_Profile_Type_Selector.html trunk/ggc-help/src/main/resources/help/si/pages/PumpTool_Read_Instruction.html trunk/ggc-help/src/main/resources/help/si/pages/PumpTool_Reading_View.html Modified: trunk/ggc-desktop/pom.xml =================================================================== --- trunk/ggc-desktop/pom.xml 2015-02-03 15:38:48 UTC (rev 1342) +++ trunk/ggc-desktop/pom.xml 2015-02-03 15:48:43 UTC (rev 1343) @@ -51,6 +51,11 @@ <dependency> <groupId>net.sf.ggc</groupId> + <artifactId>ggc-help</artifactId> + </dependency> + + <dependency> + <groupId>net.sf.ggc</groupId> <artifactId>ggc-plugin-base</artifactId> </dependency> Modified: trunk/ggc-desktop/src/ggc/gui/MainFrame.java =================================================================== --- trunk/ggc-desktop/src/ggc/gui/MainFrame.java 2015-02-03 15:38:48 UTC (rev 1342) +++ trunk/ggc-desktop/src/ggc/gui/MainFrame.java 2015-02-03 15:48:43 UTC (rev 1343) @@ -208,8 +208,8 @@ // System.out.println("MainFrame before creation"); m_da = DataAccess.createInstance(this); - // System.out.println("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! m_da: " - // + m_da); + // System.out.println("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! dataAccess: " + // + dataAccess); m_ic = m_da.getI18nControlInstance(); @@ -246,12 +246,14 @@ // setTitle(""); - this.setSoftwareMode(); + createMenus(); createToolBars(); + this.setSoftwareMode(); + m_da.addObserver(DataAccess.OBSERVABLE_STATUS, this); /* @@ -293,9 +295,9 @@ private void setSoftwareMode() { - // System.out.println("SW: " + m_da.getSoftwareMode()); + // System.out.println("SW: " + dataAccess.getSoftwareMode()); - //if (m_da.getSoftwareMode() == -1) + //if (dataAccess.getSoftwareMode() == -1) // return; String title_full = " GGC - GNU Gluco Control (" + GGC.full_version + ")"; @@ -345,12 +347,12 @@ * private void initPlugIns() * { * // TODO: deprecated - * m_da.addPlugIn(DataAccess.PLUGIN_METERS, new MetersPlugIn(this, m_ic)); - * // m_da.getPlugIn(DataAccess.PLUGIN_METERS).checkIfInstalled(); - * m_da.addPlugIn(DataAccess.PLUGIN_PUMPS, new PumpsPlugIn(this, m_ic)); - * // m_da.getPlugIn(DataAccess.PLUGIN_PUMPS).checkIfInstalled(); - * m_da.addPlugIn(DataAccess.PLUGIN_CGMS, new CGMSPlugIn(this, m_ic)); - * // m_da.getPlugIn(DataAccess.PLUGIN_CGMS).checkIfInstalled(); + * dataAccess.addPlugIn(DataAccess.PLUGIN_METERS, new MetersPlugIn(this, m_ic)); + * // dataAccess.getPlugIn(DataAccess.PLUGIN_METERS).checkIfInstalled(); + * dataAccess.addPlugIn(DataAccess.PLUGIN_PUMPS, new PumpsPlugIn(this, m_ic)); + * // dataAccess.getPlugIn(DataAccess.PLUGIN_PUMPS).checkIfInstalled(); + * dataAccess.addPlugIn(DataAccess.PLUGIN_CGMS, new CGMSPlugIn(this, m_ic)); + * // dataAccess.getPlugIn(DataAccess.PLUGIN_CGMS).checkIfInstalled(); * } */ @@ -550,10 +552,81 @@ } + private void helpInit() { + log.debug("JavaHelp - START"); + + //System.out.println("Help. Selected language: " + dataAccess.getLanguageManager().getSelectedLanguage()); + + HelpContext hc = m_da.getHelpContext(); + + log.debug("JavaHelp - HelpContext: " + hc); + + JMenuItem helpItem = new JMenuItem(m_ic.getMessage("HELP") + "..."); + helpItem.setIcon(new ImageIcon(getClass().getResource("/icons/help.gif"))); + hc.setHelpItem(helpItem); + + String mainHelpSetName = "/" + m_da.getLanguageManager().getHelpSet(); + + log.debug("JavaHelp - MainHelpSetName: " + mainHelpSetName); + + hc.setMainHelpSetName(mainHelpSetName); + + // try to find the helpset and create a HelpBroker object + if (hc.getMainHelpBroker() == null) + { + + HelpSet main_help_set = null; + + try + { + URL hsURL = getClass().getResource(mainHelpSetName); + main_help_set = new HelpSet(null, hsURL); + } + catch (HelpSetException ex) + { + log.error("HelpSet " + mainHelpSetName + " could not be opened.", ex); + } + + HelpBroker main_help_broker = null; + + if (main_help_set != null) + { + log.debug("JavaHelp - Main Help Set present, creating broker."); + main_help_broker = main_help_set.createHelpBroker(); + } + + CSH.DisplayHelpFromSource csh = null; + + if (main_help_broker != null) + { + // CSH.DisplayHelpFromSource is a convenience class to display the helpset + csh = new CSH.DisplayHelpFromSource(main_help_broker); + + if (csh != null) + { + // listen to ActionEvents from the helpItem + hc.getHelpItem().addActionListener(csh); + } + } + + hc.setDisplayHelpFromSourceInstance(csh); + hc.setMainHelpBroker(main_help_broker); + hc.setMainHelpSet(main_help_set); + + CSH.trackCSEvents(); + } + + log.debug("JavaHelp - END"); + } + + + + private void helpInit_Old() + { // HelpContext hc = new HelpContext("../data/help/GGC.hs"); - // m_da.setHelpContext(hc); + // dataAccess.setHelpContext(hc); boolean help_debug = true; if (help_debug) @@ -564,8 +637,8 @@ System.out.println("Help. Selected language: " + m_da.getLanguageManager().getSelectedLanguage()); // String selected_language = - // m_da.getLanguageManager().getSelectedLanguage(); - // String default_help = m_da.getLanguageManager().getDefaultHelp(); + // dataAccess.getLanguageManager().getSelectedLanguage(); + // String default_help = dataAccess.getLanguageManager().getDefaultHelp(); HelpContext hc = m_da.getHelpContext(); @@ -1092,19 +1165,19 @@ if (command.startsWith("meters_")) { - m_da.getPlugIn(GGCPluginType.METER_TOOL_PLUGIN).actionPerformed(e); + m_da.getPlugIn(GGCPluginType.MeterToolPlugin).actionPerformed(e); } else if (command.startsWith("pumps_") || command.startsWith("report_print_pump")) { - m_da.getPlugIn(GGCPluginType.PUMP_TOOL_PLUGIN).actionPerformed(e); + m_da.getPlugIn(GGCPluginType.PumpToolPlugin).actionPerformed(e); } else if (command.startsWith("cgms_")) { - m_da.getPlugIn(GGCPluginType.CGMS_TOOL_PLUGIN).actionPerformed(e); + m_da.getPlugIn(GGCPluginType.CGMSToolPlugin).actionPerformed(e); } else if (command.startsWith("food_")) { - m_da.getPlugIn(GGCPluginType.NUTRITION_TOOL_PLUGIN).actionPerformed(e); + m_da.getPlugIn(GGCPluginType.NutritionToolPlugin).actionPerformed(e); } else if (command.equals("file_quit")) { @@ -1124,7 +1197,7 @@ } else if (command.equals("view_freq")) { - // new FrequencyGraphDialog(m_da); + // new FrequencyGraphDialog(dataAccess); featureNotImplementedDescription(m_ic.getMessage("FREQGRAPHFRAME"), next_version); } else if (command.equals("view_hba1c")) @@ -1177,17 +1250,17 @@ /* * else if (command.equals("food_nutrition_1")) * { - * new NutritionTreeDialog(MainFrame.this, m_da, + * new NutritionTreeDialog(MainFrame.this, dataAccess, * GGCTreeRoot.TREE_USDA_NUTRITION); * } * else if (command.equals("food_nutrition_2")) * { - * new NutritionTreeDialog(MainFrame.this, m_da, + * new NutritionTreeDialog(MainFrame.this, dataAccess, * GGCTreeRoot.TREE_USER_NUTRITION); * } * else if (command.equals("food_meals")) * { - * new NutritionTreeDialog(MainFrame.this, m_da, + * new NutritionTreeDialog(MainFrame.this, dataAccess, * GGCTreeRoot.TREE_MEALS); * } */ @@ -1295,11 +1368,11 @@ // new DailyRowMealsDialog(null, new JDialog()); // spread graph - // new GraphViewer(new GraphViewSpread(), m_da); + // new GraphViewer(new GraphViewSpread(), dataAccess); /* * // graph course - * new GraphViewer(new GraphViewCourse(), m_da); + * new GraphViewer(new GraphViewCourse(), dataAccess); */ // ratio calculator @@ -1315,15 +1388,15 @@ * gc.set(GregorianCalendar.DAY_OF_MONTH, 18); * gc.set(GregorianCalendar.MONTH, 10); * gc.set(GregorianCalendar.YEAR, 2008); - * new GraphViewer(new GraphViewDaily(gc), m_da); + * new GraphViewer(new GraphViewDaily(gc), dataAccess); */ - // new HbA1cDialog(m_da); + // new HbA1cDialog(dataAccess); // ImportDacioDb idb = new // ImportDacioDb("../data/temp/zivila.csv", true); //args[ // idb.convertFoods(); /* - * DayValuesData dvd = m_da.getDb().getDayValuesData(20081001, + * DayValuesData dvd = dataAccess.getDb().getDayValuesData(20081001, * 20091007); // .getMonthlyValues(yr, * // mnth); * PrintFoodMenuExt2 psm = new PrintFoodMenuExt2(dvd); @@ -1346,7 +1419,7 @@ * catch (Exception ex) * { * System.out.println("we falled into exception"); - * m_da.createErrorDialog("MainFrame", "", ex, + * dataAccess.createErrorDialog("MainFrame", "", ex, * "Exception in mainframe."); * } */ @@ -1456,7 +1529,7 @@ this.menuBar.add(this.menus.get("MENU_FILE")); this.menuBar.add(this.menus.get("MENU_PEN")); - JMenu menu = getPlugInMenu(GGCPluginType.NUTRITION_TOOL_PLUGIN); + JMenu menu = getPlugInMenu(GGCPluginType.NutritionToolPlugin); if (menu != null) { @@ -1491,7 +1564,7 @@ this.menuBar.add(this.menus.get("MENU_PRINT")); - GGCPluginType[] keys = { GGCPluginType.METER_TOOL_PLUGIN, GGCPluginType.PUMP_TOOL_PLUGIN, GGCPluginType.CGMS_TOOL_PLUGIN, }; + GGCPluginType[] keys = { GGCPluginType.MeterToolPlugin, GGCPluginType.PumpToolPlugin, GGCPluginType.CGMSToolPlugin, }; for (GGCPluginType key : keys) { Modified: trunk/ggc-desktop/src/ggc/gui/dialogs/AppointmentDialog.java =================================================================== --- trunk/ggc-desktop/src/ggc/gui/dialogs/AppointmentDialog.java 2015-02-03 15:38:48 UTC (rev 1342) +++ trunk/ggc-desktop/src/ggc/gui/dialogs/AppointmentDialog.java 2015-02-03 15:48:43 UTC (rev 1343) @@ -123,7 +123,7 @@ * cb_template.setBounds(40, 105, 230, 25); * panel.add(cb_template); */ - // int year = m_da.getC + // int year = dataAccess.getC int year = gc.get(Calendar.YEAR); int month = gc.get(Calendar.MONTH) + 1; @@ -145,7 +145,7 @@ /* * tfName = new JTextField(); * tfName.setBounds(120, 205, 160, 25); - * tfName.setFont(m_da.getFont(DataAccess.FONT_NORMAL)); + * tfName.setFont(dataAccess.getFont(DataAccess.FONT_NORMAL)); * //panel.add(sl); */ Modified: trunk/ggc-desktop/src/ggc/gui/dialogs/DailyRowDialog.java =================================================================== --- trunk/ggc-desktop/src/ggc/gui/dialogs/DailyRowDialog.java 2015-02-03 15:38:48 UTC (rev 1342) +++ trunk/ggc-desktop/src/ggc/gui/dialogs/DailyRowDialog.java 2015-02-03 15:48:43 UTC (rev 1343) @@ -244,7 +244,7 @@ // this.ftf_bg1.setValue(new Integer((int) // m_dailyValuesRow.getBGRaw())); // this.ftf_bg2.setValue(new - // Float(m_da.getBGValueDifferent(DataAccess.BG_MGDL, + // Float(dataAccess.getBGValueDifferent(DataAccess.BG_MGDL, // m_dailyValuesRow.getBGRaw()))); } @@ -433,9 +433,9 @@ /* * this.spinner_arr[0] = ATSwingUtils.getJSpinner(0.0f, 0.0f, - * m_da.getMaxValues(DataAccess.INSULIN_PEN_INJECTION, + * dataAccess.getMaxValues(DataAccess.INSULIN_PEN_INJECTION, * DataAccess.INSULIN_DOSE_BOLUS), - * m_da.getInsulinPrecision(DataAccess.INSULIN_PEN_INJECTION, + * dataAccess.getInsulinPrecision(DataAccess.INSULIN_PEN_INJECTION, * DataAccess.INSULIN_DOSE_BOLUS), * 140, 168, 55, 25, panel); * //getTextField(2, 0, new Integer(0), 140, 198, 55, 25, panel); @@ -443,9 +443,9 @@ * //this.ftf_ins2 = getTextField(2, 0, new Integer(0), 140, 228, 55, * 25, panel); * this.spinner_arr[1] = ATSwingUtils.getJSpinner(0.0f, 0.0f, - * m_da.getMaxValues(DataAccess.INSULIN_PEN_INJECTION, + * dataAccess.getMaxValues(DataAccess.INSULIN_PEN_INJECTION, * DataAccess.INSULIN_DOSE_BASAL), - * m_da.getInsulinPrecision(DataAccess.INSULIN_PEN_INJECTION, + * dataAccess.getInsulinPrecision(DataAccess.INSULIN_PEN_INJECTION, * DataAccess.INSULIN_DOSE_BASAL), * 140, 198, 55, 25, panel); * //getTextField(2, 0, new Integer(0), 140, 228, 55, 25, panel); @@ -527,7 +527,7 @@ { button = new JButton(" " + button_command[j + 1]); button.setActionCommand(button_command[j]); - // button.setFont(m_da.getFont(DataAccess.FONT_NORMAL)); + // button.setFont(dataAccess.getFont(DataAccess.FONT_NORMAL)); button.addActionListener(this); if (button_icon[k] != null) @@ -627,7 +627,7 @@ if (m_da.isValueSet(this.m_dailyValuesRow.getMealsIds())) { - PlugInClient pc = DataAccess.getInstance().getPlugIn(GGCPluginType.NUTRITION_TOOL_PLUGIN); + PlugInClient pc = DataAccess.getInstance().getPlugIn(GGCPluginType.NutritionToolPlugin); if ((pc!=null) && (pc.isActiveWarning(true, this))) { @@ -653,8 +653,8 @@ { BolusHelper bh = new BolusHelper(this, m_da.getFloatValue(this.spinner_arr[5].getValue()), - // m_da.getJFormatedTextValueFloat(ftf_bg2), - // m_da.getJFormatedTextValueFloat(this.ftf_ch), + // dataAccess.getJFormatedTextValueFloat(ftf_bg2), + // dataAccess.getJFormatedTextValueFloat(this.ftf_ch), m_da.getFloatValue(this.spinner_arr[3].getValue()), this.dtc.getDateTime(), 1, DataAccess.INSULIN_PEN_INJECTION); @@ -678,7 +678,7 @@ private void commandEditFood() { - PlugInClient pc = DataAccess.getInstance().getPlugIn(GGCPluginType.NUTRITION_TOOL_PLUGIN); + PlugInClient pc = DataAccess.getInstance().getPlugIn(GGCPluginType.NutritionToolPlugin); if ((pc!=null) && (pc.isActiveWarning(true, this))) { @@ -707,7 +707,7 @@ // String s = ch_str; ch_str = ch_str.replace(ATDataAccessAbstract.false_decimal, ATDataAccessAbstract.real_decimal); - // this.ftf_ch.setValue(m_da.getFloatValue(ch_str)); + // this.ftf_ch.setValue(dataAccess.getFloatValue(ch_str)); this.spinner_arr[3].setValue(m_da.getFloatValue(ch_str)); } @@ -768,13 +768,13 @@ * System.out.println("dV: " + dV); * // this.m_dailyValuesRow = new DailyValuesRow(); * this.m_dailyValuesRow.setDateTime(this.dtc.getDateTime()); - * float f = m_da.getJFormatedTextValueFloat(ftf_bg1); + * float f = dataAccess.getJFormatedTextValueFloat(ftf_bg1); * if (f > 0.0) * { * this.m_dailyValuesRow.setBG(1, f); * } * setInsulinValues(); - * this.m_dailyValuesRow.setCH(m_da.getJFormatedTextValueFloat(this.ftf_ch + * this.m_dailyValuesRow.setCH(dataAccess.getJFormatedTextValueFloat(this.ftf_ch * )); * this.m_dailyValuesRow.setActivity(ActField.getText()); * this.m_dailyValuesRow.setUrine(UrineField.getText()); @@ -786,20 +786,20 @@ * { * // edit * this.m_dailyValuesRow.setDateTime(this.dtc.getDateTime()); - * float f = m_da.getJFormatedTextValueFloat(ftf_bg1); + * float f = dataAccess.getJFormatedTextValueFloat(ftf_bg1); * if (f > 0.0) * { * this.m_dailyValuesRow.setBG(1, f); * } * setInsulinValues(); - * this.m_dailyValuesRow.setCH(m_da.getJFormatedTextValueFloat(this.ftf_ch + * this.m_dailyValuesRow.setCH(dataAccess.getJFormatedTextValueFloat(this.ftf_ch * )); * this.m_dailyValuesRow.setActivity(ActField.getText()); * this.m_dailyValuesRow.setUrine(UrineField.getText()); * this.m_dailyValuesRow.setComment(CommentField.getText()); * this.m_actionDone = true; * } - * m_da.removeComponent(this); + * dataAccess.removeComponent(this); * this.dispose(); */ } @@ -912,10 +912,10 @@ * return; * } * // System.out.println("focus lost: bg2"); - * int val = m_da.getJFormatedTextValueInt(ftf_bg1); - * // float v_2 = m_da.getBGValueDifferent(DataAccess.BG_MGDL, val); + * int val = dataAccess.getJFormatedTextValueInt(ftf_bg1); + * // float v_2 = dataAccess.getBGValueDifferent(DataAccess.BG_MGDL, val); * float v_2 = - * m_da.getBGConverter().getValueByType(Converter_mgdL_mmolL.UNIT_mg_dL, + * dataAccess.getBGConverter().getValueByType(Converter_mgdL_mmolL.UNIT_mg_dL, * Converter_mgdL_mmolL.UNIT_mmol_L, val); * this.ftf_bg2.setValue(new Float(v_2)); * } @@ -929,10 +929,10 @@ * return; * } * // System.out.println("focus lost: bg2"); - * float val = m_da.getJFormatedTextValueFloat(ftf_bg2); - * // int v_2 = (int) m_da.getBGValueDifferent(DataAccess.BG_MMOL, val); + * float val = dataAccess.getJFormatedTextValueFloat(ftf_bg2); + * // int v_2 = (int) dataAccess.getBGValueDifferent(DataAccess.BG_MMOL, val); * int v_2 = - * (int)m_da.getBGConverter().getValueByType(Converter_mgdL_mmolL.UNIT_mmol_L + * (int)dataAccess.getBGConverter().getValueByType(Converter_mgdL_mmolL.UNIT_mmol_L * , Converter_mgdL_mmolL.UNIT_mg_dL, val); * this.ftf_bg1.setValue(new Integer(v_2)); * } @@ -958,7 +958,7 @@ in_action = true; - // m_da.getFloatValue(this.spinner_arr[5].getValue()), + // dataAccess.getFloatValue(this.spinner_arr[5].getValue()), // System.out.println("change event - in action"); @@ -979,8 +979,8 @@ // System.out.println("focus lost: bg1 (spinner[4]). mg/dL: " + // this.spinner_arr[4].getValue()); float val = this.m_da.getFloatValue(this.spinner_arr[4].getValue()); - // m_da.getJFormatedTextValueInt(ftf_bg1); - // float v_2 = m_da.getBGValueDifferent(DataAccess.BG_MGDL, val); + // dataAccess.getJFormatedTextValueInt(ftf_bg1); + // float v_2 = dataAccess.getBGValueDifferent(DataAccess.BG_MGDL, val); float v_2 = m_da.getBGConverter().getValueByType(Converter_mgdL_mmolL.UNIT_mg_dL, Converter_mgdL_mmolL.UNIT_mmol_L, val); // this.ftf_bg2.setValue(new Float(v_2)); @@ -1009,8 +1009,8 @@ // System.out.println("focus lost: bg2"); float val = this.m_da.getFloatValue(this.spinner_arr[5].getValue()); - // m_da.getJFormatedTextValueFloat(ftf_bg2); - // int v_2 = (int) m_da.getBGValueDifferent(DataAccess.BG_MMOL, + // dataAccess.getJFormatedTextValueFloat(ftf_bg2); + // int v_2 = (int) dataAccess.getBGValueDifferent(DataAccess.BG_MMOL, // val); int v_2 = (int) m_da.getBGConverter().getValueByType(Converter_mgdL_mmolL.UNIT_mmol_L, Converter_mgdL_mmolL.UNIT_mg_dL, val); Modified: trunk/ggc-desktop/src/ggc/gui/dialogs/DailyRowMealsDialog.java =================================================================== --- trunk/ggc-desktop/src/ggc/gui/dialogs/DailyRowMealsDialog.java 2015-02-03 15:38:48 UTC (rev 1342) +++ trunk/ggc-desktop/src/ggc/gui/dialogs/DailyRowMealsDialog.java 2015-02-03 15:48:43 UTC (rev 1343) @@ -63,8 +63,8 @@ private static Log log = LogFactory.getLog(DailyRowMealsDialog.class); private I18nControlAbstract m_ic = null; - // private DataAccess m_da = DataAccess.getInstance(); - // private GGCProperties props = m_da.getSettings(); + // private DataAccess dataAccess = DataAccess.getInstance(); + // private GGCProperties props = dataAccess.getSettings(); JLabel label_title; JDecimalTextField ftf_ch; @@ -80,8 +80,8 @@ JComponent components[] = new JComponent[9]; - // Font f_normal = m_da.getFont(DataAccess.FONT_NORMAL); - // Font f_bold = m_da.getFont(DataAccess.FONT_NORMAL); + // Font f_normal = dataAccess.getFont(DataAccess.FONT_NORMAL); + // Font f_bold = dataAccess.getFont(DataAccess.FONT_NORMAL); boolean in_process; boolean debug = true; JButton help_button = null; @@ -134,7 +134,7 @@ transfer_mode = true; init(); // load(); - // m_da.centerJDialog(this); + // dataAccess.centerJDialog(this); } @@ -153,7 +153,7 @@ transfer_mode = true; // init(); // load(); - // m_da.centerJDialog(this); + // dataAccess.centerJDialog(this); } @@ -496,8 +496,8 @@ food_desc = (String) ip[2]; food_ch = (String) ip[3]; - // m_da.addComponent(this); - // m_da.centerJDialog(this, di); + // dataAccess.addComponent(this); + // dataAccess.centerJDialog(this, di); init(); load(); Modified: trunk/ggc-desktop/src/ggc/gui/dialogs/PrintingDialog.java =================================================================== --- trunk/ggc-desktop/src/ggc/gui/dialogs/PrintingDialog.java 2015-02-03 15:38:48 UTC (rev 1342) +++ trunk/ggc-desktop/src/ggc/gui/dialogs/PrintingDialog.java 2015-02-03 15:48:43 UTC (rev 1343) @@ -229,14 +229,14 @@ * dateComponentTo.setBounds(40, 250, 120, 25); * panel.add(dateComponentTo); * JButton button = new JButton(" " + i18nControl.getMessage("OK")); - * // button.setFont(m_da.getFont(DataAccess.FONT_NORMAL)); + * // button.setFont(dataAccess.getFont(DataAccess.FONT_NORMAL)); * button.setActionCommand("ok"); * button.addActionListener(this); * button.setIcon(dataAccess.getImageIcon_22x22("ok.png", this)); * button.setBounds(40, 340, 125, 25); * panel.add(button); * button = new JButton(" " + i18nControl.getMessage("CANCEL")); - * // button.setFont(m_da.getFont(DataAccess.FONT_NORMAL)); + * // button.setFont(dataAccess.getFont(DataAccess.FONT_NORMAL)); * button.setActionCommand("cancel"); * button.setIcon(dataAccess.getImageIcon_22x22("cancel.png", this)); * button.addActionListener(this); Modified: trunk/ggc-desktop/src/ggc/gui/dialogs/PropertiesDialog.java =================================================================== --- trunk/ggc-desktop/src/ggc/gui/dialogs/PropertiesDialog.java 2015-02-03 15:38:48 UTC (rev 1342) +++ trunk/ggc-desktop/src/ggc/gui/dialogs/PropertiesDialog.java 2015-02-03 15:48:43 UTC (rev 1343) @@ -422,9 +422,9 @@ m_da.getSettings().load(); /* - * if (m_da.getDbConfig().hasChanged()) + * if (dataAccess.getDbConfig().hasChanged()) * { - * m_da.getDbConfig().saveConfig(); + * dataAccess.getDbConfig().saveConfig(); * } */ } Modified: trunk/ggc-desktop/src/ggc/gui/dialogs/defs/StockListDef.java =================================================================== --- trunk/ggc-desktop/src/ggc/gui/dialogs/defs/StockListDef.java 2015-02-03 15:38:48 UTC (rev 1342) +++ trunk/ggc-desktop/src/ggc/gui/dialogs/defs/StockListDef.java 2015-02-03 15:48:43 UTC (rev 1343) @@ -125,7 +125,7 @@ case 1: return se.getDescription(); // return - // ic.getMessage(dh.getDoctor_type().getName()); + // i18nControlAbstract.getMessage(dh.getDoctor_type().getName()); } return null; @@ -153,7 +153,7 @@ // this.filter_enabled = true; this.filter_type = GUIListDefAbstract.FILTER_COMBO_AND_TEXT; - // this.filter_text = ic.getMessage("FILTER") + ":"; + // this.filter_text = i18nControlAbstract.getMessage("FILTER") + ":"; String s1[] = { ic.getMessage("STATUS_USED") + ":", ic.getMessage("DESCRIPTION") + ":" }; this.filter_texts = s1; @@ -170,7 +170,7 @@ "table_add.png")); this.button_defs.add(new ButtonDef(this.ic.getMessage("EDIT"), "edit_type", "STOCKS_TABLE_EDIT_DESC", "table_edit.png")); - // this.button_defs.add(new ButtonDef(this.ic.getMessage("VIEW_TYPE"), + // this.button_defs.add(new ButtonDef(this.i18nControlAbstract.getMessage("VIEW_TYPE"), // "view", "STOCKS_TABLE_VIEW_DESC", "table_view.png")); this.button_defs.add(new LabelDef(this.ic.getMessage("STOCK_AMOUNTS"), LabelDef.FONT_BOLD)); Modified: trunk/ggc-desktop/src/ggc/gui/dialogs/graphs/HbA1cDialog.java =================================================================== --- trunk/ggc-desktop/src/ggc/gui/dialogs/graphs/HbA1cDialog.java 2015-02-03 15:38:48 UTC (rev 1342) +++ trunk/ggc-desktop/src/ggc/gui/dialogs/graphs/HbA1cDialog.java 2015-02-03 15:48:43 UTC (rev 1343) @@ -81,7 +81,7 @@ this.m_da = da; this.m_ic = da.getI18nControlInstance(); // init - // hbValues = this.m_da.getHbA1c(new GregorianCalendar()); + // hbValues = this.dataAccess.getHbA1c(new GregorianCalendar()); hbValues = this.m_da.getDb().getHbA1c(new GregorianCalendar(), false); init(); updateLabels(); Modified: trunk/ggc-desktop/src/ggc/gui/dialogs/stock/StockAmounts.java =================================================================== --- trunk/ggc-desktop/src/ggc/gui/dialogs/stock/StockAmounts.java 2015-02-03 15:38:48 UTC (rev 1342) +++ trunk/ggc-desktop/src/ggc/gui/dialogs/stock/StockAmounts.java 2015-02-03 15:48:43 UTC (rev 1343) @@ -317,7 +317,7 @@ * JPanel a = new JPanel(new GridLayout(0, 1)); * a.add(new JLabel(m_ic.getMessage("DATE") + ":", SwingConstants.RIGHT)); * a.add(new JLabel(m_ic.getMessage("BG") + ":", SwingConstants.RIGHT)); - * a.add(new JLabel(m_da.getSettings().getIns1Abbr() + ":", + * a.add(new JLabel(dataAccess.getSettings().getIns1Abbr() + ":", * SwingConstants.RIGHT)); * a.add(new JLabel(m_ic.getMessage("ACT") + ":", SwingConstants.RIGHT)); * JPanel b = new JPanel(new GridLayout(0, 1)); @@ -340,7 +340,7 @@ * JPanel c = new JPanel(new GridLayout(0, 1)); * c.add(new JLabel(m_ic.getMessage("TIME") + ":", SwingConstants.RIGHT)); * c.add(new JLabel(m_ic.getMessage("BU") + ":", SwingConstants.RIGHT)); - * c.add(new JLabel(m_da.getSettings().getIns2Abbr() + ":", + * c.add(new JLabel(dataAccess.getSettings().getIns2Abbr() + ":", * SwingConstants.RIGHT)); * c.add(new JLabel(m_ic.getMessage("COMMENT") + ":", * SwingConstants.RIGHT)); Modified: trunk/ggc-desktop/src/ggc/gui/dialogs/stock/StockDialog.java =================================================================== --- trunk/ggc-desktop/src/ggc/gui/dialogs/stock/StockDialog.java 2015-02-03 15:38:48 UTC (rev 1342) +++ trunk/ggc-desktop/src/ggc/gui/dialogs/stock/StockDialog.java 2015-02-03 15:48:43 UTC (rev 1343) @@ -298,11 +298,11 @@ * addLabel(m_ic.getMessage("URINE") + ":", 288, panel); * addLabel(m_ic.getMessage("ACTIVITY") + ":", 318, panel); * addLabel(m_ic.getMessage("COMMENT") + ":", 348, panel); - * this.dtc = new DateTimeComponent(this.m_da, + * this.dtc = new DateTimeComponent(this.dataAccess, * DateTimeComponent.ALIGN_VERTICAL, 5); * dtc.setBounds(140, 75, 100, 35); * panel.add(dtc); - * addComponent(cob_bg_type = new JComboBox(this.m_da.bg_units), 220, + * addComponent(cob_bg_type = new JComboBox(this.dataAccess.bg_units), 220, * 138, 80, panel); * addComponent(BGField = new JTextField(), 140, 138, 55, panel); * addComponent(Ins1Field = new JTextField(), 140, 168, 55, panel); @@ -389,7 +389,7 @@ * JPanel a = new JPanel(new GridLayout(0, 1)); * a.add(new JLabel(m_ic.getMessage("DATE") + ":", SwingConstants.RIGHT)); * a.add(new JLabel(m_ic.getMessage("BG") + ":", SwingConstants.RIGHT)); - * a.add(new JLabel(m_da.getSettings().getIns1Abbr() + ":", + * a.add(new JLabel(dataAccess.getSettings().getIns1Abbr() + ":", * SwingConstants.RIGHT)); * a.add(new JLabel(m_ic.getMessage("ACT") + ":", SwingConstants.RIGHT)); * JPanel b = new JPanel(new GridLayout(0, 1)); @@ -412,7 +412,7 @@ * JPanel c = new JPanel(new GridLayout(0, 1)); * c.add(new JLabel(m_ic.getMessage("TIME") + ":", SwingConstants.RIGHT)); * c.add(new JLabel(m_ic.getMessage("BU") + ":", SwingConstants.RIGHT)); - * c.add(new JLabel(m_da.getSettings().getIns2Abbr() + ":", + * c.add(new JLabel(dataAccess.getSettings().getIns2Abbr() + ":", * SwingConstants.RIGHT)); * c.add(new JLabel(m_ic.getMessage("COMMENT") + ":", * SwingConstants.RIGHT)); Modified: trunk/ggc-desktop/src/ggc/gui/graphs/FrequencyGraphView.java =================================================================== --- trunk/ggc-desktop/src/ggc/gui/graphs/FrequencyGraphView.java 2015-02-03 15:38:48 UTC (rev 1342) +++ trunk/ggc-desktop/src/ggc/gui/graphs/FrequencyGraphView.java 2015-02-03 15:48:43 UTC (rev 1343) @@ -199,8 +199,8 @@ g2D.drawString(i + "", markPos - 10, viewHeight - lowerSpace + 20); } - // x int lower = (int)m_da.getSettings().getBG_Low(); - // int upper = (int)m_da.getSettings().getBG_High(); + // x int lower = (int)dataAccess.getSettings().getBG_Low(); + // int upper = (int)dataAccess.getSettings().getBG_High(); // XXX: these need something similar to BGtoCoord, but that's too much // effort Modified: trunk/ggc-desktop/src/ggc/gui/little/GGCLittle.java =================================================================== --- trunk/ggc-desktop/src/ggc/gui/little/GGCLittle.java 2015-02-03 15:38:48 UTC (rev 1342) +++ trunk/ggc-desktop/src/ggc/gui/little/GGCLittle.java 2015-02-03 15:48:43 UTC (rev 1343) @@ -184,7 +184,7 @@ helpInit(); - // m_da.addObserver(observable_id, inst) + // dataAccess.addObserver(observable_id, inst) m_da.startDb(); // statusPanel); setDbActions(false); @@ -265,7 +265,7 @@ * menu.addSeparator(); menu.add(createItem("EXIT_APP", "EXIT_APP_DESC", * "exit_app")); menu.add(new JLabel()); menu.add(new JLabel()); * SystemTray tray = SystemTray.getSystemTray(); - * TrayIcon ti = new TrayIcon(m_da.getImageIcon("medical_bag.png", 15, + * TrayIcon ti = new TrayIcon(dataAccess.getImageIcon("medical_bag.png", 15, * 15, this) , m_ic.getMessage("GGC_LITTLE_TITLE"), menu); * ti.setIconAutoSize(true); ti.addActionListener(new ActionListener() { * public void actionPerformed(ActionEvent e) { Modified: trunk/ggc-desktop/src/ggc/gui/little/StatusBarL.java =================================================================== --- trunk/ggc-desktop/src/ggc/gui/little/StatusBarL.java 2015-02-03 15:38:48 UTC (rev 1342) +++ trunk/ggc-desktop/src/ggc/gui/little/StatusBarL.java 2015-02-03 15:48:43 UTC (rev 1343) @@ -138,7 +138,7 @@ { this.lblLed.setIcon(statusIcons[status]); // this.little.setMenusByDbLoad(status); - // ((MainFrame)m_da.getMainParent()).setMenusByDbLoad(status); + // ((MainFrame)dataAccess.getMainParent()).setMenusByDbLoad(status); } /** Modified: trunk/ggc-desktop/src/ggc/gui/little/panels/DailyStatsControlsL.java =================================================================== --- trunk/ggc-desktop/src/ggc/gui/little/panels/DailyStatsControlsL.java 2015-02-03 15:38:48 UTC (rev 1342) +++ trunk/ggc-desktop/src/ggc/gui/little/panels/DailyStatsControlsL.java 2015-02-03 15:48:43 UTC (rev 1343) @@ -153,7 +153,7 @@ */ public void reloadTable() { - // m_da.getDayStats(new GregorianCalendar()); + // dataAccess.getDayStats(new GregorianCalendar()); m_da.loadDailySettingsLittle(m_gc, true); this.m_mlp.dailyStats.getTableModel().setDailyValues(m_da.getDayStats(m_gc)); } Modified: trunk/ggc-desktop/src/ggc/gui/little/panels/GeneralInfoPanelL.java =================================================================== --- trunk/ggc-desktop/src/ggc/gui/little/panels/GeneralInfoPanelL.java 2015-02-03 15:38:48 UTC (rev 1342) +++ trunk/ggc-desktop/src/ggc/gui/little/panels/GeneralInfoPanelL.java 2015-02-03 15:48:43 UTC (rev 1343) @@ -44,7 +44,7 @@ // GGCProperties props = GGCProperties.getInstance(); // private I18nControl m_ic = I18nControl.getInstance(); - // DataAccess m_da = DataAccess.getInstance(); + // DataAccess dataAccess = DataAccess.getInstance(); /** * Constructor @@ -84,8 +84,8 @@ lblName.setText(m_da.getSettings().getUserName()); lblIns1.setText(m_da.getSettings().getIns1Name() + " (" + m_da.getSettings().getIns1Abbr() + ")"); lblIns2.setText(m_da.getSettings().getIns2Name() + " (" + m_da.getSettings().getIns2Abbr() + ")"); - // lblMeter.setText(m_da.getSettings().getMeterTypeString() + " (" - // + m_da.getSettings().getMeterPort() + ")"); + // lblMeter.setText(dataAccess.getSettings().getMeterTypeString() + " (" + // + dataAccess.getSettings().getMeterPort() + ")"); lblUnit.setText(m_da.getSettings().getBG_unitString()); } } Modified: trunk/ggc-desktop/src/ggc/gui/little/panels/PlugInPumpPanelL.java =================================================================== --- trunk/ggc-desktop/src/ggc/gui/little/panels/PlugInPumpPanelL.java 2015-02-03 15:38:48 UTC (rev 1342) +++ trunk/ggc-desktop/src/ggc/gui/little/panels/PlugInPumpPanelL.java 2015-02-03 15:48:43 UTC (rev 1343) @@ -37,7 +37,7 @@ private static final long serialVersionUID = 2496714983251707250L; - // private I18nControl ic = I18nControl.getInstance(); + // private I18nControl i18nControlAbstract = I18nControl.getInstance(); /** * Constructor Modified: trunk/ggc-desktop/src/ggc/gui/panels/info/DeviceInfoPanel.java =================================================================== --- trunk/ggc-desktop/src/ggc/gui/panels/info/DeviceInfoPanel.java 2015-02-03 15:38:48 UTC (rev 1342) +++ trunk/ggc-desktop/src/ggc/gui/panels/info/DeviceInfoPanel.java 2015-02-03 15:48:43 UTC (rev 1343) @@ -48,7 +48,7 @@ private JLabel lblPump; private JLabel lblCgms; - // private DataAccess m_da = DataAccess.getInstance(); + // private DataAccess dataAccess = DataAccess.getInstance(); /** * Constructor @@ -128,17 +128,17 @@ @Override public void doRefresh() { - if (m_da.isPluginAvailable(GGCPluginType.METER_TOOL_PLUGIN)) + if (m_da.isPluginAvailable(GGCPluginType.MeterToolPlugin)) { - lblMeter.setText(getDeviceInfo(m_da.getPlugIn(GGCPluginType.METER_TOOL_PLUGIN))); + lblMeter.setText(getDeviceInfo(m_da.getPlugIn(GGCPluginType.MeterToolPlugin))); } - if (m_da.isPluginAvailable(GGCPluginType.PUMP_TOOL_PLUGIN)) + if (m_da.isPluginAvailable(GGCPluginType.PumpToolPlugin)) { - lblPump.setText(getDeviceInfo(m_da.getPlugIn(GGCPluginType.PUMP_TOOL_PLUGIN))); + lblPump.setText(getDeviceInfo(m_da.getPlugIn(GGCPluginType.PumpToolPlugin))); } - if (m_da.isPluginAvailable(GGCPluginType.CGMS_TOOL_PLUGIN)) + if (m_da.isPluginAvailable(GGCPluginType.CGMSToolPlugin)) { - lblCgms.setText(getDeviceInfo(m_da.getPlugIn(GGCPluginType.CGMS_TOOL_PLUGIN))); + lblCgms.setText(getDeviceInfo(m_da.getPlugIn(GGCPluginType.CGMSToolPlugin))); } } Modified: trunk/ggc-desktop/src/ggc/gui/panels/info/GeneralInfoPanel.java =================================================================== --- trunk/ggc-desktop/src/ggc/gui/panels/info/GeneralInfoPanel.java 2015-02-03 15:38:48 UTC (rev 1342) +++ trunk/ggc-desktop/src/ggc/gui/panels/info/GeneralInfoPanel.java 2015-02-03 15:48:43 UTC (rev 1343) @@ -154,8 +154,8 @@ lblName.setText(m_da.getSettings().getUserName()); lblIns1.setText(getInsulins(DataAccess.INSULIN_DOSE_BOLUS)); lblIns2.setText(getInsulins(DataAccess.INSULIN_DOSE_BASAL)); - // lblIns2.setText(m_da.getSettings().getIns2Name() + " (" + - // m_da.getSettings().getIns2Abbr() + ")"); + // lblIns2.setText(dataAccess.getSettings().getIns2Name() + " (" + + // dataAccess.getSettings().getIns2Abbr() + ")"); lblUnit.setText(m_da.getSettings().getBG_unitString()); int unit = m_da.getSettings().getBG_unit(); @@ -176,7 +176,7 @@ float avg = (float) ((min + max) / 2.0); - // String s = m_da.getConfigurationManager().getFloatValue(key) + // String s = dataAccess.getConfigurationManager().getFloatValue(key) lblTarget.setText(DataAccess.Decimal1Format.format(min) + " - " + DataAccess.Decimal1Format.format(max) + " [" + DataAccess.Decimal1Format.format(avg) + "]"); Modified: trunk/ggc-desktop/src/ggc/gui/panels/info/HbA1cInfoPanel.java =================================================================== --- trunk/ggc-desktop/src/ggc/gui/panels/info/HbA1cInfoPanel.java 2015-02-03 15:38:48 UTC (rev 1342) +++ trunk/ggc-desktop/src/ggc/gui/panels/info/HbA1cInfoPanel.java 2015-02-03 15:48:43 UTC (rev 1343) @@ -48,7 +48,7 @@ private JLabel lblReadings; private JLabel lblReadingsPerDay; - // private DataAccess m_da = DataAccess.getInstance(); + // private DataAccess dataAccess = DataAccess.getInstance(); /** * Constructor Modified: trunk/ggc-desktop/src/ggc/gui/panels/info/PlugInsInfoPanel.java =================================================================== --- trunk/ggc-desktop/src/ggc/gui/panels/info/PlugInsInfoPanel.java 2015-02-03 15:38:48 UTC (rev 1342) +++ trunk/ggc-desktop/src/ggc/gui/panels/info/PlugInsInfoPanel.java 2015-02-03 15:48:43 UTC (rev 1343) @@ -1,7 +1,6 @@ package ggc.gui.panels.info; import ggc.core.plugins.GGCPluginType; -import ggc.core.util.DataAccess; import java.awt.BorderLayout; import java.awt.Color; @@ -47,7 +46,7 @@ private JLabel lblCgms; private JLabel lblNutri; - // private DataAccess m_da = DataAccess.getInstance(); + // private DataAccess dataAccess = DataAccess.getInstance(); /** * Constructor @@ -113,24 +112,24 @@ @Override public void refreshInfo() { - if (m_da.isPluginAvailable(GGCPluginType.METER_TOOL_PLUGIN)) + if (m_da.isPluginAvailable(GGCPluginType.MeterToolPlugin)) { - lblMeter.setText(m_da.getPlugIn(GGCPluginType.METER_TOOL_PLUGIN).getShortStatus()); + lblMeter.setText(m_da.getPlugIn(GGCPluginType.MeterToolPlugin).getShortStatus()); } - if (m_da.isPluginAvailable(GGCPluginType.PUMP_TOOL_PLUGIN)) + if (m_da.isPluginAvailable(GGCPluginType.PumpToolPlugin)) { - lblPump.setText(m_da.getPlugIn(GGCPluginType.PUMP_TOOL_PLUGIN).getShortStatus()); + lblPump.setText(m_da.getPlugIn(GGCPluginType.PumpToolPlugin).getShortStatus()); } - if (m_da.isPluginAvailable(GGCPluginType.CGMS_TOOL_PLUGIN)) + if (m_da.isPluginAvailable(GGCPluginType.CGMSToolPlugin)) { - lblCgms.setText(m_da.getPlugIn(GGCPluginType.CGMS_TOOL_PLUGIN).getShortStatus()); + lblCgms.setText(m_da.getPlugIn(GGCPluginType.CGMSToolPlugin).getShortStatus()); } - if (m_da.isPluginAvailable(GGCPluginType.NUTRITION_TOOL_PLUGIN)) + if (m_da.isPluginAvailable(GGCPluginType.NutritionToolPlugin)) { - lblCgms.setText(m_da.getPlugIn(GGCPluginType.NUTRITION_TOOL_PLUGIN).getShortStatus()); + this.lblNutri.setText(m_da.getPlugIn(GGCPluginType.NutritionToolPlugin).getShortStatus()); } } Modif... [truncated message content] |
From: <and...@us...> - 2015-02-05 22:33:27
|
Revision: 1344 http://sourceforge.net/p/ggc/code/1344 Author: andyrozman Date: 2015-02-05 22:33:24 +0000 (Thu, 05 Feb 2015) Log Message: ----------- Changes according DeviceInterface Dexcom changes Animas changes Modified Paths: -------------- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/DexcomG4Api.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/BytesConverterAbstract.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPageToEGVDataConverter.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPageToUserEventDataConverter.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPagesToInsertionTimeConverter.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPagesToMeterConverter.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPagesToXmlRecordConverter.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/internal/GenericReceiverRecordAbstract.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/internal/IGenericReceiverRecord.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/util/DexcomUtils.java trunk/ggc-desktop/pom.xml trunk/ggc-meter/src/ggc/meter/device/DummyMeter.java trunk/ggc-meter/src/ggc/meter/device/abbott/Freestyle.java trunk/ggc-meter/src/ggc/meter/device/abbott/FreestyleFlash.java trunk/ggc-meter/src/ggc/meter/device/abbott/FreestyleFreedom.java trunk/ggc-meter/src/ggc/meter/device/abbott/FreestyleFreedomLite.java trunk/ggc-meter/src/ggc/meter/device/abbott/FreestyleLite.java trunk/ggc-meter/src/ggc/meter/device/abbott/FreestyleMeter.java trunk/ggc-meter/src/ggc/meter/device/abbott/OptiumXceed.java trunk/ggc-meter/src/ggc/meter/device/abbott/PrecisionXtra.java trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekActive.java trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekAdvantage.java trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekAviva.java trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekAvivaCombo.java trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekComfort.java trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekCompact.java trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekCompactPlus.java trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekGo.java trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekIntegra.java trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekNano.java trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekPerforma.java trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekSensor.java trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekSmartPixMeter.java trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaBreeze.java trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaBreeze2.java trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaContour.java trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaContourLink.java trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaContourTest.java trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaContourUSB.java trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaDEX.java trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaEliteXL.java trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaMeter.java trunk/ggc-meter/src/ggc/meter/device/menarini/GlucofixMio.java trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchMeter.java trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchMeter2.java trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchUltraSmart.java trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchVerioPro.java trunk/ggc-meter/src/ggc/meter/manager/company/Sanvita.java trunk/ggc-meter/src/ggc/meter/manager/company/Wavesense.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/util/AnimasException.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/util/AnimasUtils.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/data/AnimasPumpDeviceData.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/handler/AnimasBaseDataHandler.java Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/DexcomG4Api.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/DexcomG4Api.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/DexcomG4Api.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -32,6 +32,7 @@ import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomUtils.BitConversion; import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomUtils.DexcomDateParsing; import ggc.plugin.data.progress.ProgressType; +import ggc.plugin.device.PlugInBaseException; import gnu.io.CommPortIdentifier; import gnu.io.NRSerialPort; import gnu.io.PortInUseException; @@ -90,7 +91,7 @@ } } - public Element readFirmwareHeader() throws DexcomException + public Element readFirmwareHeader() throws PlugInBaseException { Element result = (Element) this.writeCommandAndReadParsedResponse(DexcomG4Commands.ReadFirmwareHeader); this.addToProgressAndCheckIfCanceled(1); @@ -98,7 +99,7 @@ return result; } - public String readReceiverSerialNumber() throws DexcomException + public String readReceiverSerialNumber() throws PlugInBaseException { HashMap<String, String> map = readAllRecordsForManufacturingData(); return map.get("SerialNumber"); @@ -135,7 +136,7 @@ } - public DatabasePageRange readDatabasePageRange(ReceiverRecordType recordType) throws DexcomException + public DatabasePageRange readDatabasePageRange(ReceiverRecordType recordType) throws PlugInBaseException { if (!databasePagesRanges.containsKey(recordType)) { @@ -150,7 +151,7 @@ return databasePagesRanges.containsKey(recordType); } - public DatabasePageRange readDatabasePageRangeReal(ReceiverRecordType recordType) throws DexcomException + public DatabasePageRange readDatabasePageRangeReal(ReceiverRecordType recordType) throws PlugInBaseException { short[] data = this.writeCommandAndReadRawResponse(DexcomG4Commands.ReadDatabasePageRange, null, new Object[] { (long) recordType.getValue() }); @@ -168,7 +169,7 @@ return dpr; } - public List<InsertionTimeRecord> readAllRecordsForInsertionTime() throws DexcomException + public List<InsertionTimeRecord> readAllRecordsForInsertionTime() throws PlugInBaseException { List<DatabasePage> pages = readDatabasePagesAll(ReceiverRecordType.InsertionTime); @@ -185,7 +186,7 @@ return records; } - public List<MeterDataRecord> readAllRecordsForMeterData() throws DexcomException + public List<MeterDataRecord> readAllRecordsForMeterData() throws PlugInBaseException { List<DatabasePage> pages = readDatabasePagesAll(ReceiverRecordType.MeterData); @@ -202,7 +203,7 @@ return records; } - public List<UserEventDataRecord> readAllRecordsForEvents() throws DexcomException + public List<UserEventDataRecord> readAllRecordsForEvents() throws PlugInBaseException { List<DatabasePage> pages = readDatabasePagesAll(ReceiverRecordType.UserEventData); @@ -219,7 +220,7 @@ return records; } - public List<EGVRecord> readAllRecordsForEGVData() throws DexcomException + public List<EGVRecord> readAllRecordsForEGVData() throws PlugInBaseException { List<DatabasePage> pages = readDatabasePagesAll(ReceiverRecordType.EGVData); @@ -236,7 +237,7 @@ return records; } - public void saveDatabasePages(ReceiverRecordType recordType) throws DexcomException + public void saveDatabasePages(ReceiverRecordType recordType) throws PlugInBaseException { List<DatabasePage> pages = readDatabasePagesAll(recordType); @@ -253,7 +254,7 @@ } - public HashMap<String, String> readAllRecordsForManufacturingData() throws DexcomException + public HashMap<String, String> readAllRecordsForManufacturingData() throws PlugInBaseException { List<DatabasePage> pages = readDatabasePagesAll(ReceiverRecordType.ManufacturingData); @@ -293,7 +294,7 @@ return paramMap; } - public List<DatabasePage> readDatabasePagesAll(ReceiverRecordType recordType) throws DexcomException + public List<DatabasePage> readDatabasePagesAll(ReceiverRecordType recordType) throws PlugInBaseException { DatabasePageRange dpr = readDatabasePageRange(recordType); @@ -325,7 +326,7 @@ } public List<DatabasePage> readDatabasePages(ReceiverRecordType recordType, int pageNumber, int numberOfPages) - throws DexcomException + throws PlugInBaseException { if (numberOfPages == 1 && pageNumber == 0) @@ -351,7 +352,7 @@ return pages; } - public int readSystemTime() throws DexcomException + public int readSystemTime() throws PlugInBaseException { Integer result = (Integer) this.writeCommandAndReadParsedResponse(DexcomG4Commands.ReadSystemTime, null); this.addToProgressAndCheckIfCanceled(1); @@ -359,23 +360,23 @@ return result; } - public int readDisplayTime() throws DexcomException + public int readDisplayTime() throws PlugInBaseException { return readSystemTime() + DexcomUtils.readDisplayTimeOffset(); } - public Date readSystemTimeAsDate() throws DexcomException + public Date readSystemTimeAsDate() throws PlugInBaseException { int systemTime = readSystemTime(); return DexcomUtils.getDateFromSeconds(systemTime); } - public Date readDisplayTimeAsDate() throws DexcomException + public Date readDisplayTimeAsDate() throws PlugInBaseException { return DexcomUtils.getDateFromSeconds(readSystemTime(), DexcomDateParsing.DateWithDifferenceWithTimeZoneFix); } - public PartitionInfo readDatabasePartitionInfo() throws DexcomException + public PartitionInfo readDatabasePartitionInfo() throws PlugInBaseException { if (this.partitionInfo == null) { @@ -389,7 +390,7 @@ return this.partitionInfo; } - public Partition getPartition(ReceiverRecordType recordType) throws DexcomException + public Partition getPartition(ReceiverRecordType recordType) throws PlugInBaseException { if (this.partitionInfo == null) { @@ -399,7 +400,7 @@ return this.partitionInfo.getPartitionByRecordType(recordType); } - public int readDisplayTimeOffset() throws DexcomException + public int readDisplayTimeOffset() throws PlugInBaseException { Integer value = (Integer) this.writeCommandAndReadParsedResponse(DexcomG4Commands.ReadDisplayTimeOffset); @@ -408,7 +409,7 @@ return value; } - public LanguageType readLanguage() throws DexcomException + public LanguageType readLanguage() throws PlugInBaseException { Integer language = (Integer) this.writeCommandAndReadParsedResponse(DexcomG4Commands.ReadLanguage); @@ -423,7 +424,7 @@ return lang; } - public GlucoseUnitType readGlucoseUnit() throws DexcomException + public GlucoseUnitType readGlucoseUnit() throws PlugInBaseException { Integer glu = (Integer) this.writeCommandAndReadParsedResponse(DexcomG4Commands.ReadGlucoseUnit); @@ -438,7 +439,7 @@ return gluType; } - public ClockModeType readClockMode() throws DexcomException + public ClockModeType readClockMode() throws PlugInBaseException { Integer clock = (Integer) this.writeCommandAndReadParsedResponse(DexcomG4Commands.ReadClockMode); @@ -736,7 +737,7 @@ packet.getResponseCommandId(), receiverCommandFromByte)); } - public void addToProgressAndCheckIfCanceled(int numberOfPages) throws DexcomException + public void addToProgressAndCheckIfCanceled(int numberOfPages) throws PlugInBaseException { if (this.progressReport != null) { Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/BytesConverterAbstract.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/BytesConverterAbstract.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/BytesConverterAbstract.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -12,6 +12,7 @@ import java.util.List; import com.atech.utils.data.ShortUtils; +import ggc.plugin.device.PlugInBaseException; public class BytesConverterAbstract { @@ -49,7 +50,7 @@ } public ArrayList<DatabaseRecord> getRawRecords(List<DatabasePage> pages, IGenericReceiverRecord template) - throws DexcomException + throws PlugInBaseException { ArrayList<DatabaseRecord> rawRecords = new ArrayList<DatabaseRecord>(); Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPageToEGVDataConverter.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPageToEGVDataConverter.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPageToEGVDataConverter.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -5,6 +5,7 @@ import ggc.cgms.device.dexcom.receivers.g4receiver.internal.DatabasePage; import ggc.cgms.device.dexcom.receivers.g4receiver.internal.DatabaseRecord; import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomException; +import ggc.plugin.device.PlugInBaseException; import java.util.ArrayList; import java.util.List; @@ -14,7 +15,7 @@ // private static final Log log = // LogFactory.getLog(DataPageToEGVDataConverter.class); - public List<EGVRecord> convert(List<DatabasePage> pages) throws DexcomException + public List<EGVRecord> convert(List<DatabasePage> pages) throws PlugInBaseException { ArrayList<DatabaseRecord> rawRecords = this.getRawRecords(pages, new EGVRecord()); Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPageToUserEventDataConverter.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPageToUserEventDataConverter.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPageToUserEventDataConverter.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -6,6 +6,7 @@ import ggc.cgms.device.dexcom.receivers.g4receiver.internal.DatabasePage; import ggc.cgms.device.dexcom.receivers.g4receiver.internal.DatabaseRecord; import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomException; +import ggc.plugin.device.PlugInBaseException; import java.util.ArrayList; import java.util.List; @@ -13,7 +14,7 @@ public class DataPageToUserEventDataConverter extends BytesConverterAbstract { - public List<UserEventDataRecord> convert(List<DatabasePage> pages) throws DexcomException + public List<UserEventDataRecord> convert(List<DatabasePage> pages) throws PlugInBaseException { ArrayList<DatabaseRecord> rawRecords = this.getRawRecords(pages, new UserEventDataRecord()); Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPagesToInsertionTimeConverter.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPagesToInsertionTimeConverter.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPagesToInsertionTimeConverter.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -6,6 +6,7 @@ import ggc.cgms.device.dexcom.receivers.g4receiver.internal.DatabasePage; import ggc.cgms.device.dexcom.receivers.g4receiver.internal.DatabaseRecord; import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomException; +import ggc.plugin.device.PlugInBaseException; import java.util.ArrayList; import java.util.List; @@ -15,7 +16,7 @@ // private static final Log log = // LogFactory.getLog(DataPagesToInsertionTimeConverter.class); - public List<InsertionTimeRecord> convert(List<DatabasePage> pages) throws DexcomException + public List<InsertionTimeRecord> convert(List<DatabasePage> pages) throws PlugInBaseException { ArrayList<DatabaseRecord> rawRecords = this.getRawRecords(pages, new InsertionTimeRecord()); Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPagesToMeterConverter.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPagesToMeterConverter.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPagesToMeterConverter.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -5,6 +5,7 @@ import ggc.cgms.device.dexcom.receivers.g4receiver.internal.DatabasePage; import ggc.cgms.device.dexcom.receivers.g4receiver.internal.DatabaseRecord; import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomException; +import ggc.plugin.device.PlugInBaseException; import java.util.ArrayList; import java.util.List; @@ -14,7 +15,7 @@ // private static final Log log = // LogFactory.getLog(DataPagesToMeterConverter.class); - public List<MeterDataRecord> convert(List<DatabasePage> pages) throws DexcomException + public List<MeterDataRecord> convert(List<DatabasePage> pages) throws PlugInBaseException { ArrayList<DatabaseRecord> rawRecords = this.getRawRecords(pages, new MeterDataRecord()); Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPagesToXmlRecordConverter.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPagesToXmlRecordConverter.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPagesToXmlRecordConverter.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -5,6 +5,7 @@ import ggc.cgms.device.dexcom.receivers.g4receiver.internal.DatabasePage; import ggc.cgms.device.dexcom.receivers.g4receiver.internal.DatabaseRecord; import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomException; +import ggc.plugin.device.PlugInBaseException; import java.util.ArrayList; import java.util.List; @@ -12,7 +13,7 @@ public class DataPagesToXmlRecordConverter extends BytesConverterAbstract { - public List<XmlRecord> convert(List<DatabasePage> pages, XmlRecord template) throws DexcomException + public List<XmlRecord> convert(List<DatabasePage> pages, XmlRecord template) throws PlugInBaseException { ArrayList<DatabaseRecord> rawRecords = this.getRawRecords(pages, template); Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/internal/GenericReceiverRecordAbstract.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/internal/GenericReceiverRecordAbstract.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/internal/GenericReceiverRecordAbstract.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -2,6 +2,7 @@ import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomException; import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomUtils; +import ggc.plugin.device.PlugInBaseException; import java.util.Date; @@ -61,12 +62,12 @@ return this.crc; } - public int getCurrentRecordSize() throws DexcomException + public int getCurrentRecordSize() throws PlugInBaseException { return DexcomUtils.getPartition(this.getRecordType()).getRecordLength(); } - public int getCurrentRecordVersion() throws DexcomException + public int getCurrentRecordVersion() throws PlugInBaseException { return DexcomUtils.getPartition(this.getRecordType()).getRecordRevision(); } Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/internal/IGenericReceiverRecord.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/internal/IGenericReceiverRecord.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/internal/IGenericReceiverRecord.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -2,6 +2,7 @@ import ggc.cgms.device.dexcom.receivers.g4receiver.enums.ReceiverRecordType; import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomException; +import ggc.plugin.device.PlugInBaseException; import java.util.Date; @@ -14,9 +15,9 @@ int getCrc(); - int getCurrentRecordSize() throws DexcomException; + int getCurrentRecordSize() throws DexcomException, PlugInBaseException; - int getCurrentRecordVersion() throws DexcomException; + int getCurrentRecordVersion() throws DexcomException, PlugInBaseException; int getImplementedRecordSize(); Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/util/DexcomUtils.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/util/DexcomUtils.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/util/DexcomUtils.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -21,6 +21,7 @@ import java.util.HashMap; import java.util.TimeZone; +import ggc.plugin.device.PlugInBaseException; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.jdom.Document; @@ -229,7 +230,7 @@ DexcomUtils.dexcomG4Api = dexcomG4Api; } - public static PartitionInfo getPartitionInfo() throws DexcomException + public static PartitionInfo getPartitionInfo() throws PlugInBaseException { return dexcomG4Api.readDatabasePartitionInfo(); @@ -241,7 +242,7 @@ // return partitionInfo; } - public static Partition getPartition(ReceiverRecordType recordType) throws DexcomException + public static Partition getPartition(ReceiverRecordType recordType) throws PlugInBaseException { return dexcomG4Api.getPartition(recordType); // if (partitionInfo == null) @@ -293,7 +294,7 @@ return displayTimeOffset; } - catch (DexcomException ex) + catch (PlugInBaseException ex) { log.warn("Error reading DisplayTimeOffset: " + ex, ex); return 0; Modified: trunk/ggc-desktop/pom.xml =================================================================== --- trunk/ggc-desktop/pom.xml 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-desktop/pom.xml 2015-02-05 22:33:24 UTC (rev 1344) @@ -49,11 +49,12 @@ <artifactId>ggc-core</artifactId> </dependency> + <!-- REQUIRED <dependency> <groupId>net.sf.ggc</groupId> <artifactId>ggc-help</artifactId> </dependency> - +--> <dependency> <groupId>net.sf.ggc</groupId> <artifactId>ggc-plugin-base</artifactId> Modified: trunk/ggc-meter/src/ggc/meter/device/DummyMeter.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/DummyMeter.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-meter/src/ggc/meter/device/DummyMeter.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -1,6 +1,7 @@ package ggc.meter.device; import ggc.plugin.device.PlugInBaseException; +import ggc.plugin.manager.DeviceImplementationStatus; import ggc.plugin.protocol.ConnectionProtocols; /** @@ -160,17 +161,20 @@ return null; } + /** - * getImplementationStatus - Get Company Id - * + * getImplementationStatus - Get Implementation Status + * * @return implementation status as number * @see ggc.plugin.manager.DeviceImplementationStatus */ - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { - return 0; + return DeviceImplementationStatus.IMPLEMENTATION_NOT_AVAILABLE; } + + /** * Get Device ClassName */ Modified: trunk/ggc-meter/src/ggc/meter/device/abbott/Freestyle.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/abbott/Freestyle.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-meter/src/ggc/meter/device/abbott/Freestyle.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -158,7 +158,7 @@ * @see ggc.plugin.manager.DeviceImplementationStatus */ @Override - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { return DeviceImplementationStatus.IMPLEMENTATION_TESTING; } Modified: trunk/ggc-meter/src/ggc/meter/device/abbott/FreestyleFlash.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/abbott/FreestyleFlash.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-meter/src/ggc/meter/device/abbott/FreestyleFlash.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -157,7 +157,7 @@ * @see ggc.plugin.manager.DeviceImplementationStatus */ @Override - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { return DeviceImplementationStatus.IMPLEMENTATION_NOT_AVAILABLE; } Modified: trunk/ggc-meter/src/ggc/meter/device/abbott/FreestyleFreedom.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/abbott/FreestyleFreedom.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-meter/src/ggc/meter/device/abbott/FreestyleFreedom.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -157,7 +157,7 @@ * @see ggc.plugin.manager.DeviceImplementationStatus */ @Override - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { return DeviceImplementationStatus.IMPLEMENTATION_NOT_AVAILABLE; } Modified: trunk/ggc-meter/src/ggc/meter/device/abbott/FreestyleFreedomLite.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/abbott/FreestyleFreedomLite.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-meter/src/ggc/meter/device/abbott/FreestyleFreedomLite.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -157,7 +157,7 @@ * @see ggc.plugin.manager.DeviceImplementationStatus */ @Override - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { return DeviceImplementationStatus.IMPLEMENTATION_NOT_AVAILABLE; } Modified: trunk/ggc-meter/src/ggc/meter/device/abbott/FreestyleLite.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/abbott/FreestyleLite.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-meter/src/ggc/meter/device/abbott/FreestyleLite.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -157,7 +157,7 @@ * @see ggc.plugin.manager.DeviceImplementationStatus */ @Override - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { return DeviceImplementationStatus.IMPLEMENTATION_NOT_AVAILABLE; } Modified: trunk/ggc-meter/src/ggc/meter/device/abbott/FreestyleMeter.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/abbott/FreestyleMeter.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-meter/src/ggc/meter/device/abbott/FreestyleMeter.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -179,7 +179,7 @@ /** * getImplementationStatus */ - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { return DeviceImplementationStatus.IMPLEMENTATION_TESTING; } Modified: trunk/ggc-meter/src/ggc/meter/device/abbott/OptiumXceed.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/abbott/OptiumXceed.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-meter/src/ggc/meter/device/abbott/OptiumXceed.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -646,7 +646,7 @@ /** * getImplementationStatus */ - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { return DeviceImplementationStatus.IMPLEMENTATION_TESTING; } Modified: trunk/ggc-meter/src/ggc/meter/device/abbott/PrecisionXtra.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/abbott/PrecisionXtra.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-meter/src/ggc/meter/device/abbott/PrecisionXtra.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -153,9 +153,9 @@ * @see ggc.plugin.manager.DeviceImplementationStatus */ @Override - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { - return DeviceImplementationStatus.IMPLEMENTATION_TESTING; + return DeviceImplementationStatus.IMPLEMENTATION_DONE; } } Modified: trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekActive.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekActive.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekActive.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -125,17 +125,6 @@ } /** - * getImplementationStatus - Get Implementation Status - * - * @return implementation status as number - * @see ggc.plugin.manager.DeviceImplementationStatus - */ - public int getImplementationStatus() - { - return DeviceImplementationStatus.IMPLEMENTATION_TESTING; - } - - /** * getMaxMemoryRecords - Get Maximum entries that can be stored in devices memory * * @return number Modified: trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekAdvantage.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekAdvantage.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekAdvantage.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -125,17 +125,6 @@ } /** - * getImplementationStatus - Get Implementation Status - * - * @return implementation status as number - * @see ggc.plugin.manager.DeviceImplementationStatus - */ - public int getImplementationStatus() - { - return DeviceImplementationStatus.IMPLEMENTATION_TESTING; - } - - /** * getMaxMemoryRecords - Get Maximum entries that can be stored in devices memory * * @return number Modified: trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekAviva.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekAviva.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekAviva.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -125,17 +125,6 @@ } /** - * getImplementationStatus - Get Implementation Status - * - * @return implementation status as number - * @see ggc.plugin.manager.DeviceImplementationStatus - */ - public int getImplementationStatus() - { - return DeviceImplementationStatus.IMPLEMENTATION_TESTING; - } - - /** * getDeviceClassName() - get name of this class */ public String getDeviceClassName() Modified: trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekAvivaCombo.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekAvivaCombo.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekAvivaCombo.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -126,17 +126,6 @@ } /** - * getImplementationStatus - Get Implementation Status - * - * @return implementation status as number - * @see ggc.plugin.manager.DeviceImplementationStatus - */ - public int getImplementationStatus() - { - return DeviceImplementationStatus.IMPLEMENTATION_TESTING; - } - - /** * getDeviceClassName() - get name of this class */ public String getDeviceClassName() Modified: trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekComfort.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekComfort.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekComfort.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -124,18 +124,8 @@ return null; } + /** - * getImplementationStatus - Get Implementation Status - * - * @return implementation status as number - * @see ggc.plugin.manager.DeviceImplementationStatus - */ - public int getImplementationStatus() - { - return DeviceImplementationStatus.IMPLEMENTATION_TESTING; - } - - /** * getMaxMemoryRecords - Get Maximum entries that can be stored in devices memory * * @return number Modified: trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekCompact.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekCompact.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekCompact.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -125,17 +125,6 @@ } /** - * getImplementationStatus - Get Implementation Status - * - * @return implementation status as number - * @see ggc.plugin.manager.DeviceImplementationStatus - */ - public int getImplementationStatus() - { - return DeviceImplementationStatus.IMPLEMENTATION_TESTING; - } - - /** * getMaxMemoryRecords - Get Maximum entries that can be stored in devices memory * * @return number Modified: trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekCompactPlus.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekCompactPlus.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekCompactPlus.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -124,16 +124,6 @@ return null; } - /** - * getImplementationStatus - Get Implementation Status - * - * @return implementation status as number - * @see ggc.plugin.manager.DeviceImplementationStatus - */ - public int getImplementationStatus() - { - return DeviceImplementationStatus.IMPLEMENTATION_TESTING; - } /** * getMaxMemoryRecords - Get Maximum entries that can be stored in devices memory Modified: trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekGo.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekGo.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekGo.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -123,16 +123,6 @@ return null; } - /** - * getImplementationStatus - Get Implementation Status - * - * @return implementation status as number - * @see ggc.plugin.manager.DeviceImplementationStatus - */ - public int getImplementationStatus() - { - return DeviceImplementationStatus.IMPLEMENTATION_TESTING; - } /** * getMaxMemoryRecords - Get Maximum entries that can be stored in devices memory Modified: trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekIntegra.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekIntegra.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekIntegra.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -123,16 +123,6 @@ return null; } - /** - * getImplementationStatus - Get Implementation Status - * - * @return implementation status as number - * @see ggc.plugin.manager.DeviceImplementationStatus - */ - public int getImplementationStatus() - { - return DeviceImplementationStatus.IMPLEMENTATION_TESTING; - } /** * getMaxMemoryRecords - Get Maximum entries that can be stored in devices memory Modified: trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekNano.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekNano.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekNano.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -125,17 +125,6 @@ } /** - * getImplementationStatus - Get Implementation Status - * - * @return implementation status as number - * @see ggc.plugin.manager.DeviceImplementationStatus - */ - public int getImplementationStatus() - { - return DeviceImplementationStatus.IMPLEMENTATION_TESTING; - } - - /** * getDeviceClassName() - get name of this class */ public String getDeviceClassName() Modified: trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekPerforma.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekPerforma.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekPerforma.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -123,16 +123,6 @@ return null; } - /** - * getImplementationStatus - Get Implementation Status - * - * @return implementation status as number - * @see ggc.plugin.manager.DeviceImplementationStatus - */ - public int getImplementationStatus() - { - return DeviceImplementationStatus.IMPLEMENTATION_TESTING; - } /** * getMaxMemoryRecords - Get Maximum entries that can be stored in devices memory Modified: trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekSensor.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekSensor.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekSensor.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -124,16 +124,6 @@ return null; } - /** - * getImplementationStatus - Get Implementation Status - * - * @return implementation status as number - * @see ggc.plugin.manager.DeviceImplementationStatus - */ - public int getImplementationStatus() - { - return DeviceImplementationStatus.IMPLEMENTATION_TESTING; - } /** * getMaxMemoryRecords - Get Maximum entries that can be stored in devices memory Modified: trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekSmartPixMeter.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekSmartPixMeter.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekSmartPixMeter.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -8,6 +8,7 @@ import ggc.plugin.device.DeviceIdentification; import ggc.plugin.device.DownloadSupportType; import ggc.plugin.device.impl.accuchek.AccuChekSmartPix; +import ggc.plugin.manager.DeviceImplementationStatus; import ggc.plugin.manager.company.AbstractDeviceCompany; import ggc.plugin.output.OutputUtil; import ggc.plugin.output.OutputWriter; @@ -430,4 +431,16 @@ this.deviceSourceName = group + " " + device; } + + /** + * getImplementationStatus - Get Implementation Status + * + * @return implementation status as number + * @see ggc.plugin.manager.DeviceImplementationStatus + */ + public DeviceImplementationStatus getImplementationStatus() + { + return DeviceImplementationStatus.IMPLEMENTATION_DONE; + } + } Modified: trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaBreeze.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaBreeze.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaBreeze.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -138,16 +138,6 @@ return null; } - /** - * getImplementationStatus - Get implementation status - * - * @return implementation status as number - * @see ggc.plugin.manager.DeviceImplementationStatus - */ - public int getImplementationStatus() - { - return DeviceImplementationStatus.IMPLEMENTATION_DONE; - } /** * Maximum of records that device can store Modified: trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaBreeze2.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaBreeze2.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaBreeze2.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -138,16 +138,6 @@ return null; } - /** - * getImplementationStatus - Get implementation status - * - * @return implementation status as number - * @see ggc.plugin.manager.DeviceImplementationStatus - */ - public int getImplementationStatus() - { - return DeviceImplementationStatus.IMPLEMENTATION_DONE; - } /** * Maximum of records that device can store Modified: trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaContour.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaContour.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaContour.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -131,16 +131,6 @@ return null; } - /** - * getImplementationStatus - Get implementation status - * - * @return implementation status as number - * @see ggc.plugin.manager.DeviceImplementationStatus - */ - public int getImplementationStatus() - { - return DeviceImplementationStatus.IMPLEMENTATION_DONE; - } /** * Get Device ClassName Modified: trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaContourLink.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaContourLink.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaContourLink.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -131,16 +131,6 @@ return null; } - /** - * getImplementationStatus - Get implementation status - * - * @return implementation status as number - * @see ggc.plugin.manager.DeviceImplementationStatus - */ - public int getImplementationStatus() - { - return DeviceImplementationStatus.IMPLEMENTATION_DONE; - } /** * Get Device ClassName Modified: trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaContourTest.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaContourTest.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaContourTest.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -725,7 +725,7 @@ * @return implementation status as number * @see ggc.plugin.manager.DeviceImplementationStatus */ - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { return DeviceImplementationStatus.IMPLEMENTATION_DONE; } Modified: trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaContourUSB.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaContourUSB.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaContourUSB.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -138,7 +138,7 @@ * @return implementation status as number * @see ggc.plugin.manager.DeviceImplementationStatus */ - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { return DeviceImplementationStatus.IMPLEMENTATION_DONE; } Modified: trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaDEX.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaDEX.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaDEX.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -143,16 +143,6 @@ return null; } - /** - * getImplementationStatus - Get implementation status - * - * @return implementation status as number - * @see ggc.plugin.manager.DeviceImplementationStatus - */ - public int getImplementationStatus() - { - return DeviceImplementationStatus.IMPLEMENTATION_DONE; - } /** * Get Device ClassName Modified: trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaEliteXL.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaEliteXL.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaEliteXL.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -131,16 +131,6 @@ return null; } - /** - * getImplementationStatus - Get implementation status - * - * @return implementation status as number - * @see ggc.plugin.manager.DeviceImplementationStatus - */ - public int getImplementationStatus() - { - return DeviceImplementationStatus.IMPLEMENTATION_DONE; - } /** * Get Device ClassName Modified: trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaMeter.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaMeter.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaMeter.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -7,6 +7,7 @@ import ggc.meter.util.DataAccessMeter; import ggc.plugin.device.DeviceIdentification; import ggc.plugin.device.PlugInBaseException; +import ggc.plugin.manager.DeviceImplementationStatus; import ggc.plugin.manager.company.AbstractDeviceCompany; import ggc.plugin.output.AbstractOutputWriter; import ggc.plugin.output.OutputUtil; @@ -671,4 +672,17 @@ return MeterDevicesIds.COMPANY_ASCENSIA; } + + /** + * getImplementationStatus - Get implementation status + * + * @return implementation status as number + * @see ggc.plugin.manager.DeviceImplementationStatus + */ + public DeviceImplementationStatus getImplementationStatus() + { + return DeviceImplementationStatus.IMPLEMENTATION_DONE; + } + + } Modified: trunk/ggc-meter/src/ggc/meter/device/menarini/GlucofixMio.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/menarini/GlucofixMio.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-meter/src/ggc/meter/device/menarini/GlucofixMio.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -181,9 +181,9 @@ * @return implementation status as number * @see ggc.plugin.manager.DeviceImplementationStatus */ - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { - return DeviceImplementationStatus.IMPLEMENTATION_PLANNED; + return DeviceImplementationStatus.IMPLEMENTATION_DONE; } /** Modified: trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchMeter.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchMeter.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchMeter.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -87,7 +87,7 @@ * * @param comm_parameters * @param writer - * @param da + * */ public OneTouchMeter(String comm_parameters, OutputWriter writer) { @@ -169,7 +169,7 @@ /** * getImplementationStatus */ - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { return DeviceImplementationStatus.IMPLEMENTATION_TESTING; } Modified: trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchMeter2.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchMeter2.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchMeter2.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -83,7 +83,7 @@ * * @param comm_parameters * @param writer - * @param da + * */ public OneTouchMeter2(String comm_parameters, OutputWriter writer) { @@ -162,7 +162,7 @@ /** * getImplementationStatus */ - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { return DeviceImplementationStatus.IMPLEMENTATION_TESTING; } Modified: trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchUltraSmart.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchUltraSmart.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchUltraSmart.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -263,7 +263,7 @@ /** * getImplementationStatus */ - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { return DeviceImplementationStatus.IMPLEMENTATION_TESTING; } Modified: trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchVerioPro.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchVerioPro.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchVerioPro.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -6,6 +6,7 @@ import ggc.meter.manager.company.LifeScan; import ggc.meter.util.DataAccessMeter; import ggc.plugin.device.DeviceIdentification; +import ggc.plugin.manager.DeviceImplementationStatus; import ggc.plugin.manager.company.AbstractDeviceCompany; import ggc.plugin.output.OutputUtil; import ggc.plugin.output.OutputWriter; @@ -789,10 +790,10 @@ return null; } - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { // TODO Auto-generated method stub - return 0; + return DeviceImplementationStatus.IMPLEMENTATION_NOT_AVAILABLE; } public int getConnectionProtocol() Modified: trunk/ggc-meter/src/ggc/meter/manager/company/Sanvita.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/manager/company/Sanvita.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-meter/src/ggc/meter/manager/company/Sanvita.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -92,7 +92,7 @@ * @see ggc.plugin.manager.DeviceImplementationStatus */ @Override - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { return DeviceImplementationStatus.IMPLEMENTATION_NOT_PLANNED; } Modified: trunk/ggc-meter/src/ggc/meter/manager/company/Wavesense.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/manager/company/Wavesense.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-meter/src/ggc/meter/manager/company/Wavesense.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -92,7 +92,7 @@ * @see ggc.plugin.manager.DeviceImplementationStatus */ @Override - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { return DeviceImplementationStatus.IMPLEMENTATION_NOT_PLANNED; } Modified: trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/util/AnimasException.java =================================================================== --- trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/util/AnimasException.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/util/AnimasException.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -50,25 +50,25 @@ public AnimasException(AnimasExceptionType exceptionType) { super(AnimasException.createMessage(exceptionType, null)); - this.setExceptionType(exceptionType); + this.setAnimasExceptionType(exceptionType); } public AnimasException(AnimasExceptionType exceptionType, Exception ex) { super(AnimasException.createMessage(exceptionType, null), ex); - this.setExceptionType(exceptionType); + this.setAnimasExceptionType(exceptionType); } public AnimasException(AnimasExceptionType exceptionType, Object[] parameters) { super(AnimasException.createMessage(exceptionType, parameters)); - this.setExceptionType(exceptionType); + this.setAnimasExceptionType(exceptionType); } public AnimasException(AnimasExceptionType exceptionType, Object[] parameters, Exception ex) { super(AnimasException.createMessage(exceptionType, parameters)); - this.setExceptionType(exceptionType); + this.setAnimasExceptionType(exceptionType); } public static String createMessage(AnimasExceptionType exceptionType, Object[] parameters) @@ -80,12 +80,12 @@ return exceptionType.errorMessage; } - public AnimasExceptionType getExceptionType() + public AnimasExceptionType getAnimasExceptionType() { return exceptionType; } - public void setExceptionType(AnimasExceptionType exceptionType) + public void setAnimasExceptionType(AnimasExceptionType exceptionType) { this.exceptionType = exceptionType; } Modified: trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/util/AnimasUtils.java =================================================================== --- trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/util/AnimasUtils.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/util/AnimasUtils.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -207,7 +207,7 @@ public static boolean checkIfUserRelevantExceptionIsThrown(AnimasException ex, boolean rethrow) throws AnimasException { - if (ex.getExceptionType() != AnimasExceptionType.CommunicationPortClosed) + if (ex.getAnimasExceptionType() != AnimasExceptionType.CommunicationPortClosed) { if (rethrow) { Modified: trunk/ggc-pump/src/ggc/pump/device/animas/impl/data/AnimasPumpDeviceData.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/animas/impl/data/AnimasPumpDeviceData.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-pump/src/ggc/pump/device/animas/impl/data/AnimasPumpDeviceData.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -139,6 +139,7 @@ } + private int determineWhichProfileItIs(BasalLogDay basalLogDay) { boolean isSame = this.pumpSettings.basalProfiles.get(this.pumpSettings.activeBasalProfile) // Modified: trunk/ggc-pump/src/ggc/pump/device/animas/impl/handler/AnimasBaseDataHandler.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/animas/impl/handler/AnimasBaseDataHandler.java 2015-02-03 15:48:43 UTC (rev 1343) +++ trunk/ggc-pump/src/ggc/pump/device/animas/impl/handler/AnimasBaseDataHandler.java 2015-02-05 22:33:24 UTC (rev 1344) @@ -67,7 +67,7 @@ @Override public void initLocal() { - this.data = new AnimasPumpDeviceData(new ggc.pump.device.animas.impl.data.AnimasPumpDataWriter(this.outputWriter)); + this.data = new AnimasPumpDeviceData(new AnimasPumpDataWriter(this.outputWriter)); this.setBaseData(data); baseDataConverter = new AnimasBaseDataConverter(deviceReader, data); this.dataConverter = this.baseDataConverter; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <and...@us...> - 2015-02-06 12:13:04
|
Revision: 1345 http://sourceforge.net/p/ggc/code/1345 Author: andyrozman Date: 2015-02-06 12:13:01 +0000 (Fri, 06 Feb 2015) Log Message: ----------- Started work on new Device Framework Modified Paths: -------------- trunk/ggc-cgm/src/ggc/cgms/device/DummyCGMS.java trunk/ggc-cgm/src/ggc/cgms/device/animas/OneTouchVibe.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/DexcomCGMS.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/DexcomG4.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/DexcomSeven.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/DexcomSevenPlus.java trunk/ggc-cgm/src/ggc/cgms/device/freestyle/FreestyleCGMS.java trunk/ggc-cgm/src/ggc/cgms/device/freestyle/FreestyleNavigator.java trunk/ggc-cgm/src/ggc/cgms/device/minimed/GuardianRealTime.java trunk/ggc-cgm/src/ggc/cgms/device/minimed/MiniMedCGMS.java trunk/ggc-cgm/src/ggc/cgms/device/minimed/MiniMedCGMSGold.java trunk/ggc-cgm/src/ggc/cgms/device/minimed/MiniMedRealTime.java trunk/ggc-plugin_base/src/ggc/plugin/device/DeviceAbstract.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/comm/MinimedComm_ComLink.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/comm/MinimedComm_ComStation.java trunk/ggc-plugin_base/src/ggc/plugin/manager/EmptyMgrDevices.java trunk/ggc-plugin_base/src/ggc/plugin/manager/company/AbstractDeviceCompany.java trunk/ggc-plugin_base/src/ggc/plugin/manager/company/DeviceCompanyInterface.java trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR1000.java trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR1200.java trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR1250.java trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR2020.java trunk/ggc-pump/src/ggc/pump/device/animas/AnimasPump.java trunk/ggc-pump/src/ggc/pump/device/animas/OneTouchPing.java trunk/ggc-pump/src/ggc/pump/device/animas/OneTouchVibe.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/data/AnimasPumpDeviceData.java Added Paths: ----------- trunk/ggc-plugin_base/src/ggc/plugin/data/enums/DeviceCompanyDefinition.java trunk/ggc-plugin_base/src/ggc/plugin/data/enums/DeviceDefinition.java trunk/ggc-plugin_base/src/ggc/plugin/device/DeviceHandler.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpDeviceDefinition.java trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR1200Handler.java Removed Paths: ------------- trunk/ggc-pump/src/ggc/pump/device/animas/AnimasPing.java Modified: trunk/ggc-cgm/src/ggc/cgms/device/DummyCGMS.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/DummyCGMS.java 2015-02-05 22:33:24 UTC (rev 1344) +++ trunk/ggc-cgm/src/ggc/cgms/device/DummyCGMS.java 2015-02-06 12:13:01 UTC (rev 1345) @@ -4,6 +4,7 @@ import ggc.plugin.device.PlugInBaseException; import com.atech.i18n.I18nControlAbstract; +import ggc.plugin.manager.DeviceImplementationStatus; /** * Application: GGC - GNU Gluco Control @@ -115,10 +116,9 @@ return null; } - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { - // TODO Auto-generated method stub - return 0; + return DeviceImplementationStatus.IMPLEMENTATION_NOT_AVAILABLE; } public String getInstructions() Modified: trunk/ggc-cgm/src/ggc/cgms/device/animas/OneTouchVibe.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/animas/OneTouchVibe.java 2015-02-05 22:33:24 UTC (rev 1344) +++ trunk/ggc-cgm/src/ggc/cgms/device/animas/OneTouchVibe.java 2015-02-06 12:13:01 UTC (rev 1345) @@ -133,7 +133,7 @@ * @return implementation status as number * @see ggc.plugin.manager.DeviceImplementationStatus */ - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { return DeviceImplementationStatus.IMPLEMENTATION_PARTITIAL; } Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/DexcomCGMS.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/DexcomCGMS.java 2015-02-05 22:33:24 UTC (rev 1344) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/DexcomCGMS.java 2015-02-06 12:13:01 UTC (rev 1345) @@ -99,7 +99,7 @@ * @return implementation status as number * @see ggc.plugin.manager.DeviceImplementationStatus */ - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { return DeviceImplementationStatus.IMPLEMENTATION_PARTITIAL; } Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/DexcomG4.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/DexcomG4.java 2015-02-05 22:33:24 UTC (rev 1344) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/DexcomG4.java 2015-02-06 12:13:01 UTC (rev 1345) @@ -156,7 +156,7 @@ /** * {@inheritDoc} */ - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { return DeviceImplementationStatus.IMPLEMENTATION_DONE; } Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/DexcomSeven.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/DexcomSeven.java 2015-02-05 22:33:24 UTC (rev 1344) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/DexcomSeven.java 2015-02-06 12:13:01 UTC (rev 1345) @@ -159,9 +159,9 @@ * @see ggc.plugin.manager.DeviceImplementationStatus */ @Override - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { - return DeviceImplementationStatus.IMPLEMENTATION_IN_PROGRESS; + return DeviceImplementationStatus.IMPLEMENTATION_NOT_PLANNED; } /** Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/DexcomSevenPlus.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/DexcomSevenPlus.java 2015-02-05 22:33:24 UTC (rev 1344) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/DexcomSevenPlus.java 2015-02-06 12:13:01 UTC (rev 1345) @@ -131,7 +131,7 @@ * @see ggc.plugin.manager.DeviceImplementationStatus */ @Override - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { return DeviceImplementationStatus.IMPLEMENTATION_NOT_PLANNED; } Modified: trunk/ggc-cgm/src/ggc/cgms/device/freestyle/FreestyleCGMS.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/freestyle/FreestyleCGMS.java 2015-02-05 22:33:24 UTC (rev 1344) +++ trunk/ggc-cgm/src/ggc/cgms/device/freestyle/FreestyleCGMS.java 2015-02-06 12:13:01 UTC (rev 1345) @@ -102,7 +102,7 @@ * @return implementation status as number * @see ggc.plugin.manager.DeviceImplementationStatus */ - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { return DeviceImplementationStatus.IMPLEMENTATION_NOT_AVAILABLE; } Modified: trunk/ggc-cgm/src/ggc/cgms/device/freestyle/FreestyleNavigator.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/freestyle/FreestyleNavigator.java 2015-02-05 22:33:24 UTC (rev 1344) +++ trunk/ggc-cgm/src/ggc/cgms/device/freestyle/FreestyleNavigator.java 2015-02-06 12:13:01 UTC (rev 1345) @@ -142,7 +142,7 @@ * @see ggc.plugin.manager.DeviceImplementationStatus */ @Override - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { return DeviceImplementationStatus.IMPLEMENTATION_NOT_PLANNED; } Modified: trunk/ggc-cgm/src/ggc/cgms/device/minimed/GuardianRealTime.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/minimed/GuardianRealTime.java 2015-02-05 22:33:24 UTC (rev 1344) +++ trunk/ggc-cgm/src/ggc/cgms/device/minimed/GuardianRealTime.java 2015-02-06 12:13:01 UTC (rev 1345) @@ -141,7 +141,7 @@ * @see ggc.plugin.manager.DeviceImplementationStatus */ @Override - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { return DeviceImplementationStatus.IMPLEMENTATION_PARTITIAL; } Modified: trunk/ggc-cgm/src/ggc/cgms/device/minimed/MiniMedCGMS.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/minimed/MiniMedCGMS.java 2015-02-05 22:33:24 UTC (rev 1344) +++ trunk/ggc-cgm/src/ggc/cgms/device/minimed/MiniMedCGMS.java 2015-02-06 12:13:01 UTC (rev 1345) @@ -105,7 +105,7 @@ * @return implementation status as number * @see ggc.plugin.manager.DeviceImplementationStatus */ - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { return DeviceImplementationStatus.IMPLEMENTATION_NOT_AVAILABLE; } Modified: trunk/ggc-cgm/src/ggc/cgms/device/minimed/MiniMedCGMSGold.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/minimed/MiniMedCGMSGold.java 2015-02-05 22:33:24 UTC (rev 1344) +++ trunk/ggc-cgm/src/ggc/cgms/device/minimed/MiniMedCGMSGold.java 2015-02-06 12:13:01 UTC (rev 1345) @@ -140,7 +140,7 @@ * @see ggc.plugin.manager.DeviceImplementationStatus */ @Override - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { return DeviceImplementationStatus.IMPLEMENTATION_PARTITIAL; } Modified: trunk/ggc-cgm/src/ggc/cgms/device/minimed/MiniMedRealTime.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/minimed/MiniMedRealTime.java 2015-02-05 22:33:24 UTC (rev 1344) +++ trunk/ggc-cgm/src/ggc/cgms/device/minimed/MiniMedRealTime.java 2015-02-06 12:13:01 UTC (rev 1345) @@ -141,7 +141,7 @@ * @see ggc.plugin.manager.DeviceImplementationStatus */ @Override - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { return DeviceImplementationStatus.IMPLEMENTATION_PARTITIAL; } Added: trunk/ggc-plugin_base/src/ggc/plugin/data/enums/DeviceCompanyDefinition.java =================================================================== --- trunk/ggc-plugin_base/src/ggc/plugin/data/enums/DeviceCompanyDefinition.java (rev 0) +++ trunk/ggc-plugin_base/src/ggc/plugin/data/enums/DeviceCompanyDefinition.java 2015-02-06 12:13:01 UTC (rev 1345) @@ -0,0 +1,46 @@ +package ggc.plugin.data.enums; + +/** + * Created by andy on 22.01.15. + */ +public enum DeviceCompanyDefinition +{ + + Minimed(1, "Minimed", "", 0), + + Roche(2), + + Disetronic(2), + + Animas(3), + + Deltec(5), + + Insulet(6), + + Sooil(7), + + ; + + +// String getName(); +// +// int getCompanyId(); +// +// String getDescription(); +// +// int getImplementationStatus(); + + private DeviceCompanyDefinition(int code) + { + + } + + + private DeviceCompanyDefinition(int id, String name, String description, int implementationStatus) + { + + } + + +} Added: trunk/ggc-plugin_base/src/ggc/plugin/data/enums/DeviceDefinition.java =================================================================== --- trunk/ggc-plugin_base/src/ggc/plugin/data/enums/DeviceDefinition.java (rev 0) +++ trunk/ggc-plugin_base/src/ggc/plugin/data/enums/DeviceDefinition.java 2015-02-06 12:13:01 UTC (rev 1345) @@ -0,0 +1,8 @@ +package ggc.plugin.data.enums; + +/** + * Created by andy on 06.02.15. + */ +public interface DeviceDefinition +{ +} Modified: trunk/ggc-plugin_base/src/ggc/plugin/device/DeviceAbstract.java =================================================================== --- trunk/ggc-plugin_base/src/ggc/plugin/device/DeviceAbstract.java 2015-02-05 22:33:24 UTC (rev 1344) +++ trunk/ggc-plugin_base/src/ggc/plugin/device/DeviceAbstract.java 2015-02-06 12:13:01 UTC (rev 1345) @@ -1,5 +1,6 @@ package ggc.plugin.device; +import ggc.core.util.GGCI18nControl; import ggc.plugin.data.GGCPlugInFileReaderContext; import ggc.plugin.gui.DeviceSpecialConfigPanelInterface; import ggc.plugin.manager.company.AbstractDeviceCompany; Added: trunk/ggc-plugin_base/src/ggc/plugin/device/DeviceHandler.java =================================================================== --- trunk/ggc-plugin_base/src/ggc/plugin/device/DeviceHandler.java (rev 0) +++ trunk/ggc-plugin_base/src/ggc/plugin/device/DeviceHandler.java 2015-02-06 12:13:01 UTC (rev 1345) @@ -0,0 +1,32 @@ +package ggc.plugin.device; + +import ggc.plugin.data.enums.DeviceDefinition; +import ggc.plugin.output.OutputWriter; + +/** + * Created by andy on 06.02.15. + */ +public interface DeviceHandler +{ + + + /** + * This is method for reading data from device. + * + * @throws PlugInBaseException + */ + void readDeviceData(DeviceDefinition definition, // + Object connectionParameters, // + OutputWriter outputWriter) throws PlugInBaseException; + + /** + * This is method for reading configuration of device. + * + * @throws PlugInBaseException + */ + void readConfiguration(DeviceDefinition definition, // + Object connectionParameters, // + OutputWriter outputWriter) throws PlugInBaseException; + + +} Modified: trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/comm/MinimedComm_ComLink.java =================================================================== --- trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/comm/MinimedComm_ComLink.java 2015-02-05 22:33:24 UTC (rev 1344) +++ trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/comm/MinimedComm_ComLink.java 2015-02-06 12:13:01 UTC (rev 1345) @@ -5,6 +5,7 @@ import ggc.plugin.device.impl.minimed.MinimedDevice; import ggc.plugin.device.impl.minimed.MinimedDeviceUtil; import ggc.plugin.device.impl.minimed.cmd.MinimedCommand; +import ggc.plugin.manager.DeviceImplementationStatus; import ggc.plugin.protocol.SerialProtocol; import gnu.io.SerialPortEvent; @@ -1664,9 +1665,9 @@ return null; } - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { - return 0; + return DeviceImplementationStatus.IMPLEMENTATION_NOT_AVAILABLE; } public String getInstructions() Modified: trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/comm/MinimedComm_ComStation.java =================================================================== --- trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/comm/MinimedComm_ComStation.java 2015-02-05 22:33:24 UTC (rev 1344) +++ trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/comm/MinimedComm_ComStation.java 2015-02-06 12:13:01 UTC (rev 1345) @@ -4,6 +4,7 @@ import ggc.plugin.device.PlugInBaseException; import ggc.plugin.device.impl.minimed.MinimedDevice; import ggc.plugin.device.impl.minimed.cmd.MinimedCommand; +import ggc.plugin.manager.DeviceImplementationStatus; import ggc.plugin.protocol.SerialProtocol; import gnu.io.SerialPortEvent; @@ -161,10 +162,9 @@ return null; } - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { - // TODO Auto-generated method stub - return 0; + return DeviceImplementationStatus.IMPLEMENTATION_NOT_AVAILABLE; } public String getInstructions() Modified: trunk/ggc-plugin_base/src/ggc/plugin/manager/EmptyMgrDevices.java =================================================================== --- trunk/ggc-plugin_base/src/ggc/plugin/manager/EmptyMgrDevices.java 2015-02-05 22:33:24 UTC (rev 1344) +++ trunk/ggc-plugin_base/src/ggc/plugin/manager/EmptyMgrDevices.java 2015-02-06 12:13:01 UTC (rev 1345) @@ -123,9 +123,9 @@ * @return implementation status as number * @see ggc.plugin.manager.DeviceImplementationStatus */ - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { - return 0; + return DeviceImplementationStatus.IMPLEMENTATION_NOT_AVAILABLE; } /** Modified: trunk/ggc-plugin_base/src/ggc/plugin/manager/company/AbstractDeviceCompany.java =================================================================== --- trunk/ggc-plugin_base/src/ggc/plugin/manager/company/AbstractDeviceCompany.java 2015-02-05 22:33:24 UTC (rev 1344) +++ trunk/ggc-plugin_base/src/ggc/plugin/manager/company/AbstractDeviceCompany.java 2015-02-06 12:13:01 UTC (rev 1345) @@ -1,6 +1,7 @@ package ggc.plugin.manager.company; import ggc.plugin.device.DeviceInterface; +import ggc.plugin.manager.DeviceImplementationStatus; import ggc.plugin.manager.EmptyMgrDevices; import ggc.plugin.util.DataAccessPlugInBase; @@ -49,7 +50,7 @@ protected int company_id = 0; protected String company_name = ""; protected String company_description = ""; - protected int company_implementation_status = 0; + protected DeviceImplementationStatus company_implementation_status = DeviceImplementationStatus.IMPLEMENTATION_NOT_AVAILABLE; protected String company_short_name = ""; /** @@ -92,7 +93,7 @@ * @param da */ public AbstractDeviceCompany(boolean empty, int company_id_, String company_name, String short_company_name, - String company_desc, int implementation_status, DataAccessPlugInBase da) + String company_desc, DeviceImplementationStatus implementation_status, DataAccessPlugInBase da) { this(empty, da); @@ -223,7 +224,7 @@ * @return implementation status as number * @see ggc.plugin.manager.DeviceImplementationStatus */ - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { return this.company_implementation_status; } Modified: trunk/ggc-plugin_base/src/ggc/plugin/manager/company/DeviceCompanyInterface.java =================================================================== --- trunk/ggc-plugin_base/src/ggc/plugin/manager/company/DeviceCompanyInterface.java 2015-02-05 22:33:24 UTC (rev 1344) +++ trunk/ggc-plugin_base/src/ggc/plugin/manager/company/DeviceCompanyInterface.java 2015-02-06 12:13:01 UTC (rev 1345) @@ -1,5 +1,7 @@ package ggc.plugin.manager.company; +import ggc.plugin.manager.DeviceImplementationStatus; + /** * Application: GGC - GNU Gluco Control * Plug-in: GGC PlugIn Base (base class for all plugins) @@ -64,6 +66,6 @@ * @return implementation status as number * @see ggc.plugin.manager.DeviceImplementationStatus */ - int getImplementationStatus(); + DeviceImplementationStatus getImplementationStatus(); } Added: trunk/ggc-pump/src/ggc/pump/data/defs/PumpDeviceDefinition.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/data/defs/PumpDeviceDefinition.java (rev 0) +++ trunk/ggc-pump/src/ggc/pump/data/defs/PumpDeviceDefinition.java 2015-02-06 12:13:01 UTC (rev 1345) @@ -0,0 +1,94 @@ +package ggc.pump.data.defs; + +import ggc.plugin.data.enums.DeviceCompanyDefinition; +import ggc.plugin.data.enums.DeviceDefinition; +import ggc.plugin.device.impl.animas.enums.AnimasDeviceType; +import ggc.plugin.manager.DeviceImplementationStatus; + +/** + * Created by andy on 06.02.15. + */ +public enum PumpDeviceDefinition implements DeviceDefinition +{ + + Animas_IR1000(40001, "Animas IR 1000", "", "", AnimasDeviceType.Animas_IR1000, + DeviceImplementationStatus.IMPLEMENTATION_NOT_PLANNED, DeviceCompanyDefinition.Animas), + + Animas_IR1200(40002, "Animas IR 1200", "an_ir1200.jpg", "INSTRUCTIONS_ANIMAS_V2", AnimasDeviceType.Animas_IR1200, + DeviceImplementationStatus.IMPLEMENTATION_DONE, DeviceCompanyDefinition.Animas), + + Animas_IR1250(40003, "Animas IR 1250", "an_ir1250.jpg", "INSTRUCTIONS_ANIMAS_V2", AnimasDeviceType.Animas_IR1250, + DeviceImplementationStatus.IMPLEMENTATION_DONE, DeviceCompanyDefinition.Animas), + + Animas_2200(40004, "Animas IR 2020", "an_ir2020.jpg", "INSTRUCTIONS_ANIMAS_V2", AnimasDeviceType.Animas_2200, + DeviceImplementationStatus.IMPLEMENTATION_DONE, DeviceCompanyDefinition.Animas), + + OneTouchPing(40005, "OneTouch Ping", "an_ping.jpg", "INSTRUCTIONS_ANIMAS_V2", AnimasDeviceType.Animas_Ping, + DeviceImplementationStatus.IMPLEMENTATION_DONE, DeviceCompanyDefinition.Animas), + + OneTouchVibe(40006, "OneTouch Vibe", "an_vibe.png", "INSTRUCTIONS_ANIMAS_V2", AnimasDeviceType.Animas_Vibe, + DeviceImplementationStatus.IMPLEMENTATION_DONE, DeviceCompanyDefinition.Animas), + + + + ; + + + // we need to extend this to all values currently in DeviceImplementation + int deviceId; + String deviceName; + String iconName; + String instructions; + Object internalDefintion; + DeviceImplementationStatus implementationStatus; + DeviceCompanyDefinition companyDefinition; + + + + + private PumpDeviceDefinition(int id, String name, String iconName, String instructions, Object internalDefinition, DeviceImplementationStatus implementationStatus, DeviceCompanyDefinition companyDefinition) + { + this.deviceId = id; + this.deviceName = name; + this.iconName = iconName; + this.instructions = instructions; + this.internalDefintion = internalDefinition; + this.implementationStatus = implementationStatus; + this.companyDefinition = companyDefinition; + } + + public int getDeviceId() + { + return deviceId; + } + + public String getDeviceName() + { + return this.deviceName; + } + + public String getIconName() + { + return this.iconName; + } + + + public String getInstructionsI18nKey() + { + return this.instructions; + } + + public DeviceImplementationStatus getDeviceImplementationStatus() + { + return this.implementationStatus; + } + + public Object getInternalDefintion() + { + return this.internalDefintion; + } + + + + +} Modified: trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR1000.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR1000.java 2015-02-05 22:33:24 UTC (rev 1344) +++ trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR1000.java 2015-02-06 12:13:01 UTC (rev 1345) @@ -132,7 +132,7 @@ * @return implementation status as number * @see ggc.plugin.manager.DeviceImplementationStatus */ - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { return DeviceImplementationStatus.IMPLEMENTATION_NOT_PLANNED; } Modified: trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR1200.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR1200.java 2015-02-05 22:33:24 UTC (rev 1344) +++ trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR1200.java 2015-02-06 12:13:01 UTC (rev 1345) @@ -6,6 +6,7 @@ import ggc.plugin.manager.DeviceImplementationStatus; import ggc.plugin.manager.company.AbstractDeviceCompany; import ggc.plugin.output.OutputWriter; +import ggc.pump.data.defs.PumpDeviceDefinition; import ggc.pump.device.animas.impl.AnimasPumpDeviceReader; import ggc.plugin.device.impl.animas.util.AnimasException; import ggc.pump.manager.PumpDevicesIds; @@ -38,6 +39,7 @@ public class AnimasIR1200 extends AnimasPump { + AnimasIR1200Handler handler = new AnimasIR1200Handler(); /** * Constructor @@ -78,7 +80,7 @@ */ public String getName() { - return "IR 1200"; + return this.getPumpDeviceDefinition().getDeviceName(); } @@ -90,7 +92,7 @@ */ public String getIconName() { - return "an_ir1200.jpg"; + return this.getPumpDeviceDefinition().getIconName(); } @@ -102,9 +104,15 @@ */ public int getDeviceId() { - return PumpDevicesIds.PUMP_ANIMAS_IR_1200; + return this.getPumpDeviceDefinition().getDeviceId(); } + + public PumpDeviceDefinition getPumpDeviceDefinition() + { + return PumpDeviceDefinition.Animas_IR1200; + } + /** * getInstructions - get instructions for device @@ -114,7 +122,7 @@ */ public String getInstructions() { - return "INSTRUCTIONS_ANIMAS_V2"; + return this.getPumpDeviceDefinition().getInstructionsI18nKey(); } /** @@ -134,9 +142,9 @@ * @return implementation status as number * @see ggc.plugin.manager.DeviceImplementationStatus */ - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { - return DeviceImplementationStatus.IMPLEMENTATION_DONE; + return this.getPumpDeviceDefinition().getDeviceImplementationStatus(); } @@ -167,7 +175,7 @@ @Override public AnimasDeviceType getAnimasDeviceType() { - return AnimasDeviceType.Animas_IR1200; + return (AnimasDeviceType)this.getPumpDeviceDefinition().getInternalDefintion(); } @@ -243,6 +251,9 @@ @Override public void readConfiguration() throws PlugInBaseException { + handler.readConfiguration(this.getPumpDeviceDefinition(), this.connectionParameters, this.outputWriter); + + try { AnimasPumpDeviceReader reader = new AnimasPumpDeviceReader(this.communicationPort, this.getAnimasDeviceType(), this.outputWriter); Added: trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR1200Handler.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR1200Handler.java (rev 0) +++ trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR1200Handler.java 2015-02-06 12:13:01 UTC (rev 1345) @@ -0,0 +1,72 @@ +package ggc.pump.device.animas; + +import ggc.plugin.data.enums.DeviceDefinition; +import ggc.plugin.device.DeviceHandler; +import ggc.plugin.device.PlugInBaseException; +import ggc.plugin.device.impl.animas.enums.AnimasDeviceType; +import ggc.plugin.device.impl.animas.util.AnimasException; +import ggc.plugin.output.OutputWriter; +import ggc.pump.data.defs.PumpDeviceDefinition; +import ggc.pump.device.animas.impl.AnimasPumpDeviceReader; + + + +public class AnimasIR1200Handler implements DeviceHandler +{ + + public AnimasIR1200Handler() + { + } + + + public void readDeviceData(DeviceDefinition definition, // + Object connectionParameters, // + OutputWriter outputWriter) throws PlugInBaseException + { + try + { + AnimasPumpDeviceReader reader = new AnimasPumpDeviceReader( // + getCommunicationPort(connectionParameters), // + this.getAnimasDeviceType(definition), // + outputWriter); + reader.downloadPumpData(); + } + catch(AnimasException ex) + { + throw new PlugInBaseException(ex); + } + } + + public void readConfiguration(DeviceDefinition definition, // + Object connectionParameters, // + OutputWriter outputWriter) throws PlugInBaseException + { + try + { + AnimasPumpDeviceReader reader = new AnimasPumpDeviceReader( // + getCommunicationPort(connectionParameters), // + this.getAnimasDeviceType(definition), // + outputWriter); + reader.downloadPumpSettings(); + } catch (AnimasException ex) + { + throw new PlugInBaseException(ex); + } + } + + private String getCommunicationPort(Object connectionParameters) + { + return (String) connectionParameters; + } + + + private PumpDeviceDefinition getDeviceDefinition(DeviceDefinition definition) + { + return (PumpDeviceDefinition)definition; + } + + private AnimasDeviceType getAnimasDeviceType(DeviceDefinition definition) + { + return (AnimasDeviceType)getDeviceDefinition(definition).getInternalDefintion(); + } +} Modified: trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR1250.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR1250.java 2015-02-05 22:33:24 UTC (rev 1344) +++ trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR1250.java 2015-02-06 12:13:01 UTC (rev 1345) @@ -5,6 +5,7 @@ import ggc.plugin.manager.DeviceImplementationStatus; import ggc.plugin.manager.company.AbstractDeviceCompany; import ggc.plugin.output.OutputWriter; +import ggc.pump.data.defs.PumpDeviceDefinition; import ggc.pump.manager.PumpDevicesIds; /** @@ -68,45 +69,12 @@ /** - * getName - Get Name of meter. - * - * @return name of meter + * {@inheritDoc} */ - public String getName() - { - return "IR 1250"; - } - - - - /** - * getIconName - Get Icon of meter - * - * @return icon name - */ - public String getIconName() - { - return "an_ir1250.jpg"; - } - - - /** - * getDeviceId - Get Device Id, within MgrCompany class - * Should be implemented by device class. - * - * @return id of device within company - */ - public int getDeviceId() - { - return PumpDevicesIds.PUMP_ANIMAS_IR_1250; - } - - - @Override - public AnimasDeviceType getAnimasDeviceType() + public PumpDeviceDefinition getPumpDeviceDefinition() { - return AnimasDeviceType.Animas_IR1250; + return PumpDeviceDefinition.Animas_IR1250; } Modified: trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR2020.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR2020.java 2015-02-05 22:33:24 UTC (rev 1344) +++ trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR2020.java 2015-02-06 12:13:01 UTC (rev 1345) @@ -5,6 +5,7 @@ import ggc.plugin.manager.DeviceImplementationStatus; import ggc.plugin.manager.company.AbstractDeviceCompany; import ggc.plugin.output.OutputWriter; +import ggc.pump.data.defs.PumpDeviceDefinition; import ggc.pump.manager.PumpDevicesIds; /** @@ -67,39 +68,12 @@ super(cmp); } - /** - * getName - Get Name of meter. - * - * @return name of meter - */ - public String getName() - { - return "IR 2020 (1275/1275i)"; - } /** * {@inheritDoc} */ - public String getIconName() - { - return "an_ir2020.jpg"; - } - - - /** - * {@inheritDoc} - */ - public int getDeviceId() - { - return PumpDevicesIds.PUMP_ANIMAS_IR_2020; - } - - - /** - * {@inheritDoc} - */ public float getBolusStep() { return 0.05f; @@ -127,10 +101,15 @@ return true; } + + /** + * {@inheritDoc} + */ @Override - public AnimasDeviceType getAnimasDeviceType() + public PumpDeviceDefinition getPumpDeviceDefinition() { - return AnimasDeviceType.Animas_IR1285; + return PumpDeviceDefinition.Animas_2200; } + } Deleted: trunk/ggc-pump/src/ggc/pump/device/animas/AnimasPing.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/animas/AnimasPing.java 2015-02-05 22:33:24 UTC (rev 1344) +++ trunk/ggc-pump/src/ggc/pump/device/animas/AnimasPing.java 2015-02-06 12:13:01 UTC (rev 1345) @@ -1,232 +0,0 @@ -package ggc.pump.device.animas; - -import ggc.plugin.device.DownloadSupportType; -import ggc.plugin.manager.DeviceImplementationStatus; -import ggc.plugin.manager.company.AbstractDeviceCompany; -import ggc.plugin.output.OutputWriter; -import ggc.plugin.util.DataAccessPlugInBase; -import ggc.pump.manager.PumpDevicesIds; - -/** - * Application: GGC - GNU Gluco Control - * Plug-in: Pump Tool (support for Pump devices) - * - * See AUTHORS for copyright information. - * - * This program is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation; either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program; if not, write to the Free Software Foundation, Inc., 59 Temple - * Place, Suite 330, Boston, MA 02111-1307 USA - * - * Filename: AnimasPing - * Description: Animas Ping implementation (just settings) - * - * Author: Andy {an...@at...} - */ - -public class AnimasPing extends AnimasPump -{ - - /** - * Constructor - */ - public AnimasPing() - { - super(); - } - - /** - * Constructor - * - * @param conn_parameter - * @param writer - */ - public AnimasPing(String conn_parameter, OutputWriter writer) - { - super(conn_parameter, writer); - } - - /** - * Constructor - * - * @param conn_parameter - * @param writer - * @param da - */ - public AnimasPing(String conn_parameter, OutputWriter writer, DataAccessPlugInBase da) - { - super(conn_parameter, writer, da); - } - - /** - * Constructor - * - * @param cmp - */ - public AnimasPing(AbstractDeviceCompany cmp) - { - super(cmp); - } - - /** - * getName - Get Name of meter. - * - * @return name of meter - */ - @Override - public String getName() - { - return "Ping"; - } - - /** - * getIconName - Get Icon of meter - * - * @return icon name - */ - public String getIconName() - { - return "an_ping.jpg"; - } - - /** - * getDeviceId - Get Device Id, within MgrCompany class - * Should be implemented by device class. - * - * @return id of device within company - */ - public int getDeviceId() - { - return PumpDevicesIds.PUMP_ANIMAS_PING; - } - - /** - * getInstructions - get instructions for device - * Should be implemented by meter class. - * - * @return instructions for reading data - */ - public String getInstructions() - { - return "INSTRUCTIONS_ANIMAS_PING"; - } - - /** - * getComment - Get Comment for device - * - * @return comment or null - */ - @Override - public String getComment() - { - return null; - } - - /** - * getImplementationStatus - Get Implementation Status - * - * @return implementation status as number - * @see ggc.plugin.manager.DeviceImplementationStatus - */ - @Override - public int getImplementationStatus() - { - return DeviceImplementationStatus.IMPLEMENTATION_NOT_PLANNED; - } - - /** - * getDeviceClassName - Get Class name of device implementation, used by Reflection at later time - * - * @return class name as string - */ - public String getDeviceClassName() - { - return "ggc.pump.device.animas.AnimasPing"; - } - - /** - * Get Max Memory Records - */ - public int getMaxMemoryRecords() - { - return 0; - } - - /** - * Get Download Support Type - * - * @return - */ - @Override - public int getDownloadSupportType() - { - return DownloadSupportType.DOWNLOAD_SUPPORT_NO; - } - - /** - * How Many Months Of Data Stored - * - * @return - */ - @Override - public int howManyMonthsOfDataStored() - { - return -1; - } - - /** - * Get Temporary Basal Type Definition - * "TYPE=Unit;STEP=0.1" - * "TYPE=Procent;STEP=10;MIN=0;MAX=200" - * "TYPE=Both;STEP_UNIT=0.1;STEP=10;MIN=0;MAX=200" - * - * @return - */ - @Override - public String getTemporaryBasalTypeDefinition() - { - // return "TYPE=Unit;STEP=0.1"; - return null; - } - - /** - * Get Bolus Step (precission) - * - * @return - */ - public float getBolusStep() - { - return 0.1f; - } - - /** - * Get Basal Step (precission) - * - * @return - */ - public float getBasalStep() - { - return 0.1f; - } - - /** - * Are Pump Settings Set (Bolus step, Basal step and TBR settings) - * - * @return - */ - @Override - public boolean arePumpSettingsSet() - { - return false; - } - -} Modified: trunk/ggc-pump/src/ggc/pump/device/animas/AnimasPump.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/animas/AnimasPump.java 2015-02-05 22:33:24 UTC (rev 1344) +++ trunk/ggc-pump/src/ggc/pump/device/animas/AnimasPump.java 2015-02-06 12:13:01 UTC (rev 1345) @@ -41,8 +41,8 @@ { protected String communicationPort; - protected OutputWriter output_writer; - protected AbstractDeviceCompany device_company; + //protected OutputWriter output_writer; + //protected AbstractDeviceCompany device_company; public AnimasPump() @@ -61,7 +61,7 @@ { super(); this.communicationPort = communicationPort; - this.output_writer = writer; + this.outputWriter = writer; } @@ -73,7 +73,7 @@ public AnimasPump(AbstractDeviceCompany cmp) { super(); - this.device_company = cmp; + this.deviceCompany = cmp; } Modified: trunk/ggc-pump/src/ggc/pump/device/animas/OneTouchPing.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/animas/OneTouchPing.java 2015-02-05 22:33:24 UTC (rev 1344) +++ trunk/ggc-pump/src/ggc/pump/device/animas/OneTouchPing.java 2015-02-06 12:13:01 UTC (rev 1345) @@ -5,6 +5,7 @@ import ggc.plugin.manager.DeviceImplementationStatus; import ggc.plugin.manager.company.AbstractDeviceCompany; import ggc.plugin.output.OutputWriter; +import ggc.pump.data.defs.PumpDeviceDefinition; import ggc.pump.manager.PumpDevicesIds; /** @@ -68,40 +69,14 @@ } - /** - * {@inheritDoc} - */ - public String getName() - { - return "Ping (1285/1285i)"; - } - /** * {@inheritDoc} */ - public String getIconName() - { - return "an_ping.jpg"; - } - - - /** - * {@inheritDoc} - */ - public int getDeviceId() - { - return PumpDevicesIds.PUMP_ANIMAS_PING; - } - - - /** - * {@inheritDoc} - */ @Override - public AnimasDeviceType getAnimasDeviceType() + public PumpDeviceDefinition getPumpDeviceDefinition() { - return AnimasDeviceType.Animas_Ping; + return PumpDeviceDefinition.OneTouchPing; } } Modified: trunk/ggc-pump/src/ggc/pump/device/animas/OneTouchVibe.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/animas/OneTouchVibe.java 2015-02-05 22:33:24 UTC (rev 1344) +++ trunk/ggc-pump/src/ggc/pump/device/animas/OneTouchVibe.java 2015-02-06 12:13:01 UTC (rev 1345) @@ -4,6 +4,7 @@ import ggc.plugin.device.impl.animas.enums.AnimasDeviceType; import ggc.plugin.manager.company.AbstractDeviceCompany; import ggc.plugin.output.OutputWriter; +import ggc.pump.data.defs.PumpDeviceDefinition; import ggc.pump.manager.PumpDevicesIds; /** @@ -66,40 +67,14 @@ } - /** - * {@inheritDoc} - */ - public String getName() - { - return "Vibe"; - } - /** * {@inheritDoc} */ - public String getIconName() - { - return "an_vibe.png"; - } - - - /** - * {@inheritDoc} - */ - public int getDeviceId() - { - return PumpDevicesIds.PUMP_ANIMAS_VIBE; - } - - - /** - * {@inheritDoc} - */ @Override - public AnimasDeviceType getAnimasDeviceType() + public PumpDeviceDefinition getPumpDeviceDefinition() { - return AnimasDeviceType.Animas_Vibe; + return PumpDeviceDefinition.OneTouchVibe; } } Modified: trunk/ggc-pump/src/ggc/pump/device/animas/impl/data/AnimasPumpDeviceData.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/animas/impl/data/AnimasPumpDeviceData.java 2015-02-05 22:33:24 UTC (rev 1344) +++ trunk/ggc-pump/src/ggc/pump/device/animas/impl/data/AnimasPumpDeviceData.java 2015-02-06 12:13:01 UTC (rev 1345) @@ -90,7 +90,7 @@ } - @Override + public void writeSettings(OutputWriter outputWritter) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <and...@us...> - 2015-02-08 22:23:41
|
Revision: 1346 http://sourceforge.net/p/ggc/code/1346 Author: andyrozman Date: 2015-02-08 22:23:37 +0000 (Sun, 08 Feb 2015) Log Message: ----------- -Fixed Pump Enums -Fixed Pump Editor -Writing configuration of Dexcom -Some fixes due to changes to DeviceInterface -Started working of DeviceInterface V2 for Pump (just partitial use) Modified Paths: -------------- trunk/ggc-cgm/src/GGC_CGMSTool_en.properties trunk/ggc-cgm/src/ggc/cgms/device/DummyCGMS.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/DexcomDeviceProgressReport.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/DexcomDeviceReader.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/data/output/DataOutputParserType.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/data/output/GGCOutputParser.java trunk/ggc-plugin_base/src/GGCPlugin_en.properties trunk/ggc-plugin_base/src/ggc/plugin/device/PlugInBaseException.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/comm/MinimedComm_ComLink.java trunk/ggc-plugin_base/src/ggc/plugin/manager/EmptyMgrDevices.java trunk/ggc-plugin_base/src/ggc/plugin/manager/company/AbstractDeviceCompany.java trunk/ggc-pump/src/ggc/pump/device/DummyPump.java trunk/ggc-pump/src/ggc/pump/device/accuchek/AccuChekCombo.java trunk/ggc-pump/src/ggc/pump/device/accuchek/AccuChekDTron.java trunk/ggc-pump/src/ggc/pump/device/accuchek/AccuChekSmartPixPump.java trunk/ggc-pump/src/ggc/pump/device/accuchek/AccuChekSpirit.java trunk/ggc-pump/src/ggc/pump/device/accuchek/DisetronicDTron.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/handler/AnimasPumpDataWriter.java trunk/ggc-pump/src/ggc/pump/device/cozmo/FRC_CoPilotXMLPump.java trunk/ggc-pump/src/ggc/pump/device/dana/DanaDiabecare_II.java trunk/ggc-pump/src/ggc/pump/device/dana/DanaDiabecare_III_R.java trunk/ggc-pump/src/ggc/pump/device/dana/DanaDiabecare_IIS.java trunk/ggc-pump/src/ggc/pump/device/dana/DanaPump.java trunk/ggc-pump/src/ggc/pump/device/deltec/DeltecCosmo1700.java trunk/ggc-pump/src/ggc/pump/device/deltec/DeltecCosmo1800.java trunk/ggc-pump/src/ggc/pump/device/deltec/DeltecPump.java trunk/ggc-pump/src/ggc/pump/device/insulet/InsuletOmniPod.java trunk/ggc-pump/src/ggc/pump/device/insulet/InsuletPump.java trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed508.java trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed511.java trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed512.java trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed515.java trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed522.java trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed523.java trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed553.java trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed554_Veo.java trunk/ggc-pump/src/ggc/pump/device/minimed/MinimedPump.java trunk/ggc-pump/src/ggc/pump/device/minimed/MinimedPumpDevice.java trunk/ggc-pump/src/ggc/pump/device/minimed/new_dev/Minimed512.java trunk/ggc-pump/src/ggc/pump/manager/company/AbstractPumpDeviceCompany.java trunk/ggc-pump/src/ggc/pump/manager/company/GenericPumpDevice.java trunk/ggc-pump/src/ggc/pump/util/DataAccessPump.java Added Paths: ----------- trunk/ggc-cgm/src/ggc/cgms/data/CGMSValueConfig.java Modified: trunk/ggc-cgm/src/GGC_CGMSTool_en.properties =================================================================== --- trunk/ggc-cgm/src/GGC_CGMSTool_en.properties 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-cgm/src/GGC_CGMSTool_en.properties 2015-02-08 22:23:37 UTC (rev 1346) @@ -233,3 +233,21 @@ ALARM_LOW_GLUCOSE_PREDICTED=Low Glucose Predicted ALARM_HIGH_GLUCOSE=High Glucose ALARM_LOW_GLUCOSE=Low Glucose + + +# +# Dexcom +# + + + + + + ParsingError("DXC_PARSING_ERROR"), // + ParsingErrorUnsupportedDataLenth("DXC_PARSING_ERROR_UNSUPP_DATA_LENGTH"), // + Receiver_ErrorWritingToReceiver("DXC_RECEIVER_ERROR_WRITING"), // + Parsing_BytesParsingError("DXC_BYTES_PARSING_ERROR"), // + FailedCRCCheck("DXC_FAILED_CRC_CHECK"), // + UnsupportedTypeOfParametersForCommand("DXC_UNSUPPORTED_TYPE_OF_PARAMS_FOR_CMD"), // + UnsupportedReceiver("DXC_UNSUPPORTED_RECEIVER"), DownloadCanceledByUser("STATUS_STOPPED_USER"), DeviceNotFoundOnConfiguredPort( + "DEVICE_NOT_FOUND_ON_CONFIGURED_PORT"), DevicePortInUse("DEVICE_PORT_IN_USE"), \ No newline at end of file Added: trunk/ggc-cgm/src/ggc/cgms/data/CGMSValueConfig.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/CGMSValueConfig.java (rev 0) +++ trunk/ggc-cgm/src/ggc/cgms/data/CGMSValueConfig.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -0,0 +1,59 @@ +package ggc.cgms.data; + +import ggc.plugin.output.OutputWriterConfigData; + +/** + * Application: GGC - GNU Gluco Control + * Plug-in: CGMS Tool (support for CGMS devices) + * + * See AUTHORS for copyright information. + * + * This program is free software; you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation; either version 2 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., 59 Temple + * Place, Suite 330, Boston, MA 02111-1307 USA + * + * Filename: CGMSValueConfig + * Description: Class for Output Writer Config Data + * + * Author: Andy {an...@at...} + */ + +public class CGMSValueConfig implements OutputWriterConfigData +{ + + String key; + String value; + String valueRaw; + + public CGMSValueConfig(String key, String value) + { + this.key = key; + this.value = value; + } + + public String getDataKey() { + return key; + } + + public String getDataValue() { + return this.value; + } + + public String getDataValueRaw() { + return this.value; + } + + public boolean isDataValueBG() { + return false; + } +} Modified: trunk/ggc-cgm/src/ggc/cgms/device/DummyCGMS.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/DummyCGMS.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-cgm/src/ggc/cgms/device/DummyCGMS.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -112,7 +112,6 @@ public String getIconName() { - // TODO Auto-generated method stub return null; } Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/DexcomDeviceProgressReport.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/DexcomDeviceProgressReport.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/DexcomDeviceProgressReport.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -3,6 +3,7 @@ import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomException; import ggc.plugin.data.progress.ProgressReportInterface; import ggc.plugin.data.progress.ProgressType; +import ggc.plugin.device.PlugInBaseException; /** * Application: GGC - GNU Gluco Control @@ -33,7 +34,7 @@ public interface DexcomDeviceProgressReport extends ProgressReportInterface { - void addToProgressAndCheckIfCanceled(ProgressType progressType, int progressAdd) throws DexcomException; + void addToProgressAndCheckIfCanceled(ProgressType progressType, int progressAdd) throws PlugInBaseException; void setDownloadCancel(boolean cancel); Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/DexcomDeviceReader.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/DexcomDeviceReader.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/DexcomDeviceReader.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -10,11 +10,11 @@ import ggc.cgms.device.dexcom.receivers.g4receiver.enums.ReceiverRecordType; import ggc.cgms.device.dexcom.receivers.g4receiver.internal.DatabasePageRange; import ggc.cgms.device.dexcom.receivers.g4receiver.internal.PartitionInfo; -import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomException; -import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomExceptionType; import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomUtils; +import ggc.plugin.data.enums.PlugInExceptionType; import ggc.plugin.data.progress.ProgressData; import ggc.plugin.data.progress.ProgressType; +import ggc.plugin.device.PlugInBaseException; import ggc.plugin.output.OutputWriter; import gnu.io.CommPortIdentifier; @@ -63,7 +63,7 @@ boolean downloadCanceled = false; OutputWriter outputWriter; - public DexcomDeviceReader(String portName, DexcomDevice dexcomDevice) throws DexcomException + public DexcomDeviceReader(String portName, DexcomDevice dexcomDevice) throws PlugInBaseException { this.portName = portName; @@ -89,7 +89,7 @@ deviceFound)); if (!deviceFound) - throw new DexcomException(DexcomExceptionType.DeviceNotFoundOnConfiguredPort, + throw new PlugInBaseException(PlugInExceptionType.DeviceNotFoundOnConfiguredPort, new Object[] { this.portName }); if (dexcomDevice.getApi() == ReceiverApiType.G4_Api) @@ -98,7 +98,7 @@ DexcomUtils.setDexcomG4Api(api); } else - throw new DexcomException(DexcomExceptionType.UnsupportedReceiver); + throw new PlugInBaseException(PlugInExceptionType.UnsupportedReceiver); } @@ -107,7 +107,7 @@ this.outputWriter = outputWriter; } - public void downloadSettings() throws DexcomException + public void downloadSettings() throws PlugInBaseException { try { @@ -141,10 +141,10 @@ parseData(DataOutputParserType.Configuration, data); } - catch (DexcomException ex) + catch (PlugInBaseException ex) { - if (ex.getExceptionType() != null && ex.getExceptionType() == DexcomExceptionType.DownloadCanceledByUser) + if (ex.getExceptionType() != null && ex.getExceptionType() == PlugInExceptionType.DownloadCanceledByUser) return; throw ex; @@ -152,13 +152,13 @@ } - private void parseData(DataOutputParserType parserType, ReceiverDownloadData data) throws DexcomException + private void parseData(DataOutputParserType parserType, ReceiverDownloadData data) throws PlugInBaseException { this.dataOutputParser.parse(parserType, data); this.addToProgressAndCheckIfCanceled(ProgressType.Dynamic, 1); } - public void addToProgressAndCheckIfCanceled(ProgressType progressType, int progressAdd) throws DexcomException + public void addToProgressAndCheckIfCanceled(ProgressType progressType, int progressAdd) throws PlugInBaseException { this.progressData.addToProgressAndCheckIfCanceled(progressType, progressAdd); @@ -171,11 +171,11 @@ } if (this.isDownloadCanceled()) - throw new DexcomException(DexcomExceptionType.DownloadCanceledByUser); + throw new PlugInBaseException(PlugInExceptionType.DownloadCanceledByUser); } - public void downloadData() throws DexcomException + public void downloadData() throws PlugInBaseException { try { @@ -237,9 +237,9 @@ parseData(DataOutputParserType.G4_MeterData, data); } - catch (DexcomException ex) + catch (PlugInBaseException ex) { - if (ex.getExceptionType() != null && ex.getExceptionType() == DexcomExceptionType.DownloadCanceledByUser) + if (ex.getExceptionType() != null && ex.getExceptionType() == PlugInExceptionType.DownloadCanceledByUser) return; throw ex; @@ -317,7 +317,7 @@ return data; } - public void saveAllPages() throws DexcomException + public void saveAllPages() throws PlugInBaseException { for (ReceiverRecordType recordType : ReceiverRecordType.values()) { Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/data/output/DataOutputParserType.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/data/output/DataOutputParserType.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/data/output/DataOutputParserType.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -8,7 +8,8 @@ G4_MeterData, // G4_UserEventData, // - G4_EGVData_SensorReading, G4_EGVData_SensorTrend, + G4_EGVData_SensorReading, // + G4_EGVData_SensorTrend, ; Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/data/output/GGCOutputParser.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/data/output/GGCOutputParser.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/data/output/GGCOutputParser.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -1,5 +1,6 @@ package ggc.cgms.device.dexcom.receivers.data.output; +import ggc.cgms.data.CGMSValueConfig; import ggc.cgms.data.CGMSValuesExtendedEntry; import ggc.cgms.data.CGMSValuesSubEntry; import ggc.cgms.data.CGMSValuesTableModel; @@ -11,10 +12,12 @@ import ggc.cgms.device.dexcom.receivers.g4receiver.data.InsertionTimeRecord; import ggc.cgms.device.dexcom.receivers.g4receiver.data.MeterDataRecord; import ggc.cgms.device.dexcom.receivers.g4receiver.data.UserEventDataRecord; +import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomUtils; import ggc.cgms.util.DataAccessCGMS; import ggc.plugin.device.DeviceIdentification; import ggc.plugin.output.OutputWriter; +import ggc.plugin.output.OutputWriterConfigData; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -231,12 +234,42 @@ } } + writeConfiguration(data); + this.outputWriter.setDeviceIdentification(di); this.outputWriter.writeDeviceIdentification(); this.isIdentificationWriten = true; } + private void writeConfiguration(ReceiverDownloadData data) + { + String[] cfgs = { "API_VERSION", "PRODUCT_ID", "PRODUCT_NAME", "SOFTWARE_NUMBER", + "FIRMWARE_VERSION", "PORT_VERSION", "RF_VERSION", "SYSTEM_TIME", "DISPLAY_TIME", + "LANGUAGE", "GLUCOSE_UNIT", "CLOCK_MODE" }; + + for(String cfgKey : cfgs) + { + String value = data.getConfigValueByKey(cfgKey); + + if (value!=null) + { + this.outputWriter.writeConfigurationData( // + getConfigurationData("CFG_BASE_" + cfgKey, value)); + } + + } + + this.outputWriter.writeConfigurationData( // + getConfigurationData("CFG_BASE_SERIAL_NUMBER", data.getSerialNumber())); + } + + private CGMSValueConfig getConfigurationData(String key, String value) + { + return new CGMSValueConfig(key, value); + } + + private void addEntry(CGMSValuesSubEntry entry) { this.valuesModel.addEntry(entry); Modified: trunk/ggc-plugin_base/src/GGCPlugin_en.properties =================================================================== --- trunk/ggc-plugin_base/src/GGCPlugin_en.properties 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-plugin_base/src/GGCPlugin_en.properties 2015-02-08 22:23:37 UTC (rev 1346) @@ -401,27 +401,19 @@ # -# MISSSING -# -DEVICE_NOT_FOUND_ON_CONFIGURED_PORT=Device Not Found On Configured Port or Port not found (%s) -DEVICE_PORT_IN_USE=Selected port (%s) is in use and can't be claimed. - - - -# # !G! Settings for devices # -API_VERSION=Api Version -PRODUCT_ID=Product Id -PRODUCT_NAME=Product Name -SOFTWARE_NUMBER=Software Number -FIRMWARE_VERSION=Firmware Version -PORT_VERSION=Port Version -RF_VERSION=RF Version -SERIAL_NUMBER=Serial Number -SYSTEM_TIME=System Time -DISPLAY_TIME=Display Time -LANGUAGE=Language +CFG_BASE_API_VERSION=Api Version +CFG_BASE_PRODUCT_ID=Product Id +CFG_BASE_PRODUCT_NAME=Product Name +CFG_BASE_SOFTWARE_NUMBER=Software Number +CFG_BASE_FIRMWARE_VERSION=Firmware Version +CFG_BASE_PORT_VERSION=Port Version +CFG_BASE_RF_VERSION=RF Version +CFG_BASE_SERIAL_NUMBER=Serial Number +CFG_BASE_SYSTEM_TIME=System Time +CFG_BASE_DISPLAY_TIME=Display Time +CFG_BASE_LANGUAGE=Language LANGUAGE_ENGLISH=English LANGUAGE_CZECH=Czech LANGUAGE_DUTCH=Dutch @@ -434,17 +426,21 @@ LANGUAGE_PORTUGESE_BRAZIL=Portugese (Brazil) LANGUAGE_SPANISH=Spanish LANGUAGE_SWEDISH=Swedish -GLUCOSE_UNIT=Glucose Unit +CFG_BASE_GLUCOSE_UNIT=Glucose Unit GLUCOSE_UNIT_MGDL=mg/dL GLUCOSE_UNIT_MMOLL=mmol/L -CLOCK_MODE=Clock Mode +CFG_BASE_CLOCK_MODE=Clock Mode CLOCK_MODE_12H=12h CLOCK_MODE_24H=24h -NONE=None +CFG_BASE_NONE=None DEVICE_NOT_FOUND_ON_CONFIGURED_PORT=Device Not Found On Configured Port or Port not found (%s) DEVICE_PORT_IN_USE=Selected port (%s) is in use and can't be claimed. + + + + # # !G! Device Events [2] # @@ -482,10 +478,15 @@ # # !G! Device Alarms [2] # +ALARM_UNKNOWN=Unknown Alarm ALARM_TYPE=Alarm Type ALARM_BATTERY_LOW=Battery Low ALARM_REVIEW_DATETIME=Review Date/Time ALARM_ALARM_CLOCK=Alarm Clock +ALARM_REPLACE_BATTERY=Replace Battery +ALARM_EMPTY_CARTRIDGE=Empty Cartridge +ALARM_AUTO_OFF=Auto Off +ALARM_CALL_SERVICE=Call Service # Modified: trunk/ggc-plugin_base/src/ggc/plugin/device/PlugInBaseException.java =================================================================== --- trunk/ggc-plugin_base/src/ggc/plugin/device/PlugInBaseException.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-plugin_base/src/ggc/plugin/device/PlugInBaseException.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -1,5 +1,7 @@ package ggc.plugin.device; +import ggc.plugin.data.enums.PlugInExceptionType; + /** * Application: GGC - GNU Gluco Control * Plug-in: GGC PlugIn Base (base class for all plugins) @@ -34,13 +36,16 @@ /** * Error Code */ - public int error_code = 0; + public int errorCode = 0; /** * Error Description */ - public String error_description = ""; + public String errorDescription = ""; + + public PlugInExceptionType exceptionType; + /** * Constructor for ImportException. */ @@ -77,7 +82,7 @@ public PlugInBaseException(Throwable cause, int error_code_, String message) { super(message, cause); - this.error_code = error_code_; + this.errorCode = error_code_; } /** @@ -92,12 +97,12 @@ /** * Constructor for PlugInBaseException. * - * @param error_code_ + * @param errorCode */ - public PlugInBaseException(int error_code_) + public PlugInBaseException(int errorCode) { super(); - this.error_code = error_code_; + this.errorCode = errorCode; } /** @@ -109,7 +114,51 @@ public PlugInBaseException(String error_msg, int error_code_) { super(error_msg); - this.error_code = error_code_; + this.errorCode = error_code_; } + public PlugInBaseException(PlugInExceptionType exceptionType) + { + super(PlugInBaseException.createMessage(exceptionType, null)); + this.setExceptionType(exceptionType); + } + + public PlugInBaseException(PlugInExceptionType exceptionType, Exception ex) + { + super(PlugInBaseException.createMessage(exceptionType, null), ex); + this.setExceptionType(exceptionType); + } + + public PlugInBaseException(PlugInExceptionType exceptionType, Object[] parameters) + { + super(PlugInBaseException.createMessage(exceptionType, parameters)); + this.setExceptionType(exceptionType); + } + + public PlugInBaseException(PlugInExceptionType exceptionType, Object[] parameters, Exception ex) + { + super(PlugInBaseException.createMessage(exceptionType, parameters)); + this.setExceptionType(exceptionType); + } + + public static String createMessage(PlugInExceptionType exceptionType, Object[] parameters) + { + if (parameters != null) + return String.format(exceptionType.getErrorMessage(), parameters); + else + return exceptionType.getErrorMessage(); + } + + public PlugInExceptionType getExceptionType() + { + return exceptionType; + } + + public void setExceptionType(PlugInExceptionType exceptionType) + { + this.exceptionType = exceptionType; + } + + + } Modified: trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/comm/MinimedComm_ComLink.java =================================================================== --- trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/comm/MinimedComm_ComLink.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/comm/MinimedComm_ComLink.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -210,7 +210,7 @@ // --- Command: Read Pump Error Status // --- /* - * //int error_code = -1; + * //int errorCode = -1; * int param_int = -1; * try * { @@ -1156,9 +1156,9 @@ } catch (PlugInBaseException ex) { - if (ex.error_code > 0) + if (ex.errorCode > 0) { - if (ex.error_code == 12) + if (ex.errorCode == 12) return true; else throw ex; @@ -1670,6 +1670,7 @@ return DeviceImplementationStatus.IMPLEMENTATION_NOT_AVAILABLE; } + public String getInstructions() { return null; Modified: trunk/ggc-plugin_base/src/ggc/plugin/manager/EmptyMgrDevices.java =================================================================== --- trunk/ggc-plugin_base/src/ggc/plugin/manager/EmptyMgrDevices.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-plugin_base/src/ggc/plugin/manager/EmptyMgrDevices.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -128,6 +128,7 @@ return DeviceImplementationStatus.IMPLEMENTATION_NOT_AVAILABLE; } + /** * @throws PlugInBaseException */ Modified: trunk/ggc-plugin_base/src/ggc/plugin/manager/company/AbstractDeviceCompany.java =================================================================== --- trunk/ggc-plugin_base/src/ggc/plugin/manager/company/AbstractDeviceCompany.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-plugin_base/src/ggc/plugin/manager/company/AbstractDeviceCompany.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -226,6 +226,7 @@ */ public DeviceImplementationStatus getImplementationStatus() { + return this.company_implementation_status; } Modified: trunk/ggc-pump/src/ggc/pump/device/DummyPump.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/DummyPump.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-pump/src/ggc/pump/device/DummyPump.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -2,6 +2,7 @@ import ggc.plugin.device.DeviceIdentification; import ggc.plugin.device.PlugInBaseException; +import ggc.plugin.manager.DeviceImplementationStatus; import ggc.plugin.output.OutputWriter; import ggc.pump.util.DataAccessPump; @@ -288,9 +289,9 @@ /** * getImplementationStatus */ - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { - return 0; + return DeviceImplementationStatus.IMPLEMENTATION_NOT_AVAILABLE; } /** Modified: trunk/ggc-pump/src/ggc/pump/device/accuchek/AccuChekCombo.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/accuchek/AccuChekCombo.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-pump/src/ggc/pump/device/accuchek/AccuChekCombo.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -124,17 +124,8 @@ return null; } - /** - * getImplementationStatus - Get Implementation Status - * - * @return implementation status as number - * @see ggc.plugin.manager.DeviceImplementationStatus - */ - public int getImplementationStatus() - { - return DeviceImplementationStatus.IMPLEMENTATION_IN_PROGRESS; - } + /** * getMaxMemoryRecords - Get Maximum entries that can be stored in devices memory * Modified: trunk/ggc-pump/src/ggc/pump/device/accuchek/AccuChekDTron.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/accuchek/AccuChekDTron.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-pump/src/ggc/pump/device/accuchek/AccuChekDTron.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -122,17 +122,8 @@ return null; } - /** - * getImplementationStatus - Get Implementation Status - * - * @return implementation status as number - * @see ggc.plugin.manager.DeviceImplementationStatus - */ - public int getImplementationStatus() - { - return DeviceImplementationStatus.IMPLEMENTATION_IN_PROGRESS; - } + /** * getMaxMemoryRecords - Get Maximum entries that can be stored in devices memory * Modified: trunk/ggc-pump/src/ggc/pump/device/accuchek/AccuChekSmartPixPump.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/accuchek/AccuChekSmartPixPump.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-pump/src/ggc/pump/device/accuchek/AccuChekSmartPixPump.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -4,6 +4,7 @@ import ggc.plugin.device.DeviceIdentification; import ggc.plugin.device.DownloadSupportType; import ggc.plugin.device.impl.accuchek.AccuChekSmartPix; +import ggc.plugin.manager.DeviceImplementationStatus; import ggc.plugin.manager.company.AbstractDeviceCompany; import ggc.plugin.output.OutputWriter; import ggc.plugin.protocol.ConnectionProtocols; @@ -1213,7 +1214,20 @@ } + /** + * getImplementationStatus - Get Implementation Status + * + * @return implementation status as number + * @see ggc.plugin.manager.DeviceImplementationStatus + */ + public DeviceImplementationStatus getImplementationStatus() + { + return DeviceImplementationStatus.IMPLEMENTATION_DONE; + } + + + /** * Map pump specific alarms to PumpTool specific alarm codes * * @return Modified: trunk/ggc-pump/src/ggc/pump/device/accuchek/AccuChekSpirit.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/accuchek/AccuChekSpirit.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-pump/src/ggc/pump/device/accuchek/AccuChekSpirit.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -126,16 +126,6 @@ return null; } - /** - * getImplementationStatus - Get Implementation Status - * - * @return implementation status as number - * @see ggc.plugin.manager.DeviceImplementationStatus - */ - public int getImplementationStatus() - { - return DeviceImplementationStatus.IMPLEMENTATION_IN_PROGRESS; - } /** * getMaxMemoryRecords - Get Maximum entries that can be stored in devices memory Modified: trunk/ggc-pump/src/ggc/pump/device/accuchek/DisetronicDTron.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/accuchek/DisetronicDTron.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-pump/src/ggc/pump/device/accuchek/DisetronicDTron.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -126,17 +126,8 @@ return null; } - /** - * getImplementationStatus - Get Implementation Status - * - * @return implementation status as number - * @see ggc.plugin.manager.DeviceImplementationStatus - */ - public int getImplementationStatus() - { - return DeviceImplementationStatus.IMPLEMENTATION_IN_PROGRESS; - } + /** * getMaxMemoryRecords - Get Maximum entries that can be stored in devices memory (not verified for this pump) * Modified: trunk/ggc-pump/src/ggc/pump/device/animas/impl/handler/AnimasPumpDataWriter.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/animas/impl/handler/AnimasPumpDataWriter.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-pump/src/ggc/pump/device/animas/impl/handler/AnimasPumpDataWriter.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -1,12 +1,13 @@ -package ggc.pump.device.animas.impl.data; +package ggc.pump.device.animas.impl.handler; import ggc.plugin.data.DeviceValuesWriter; +import ggc.plugin.device.impl.animas.handler.AnimasDataWriter; import ggc.plugin.output.ConsoleOutputWriter; import ggc.plugin.output.OutputWriter; import ggc.pump.data.PumpTempValues; import ggc.pump.data.defs.*; -import ggc.plugin.device.impl.animas.handler.AnimasDataWriter; + /** * Application: GGC - GNU Gluco Control * Plug-in: Pump Tool (support for Pump devices) Modified: trunk/ggc-pump/src/ggc/pump/device/cozmo/FRC_CoPilotXMLPump.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/cozmo/FRC_CoPilotXMLPump.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-pump/src/ggc/pump/device/cozmo/FRC_CoPilotXMLPump.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -1,6 +1,7 @@ package ggc.pump.device.cozmo; import ggc.plugin.device.impl.abbott.CoPilot; +import ggc.plugin.manager.DeviceImplementationStatus; import ggc.plugin.util.DataAccessPlugInBase; import java.io.File; @@ -185,10 +186,9 @@ return null; } - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { - // TODO Auto-generated method stub - return 0; + return DeviceImplementationStatus.IMPLEMENTATION_NOT_AVAILABLE; } public String getInstructions() Modified: trunk/ggc-pump/src/ggc/pump/device/dana/DanaDiabecare_II.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/dana/DanaDiabecare_II.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-pump/src/ggc/pump/device/dana/DanaDiabecare_II.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -143,7 +143,7 @@ * @see ggc.plugin.manager.DeviceImplementationStatus */ @Override - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { return DeviceImplementationStatus.IMPLEMENTATION_NOT_AVAILABLE; } Modified: trunk/ggc-pump/src/ggc/pump/device/dana/DanaDiabecare_III_R.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/dana/DanaDiabecare_III_R.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-pump/src/ggc/pump/device/dana/DanaDiabecare_III_R.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -346,9 +346,9 @@ * @return implementation status as number * @see ggc.plugin.manager.DeviceImplementationStatus */ - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { - return DeviceImplementationStatus.IMPLEMENTATION_TESTING; + return DeviceImplementationStatus.IMPLEMENTATION_DONE; } /** Modified: trunk/ggc-pump/src/ggc/pump/device/dana/DanaDiabecare_IIS.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/dana/DanaDiabecare_IIS.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-pump/src/ggc/pump/device/dana/DanaDiabecare_IIS.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -146,7 +146,7 @@ * @see ggc.plugin.manager.DeviceImplementationStatus */ @Override - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { return DeviceImplementationStatus.IMPLEMENTATION_NOT_AVAILABLE; } Modified: trunk/ggc-pump/src/ggc/pump/device/dana/DanaPump.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/dana/DanaPump.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-pump/src/ggc/pump/device/dana/DanaPump.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -103,7 +103,7 @@ * @return implementation status as number * @see ggc.plugin.manager.DeviceImplementationStatus */ - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { return DeviceImplementationStatus.IMPLEMENTATION_NOT_AVAILABLE; } Modified: trunk/ggc-pump/src/ggc/pump/device/deltec/DeltecCosmo1700.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/deltec/DeltecCosmo1700.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-pump/src/ggc/pump/device/deltec/DeltecCosmo1700.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -138,7 +138,7 @@ * @see ggc.plugin.manager.DeviceImplementationStatus */ @Override - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { return DeviceImplementationStatus.IMPLEMENTATION_NOT_PLANNED; } Modified: trunk/ggc-pump/src/ggc/pump/device/deltec/DeltecCosmo1800.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/deltec/DeltecCosmo1800.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-pump/src/ggc/pump/device/deltec/DeltecCosmo1800.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -138,7 +138,7 @@ * @see ggc.plugin.manager.DeviceImplementationStatus */ @Override - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { return DeviceImplementationStatus.IMPLEMENTATION_NOT_PLANNED; } Modified: trunk/ggc-pump/src/ggc/pump/device/deltec/DeltecPump.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/deltec/DeltecPump.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-pump/src/ggc/pump/device/deltec/DeltecPump.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -99,7 +99,7 @@ * @return implementation status as number * @see ggc.plugin.manager.DeviceImplementationStatus */ - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { return DeviceImplementationStatus.IMPLEMENTATION_NOT_AVAILABLE; } Modified: trunk/ggc-pump/src/ggc/pump/device/insulet/InsuletOmniPod.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/insulet/InsuletOmniPod.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-pump/src/ggc/pump/device/insulet/InsuletOmniPod.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -142,7 +142,7 @@ * @see ggc.plugin.manager.DeviceImplementationStatus */ @Override - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { return DeviceImplementationStatus.IMPLEMENTATION_NOT_PLANNED; } Modified: trunk/ggc-pump/src/ggc/pump/device/insulet/InsuletPump.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/insulet/InsuletPump.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-pump/src/ggc/pump/device/insulet/InsuletPump.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -103,7 +103,7 @@ * @return implementation status as number * @see ggc.plugin.manager.DeviceImplementationStatus */ - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { return DeviceImplementationStatus.IMPLEMENTATION_NOT_AVAILABLE; } Modified: trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed508.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed508.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed508.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -141,7 +141,7 @@ * @return implementation status as number * @see ggc.plugin.manager.DeviceImplementationStatus */ - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { return DeviceImplementationStatus.IMPLEMENTATION_NOT_AVAILABLE; } Modified: trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed511.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed511.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed511.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -216,17 +216,8 @@ return null; } - /** - * getImplementationStatus - Get Implementation Status - * - * @return implementation status as number - * @see ggc.plugin.manager.DeviceImplementationStatus - */ - public int getImplementationStatus() - { - return DeviceImplementationStatus.IMPLEMENTATION_NOT_AVAILABLE; - } + /** * getDeviceClassName - Get Class name of device implementation, used by Reflection at later time * Modified: trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed512.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed512.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed512.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -229,18 +229,8 @@ return null; } - /** - * getImplementationStatus - Get Implementation Status - * - * @return implementation status as number - * @see ggc.plugin.manager.DeviceImplementationStatus - */ - @Override - public int getImplementationStatus() - { - return DeviceImplementationStatus.IMPLEMENTATION_NOT_AVAILABLE; - } + /** * getDeviceClassName - Get Class name of device implementation, used by Reflection at later time * Modified: trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed515.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed515.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed515.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -200,18 +200,8 @@ return null; } - /** - * getImplementationStatus - Get Implementation Status - * - * @return implementation status as number - * @see ggc.plugin.manager.DeviceImplementationStatus - */ - @Override - public int getImplementationStatus() - { - return DeviceImplementationStatus.IMPLEMENTATION_NOT_AVAILABLE; - } + /** * getDeviceClassName - Get Class name of device implementation, used by * Reflection at later time Modified: trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed522.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed522.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed522.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -223,18 +223,8 @@ return null; } - /** - * getImplementationStatus - Get Implementation Status - * - * @return implementation status as number - * @see ggc.plugin.manager.DeviceImplementationStatus - */ - @Override - public int getImplementationStatus() - { - return DeviceImplementationStatus.IMPLEMENTATION_NOT_AVAILABLE; - } + /** * getDeviceClassName - Get Class name of device implementation, used by * Reflection at later time Modified: trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed523.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed523.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed523.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -219,18 +219,8 @@ return null; } - /** - * getImplementationStatus - Get Implementation Status - * - * @return implementation status as number - * @see ggc.plugin.manager.DeviceImplementationStatus - */ - @Override - public int getImplementationStatus() - { - return DeviceImplementationStatus.IMPLEMENTATION_NOT_AVAILABLE; - } + /** * getDeviceClassName - Get Class name of device implementation, used by Reflection at later time * Modified: trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed553.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed553.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed553.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -210,18 +210,8 @@ return null; } - /** - * getImplementationStatus - Get Implementation Status - * - * @return implementation status as number - * @see ggc.plugin.manager.DeviceImplementationStatus - */ - @Override - public int getImplementationStatus() - { - return DeviceImplementationStatus.IMPLEMENTATION_NOT_AVAILABLE; - } + /** * getDeviceClassName - Get Class name of device implementation, used by Reflection at later time * Modified: trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed554_Veo.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed554_Veo.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed554_Veo.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -208,18 +208,8 @@ return null; } - /** - * getImplementationStatus - Get Implementation Status - * - * @return implementation status as number - * @see ggc.plugin.manager.DeviceImplementationStatus - */ - @Override - public int getImplementationStatus() - { - return DeviceImplementationStatus.IMPLEMENTATION_NOT_AVAILABLE; - } + /** * getDeviceClassName - Get Class name of device implementation, used by Reflection at later time * Modified: trunk/ggc-pump/src/ggc/pump/device/minimed/MinimedPump.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/minimed/MinimedPump.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-pump/src/ggc/pump/device/minimed/MinimedPump.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -105,7 +105,7 @@ * @return implementation status as number * @see ggc.plugin.manager.DeviceImplementationStatus */ - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { return DeviceImplementationStatus.IMPLEMENTATION_NOT_AVAILABLE; } Modified: trunk/ggc-pump/src/ggc/pump/device/minimed/MinimedPumpDevice.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/minimed/MinimedPumpDevice.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-pump/src/ggc/pump/device/minimed/MinimedPumpDevice.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -1,6 +1,7 @@ package ggc.pump.device.minimed; import ggc.plugin.device.impl.minimed.MinimedDevice; +import ggc.plugin.manager.DeviceImplementationStatus; import ggc.plugin.manager.company.AbstractDeviceCompany; import ggc.plugin.output.OutputWriter; import ggc.plugin.util.DataAccessPlugInBase; @@ -92,5 +93,8 @@ { } - + public DeviceImplementationStatus getImplementationStatus() + { + return DeviceImplementationStatus.IMPLEMENTATION_NOT_AVAILABLE; + } } Modified: trunk/ggc-pump/src/ggc/pump/device/minimed/new_dev/Minimed512.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/minimed/new_dev/Minimed512.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-pump/src/ggc/pump/device/minimed/new_dev/Minimed512.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -231,7 +231,7 @@ * @return implementation status as number * @see ggc.plugin.manager.DeviceImplementationStatus */ - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { return DeviceImplementationStatus.IMPLEMENTATION_NOT_AVAILABLE; } Modified: trunk/ggc-pump/src/ggc/pump/manager/company/AbstractPumpDeviceCompany.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/manager/company/AbstractPumpDeviceCompany.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-pump/src/ggc/pump/manager/company/AbstractPumpDeviceCompany.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -1,5 +1,6 @@ package ggc.pump.manager.company; +import ggc.plugin.manager.DeviceImplementationStatus; import ggc.plugin.manager.company.AbstractDeviceCompany; import ggc.pump.util.DataAccessPump; @@ -18,7 +19,6 @@ /** * Instantiates a new abstract pump device company * - * @param ic the i18nControlAbstract * @param value the value */ public AbstractPumpDeviceCompany(boolean value) @@ -37,7 +37,7 @@ * @param implementation_status */ public AbstractPumpDeviceCompany(int company_id_, String company_name, String short_company_name, - String company_desc, int implementation_status) + String company_desc, DeviceImplementationStatus implementation_status) { super(false, company_id_, company_name, short_company_name, company_desc, implementation_status, DataAccessPump .getInstance()); Modified: trunk/ggc-pump/src/ggc/pump/manager/company/GenericPumpDevice.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/manager/company/GenericPumpDevice.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-pump/src/ggc/pump/manager/company/GenericPumpDevice.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -3,6 +3,7 @@ import ggc.plugin.device.DeviceIdentification; import ggc.plugin.device.DownloadSupportType; import ggc.plugin.device.PlugInBaseException; +import ggc.plugin.manager.DeviceImplementationStatus; import ggc.plugin.manager.company.AbstractDeviceCompany; import ggc.plugin.protocol.ConnectionProtocols; import ggc.pump.device.AbstractPump; @@ -214,13 +215,13 @@ return null; } - /** + /** * getImplementationStatus */ - public int getImplementationStatus() + public DeviceImplementationStatus getImplementationStatus() { // TODO Auto-generated method stub - return 0; + return DeviceImplementationStatus.IMPLEMENTATION_NOT_AVAILABLE; } /** Modified: trunk/ggc-pump/src/ggc/pump/util/DataAccessPump.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/util/DataAccessPump.java 2015-02-06 12:13:01 UTC (rev 1345) +++ trunk/ggc-pump/src/ggc/pump/util/DataAccessPump.java 2015-02-08 22:23:37 UTC (rev 1346) @@ -339,6 +339,8 @@ } + + @Override public GGCPluginType getPluginType() { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <and...@us...> - 2015-02-09 16:27:33
|
Revision: 1347 http://sourceforge.net/p/ggc/code/1347 Author: andyrozman Date: 2015-02-09 16:27:21 +0000 (Mon, 09 Feb 2015) Log Message: ----------- Graphs Pen/Injection fix - AtechTools (needs further work) Graphs Pump started working on it... Modified Paths: -------------- trunk/ggc-core/src/ggc/core/data/DailyValues.java trunk/ggc-desktop/data/lang/GGC_Languages.properties trunk/ggc-desktop/pom.xml trunk/ggc-desktop/src/ggc/gui/MainFrame.java trunk/ggc-desktop/src/ggc/gui/panels/prefs/PrefLanguagePane.java trunk/ggc-pump/src/ggc/pump/data/PumpValuesEntry.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpBasalSubType.java trunk/ggc-pump/src/ggc/pump/data/graph/GraphViewBasalRateEstimator.java trunk/ggc-pump/src/ggc/pump/data/graph/GraphViewDailyPump.java trunk/ggc-pump/src/ggc/pump/device/minimed/PumpSimple.java Modified: trunk/ggc-core/src/ggc/core/data/DailyValues.java =================================================================== --- trunk/ggc-core/src/ggc/core/data/DailyValues.java 2015-02-08 22:23:37 UTC (rev 1346) +++ trunk/ggc-core/src/ggc/core/data/DailyValues.java 2015-02-09 16:27:21 UTC (rev 1347) @@ -46,8 +46,11 @@ private boolean debug = false; private I18nControlAbstract m_ic = DataAccess.getInstance().getI18nControlInstance(); - private String[] column_names = { m_ic.getMessage("DATE_TIME"), m_ic.getMessage("BG"), - m_ic.getMessage("BOLUS_INSULIN_SHORT"), m_ic.getMessage("BASAL_INSULIN_SHORT"), + private String[] column_names = { + m_ic.getMessage("DATE_TIME"), // + m_ic.getMessage("BG"), // + m_ic.getMessage("BOLUS_INSULIN_SHORT"), // + m_ic.getMessage("BASAL_INSULIN_SHORT"), // m_ic.getMessage("CH"), m_ic.getMessage("ACTIVITY"), m_ic.getMessage("URINE"), m_ic.getMessage("COMMENT") }; Modified: trunk/ggc-desktop/data/lang/GGC_Languages.properties =================================================================== --- trunk/ggc-desktop/data/lang/GGC_Languages.properties 2015-02-08 22:23:37 UTC (rev 1346) +++ trunk/ggc-desktop/data/lang/GGC_Languages.properties 2015-02-09 16:27:21 UTC (rev 1347) @@ -50,6 +50,7 @@ LANG_3_NAME=Deutsch LANG_3_HELP_AVAILABLE=No LANG_3_HELP=Yes +LANG_3_LOCALE=de LANG_3_LOCALE_COUNTRY= LANG_3_LOCALE_ISO= @@ -61,6 +62,7 @@ LANG_4_NAME=French LANG_4_HELP_AVAILABLE=No LANG_4_HELP=Yes +LANG_4_LOCALE=fr LANG_4_LOCALE_COUNTRY= LANG_4_LOCALE_ISO= Modified: trunk/ggc-desktop/pom.xml =================================================================== --- trunk/ggc-desktop/pom.xml 2015-02-08 22:23:37 UTC (rev 1346) +++ trunk/ggc-desktop/pom.xml 2015-02-09 16:27:21 UTC (rev 1347) @@ -69,12 +69,12 @@ <groupId>net.sf.ggc</groupId> <artifactId>ggc-pump-tool</artifactId> </dependency> - +<!-- <dependency> <groupId>net.sf.ggc</groupId> <artifactId>ggc-cgms-tool</artifactId> </dependency> - +--> <dependency> <groupId>net.sf.ggc</groupId> <artifactId>ggc-nutri-tool</artifactId> Modified: trunk/ggc-desktop/src/ggc/gui/MainFrame.java =================================================================== --- trunk/ggc-desktop/src/ggc/gui/MainFrame.java 2015-02-08 22:23:37 UTC (rev 1346) +++ trunk/ggc-desktop/src/ggc/gui/MainFrame.java 2015-02-09 16:27:21 UTC (rev 1347) @@ -638,7 +638,7 @@ // String selected_language = // dataAccess.getLanguageManager().getSelectedLanguage(); - // String default_help = dataAccess.getLanguageManager().getDefaultHelp(); + // String defaultHelp = dataAccess.getLanguageManager().getDefaultHelp(); HelpContext hc = m_da.getHelpContext(); Modified: trunk/ggc-desktop/src/ggc/gui/panels/prefs/PrefLanguagePane.java =================================================================== --- trunk/ggc-desktop/src/ggc/gui/panels/prefs/PrefLanguagePane.java 2015-02-08 22:23:37 UTC (rev 1346) +++ trunk/ggc-desktop/src/ggc/gui/panels/prefs/PrefLanguagePane.java 2015-02-09 16:27:21 UTC (rev 1347) @@ -90,8 +90,8 @@ * panel.add(label); */ /* - * label = new JLabel("v" + langInfo.lp_version + " (" + - * langInfo.lp_release + ")"); + * label = new JLabel("v" + langInfo.languagePackVersion + " (" + + * langInfo.languagePackRelease + ")"); * label.setFont(font_normal); * label.setBounds(180, 50, 360, 25); * panel.add(label); @@ -107,7 +107,7 @@ * panel.add(label); */ /* - * label = new JLabel("" + langInfo.lp_langs_with_help); + * label = new JLabel("" + langInfo.languagePackLanguagesWithHelp); * label.setFont(font_normal); * label.setBounds(200, 70, 360, 25); * panel.add(label); @@ -123,7 +123,7 @@ * panel.add(label); */ /* - * label = new JLabel("" + langInfo.lp_langs_without_help); + * label = new JLabel("" + langInfo.languagePackLanguagesWithoutHelp); * label.setFont(font_normal); * label.setBounds(200, 90, 360, 25); * panel.add(label); Modified: trunk/ggc-pump/src/ggc/pump/data/PumpValuesEntry.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/data/PumpValuesEntry.java 2015-02-08 22:23:37 UTC (rev 1346) +++ trunk/ggc-pump/src/ggc/pump/data/PumpValuesEntry.java 2015-02-09 16:27:21 UTC (rev 1347) @@ -421,7 +421,8 @@ } else if (this.baseType == PumpBaseType.Report) { - return m_da.getPumpReportTypes().getDescriptions()[this.sub_type]; + return PumpReport.getByCode(this.sub_type).getTranslation(); + //return m_da.getPumpReportTypes().getDescriptions()[this.sub_type]; } else if (this.baseType == PumpBaseType.Alarm) { Modified: trunk/ggc-pump/src/ggc/pump/data/defs/PumpBasalSubType.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/data/defs/PumpBasalSubType.java 2015-02-08 22:23:37 UTC (rev 1346) +++ trunk/ggc-pump/src/ggc/pump/data/defs/PumpBasalSubType.java 2015-02-09 16:27:21 UTC (rev 1347) @@ -48,7 +48,13 @@ ; + public static boolean isTemporaryBasalType(PumpBasalSubType type) + { + return (type==TemporaryBasalRate || type==TemporaryBasalRateProfile || type==TemporaryBasalRateCanceled || type==TemporaryBasalRateEnded); + } + + /** * Basal Descriptions */ Modified: trunk/ggc-pump/src/ggc/pump/data/graph/GraphViewBasalRateEstimator.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/data/graph/GraphViewBasalRateEstimator.java 2015-02-08 22:23:37 UTC (rev 1346) +++ trunk/ggc-pump/src/ggc/pump/data/graph/GraphViewBasalRateEstimator.java 2015-02-09 16:27:21 UTC (rev 1347) @@ -60,8 +60,8 @@ // private GlucoValues gluco_values; // private GlucoValues gluco_values_prev; XYSeriesCollection dataset = new XYSeriesCollection(); - // TimeSeriesCollection dataset = new TimeSeriesCollection(); - // DefaultCategoryDataset dataset = new DefaultCategoryDataset(); + // TimeSeriesCollection datasetBG = new TimeSeriesCollection(); + // DefaultCategoryDataset datasetBG = new DefaultCategoryDataset(); NumberAxis BGAxis; // private TimeSeriesCollection BGDataset = new TimeSeriesCollection(); @@ -159,7 +159,7 @@ * if (dv.getBG()>0) * ts.addOrUpdate(new Minute(dv.getDateTimeAsDate()), dv.getBG()); * } - * dataset.addSeries(ts); + * datasetBG.addSeries(ts); * ts = new TimeSeries("CH"); * for(int i=0; i<count; i++) * { @@ -170,24 +170,24 @@ * // xs.add(dv.getDateT(), dv.getCH()); * } * //org.jfree.data.time. - * dataset.addSeries(ts); + * datasetBG.addSeries(ts); * /* - * dataset.clear(); + * datasetBG.clear(); * System.out.println("Read HbA1c data:\n" + * hbValues.getPercentOfDaysInClass(0) + "\n" + * hbValues.getPercentOfDaysInClass(1) + "\n" * + hbValues.getPercentOfDaysInClass(2) + "\n" + * hbValues.getPercentOfDaysInClass(3) + "\n" * + hbValues.getPercentOfDaysInClass(4)); - * dataset.insertValue(0, m_ic.getMessage("DAYS_WITH_READINGS_0_1"), + * datasetBG.insertValue(0, m_ic.getMessage("DAYS_WITH_READINGS_0_1"), * hbValues.getPercentOfDaysInClass(0)); - * dataset.insertValue(1, m_ic.getMessage("DAYS_WITH_READINGS_2_3"), + * datasetBG.insertValue(1, m_ic.getMessage("DAYS_WITH_READINGS_2_3"), * hbValues.getPercentOfDaysInClass(1)); - * dataset.insertValue(2, m_ic.getMessage("DAYS_WITH_READINGS_4_5"), + * datasetBG.insertValue(2, m_ic.getMessage("DAYS_WITH_READINGS_4_5"), * hbValues.getPercentOfDaysInClass(2)); - * dataset.insertValue(3, m_ic.getMessage("DAYS_WITH_READINGS_6_7"), + * datasetBG.insertValue(3, m_ic.getMessage("DAYS_WITH_READINGS_6_7"), * hbValues.getPercentOfDaysInClass(3)); - * dataset.insertValue(4, m_ic.getMessage("DAYS_WITH_READINGS_MORE_7"), + * datasetBG.insertValue(4, m_ic.getMessage("DAYS_WITH_READINGS_MORE_7"), * hbValues.getPercentOfDaysInClass(4)); */ @@ -305,7 +305,7 @@ /* * } * } - * dataset.addSeries(BGSeries); + * datasetBG.addSeries(BGSeries); * insBUDataset.addSeries(CHSeries); * insBUDataset.addSeries(ins1Series); * insBUDataset.addSeries(ins2Series); Modified: trunk/ggc-pump/src/ggc/pump/data/graph/GraphViewDailyPump.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/data/graph/GraphViewDailyPump.java 2015-02-08 22:23:37 UTC (rev 1346) +++ trunk/ggc-pump/src/ggc/pump/data/graph/GraphViewDailyPump.java 2015-02-09 16:27:21 UTC (rev 1347) @@ -1,5 +1,6 @@ package ggc.pump.data.graph; +import com.atech.utils.data.TimeZoneUtil; import ggc.core.data.graph.GGCGraphUtil; import ggc.core.db.hibernate.ColorSchemeH; import ggc.core.util.DataAccess; @@ -9,22 +10,35 @@ import ggc.pump.data.PumpValuesEntryExt; import ggc.pump.data.db.GGCPumpDb; import ggc.pump.data.defs.PumpAdditionalDataType; +import ggc.pump.data.defs.PumpBasalSubType; +import ggc.pump.data.defs.PumpBaseType; +import ggc.pump.data.defs.PumpBolusType; import ggc.pump.util.DataAccessPump; -import java.awt.Rectangle; -import java.awt.RenderingHints; +import java.awt.*; import java.text.SimpleDateFormat; +import java.util.ArrayList; +import java.util.Calendar; import java.util.GregorianCalendar; +import java.util.List; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartPanel; import org.jfree.chart.JFreeChart; import org.jfree.chart.axis.AxisLocation; import org.jfree.chart.axis.DateAxis; import org.jfree.chart.axis.NumberAxis; +import org.jfree.chart.plot.CategoryPlot; import org.jfree.chart.plot.XYPlot; +import org.jfree.chart.renderer.category.BarRenderer; +import org.jfree.chart.renderer.xy.XYBarPainter; +import org.jfree.chart.renderer.xy.XYBarRenderer; import org.jfree.chart.renderer.xy.XYLineAndShapeRenderer; +import org.jfree.data.Range; import org.jfree.data.general.AbstractDataset; +import org.jfree.data.time.DateRange; import org.jfree.data.xy.XYSeries; import org.jfree.data.xy.XYSeriesCollection; @@ -62,21 +76,30 @@ // GraphViewDataProcessorInterface { + Log LOG = LogFactory.getLog(GraphViewDailyPump.class); + + + private XYSeriesCollection datasetBG = new XYSeriesCollection(); + private XYSeriesCollection datasetInsCH = new XYSeriesCollection(); + + + + + GregorianCalendar gc; // private GlucoValues gluco_values; // private GlucoValues gluco_values_prev; - XYSeriesCollection dataset = new XYSeriesCollection(); - // TimeSeriesCollection dataset = new TimeSeriesCollection(); - // DefaultCategoryDataset dataset = new DefaultCategoryDataset(); + // TimeSeriesCollection datasetBG = new TimeSeriesCollection(); + // DefaultCategoryDataset datasetBG = new DefaultCategoryDataset(); NumberAxis BGAxis; // private TimeSeriesCollection BGDataset = new TimeSeriesCollection(); // private DailyValues data = new DailyValues(); DateAxis dateAxis; NumberAxis insBUAxis; - // private TimeSeriesCollection insBUDataset = new TimeSeriesCollection(); - private XYSeriesCollection insBUDataset = new XYSeriesCollection(); + // private TimeSeriesCollection datasetInsCH = new TimeSeriesCollection(); + DataAccessPump da_local = DataAccessPump.getInstance(); GGCGraphUtil graph_util = GGCGraphUtil.getInstance(da_local); @@ -98,7 +121,6 @@ { super(DataAccess.getInstance()); this.gc = gc; - } /** @@ -119,7 +141,7 @@ @Override public Rectangle getViewerDialogBounds() { - return new Rectangle(100, 100, 500, 400); + return new Rectangle(100, 100, 600, 400); } /** @@ -141,7 +163,7 @@ */ public AbstractDataset getDataSet() { - return this.dataset; + return this.datasetBG; } /** @@ -150,6 +172,18 @@ public void preprocessData() { + // BG + + // Bolus + + // Basal + + // CH + + // CGMS + + + /* * //XYSeries xs = new XYSeries("BG"); * TimeSeries ts = new TimeSeries("BG", Minute.class); @@ -163,7 +197,7 @@ * if (dv.getBG()>0) * ts.addOrUpdate(new Minute(dv.getDateTimeAsDate()), dv.getBG()); * } - * dataset.addSeries(ts); + * datasetBG.addSeries(ts); * ts = new TimeSeries("CH"); * for(int i=0; i<count; i++) * { @@ -174,29 +208,29 @@ * // xs.add(dv.getDateT(), dv.getCH()); * } * //org.jfree.data.time. - * dataset.addSeries(ts); + * datasetBG.addSeries(ts); * /* - * dataset.clear(); + * datasetBG.clear(); * System.out.println("Read HbA1c data:\n" + * hbValues.getPercentOfDaysInClass(0) + "\n" + * hbValues.getPercentOfDaysInClass(1) + "\n" * + hbValues.getPercentOfDaysInClass(2) + "\n" + * hbValues.getPercentOfDaysInClass(3) + "\n" * + hbValues.getPercentOfDaysInClass(4)); - * dataset.insertValue(0, m_ic.getMessage("DAYS_WITH_READINGS_0_1"), + * datasetBG.insertValue(0, m_ic.getMessage("DAYS_WITH_READINGS_0_1"), * hbValues.getPercentOfDaysInClass(0)); - * dataset.insertValue(1, m_ic.getMessage("DAYS_WITH_READINGS_2_3"), + * datasetBG.insertValue(1, m_ic.getMessage("DAYS_WITH_READINGS_2_3"), * hbValues.getPercentOfDaysInClass(1)); - * dataset.insertValue(2, m_ic.getMessage("DAYS_WITH_READINGS_4_5"), + * datasetBG.insertValue(2, m_ic.getMessage("DAYS_WITH_READINGS_4_5"), * hbValues.getPercentOfDaysInClass(2)); - * dataset.insertValue(3, m_ic.getMessage("DAYS_WITH_READINGS_6_7"), + * datasetBG.insertValue(3, m_ic.getMessage("DAYS_WITH_READINGS_6_7"), * hbValues.getPercentOfDaysInClass(3)); - * dataset.insertValue(4, m_ic.getMessage("DAYS_WITH_READINGS_MORE_7"), + * datasetBG.insertValue(4, m_ic.getMessage("DAYS_WITH_READINGS_MORE_7"), * hbValues.getPercentOfDaysInClass(4)); */ - dataset.removeAllSeries(); - insBUDataset.removeAllSeries(); + datasetBG.removeAllSeries(); + datasetInsCH.removeAllSeries(); /* * TimeSeries BGSeries = new @@ -209,15 +243,12 @@ * TimeSeries(da_local.getSettings().getIns2Name(), Hour.class); */ - XYSeries BGSeries = new XYSeries(this.m_ic.getMessage("BLOOD_GLUCOSE"), true, true); // , - // Hour.class); - // XYSeries CHSeries = new XYSeries(this.m_ic.getMessage("CH_LONG"), - // true, true); //, Hour.class); - // XYSeries ins1Series = new XYSeries("Basal insulin", true, true); //, - // Hour.class); - // XYSeries ins2Series = new XYSeries("Bolus insulin", true, true); //, - // Hour.class); + XYSeries BGSeries = new XYSeries(this.m_ic.getMessage("BLOOD_GLUCOSE"), true, true); //, Hour.class); + XYSeries CHSeries = new XYSeries(this.m_ic.getMessage("CH_LONG"),true, true); //, Hour.class); + XYSeries basalInsulinSeries = new XYSeries("Basal insulin", true, true); //, // Hour.class); + XYSeries bolusInsulinSeries = new XYSeries("Bolus insulin", true, true); //, // Hour.class); + // int BGUnit = da_local.m_BG_unit; // DailyValuesRow @@ -227,67 +258,170 @@ // DeviceValuesDay dvd = dvd_data..getRowAt(0); + //BGSeries.add(0, 0.0f); + //BGSeries.add(2400, 0.0f); + + + + PumpValuesEntry pve = null; + + List<PumpValuesEntry> tbrs = new ArrayList<PumpValuesEntry>(); + + boolean basalEntryFound = false; + for (int i = 0; i < this.dvd_data.getRowCount(); i++) { + pve = (PumpValuesEntry) this.dvd_data.getRowAt(i); - PumpValuesEntry pve = (PumpValuesEntry) this.dvd_data.getRowAt(i); + long time = pve.getDateTimeObject().getGregorianCalendar().getTimeInMillis(); + //long time = pve.getDateTimeObject().getGregorianCalendar(); - // DailyValuesRow row = this.gluco_values.getDailyValueRow(i); - // Hour time = new Hour(row.getDateTimeAsDate()); - // int time = row.getDateT(); + //System.out.println("Time: " + time); - long time = pve.getDateTime(); - // System.out.println(row.getDateTimeAsDate()); + // Bolus + if (pve.getBaseType()== PumpBaseType.Bolus) + { + PumpBolusType bolusType = PumpBolusType.getByCode(pve.getSubType()); - if (pve.getAdditionalData().containsKey(PumpAdditionalDataType.BloodGlucose.getTranslation())) + if (bolusType==PumpBolusType.Normal || bolusType==PumpBolusType.Audio) + { + bolusInsulinSeries.add(time, da_local.getFloatValueFromString(pve.getValue())); + } + else + { + LOG.warn("Bolus Type: " + bolusType.name() + " not supported yet."); + } + } + + // Basal + // FIXME Basal two-passes check + if (pve.getBaseType()== PumpBaseType.Basal) { - PumpValuesEntryExt pvext = pve.getAdditionalData().get(PumpAdditionalDataType.BloodGlucose.getTranslation()); + // this might be problematic ? + + PumpBasalSubType basalType = PumpBasalSubType.getByCode(pve.getSubType()); + + if (basalType==PumpBasalSubType.Value) + { + bolusInsulinSeries.add(time, da_local.getFloatValueFromString(pve.getValue())); + basalEntryFound = true; + } + else if (basalType==PumpBasalSubType.Value) + { + // CHANGE + LOG.warn("Basal Type: " + basalType.name() + " not supported yet."); + } + else if (PumpBasalSubType.isTemporaryBasalType(basalType)) + { + if (basalEntryFound) + { + // FIXME if basal - value or valueChange we plot TBR at once + LOG.warn("Basal Type: " + basalType.name() + " not supported yet."); + } + else + { + tbrs.add(pve); + } + } + } + + + + // Blood Glucose + String additionalKeyWord = PumpAdditionalDataType.BloodGlucose.getTranslation(); + + if (pve.getAdditionalData().containsKey(additionalKeyWord)) + { + PumpValuesEntryExt pvext = pve.getAdditionalData().get(additionalKeyWord); BGSeries.add(time, da_local.getBGValueByType(DataAccessPlugInBase.BG_MGDL, da_local.m_BG_unit, pvext.getValue())); } - /* - * if (pve.getAdditionalData().containsKey(key)) - * { - * } - * if (pve.getAdditionalData().containsKey(key)) - * { - * } - * if (pve.getAdditionalData().containsKey(key)) - * { - * } - * if (pve.getAdditionalData().containsKey(key)) - * { - * } - */ + // Carbohydrates + additionalKeyWord = PumpAdditionalDataType.Carbohydrates.getTranslation(); + if (pve.getAdditionalData().containsKey(additionalKeyWord)) + { + PumpValuesEntryExt pvext = pve.getAdditionalData().get(additionalKeyWord); + CHSeries.add(time, da_local.getFloatValueFromString(pvext.getValue())); + } - /* - * if (row.getCH() > 0) - * { - * CHSeries.add(time, row.getCH()); - * } - * if (row.getIns1() > 0) - * { - * ins1Series.add(time, row.getIns1()); - * } - * if (row.getIns2() > 0) - * { - * ins2Series.add(time, row.getIns2()); - * } - */ } - dataset.addSeries(BGSeries); + if (tbrs.size()>0) + { + LOG.warn("Basal Type: TBR not supported yet."); + } + + + + + + +// { +// GregorianCalendar gc1 = (GregorianCalendar)gc.clone(); +// gc.set(Calendar.HOUR_OF_DAY, 0); +// gc.set(Calendar.MINUTE, 0); +// gc.set(Calendar.SECOND, 0); +// +// BGSeries.add(gc.getTimeInMillis(), 0.0f); +// +// gc.set(Calendar.HOUR_OF_DAY, 23); +// gc.set(Calendar.MINUTE, 59); +// gc.set(Calendar.SECOND, 59); +// +// BGSeries.add(gc.getTimeInMillis(), 0.0f); +// +// } + + + + + datasetBG.addSeries(BGSeries); + + datasetInsCH.addSeries(CHSeries); + datasetInsCH.addSeries(bolusInsulinSeries); + datasetInsCH.addSeries(basalInsulinSeries); + // basal + + + + + /* - * insBUDataset.addSeries(CHSeries); - * insBUDataset.addSeries(ins1Series); - * insBUDataset.addSeries(ins2Series); + * datasetInsCH.addSeries(CHSeries); + * datasetInsCH.addSeries(ins1Series); + * datasetInsCH.addSeries(ins2Series); */ } + + private GregorianCalendar getGCRange(boolean start) + { + GregorianCalendar gc1 = (GregorianCalendar)gc.clone(); + + if (start) + { + gc.set(Calendar.HOUR_OF_DAY, 0); + gc.set(Calendar.MINUTE, 0); + gc.set(Calendar.SECOND, 0); + gc.set(Calendar.MILLISECOND, 0); + } + else + { + gc.set(Calendar.HOUR_OF_DAY, 23); + gc.set(Calendar.MINUTE, 59); + gc.set(Calendar.SECOND, 59); + gc.set(Calendar.MILLISECOND, 59); + } + + return gc; + } + + + /** * Get Title (used by GraphViewer) * @@ -307,17 +441,36 @@ public void setPlot(JFreeChart chart) { + //chart. + XYPlot plot = chart.getXYPlot(); + + XYLineAndShapeRenderer defaultRenderer = (XYLineAndShapeRenderer) plot.getRenderer(); XYLineAndShapeRenderer insBURenderer = new XYLineAndShapeRenderer(); + dateAxis = (DateAxis) plot.getDomainAxis(); + BGAxis = (NumberAxis) plot.getRangeAxis(); insBUAxis = new NumberAxis(); + + + // Bars test + //CategoryPlot cp = chart.getCategoryPlot(); + XYBarRenderer barRenderer = new XYBarRenderer(); + + //cp.setRangeAxis(1, insBUAxis); + //cp.setRangeAxisLocation(1, AxisLocation.BOTTOM_OR_RIGHT); + //cp.setDataset(1, datasetInsCH); + //cp.mapDatasetToRangeAxis(1, 1); + + + + + ColorSchemeH colorScheme = graph_util.getColorScheme(); - // chart.setBackgroundPaint(graph_util.backgroundColor); - RenderingHints rh = graph_util.getRenderingHints(); if (rh != null) @@ -329,39 +482,67 @@ plot.setRangeAxis(1, insBUAxis); plot.setRangeAxisLocation(1, AxisLocation.BOTTOM_OR_RIGHT); - plot.setDataset(1, insBUDataset); + plot.setDataset(1, datasetInsCH); plot.mapDatasetToRangeAxis(1, 1); - plot.setRenderer(1, insBURenderer); + plot.setRenderer(1, barRenderer); // graph_util.applyMarkers(plot); // plot.setRangeGridlinesVisible(false); // plot.setDomainGridlinesVisible(false); defaultRenderer.setSeriesPaint(0, da_core.getColor(colorScheme.getColor_bg())); - insBURenderer.setSeriesPaint(0, da_core.getColor(colorScheme.getColor_ch())); - insBURenderer.setSeriesPaint(1, da_core.getColor(colorScheme.getColor_ins1())); - insBURenderer.setSeriesPaint(2, da_core.getColor(colorScheme.getColor_ins2())); + + barRenderer.setSeriesPaint(0, da_core.getColor(colorScheme.getColor_ch())); + barRenderer.setSeriesPaint(1, da_core.getColor(colorScheme.getColor_ins1())); + barRenderer.setSeriesPaint(2, da_core.getColor(colorScheme.getColor_ins2())); + defaultRenderer.setSeriesShapesVisible(0, true); - insBURenderer.setSeriesShapesVisible(0, true); - insBURenderer.setSeriesShapesVisible(1, true); - insBURenderer.setSeriesShapesVisible(2, true); - dateAxis.setDateFormatOverride(new SimpleDateFormat(m_ic.getMessage("FORMAT_DATE_HOURS"))); + barRenderer.setSeriesShape(0, XYBarRenderer.DEFAULT_SHAPE); + barRenderer.setSeriesShape(1, XYBarRenderer.DEFAULT_SHAPE); + barRenderer.setSeriesShape(2, XYBarRenderer.DEFAULT_SHAPE); + //barRenderer.setSeriesShapesVisible(1, true); + //insBURenderer.setSeriesShapesVisible(2, true); + + + insBURenderer.setSeriesLinesVisible(0, false); + insBURenderer.setSeriesLinesVisible(1, false); + insBURenderer.setSeriesLinesVisible(2, false); + + +// datasetInsCH.addSeries(CHSeries); +// datasetInsCH.addSeries(bolusInsulinSeries); +// datasetInsCH.addSeries(basalInsulinSeries); + + + + + + + // Date Axis + SimpleDateFormat sdf = new SimpleDateFormat(m_ic.getMessage("FORMAT_DATE_HOURS")); + sdf.setTimeZone(TimeZoneUtil.getInstance().getEmptyTimeZone()); + + dateAxis.setDateFormatOverride(sdf); dateAxis.setAutoRange(false); + Range range = new DateRange(getGCRange(true).getTime(), getGCRange(false).getTime()); + dateAxis.setRange(range); + dateAxis.setDefaultAutoRange(range); + dateAxis.setTimeZone(TimeZoneUtil.getInstance().getEmptyTimeZone()); - // FIXME - /* - * dateAxis.setRange(this.gluco_values.getRangeFrom().getTime(), - * this.gluco_values.getRangeTo().getTime()); - * dateAxis.setDefaultAutoRange(new - * DateRange(this.gluco_values.getRangeFrom().getTime(), - * this.gluco_values.getRangeTo().getTime())); - */ + // BG Axis BGAxis.setAutoRangeIncludesZero(true); + // Insulin/CH Axis insBUAxis.setLabel(m_ic.getMessage("CH_LONG") + " / " + m_ic.getMessage("INSULIN")); insBUAxis.setAutoRangeIncludesZero(true); + + + + + + } /** @@ -371,7 +552,7 @@ public void createChart() { chart = ChartFactory.createTimeSeriesChart(null, this.m_ic.getMessage("AXIS_TIME_LABEL"), - String.format(this.m_ic.getMessage("AXIS_VALUE_LABEL"), this.graph_util.getUnitLabel()), dataset, true, + String.format(this.m_ic.getMessage("AXIS_VALUE_LABEL"), this.graph_util.getUnitLabel()), datasetBG, true, true, false); this.setPlot(chart); Modified: trunk/ggc-pump/src/ggc/pump/device/minimed/PumpSimple.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/minimed/PumpSimple.java 2015-02-08 22:23:37 UTC (rev 1346) +++ trunk/ggc-pump/src/ggc/pump/device/minimed/PumpSimple.java 2015-02-09 16:27:21 UTC (rev 1347) @@ -108,7 +108,7 @@ // this.outputWriter.writeLog(LogEntryType.INFO, // "AbstractSerialMeter::open()"); // System.out.println("SerialProtocol: open() - open"); - serialPort = portIdentifier.open("ggc", (int) timeOut); + serialPort = (SerialPort)portIdentifier.open("ggc", (int) timeOut); // this.outputWriter.writeLog(LogEntryType.INFO, // "AbstractSerialMeter::open() - setting parameters"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <and...@us...> - 2015-02-09 18:03:09
|
Revision: 1348 http://sourceforge.net/p/ggc/code/1348 Author: andyrozman Date: 2015-02-09 18:02:57 +0000 (Mon, 09 Feb 2015) Log Message: ----------- Minor code fixes - because of enums and extended DeviceTempValues Modified Paths: -------------- trunk/ggc-cgm/src/ggc/cgms/device/animas/OneTouchVibe.java trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/AnimasCGMSDeviceReader.java trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/handler/AnimasDexcomDataHandler.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/DexcomG4.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/data/CommandPacket.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/DexcomG4Api.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/BytesConverterAbstract.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/BytesToDatabasePageHeaderConverter.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/BytesToDatabasePagesConverter.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/ElementToPartitionInfoConverter.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPageToEGVDataConverter.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPageToUserEventDataConverter.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPagesToInsertionTimeConverter.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPagesToMeterConverter.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPagesToXmlRecordConverter.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/InsertionTimeRecord.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/parsers/DexcomCommandParserInterface.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/parsers/EmptyParser.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/parsers/IntegerParser.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/parsers/ParserUtils.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/parsers/XmlParser.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/internal/GenericReceiverRecordAbstract.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/internal/IGenericReceiverRecord.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/util/DexcomUtils.java trunk/ggc-plugin_base/src/ggc/plugin/data/progress/ProgressReportInterface.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/AnimasDeviceReader.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/comm/AnimasCommProtocolAbstract.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/comm/AnimasCommProtocolV1.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/comm/AnimasCommProtocolV2.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/handler/AbstractDeviceDataHandler.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/util/AnimasUtils.java trunk/ggc-pump/src/GGCPumpTool_en.properties trunk/ggc-pump/src/ggc/pump/data/PumpValuesEntry.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpAdditionalDataType.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpAlarms.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpBasalSubType.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpBolusType.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpErrors.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpEvents.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpReport.java trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR1200.java trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR1200Handler.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/AnimasPumpDeviceReader.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/handler/AnimasBaseDataHandler.java trunk/ggc-pump/src/ggc/pump/gui/manual/PumpDataAdditionalWizardOne.java trunk/ggc-pump/src/ggc/pump/gui/manual/PumpDataTypeComponent.java Added Paths: ----------- trunk/ggc-plugin_base/src/ggc/plugin/data/enums/PlugInExceptionType.java Removed Paths: ------------- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/util/DexcomExceptionType.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/AnimasDeviceProgressReport.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/util/AnimasExceptionType.java Modified: trunk/ggc-cgm/src/ggc/cgms/device/animas/OneTouchVibe.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/animas/OneTouchVibe.java 2015-02-09 16:27:21 UTC (rev 1347) +++ trunk/ggc-cgm/src/ggc/cgms/device/animas/OneTouchVibe.java 2015-02-09 18:02:57 UTC (rev 1348) @@ -5,7 +5,6 @@ import ggc.plugin.device.DownloadSupportType; import ggc.plugin.device.PlugInBaseException; import ggc.plugin.device.impl.animas.enums.AnimasDeviceType; -import ggc.plugin.device.impl.animas.util.AnimasException; import ggc.plugin.manager.DeviceImplementationStatus; import ggc.plugin.manager.company.AbstractDeviceCompany; import ggc.plugin.output.OutputWriter; @@ -196,15 +195,8 @@ @Override public void readConfiguration() throws PlugInBaseException { - try - { - AnimasCGMSDeviceReader reader = new AnimasCGMSDeviceReader(this.communicationPort, this.getAnimasDeviceType(), this.outputWriter); - reader.downloadCGMSSettings(); - } - catch(AnimasException ex) - { - throw new PlugInBaseException(ex); - } + AnimasCGMSDeviceReader reader = new AnimasCGMSDeviceReader(this.communicationPort, this.getAnimasDeviceType(), this.outputWriter); + reader.downloadCGMSSettings(); } @@ -212,15 +204,8 @@ @Override public void readDeviceDataFull() throws PlugInBaseException { - try - { - AnimasCGMSDeviceReader reader = new AnimasCGMSDeviceReader(this.communicationPort, this.getAnimasDeviceType(), this.outputWriter); - reader.downloadCGMSData(); - } - catch(AnimasException ex) - { - throw new PlugInBaseException(ex); - } + AnimasCGMSDeviceReader reader = new AnimasCGMSDeviceReader(this.communicationPort, this.getAnimasDeviceType(), this.outputWriter); + reader.downloadCGMSData(); } Modified: trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/AnimasCGMSDeviceReader.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/AnimasCGMSDeviceReader.java 2015-02-09 16:27:21 UTC (rev 1347) +++ trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/AnimasCGMSDeviceReader.java 2015-02-09 18:02:57 UTC (rev 1348) @@ -15,8 +15,8 @@ import ggc.plugin.device.impl.animas.data.dto.SettingEntry; import ggc.plugin.device.impl.animas.enums.AnimasDeviceType; import ggc.plugin.device.impl.animas.enums.AnimasTransferType; -import ggc.plugin.device.impl.animas.util.AnimasException; + /** * Application: GGC - GNU Gluco Control * Plug-in: CGMS Tool (support for CGMS devices) @@ -48,7 +48,7 @@ public static final Log LOG = LogFactory.getLog(AnimasCGMSDeviceReader.class); - public AnimasCGMSDeviceReader(String portName, AnimasDeviceType animasDevice, OutputWriter outputWriter) throws AnimasException + public AnimasCGMSDeviceReader(String portName, AnimasDeviceType animasDevice, OutputWriter outputWriter) throws PlugInBaseException { super(portName, animasDevice, outputWriter); } @@ -56,34 +56,19 @@ public void downloadCGMSData() throws PlugInBaseException { - try - { - AnimasDexcomDataHandler handler = new AnimasDexcomDataHandler(portName, animasDevice, this, outputWriter); - handler.startAction(AnimasTransferType.DownloadCGMSData); - } - catch(AnimasException ex) - { - throw new PlugInBaseException("Exception running downloadCGMSData: " + ex, ex); - } + AnimasDexcomDataHandler handler = new AnimasDexcomDataHandler(portName, animasDevice, this, outputWriter); + handler.startAction(AnimasTransferType.DownloadCGMSData); } public void downloadCGMSSettings() throws PlugInBaseException { - try - { - AnimasDexcomDataHandler handler = new AnimasDexcomDataHandler(portName, animasDevice, this, outputWriter); - handler.startAction(AnimasTransferType.DownloadCGMSSettings); + AnimasDexcomDataHandler handler = new AnimasDexcomDataHandler(portName, animasDevice, this, outputWriter); + handler.startAction(AnimasTransferType.DownloadCGMSSettings); - AnimasCGMSDeviceData data = (AnimasCGMSDeviceData) handler.getData(); + AnimasCGMSDeviceData data = (AnimasCGMSDeviceData) handler.getData(); - data.writeSettings(outputWriter); - } - catch(AnimasException ex) - { - throw new PlugInBaseException("Exception running downloadCGMSSettings: " + ex, ex); - } - + data.writeSettings(outputWriter); } Modified: trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/handler/AnimasDexcomDataHandler.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/handler/AnimasDexcomDataHandler.java 2015-02-09 16:27:21 UTC (rev 1347) +++ trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/handler/AnimasDexcomDataHandler.java 2015-02-09 18:02:57 UTC (rev 1348) @@ -4,12 +4,12 @@ import ggc.cgms.device.animas.impl.data.AnimasCGMSDataWriter; import ggc.cgms.device.animas.impl.data.AnimasCGMSDeviceData; import ggc.plugin.data.progress.ProgressType; +import ggc.plugin.device.PlugInBaseException; import ggc.plugin.device.impl.animas.AnimasDeviceReader; import ggc.plugin.device.impl.animas.enums.AnimasDataType; import ggc.plugin.device.impl.animas.enums.AnimasDeviceType; import ggc.plugin.device.impl.animas.enums.AnimasTransferType; import ggc.plugin.device.impl.animas.handler.AbstractDeviceDataHandler; -import ggc.plugin.device.impl.animas.util.AnimasException; import ggc.plugin.device.impl.animas.util.AnimasUtils; import ggc.plugin.output.OutputWriter; @@ -93,7 +93,7 @@ @Override - public void startAction(AnimasTransferType transferType) throws AnimasException + public void startAction(AnimasTransferType transferType) throws PlugInBaseException { data.setTransferType(transferType); @@ -119,7 +119,7 @@ } } - catch (AnimasException ex) + catch (PlugInBaseException ex) { if (AnimasUtils.checkIfUserRelevantExceptionIsThrownNoRethrow(ex)) @@ -147,7 +147,7 @@ } - private void downloadData() throws AnimasException + private void downloadData() throws PlugInBaseException { // done no GGC //sendRequestAndWait(AnimasDataType.DexcomWarnings, 0, 33215, 56, 100); // 43 @@ -156,7 +156,7 @@ } - public void downloadAll() throws AnimasException + public void downloadAll() throws PlugInBaseException { // settings ? sendRequestAndWait(AnimasDataType.DexcomSettings, 0, 1, 100, 100); // 42 Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/DexcomG4.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/DexcomG4.java 2015-02-09 16:27:21 UTC (rev 1347) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/DexcomG4.java 2015-02-09 18:02:57 UTC (rev 1348) @@ -4,7 +4,6 @@ import ggc.cgms.device.dexcom.receivers.DexcomDevice; import ggc.cgms.device.dexcom.receivers.DexcomDeviceReader; import ggc.cgms.device.dexcom.receivers.data.output.GGCOutputParser; -import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomException; import ggc.cgms.manager.CGMSDevicesIds; import ggc.cgms.util.DataAccessCGMS; import ggc.plugin.device.DeviceIdentification; @@ -220,10 +219,10 @@ ddr.downloadSettings(); } - catch (DexcomException ex) - { - throw new PlugInBaseException("Error reading Dexcom G4 device. Exception: " + ex, ex); - } +// catch (DexcomException ex) +// { +// throw new PlugInBaseException("Error reading Dexcom G4 device. Exception: " + ex, ex); +// } finally { if (ddr != null) @@ -264,10 +263,10 @@ ddr.downloadData(); } - catch (DexcomException ex) - { - throw new PlugInBaseException("Error reading Dexcom G4 device. Exception: " + ex, ex); - } +// catch (DexcomException ex) +// { +// throw new PlugInBaseException("Error reading Dexcom G4 device. Exception: " + ex, ex); +// } finally { if (ddr != null) Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/data/CommandPacket.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/data/CommandPacket.java 2015-02-09 16:27:21 UTC (rev 1347) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/data/CommandPacket.java 2015-02-09 18:02:57 UTC (rev 1348) @@ -4,10 +4,10 @@ import ggc.cgms.device.dexcom.receivers.ReceiverApiType; import ggc.cgms.device.dexcom.receivers.g4receiver.DexcomG4Commands; import ggc.cgms.device.dexcom.receivers.g4receiver.data.parsers.ParserType; -import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomException; -import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomExceptionType; import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomUtils; +import ggc.plugin.data.enums.PlugInExceptionType; +import ggc.plugin.device.PlugInBaseException; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -56,7 +56,7 @@ // Long commandParameter = null; Object[] commandParameters = null; - private DexcomException exception; + private PlugInBaseException exception; private static Log log = LogFactory.getLog(CommandPacket.class); // refacotirng dexcom command, G4 R2... no store of G4 command @@ -87,7 +87,7 @@ } } - private void prepareCommand() throws DexcomException + private void prepareCommand() throws PlugInBaseException { this.command = new short[1590]; @@ -114,7 +114,7 @@ } - private void createCommand() throws DexcomException + private void createCommand() throws PlugInBaseException { short[] cmd = new short[1590]; @@ -148,7 +148,7 @@ storeValueAsBytes(p, cmd, 9, CommandParameter.Byte); } else - throw new DexcomException(DexcomExceptionType.UnsupportedTypeOfParametersForCommand); + throw new PlugInBaseException(PlugInExceptionType.UnsupportedTypeOfParametersForCommand); } // for Command storeValueAsBytes((long) DexcomUtils.calculateCRC16(cmd, 0, packetLength - 2), cmd, packetLength - 2, @@ -162,7 +162,7 @@ } private void storeValueAsBytes(Long parameter, short[] packet, int index, CommandParameter commandParameter) - throws DexcomException + throws PlugInBaseException { switch (commandParameter) @@ -196,7 +196,7 @@ break; default: - throw new DexcomException(DexcomExceptionType.UnsupportedTypeOfParametersForCommand); + throw new PlugInBaseException(PlugInExceptionType.UnsupportedTypeOfParametersForCommand); } @@ -295,12 +295,12 @@ this.responseCommandId = commandIdReturned; } - public DexcomException getException() + public PlugInBaseException getException() { return exception; } - public void setException(DexcomException exception) + public void setException(PlugInBaseException exception) { this.exception = exception; } Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/DexcomG4Api.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/DexcomG4Api.java 2015-02-09 16:27:21 UTC (rev 1347) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/DexcomG4Api.java 2015-02-09 18:02:57 UTC (rev 1348) @@ -26,11 +26,10 @@ import ggc.cgms.device.dexcom.receivers.g4receiver.internal.DatabasePageRange; import ggc.cgms.device.dexcom.receivers.g4receiver.internal.Partition; import ggc.cgms.device.dexcom.receivers.g4receiver.internal.PartitionInfo; -import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomException; -import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomExceptionType; import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomUtils; import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomUtils.BitConversion; import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomUtils.DexcomDateParsing; +import ggc.plugin.data.enums.PlugInExceptionType; import ggc.plugin.data.progress.ProgressType; import ggc.plugin.device.PlugInBaseException; import gnu.io.CommPortIdentifier; @@ -65,12 +64,7 @@ InputStream inputStream; HashMap<ReceiverRecordType, DatabasePageRange> databasePagesRanges = new HashMap<ReceiverRecordType, DatabasePageRange>(); - public DexcomG4Api(String portName, /* - * CommPort serialPort, - * CommPortIdentifier - * commPortIdentifier, - */ - DexcomDeviceProgressReport progressReport) + public DexcomG4Api(String portName, DexcomDeviceProgressReport progressReport) { serialDevice = new NRSerialPort(portName, 115200); @@ -105,7 +99,7 @@ return map.get("SerialNumber"); } - public void shutDownReceiver() throws DexcomException + public void shutDownReceiver() throws PlugInBaseException { try @@ -127,11 +121,11 @@ catch (IOException ex) { log.error("Unable to write to serial device to shutdown.", ex); - throw new DexcomException(DexcomExceptionType.Receiver_ErrorWritingToReceiver, ex); + throw new PlugInBaseException(PlugInExceptionType.DeviceErrorWritingToDevice, ex); } catch (PortInUseException ex) { - throw new DexcomException(DexcomExceptionType.Receiver_ErrorWritingToReceiver, ex); + throw new PlugInBaseException(PlugInExceptionType.DeviceErrorWritingToDevice, ex); } } @@ -454,7 +448,7 @@ return clockType; } - private Object writeCommandAndReadParsedResponse(DexcomG4Commands command) throws DexcomException + private Object writeCommandAndReadParsedResponse(DexcomG4Commands command) throws PlugInBaseException { CommandPacket cmdPacket = this.createCommandPacket(command, null); this.writeCommandAndReadRawResponse(null, cmdPacket, null); @@ -465,7 +459,7 @@ } private Object writeCommandAndReadParsedResponse(DexcomG4Commands command, Object[] parameters) - throws DexcomException + throws PlugInBaseException { CommandPacket cmdPacket = this.createCommandPacket(command, parameters); this.writeCommandAndReadRawResponse(null, cmdPacket, parameters); @@ -492,7 +486,7 @@ } private short[] writeCommandAndReadRawResponse(DexcomG4Commands command, CommandPacket cmdPacket, - Object[] parameters) throws DexcomException + Object[] parameters) throws PlugInBaseException { if (cmdPacket == null) { @@ -503,7 +497,7 @@ // 0, 12))); int retries = 0; - DexcomException exception; + PlugInBaseException exception; do { @@ -521,7 +515,7 @@ } catch (IOException ex) { - throw new DexcomException(DexcomExceptionType.Receiver_ErrorWritingToReceiver, + throw new PlugInBaseException(PlugInExceptionType.DeviceErrorWritingToDevice, new Object[] { ex.getLocalizedMessage() }, ex); } @@ -540,7 +534,7 @@ else return new short[0]; } - catch (DexcomException ex) + catch (PlugInBaseException ex) { exception = ex; // e.printStackTrace(); @@ -555,17 +549,17 @@ } // FIXME - public short[] readGenericCommandPacket(int maxWaitMs, CommandPacket packet) throws DexcomException + public short[] readGenericCommandPacket(int maxWaitMs, CommandPacket packet) throws PlugInBaseException { if (this.serialDevice == null) - throw new DexcomException("Invalid port or port closed!"); + throw new PlugInBaseException(PlugInExceptionType.InvalidPortOrPortClosed); short[] destinationArray = null; short[] buffer2 = new short[0x10005]; int destinationIndex = 0; // long now = System.currentTimeMillis(); - DexcomException exception = null; + PlugInBaseException exception = null; // maxWaitMs // while (System.currentTimeMillis() < (now + 20000)) @@ -612,7 +606,7 @@ destinationIndex += 2; if (num3 != num4) { - exception = new DexcomException("Failed CRC check in packet."); + exception = new PlugInBaseException(PlugInExceptionType.FailedCRCCheckInPacket); throw exception; } else @@ -623,26 +617,21 @@ } else { - // log.error("SourceArray: " + - // this.byteUtils.getDebugByteArray(sourceArray)); - exception = new DexcomException("Unknown data read. Failed to read start of packet."); + exception = new PlugInBaseException(PlugInExceptionType.UnknownDataReadWrongStartOfPacket); throw exception; } // break; } - catch (DexcomException ex) + catch (PlugInBaseException ex) { exception = ex; // throw ex; } catch (Exception ex) { - exception = new DexcomException("Failed to read contents of generic packets.", ex); - // packet.setException(exception); - // throw exception; - + exception = new PlugInBaseException(PlugInExceptionType.DeviceFailedToReadResponse, ex); } retries++; @@ -672,7 +661,7 @@ { if (System.currentTimeMillis() > till) - throw new DexcomException("Timeout: "); + throw new PlugInBaseException(PlugInExceptionType.TimeoutReadingData); // log.warn("Waiting for data: " + is.available() + ", Req: " + // nrBytes); @@ -697,15 +686,14 @@ return retData; } - private void verifyPayloadLength(CommandPacket cmdPacket) throws DexcomException + private void verifyPayloadLength(CommandPacket cmdPacket) throws PlugInBaseException { - if (cmdPacket.getResponse().length != cmdPacket.getExpectedResponseLength()) - throw new DexcomException(String.format("Receiver packet response length of %d != expected length of %d", - cmdPacket.getResponse().length, cmdPacket.getExpectedResponseLength())); + throw new PlugInBaseException(PlugInExceptionType.DeviceInvalidResponseLength, + new Object[] { cmdPacket.getResponse().length, cmdPacket.getExpectedResponseLength()}); } - public void verifyResponseCommandByte(CommandPacket packet) throws DexcomException + public void verifyResponseCommandByte(CommandPacket packet) throws PlugInBaseException { DexcomG4Commands receiverCommandFromByte = DexcomG4Commands.getCommandById(packet.getResponseCommandId()); // ReceiverCommands receiverCommandFromByte = @@ -716,25 +704,27 @@ return; case Nak: - throw new DexcomException("Receiver reported NAK or an invalid CRC error."); + throw new PlugInBaseException(PlugInExceptionType.DeviceNAKOrInvalidCRC); case InvalidCommand: - throw new DexcomException("Receiver reported an invalid command error."); + throw new PlugInBaseException(PlugInExceptionType.DeviceInvalidCommand); case InvalidParam: - if (packet.getResponse() != null && packet.getResponse().length >= 1) - throw new DexcomException(String.format( - "Receiver reported an invalid parameter error for parameter {0}.", packet.getResponse()[0])); - throw new DexcomException("Receiver reported an invalid parameter error."); + if (packet.getResponse() != null && packet.getResponse().length >= 1) { + throw new PlugInBaseException(PlugInExceptionType.DeviceInvalidParameterDesc, new Object[]{packet.getResponse()[0]}); + } + else { + throw new PlugInBaseException(PlugInExceptionType.DeviceInvalidParameter); + } case ReceiverError: - throw new DexcomException("Receiver reported an internal error."); + throw new PlugInBaseException(PlugInExceptionType.DeviceInternalError); default: break; } - throw new DexcomException(String.format("Unknown or invalid receiver command %s=%s.", - packet.getResponseCommandId(), receiverCommandFromByte)); + throw new PlugInBaseException(PlugInExceptionType.DeviceInvalidResponseCommand, + new Object[] { receiverCommandFromByte, packet.getResponseCommandId() }); } public void addToProgressAndCheckIfCanceled(int numberOfPages) throws PlugInBaseException Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/BytesConverterAbstract.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/BytesConverterAbstract.java 2015-02-09 16:27:21 UTC (rev 1347) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/BytesConverterAbstract.java 2015-02-09 18:02:57 UTC (rev 1348) @@ -3,8 +3,6 @@ import ggc.cgms.device.dexcom.receivers.g4receiver.internal.DatabasePage; import ggc.cgms.device.dexcom.receivers.g4receiver.internal.DatabaseRecord; import ggc.cgms.device.dexcom.receivers.g4receiver.internal.IGenericReceiverRecord; -import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomException; -import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomExceptionType; import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomUtils; import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomUtils.BitConversion; @@ -12,6 +10,7 @@ import java.util.List; import com.atech.utils.data.ShortUtils; +import ggc.plugin.data.enums.PlugInExceptionType; import ggc.plugin.device.PlugInBaseException; public class BytesConverterAbstract @@ -33,20 +32,20 @@ return DexcomUtils.toShort(shortUtils.getShortSubArray(array, start, 2), BitConversion.LITTLE_ENDIAN); } - public void checkCrc(byte[] data, short crc2) throws DexcomException + public void checkCrc(byte[] data, short crc2) throws PlugInBaseException { int newCrc = DexcomUtils.calculateCRC16(data, 0, data.length - 2); if (newCrc != crc2) - throw new DexcomException(DexcomExceptionType.FailedCRCCheck, new Object[] { "DatabasePage", crc2, newCrc }); + throw new PlugInBaseException(PlugInExceptionType.FailedCRCCheck, new Object[] { "DatabasePage", crc2, newCrc }); } - public void checkCrc(short[] data, int crc2) throws DexcomException + public void checkCrc(short[] data, int crc2) throws PlugInBaseException { int newCrc = DexcomUtils.calculateCRC16(data, 0, data.length - 2); if (newCrc != crc2) - throw new DexcomException(DexcomExceptionType.FailedCRCCheck, new Object[] { "DatabasePage", crc2, newCrc }); + throw new PlugInBaseException(PlugInExceptionType.FailedCRCCheck, new Object[] { "DatabasePage", crc2, newCrc }); } public ArrayList<DatabaseRecord> getRawRecords(List<DatabasePage> pages, IGenericReceiverRecord template) Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/BytesToDatabasePageHeaderConverter.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/BytesToDatabasePageHeaderConverter.java 2015-02-09 16:27:21 UTC (rev 1347) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/BytesToDatabasePageHeaderConverter.java 2015-02-09 18:02:57 UTC (rev 1348) @@ -2,12 +2,12 @@ import ggc.cgms.device.dexcom.receivers.g4receiver.enums.ReceiverRecordType; import ggc.cgms.device.dexcom.receivers.g4receiver.internal.DatabasePageHeader; -import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomException; +import ggc.plugin.device.PlugInBaseException; public class BytesToDatabasePageHeaderConverter extends BytesConverterAbstract { - public DatabasePageHeader convert(short[] headerBytes) throws DexcomException + public DatabasePageHeader convert(short[] headerBytes) throws PlugInBaseException { DatabasePageHeader dph = new DatabasePageHeader(); Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/BytesToDatabasePagesConverter.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/BytesToDatabasePagesConverter.java 2015-02-09 16:27:21 UTC (rev 1347) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/BytesToDatabasePagesConverter.java 2015-02-09 18:02:57 UTC (rev 1348) @@ -1,8 +1,8 @@ package ggc.cgms.device.dexcom.receivers.g4receiver.converter; import ggc.cgms.device.dexcom.receivers.g4receiver.internal.DatabasePage; -import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomException; -import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomExceptionType; +import ggc.plugin.data.enums.PlugInExceptionType; +import ggc.plugin.device.PlugInBaseException; import java.util.ArrayList; import java.util.List; @@ -40,7 +40,7 @@ static BytesToDatabasePageHeaderConverter databaseHeaderConverter = new BytesToDatabasePageHeaderConverter(); - public List<DatabasePage> convert(short[] dataBytes) throws DexcomException + public List<DatabasePage> convert(short[] dataBytes) throws PlugInBaseException { int pagesCount = dataBytes.length / 528; @@ -73,13 +73,13 @@ return pages; } - catch (DexcomException ex) + catch (PlugInBaseException ex) { throw ex; } catch (Exception ex) { - throw new DexcomException(DexcomExceptionType.Parsing_BytesParsingError, + throw new PlugInBaseException(PlugInExceptionType.Parsing_BytesParsingError, new Object[] { "DatabasePage", ex.getLocalizedMessage() }, ex); } Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/ElementToPartitionInfoConverter.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/ElementToPartitionInfoConverter.java 2015-02-09 16:27:21 UTC (rev 1347) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/ElementToPartitionInfoConverter.java 2015-02-09 18:02:57 UTC (rev 1348) @@ -3,8 +3,9 @@ import ggc.cgms.device.dexcom.receivers.g4receiver.enums.ReceiverRecordType; import ggc.cgms.device.dexcom.receivers.g4receiver.internal.Partition; import ggc.cgms.device.dexcom.receivers.g4receiver.internal.PartitionInfo; -import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomException; +import ggc.plugin.data.enums.PlugInExceptionType; +import ggc.plugin.device.PlugInBaseException; import org.jdom.Element; public class ElementToPartitionInfoConverter @@ -38,11 +39,12 @@ // RecordLength="48" /> // </PartitionInfo> - public PartitionInfo convert(Element xmlElement) throws DexcomException + public PartitionInfo convert(Element xmlElement) throws PlugInBaseException { if (xmlElement == null) - throw new DexcomException("No data found for converting PartitionInfo."); + throw new PlugInBaseException(PlugInExceptionType.NoDataFoundForConversion, + new Object[] { "PartitionInfo" }); try { @@ -69,7 +71,9 @@ } catch (NumberFormatException ex) { - throw new DexcomException("Error parsing PartitionInfo Xml: " + ex, ex); + throw new PlugInBaseException(PlugInExceptionType.Parsing_BytesParsingError, + new Object[] { "PartitionInfo", ex.getLocalizedMessage() }, ex); + } } Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPageToEGVDataConverter.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPageToEGVDataConverter.java 2015-02-09 16:27:21 UTC (rev 1347) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPageToEGVDataConverter.java 2015-02-09 18:02:57 UTC (rev 1348) @@ -4,7 +4,6 @@ import ggc.cgms.device.dexcom.receivers.g4receiver.data.EGVRecord; import ggc.cgms.device.dexcom.receivers.g4receiver.internal.DatabasePage; import ggc.cgms.device.dexcom.receivers.g4receiver.internal.DatabaseRecord; -import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomException; import ggc.plugin.device.PlugInBaseException; import java.util.ArrayList; Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPageToUserEventDataConverter.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPageToUserEventDataConverter.java 2015-02-09 16:27:21 UTC (rev 1347) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPageToUserEventDataConverter.java 2015-02-09 18:02:57 UTC (rev 1348) @@ -5,7 +5,6 @@ import ggc.cgms.device.dexcom.receivers.g4receiver.enums.UserEvent; import ggc.cgms.device.dexcom.receivers.g4receiver.internal.DatabasePage; import ggc.cgms.device.dexcom.receivers.g4receiver.internal.DatabaseRecord; -import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomException; import ggc.plugin.device.PlugInBaseException; import java.util.ArrayList; Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPagesToInsertionTimeConverter.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPagesToInsertionTimeConverter.java 2015-02-09 16:27:21 UTC (rev 1347) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPagesToInsertionTimeConverter.java 2015-02-09 18:02:57 UTC (rev 1348) @@ -5,7 +5,6 @@ import ggc.cgms.device.dexcom.receivers.g4receiver.enums.SensorSessionState; import ggc.cgms.device.dexcom.receivers.g4receiver.internal.DatabasePage; import ggc.cgms.device.dexcom.receivers.g4receiver.internal.DatabaseRecord; -import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomException; import ggc.plugin.device.PlugInBaseException; import java.util.ArrayList; Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPagesToMeterConverter.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPagesToMeterConverter.java 2015-02-09 16:27:21 UTC (rev 1347) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPagesToMeterConverter.java 2015-02-09 18:02:57 UTC (rev 1348) @@ -4,7 +4,6 @@ import ggc.cgms.device.dexcom.receivers.g4receiver.data.MeterDataRecord; import ggc.cgms.device.dexcom.receivers.g4receiver.internal.DatabasePage; import ggc.cgms.device.dexcom.receivers.g4receiver.internal.DatabaseRecord; -import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomException; import ggc.plugin.device.PlugInBaseException; import java.util.ArrayList; Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPagesToXmlRecordConverter.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPagesToXmlRecordConverter.java 2015-02-09 16:27:21 UTC (rev 1347) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPagesToXmlRecordConverter.java 2015-02-09 18:02:57 UTC (rev 1348) @@ -4,7 +4,6 @@ import ggc.cgms.device.dexcom.receivers.g4receiver.data.XmlRecord; import ggc.cgms.device.dexcom.receivers.g4receiver.internal.DatabasePage; import ggc.cgms.device.dexcom.receivers.g4receiver.internal.DatabaseRecord; -import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomException; import ggc.plugin.device.PlugInBaseException; import java.util.ArrayList; Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/InsertionTimeRecord.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/InsertionTimeRecord.java 2015-02-09 16:27:21 UTC (rev 1347) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/InsertionTimeRecord.java 2015-02-09 18:02:57 UTC (rev 1348) @@ -3,9 +3,9 @@ import ggc.cgms.device.dexcom.receivers.g4receiver.enums.ReceiverRecordType; import ggc.cgms.device.dexcom.receivers.g4receiver.enums.SensorSessionState; import ggc.cgms.device.dexcom.receivers.g4receiver.internal.GenericReceiverRecordAbstract; -import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomException; import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomUtils; import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomUtils.DexcomDateParsing; +import ggc.plugin.device.PlugInBaseException; import java.util.Date; @@ -24,7 +24,7 @@ private int insertionTimeinSeconds; private SensorSessionState sensorSessionState = SensorSessionState.BadTransmitter; - public InsertionTimeRecord() throws DexcomException + public InsertionTimeRecord() throws PlugInBaseException { // FIXME // checkRecordVersionAndSize(); Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/parsers/DexcomCommandParserInterface.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/parsers/DexcomCommandParserInterface.java 2015-02-09 16:27:21 UTC (rev 1347) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/parsers/DexcomCommandParserInterface.java 2015-02-09 18:02:57 UTC (rev 1348) @@ -1,14 +1,15 @@ package ggc.cgms.device.dexcom.receivers.g4receiver.data.parsers; import ggc.cgms.device.dexcom.receivers.data.CommandPacket; -import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomException; +import ggc.plugin.device.PlugInBaseException; + public interface DexcomCommandParserInterface { // Object parse(byte[] responseMessage); - Object parse(CommandPacket cmdPacket) throws DexcomException; + Object parse(CommandPacket cmdPacket) throws PlugInBaseException; // Object getValue(); Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/parsers/EmptyParser.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/parsers/EmptyParser.java 2015-02-09 16:27:21 UTC (rev 1347) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/parsers/EmptyParser.java 2015-02-09 18:02:57 UTC (rev 1348) @@ -1,12 +1,12 @@ package ggc.cgms.device.dexcom.receivers.g4receiver.data.parsers; import ggc.cgms.device.dexcom.receivers.data.CommandPacket; -import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomException; +import ggc.plugin.device.PlugInBaseException; public class EmptyParser implements DexcomCommandParserInterface { - public Object parse(CommandPacket cmdPacket) throws DexcomException + public Object parse(CommandPacket cmdPacket) throws PlugInBaseException { return "No result received"; Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/parsers/IntegerParser.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/parsers/IntegerParser.java 2015-02-09 16:27:21 UTC (rev 1347) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/parsers/IntegerParser.java 2015-02-09 18:02:57 UTC (rev 1348) @@ -1,13 +1,13 @@ package ggc.cgms.device.dexcom.receivers.g4receiver.data.parsers; import ggc.cgms.device.dexcom.receivers.data.CommandPacket; -import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomException; -import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomExceptionType; +import ggc.plugin.data.enums.PlugInExceptionType; +import ggc.plugin.device.PlugInBaseException; public class IntegerParser implements DexcomCommandParserInterface { - public Object parse(CommandPacket cmdPacket) throws DexcomException + public Object parse(CommandPacket cmdPacket) throws PlugInBaseException { short[] data = cmdPacket.getResponse(); @@ -27,7 +27,7 @@ (data[2] & 0xFF) << 16 | // (data[3] & 0xFF) << 24; - throw new DexcomException(DexcomExceptionType.ParsingErrorUnsupportedDataLenth, new Object[] { data.length, + throw new PlugInBaseException(PlugInExceptionType.ParsingErrorUnsupportedDataLenth, new Object[] { data.length, "1-4" }); } Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/parsers/ParserUtils.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/parsers/ParserUtils.java 2015-02-09 16:27:21 UTC (rev 1347) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/parsers/ParserUtils.java 2015-02-09 18:02:57 UTC (rev 1348) @@ -1,8 +1,9 @@ package ggc.cgms.device.dexcom.receivers.g4receiver.data.parsers; import ggc.cgms.device.dexcom.receivers.data.CommandPacket; -import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomException; +import ggc.plugin.device.PlugInBaseException; + import java.util.HashMap; public class ParserUtils @@ -43,7 +44,7 @@ return parsers.get(cmdPacket.getParserType()); } - public static Object parsePacketResponse(CommandPacket cmdPacket) throws DexcomException + public static Object parsePacketResponse(CommandPacket cmdPacket) throws PlugInBaseException { return getParser(cmdPacket).parse(cmdPacket); } Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/parsers/XmlParser.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/parsers/XmlParser.java 2015-02-09 16:27:21 UTC (rev 1347) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/parsers/XmlParser.java 2015-02-09 18:02:57 UTC (rev 1348) @@ -1,9 +1,9 @@ package ggc.cgms.device.dexcom.receivers.g4receiver.data.parsers; import ggc.cgms.device.dexcom.receivers.data.CommandPacket; -import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomException; import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomUtils; +import ggc.plugin.device.PlugInBaseException; import org.jdom.Element; import com.atech.utils.data.ShortUtils; @@ -12,7 +12,7 @@ { private ShortUtils utils = DexcomUtils.getShortUtils(); - public Object parse(CommandPacket cmdPacket) throws DexcomException + public Object parse(CommandPacket cmdPacket) throws PlugInBaseException { short[] responseMessage = cmdPacket.getResponse(); Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/internal/GenericReceiverRecordAbstract.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/internal/GenericReceiverRecordAbstract.java 2015-02-09 16:27:21 UTC (rev 1347) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/internal/GenericReceiverRecordAbstract.java 2015-02-09 18:02:57 UTC (rev 1348) @@ -1,6 +1,6 @@ package ggc.cgms.device.dexcom.receivers.g4receiver.internal; -import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomException; + import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomUtils; import ggc.plugin.device.PlugInBaseException; Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/internal/IGenericReceiverRecord.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/internal/IGenericReceiverRecord.java 2015-02-09 16:27:21 UTC (rev 1347) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/internal/IGenericReceiverRecord.java 2015-02-09 18:02:57 UTC (rev 1348) @@ -1,7 +1,6 @@ package ggc.cgms.device.dexcom.receivers.g4receiver.internal; import ggc.cgms.device.dexcom.receivers.g4receiver.enums.ReceiverRecordType; -import ggc.cgms.device.dexcom.receivers.g4receiver.util.DexcomException; import ggc.plugin.device.PlugInBaseException; import java.util.Date; @@ -15,9 +14,9 @@ int getCrc(); - int getCurrentRecordSize() throws DexcomException, PlugInBaseException; + int getCurrentRecordSize() throws PlugInBaseException; - int getCurrentRecordVersion() throws DexcomException, PlugInBaseException; + int getCurrentRecordVersion() throws PlugInBaseException; int getImplementedRecordSize(); Deleted: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/util/DexcomExceptionType.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/util/DexcomExceptionType.java 2015-02-09 16:27:21 UTC (rev 1347) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/util/DexcomExceptionType.java 2015-02-09 18:02:57 UTC (rev 1348) @@ -1,36 +0,0 @@ -package ggc.cgms.device.dexcom.receivers.g4receiver.util; - -public enum DexcomExceptionType -{ - - ParsingError("DXC_PARSING_ERROR"), // - ParsingErrorUnsupportedDataLenth("DXC_PARSING_ERROR_UNSUPP_DATA_LENGTH"), // - Receiver_ErrorWritingToReceiver("DXC_RECEIVER_ERROR_WRITING"), // - Parsing_BytesParsingError("DXC_BYTES_PARSING_ERROR"), // - FailedCRCCheck("DXC_FAILED_CRC_CHECK"), // - UnsupportedTypeOfParametersForCommand("DXC_UNSUPPORTED_TYPE_OF_PARAMS_FOR_CMD"), // - UnsupportedReceiver("DXC_UNSUPPORTED_RECEIVER"), DownloadCanceledByUser("STATUS_STOPPED_USER"), DeviceNotFoundOnConfiguredPort( - "DEVICE_NOT_FOUND_ON_CONFIGURED_PORT"), DevicePortInUse("DEVICE_PORT_IN_USE"), - - ; - - // DXC_PARSING_ERROR = Error parsing. Exception: %s - // DXC_PARSING_ERROR_UNSUPP_DATA_LENGTH = Error parsing. Unsupported data - // length: %s (allowed lengths: %s) - // DXC_RECEIVER_ERROR_WRITING = Error writing to Receiver: %s - // DXP_DATABASE_PAGE_PARSING_ERROR = Error parsing %s from bytes: %s - // DXP_FAILED_CRC_CHECK = Failed CRC check in %s (expected: %s, calculated: - // %s) - // DXP_UNSUPPORTED_TYPE_OF_PARAMS_FOR_CMD = Unsupported type of parameter(s) - // for command ! - // DXC_UNSUPPORTED_RECEIVER = Unsupported receiver (we currently support - // only G4 Receiver) ! - - String errorMessage; - - private DexcomExceptionType(String errorMessage) - { - this.errorMessage = errorMessage; - } - -} Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/util/DexcomUtils.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/util/DexcomUtils.java 2015-02-09 16:27:21 UTC (rev 1347) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/util/DexcomUtils.java 2015-02-09 18:02:57 UTC (rev 1348) @@ -21,6 +21,7 @@ import java.util.HashMap; import java.util.TimeZone; +import ggc.plugin.data.enums.PlugInExceptionType; import ggc.plugin.device.PlugInBaseException; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -253,7 +254,7 @@ // return partitionInfo.getPartitionByRecordType(recordType); } - public static Element createXmlTree(String xmlData) throws DexcomException + public static Element createXmlTree(String xmlData) throws PlugInBaseException { try { @@ -264,7 +265,8 @@ } catch (Exception ex) { - throw new DexcomException(DexcomExceptionType.ParsingError, new Object[] { ex.getLocalizedMessage() }, ex); + throw new PlugInBaseException(PlugInExceptionType.ParsingError, + new Object[] { ex.getLocalizedMessage() }, ex); } } Added: trunk/ggc-plugin_base/src/ggc/plugin/data/enums/PlugInExceptionType.java =================================================================== --- trunk/ggc-plugin_base/src/ggc/plugin/data/enums/PlugInExceptionType.java (rev 0) +++ trunk/ggc-plugin_base/src/ggc/plugin/data/enums/PlugInExceptionType.java 2015-02-09 18:02:57 UTC (rev 1348) @@ -0,0 +1,80 @@ +package ggc.plugin.data.enums; + +public enum PlugInExceptionType +{ + + + + UnsupportedReceiver("XX"), // + + + + // Device + InvalidPortOrPortClosed("Invalid port or port closed!"), // + DeviceNotFoundOnConfiguredPort("DEVICE_NOT_FOUND_ON_CONFIGURED_PORT"), // + DevicePortInUse("DEVICE_PORT_IN_USE"), // + DeviceNAKOrInvalidCRC("Device reported NAK or an invalid CRC error."), // + DeviceInvalidCommand("Device reported an invalid command error."), // + DeviceInvalidParameterDesc("Device reported an invalid parameter error for parameter %s."), // + DeviceInvalidParameter("Device reported an invalid parameter error."), // + DeviceInternalError("Device reported an internal error."), // + DeviceInvalidResponseCommand("Unknown or invalid response command %s (expected %s)."), // + DeviceInvalidResponseLength("Device packet response length is %d (expected length is %d)"), // + DeviceFailedToReadResponse("Failed to read contents of device packet"), // + DeviceModelCouldNotBeIdentified("Device Model could not be identified."), // + DeviceCouldNotBeContacted("Device could not be contacted."), // + TimeoutReadingData("Timeout reading data from device."), // + DeviceErrorWritingToDevice("EXC_RECEIVER_ERROR_WRITING"), // + + // Communication Port + CommunicationPortClosed("Communication Port is closed."), // + CommunicationError("Error Communicating with device. (%s)"), // + CommunicationErrorWithCode("Device Communication Error: %s"), // + + // Download + DownloadCanceledByUser("STATUS_STOPPED_USER"), // + DownloadCanceledByDevice("Download Canceled by Device."), // + + // Data - Commands + UnknownDataReadWrongStartOfPacket("Unknown data read. Failed to read start of packet."), // + NoDataFoundForConversion("No data found for converting %s."), // + NoResponseFromDeviceForIssuedCommand("No response from device for Issued Command (%s)."), // + Parsing_BytesParsingError("EXC_BYTES_PARSING_ERROR"), // + ParsingError("EXC_PARSING_ERROR"), // + ParsingErrorUnsupportedDataLenth("EXC_PARSING_ERROR_UNSUPP_DATA_LENGTH"), // + FailedCRCCheck("EXC_FAILED_CRC_CHECK"), // + FailedCRCCheckInPacket("Failed CRC check in packet."), // + UnsupportedTypeOfParametersForCommand("EXC_UNSUPPORTED_TYPE_OF_PARAMS_FOR_CMD"), // + + // Handler + WrongDeviceConfigurationSelected("Wrong device implementation selected: %s (supported %s)"), // + OperationNotSupportedForThisHandler("Operation '%s' not supported for handler '%s'"), // + UnsupportedDevice("Unsupported device for this reader: %s"), // + + ; + + // DXC_PARSING_ERROR = Error parsing. Exception: %s + // DXC_PARSING_ERROR_UNSUPP_DATA_LENGTH = Error parsing. Unsupported data + // length: %s (allowed lengths: %s) + // DXC_RECEIVER_ERROR_WRITING = Error writing to Receiver: %s + // DXP_DATABASE_PAGE_PARSING_ERROR = Error parsing %s from bytes: %s + // DXP_FAILED_CRC_CHECK = Failed CRC check in %s (expected: %s, calculated: + // %s) + // DXP_UNSUPPORTED_TYPE_OF_PARAMS_FOR_CMD = Unsupported type of parameter(s) + // for command ! + // DXC_UNSUPPORTED_RECEIVER = Unsupported receiver (we currently support + // only G4 Receiver) ! + + String errorMessage; + + private PlugInExceptionType(String errorMessage) + { + this.errorMessage = errorMessage; + } + + public String getErrorMessage() + { + return this.errorMessage; + } + +} Modified: trunk/ggc-plugin_base/src/ggc/plugin/data/progress/ProgressReportInterface.java =================================================================== --- trunk/ggc-plugin_base/src/ggc/plugin/data/progress/ProgressReportInterface.java 2015-02-09 16:27:21 UTC (rev 1347) +++ trunk/ggc-plugin_base/src/ggc/plugin/data/progress/ProgressReportInterface.java 2015-02-09 18:02:57 UTC (rev 1348) @@ -27,4 +27,5 @@ boolean isDownloadCanceled(); + } Deleted: trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/AnimasDeviceProgressReport.java =================================================================== --- trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/AnimasDeviceProgressReport.java 2015-02-09 16:27:21 UTC (rev 1347) +++ trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/AnimasDeviceProgressReport.java 2015-02-09 18:02:57 UTC (rev 1348) @@ -1,38 +0,0 @@ -package ggc.plugin.device.impl.animas; - -import ggc.plugin.data.progress.ProgressReportInterface; -import ggc.plugin.data.progress.ProgressType; -import ggc.plugin.device.impl.animas.util.AnimasException; - -/** - * Application: GGC - GNU Gluco Control - * Plug-in: GGC PlugIn Base (base class for all plugins) - * - * See AUTHORS for copyright information. - * - * This program is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation; either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program; if not, write to the Free Software Foundation, Inc., 59 Temple - * Place, Suite 330, Boston, MA 02111-1307 USA - * - * Filename: AnimasDeviceProgressReport - * Description: For download progress in Animas Device. - * - * Author: Andy Rozman {an...@at...} - */ - -public interface AnimasDeviceProgressReport extends ProgressReportInterface -{ - - void addToProgressAndCheckIfCanceled(ProgressType progressType, int progressAdd) throws AnimasException; - -} Modified: trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/AnimasDeviceReader.java =================================================================== --- trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/AnimasDeviceReader.java 2015-02-09 16:27:21 UTC (rev 1347) +++ trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/AnimasDeviceReader.java 2015-02-09 18:02:57 UTC (rev 1348) @@ -1,13 +1,14 @@ package ggc.plugin.device.impl.animas; +import ggc.plugin.data.enums.PlugInExceptionType; import ggc.plugin.data.progress.ProgressData; import ggc.plugin.data.progress.ProgressReportInterface; import ggc.plugin.data.progress.ProgressType; +import ggc.plugin.device.PlugInBaseException; import ggc.plugin.output.OutputWriter; import ggc.plugin.device.impl.animas.enums.AnimasDeviceType; import ggc.plugin.device.impl.animas.enums.AnimasImplementationType; -import ggc.plugin.device.impl.animas.util.AnimasException; -import ggc.plugin.device.impl.animas.util.AnimasExceptionType; + import gnu.io.CommPortIdentifier; import java.util.Enumeration; @@ -52,7 +53,7 @@ protected AnimasDeviceType animasDevice; protected boolean downloadCanceled = false; - public AnimasDeviceReader(String portName, AnimasDeviceType animasDevice, OutputWriter outputWriter) throws AnimasException + public AnimasDeviceReader(String portName, AnimasDeviceType animasDevice, OutputWriter outputWriter) throws PlugInBaseException { this.portName = portName; this.animasDevice = animasDevice; @@ -81,13 +82,13 @@ if (!deviceFound) { - throw new AnimasException(AnimasExceptionType.DeviceNotFoundOnConfiguredPort, + throw new PlugInBaseException(PlugInExceptionType.DeviceNotFoundOnConfiguredPort, new Object[] { this.portName }); } if (animasDevice.getImplementationType() != AnimasImplementationType.AnimasImplementationV2) { - throw new AnimasException(AnimasExceptionType.UnsupportedDevice); + throw new PlugInBaseException(PlugInExceptionType.UnsupportedDevice, new Object[] { this.getClass().getSimpleName() }); } } @@ -116,7 +117,7 @@ return downloadCanceled; } - public void addToProgressAndCheckIfCanceled(ProgressType progressType, int progressAdd) throws AnimasException + public void addToProgressAndCheckIfCanceled(ProgressType progressType, int progressAdd) throws PlugInBaseException { this.progressData.addToProgressAndCheckIfCanceled(progressType, progressAdd); @@ -129,7 +130,7 @@ if (this.isDownloadCanceled()) { - throw new AnimasException(AnimasExceptionType.DownloadCanceledByUser); + throw new PlugInBaseException(PlugInExceptionType.DownloadCanceledByUser); } } Modified: trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/comm/AnimasCommProtocolAbstract.java =================================================================== --- trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/comm/AnimasCommProtocolAbstract.java 2015-02-09 16:27:21 UTC (rev 1347) +++ trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/comm/AnimasCommProtocolAbstract.java 2015-02-09 18:02:57 UTC (rev 1348) @@ -1,11 +1,11 @@ package ggc.plugin.device.impl.animas.comm; +import ggc.plugin.data.enums.PlugInExceptionType; +import ggc.plugin.device.PlugInBaseException; import ggc.plugin.device.impl.animas.AnimasDeviceReader; import ggc.plugin.device.impl.animas.data.AnimasDeviceData; import ggc.plugin.device.impl.animas.enums.AnimasDeviceType; import ggc.plugin.device.impl.animas.enums.AnimasImplementationType; -import ggc.plugin.device.impl.animas.util.AnimasException; -import ggc.plugin.device.impl.animas.util.AnimasExceptionType; import ggc.plugin.device.impl.animas.util.Anim... [truncated message content] |
From: <and...@us...> - 2015-02-11 16:34:52
|
Revision: 1350 http://sourceforge.net/p/ggc/code/1350 Author: andyrozman Date: 2015-02-11 16:34:43 +0000 (Wed, 11 Feb 2015) Log Message: ----------- - started working on DeviceInterface V2, both interfaces should work together, until V1 is removed (not so soon). Modified Paths: -------------- trunk/ggc-cgm/src/ggc/cgms/manager/CGMSManager.java trunk/ggc-desktop/pom.xml trunk/ggc-meter/src/ggc/meter/manager/MeterDevicesIds.java trunk/ggc-meter/src/ggc/meter/manager/MeterManager.java trunk/ggc-meter/src/ggc/meter/util/DataAccessMeter.java trunk/ggc-nutri/src/ggc/nutri/util/DataAccessNutri.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpDeviceDefinition.java trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR1200Handler.java trunk/ggc-pump/src/ggc/pump/manager/PumpManager.java trunk/ggc-pump/src/ggc/pump/util/DataAccessPump.java Added Paths: ----------- trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSDeviceDefinition.java trunk/ggc-cgm/src/ggc/cgms/device/CGMSDeviceInstanceWithHandler.java trunk/ggc-cgm/src/icons/cgms/an_vibe_cgms.jpg trunk/ggc-meter/src/ggc/meter/data/defs/ trunk/ggc-meter/src/ggc/meter/data/defs/MeterDeviceDefinition.java trunk/ggc-pump/src/ggc/pump/device/PumpDeviceInstanceWithHandler.java Copied: trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSDeviceDefinition.java (from rev 1348, trunk/ggc-pump/src/ggc/pump/data/defs/PumpDeviceDefinition.java) =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSDeviceDefinition.java (rev 0) +++ trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSDeviceDefinition.java 2015-02-11 16:34:43 UTC (rev 1350) @@ -0,0 +1,132 @@ +package ggc.cgms.data.defs; + +import java.util.ArrayList; +import java.util.List; + +import ggc.plugin.data.enums.DeviceCompanyDefinition; +import ggc.plugin.data.enums.DeviceHandlerType; +import ggc.plugin.device.DeviceDefinition; +import ggc.plugin.device.impl.animas.enums.AnimasDeviceType; +import ggc.plugin.manager.DeviceImplementationStatus; + +/** + * Created by andy on 06.02.15. + */ +public enum CGMSDeviceDefinition implements DeviceDefinition +{ + + OneTouchVibe(40006, "OneTouch Vibe", "an_vibe_cgms.jpg", "INSTRUCTIONS_ANIMAS_V2", AnimasDeviceType.Animas_Vibe, + DeviceImplementationStatus.IMPLEMENTATION_IN_PROGRESS, DeviceCompanyDefinition.Animas, DeviceHandlerType.AnimasV2PumpHandler), + + ; + + + static List<DeviceDefinition> allDevices; + static List<DeviceDefinition> supportedDevices; + + + static + { + allDevices = new ArrayList<DeviceDefinition>(); + supportedDevices = new ArrayList<DeviceDefinition>(); + + for(CGMSDeviceDefinition cdd : values()) + { + allDevices.add(cdd); + + if (cdd.isSupportedDevice()) + { + supportedDevices.add(cdd); + } + } + } + + + + + // we need to extend this to all values currently in DeviceImplementation + int deviceId; + String deviceName; + String iconName; + String instructions; + Object internalDefintion; + DeviceImplementationStatus implementationStatus; + DeviceCompanyDefinition companyDefinition; + DeviceHandlerType deviceHandlerType; + + + + private CGMSDeviceDefinition(int id, String name, String iconName, String instructions, Object internalDefinition, DeviceImplementationStatus implementationStatus, DeviceCompanyDefinition companyDefinition, DeviceHandlerType deviceHandlerType) + { + this.deviceId = id; + this.deviceName = name; + this.iconName = iconName; + this.instructions = instructions; + this.internalDefintion = internalDefinition; + this.implementationStatus = implementationStatus; + this.companyDefinition = companyDefinition; + } + + public int getDeviceId() + { + return deviceId; + } + + public String getDeviceName() + { + return this.deviceName; + } + + public String getIconName() + { + return this.iconName; + } + + + public String getInstructionsI18nKey() + { + return this.instructions; + } + + public DeviceImplementationStatus getDeviceImplementationStatus() + { + return this.implementationStatus; + } + + public Object getInternalDefintion() + { + return this.internalDefintion; + } + + public DeviceCompanyDefinition getDeviceCompany() + { + return this.companyDefinition; + } + + public DeviceHandlerType getDeviceHandler() + { + return this.deviceHandlerType; + } + + public static List<DeviceDefinition> getSupportedDevices() + { + return supportedDevices; + } + + public static List<DeviceDefinition> getAllDevices() + { + return allDevices; + } + + public boolean isSupportedDevice() + { + return isSupportedDevice(this); + } + + + public static boolean isSupportedDevice(CGMSDeviceDefinition cgmsDeviceDefinition) + { + return DeviceImplementationStatus.isSupportedDevice(cgmsDeviceDefinition.getDeviceImplementationStatus()); + } + +} Added: trunk/ggc-cgm/src/ggc/cgms/device/CGMSDeviceInstanceWithHandler.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/CGMSDeviceInstanceWithHandler.java (rev 0) +++ trunk/ggc-cgm/src/ggc/cgms/device/CGMSDeviceInstanceWithHandler.java 2015-02-11 16:34:43 UTC (rev 1350) @@ -0,0 +1,18 @@ +package ggc.cgms.device; + +import ggc.plugin.device.DeviceDefinition; +import ggc.plugin.device.v2.DeviceHandler; +import ggc.plugin.device.v2.DeviceInstanceWithHandler; + +/** + * Created by andy on 10.02.15. + */ +public class CGMSDeviceInstanceWithHandler extends DeviceInstanceWithHandler implements CGMSInterface +{ + public CGMSDeviceInstanceWithHandler(DeviceDefinition deviceDefinition) + { + super(deviceDefinition); + } + + +} Property changes on: trunk/ggc-cgm/src/ggc/cgms/device/CGMSDeviceInstanceWithHandler.java ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Modified: trunk/ggc-cgm/src/ggc/cgms/manager/CGMSManager.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/manager/CGMSManager.java 2015-02-11 16:33:55 UTC (rev 1349) +++ trunk/ggc-cgm/src/ggc/cgms/manager/CGMSManager.java 2015-02-11 16:34:43 UTC (rev 1350) @@ -1,8 +1,11 @@ package ggc.cgms.manager; +import ggc.cgms.data.defs.CGMSDeviceDefinition; +import ggc.cgms.device.CGMSDeviceInstanceWithHandler; import ggc.cgms.manager.company.Abbott; import ggc.cgms.manager.company.Dexcom; import ggc.cgms.manager.company.Minimed; +import ggc.plugin.device.DeviceDefinition; import ggc.plugin.manager.DeviceManager; /** @@ -61,31 +64,32 @@ return CGMSManager.s_manager; } - /** - * Load Supported Devices + /** + * Load Device Companies */ @Override - public void loadSupportedDevices() + public void loadDeviceCompanies() { addDeviceCompany(new Abbott()); addDeviceCompany(new Dexcom()); addDeviceCompany(new Minimed()); - - // System.out.println("!!! CGMS Companies: " + this.companies.size()); } - /** - * Load Device Companies - */ + @Override - public void loadDeviceCompanies() + protected void loadDeviceInstancesV2() { - this.supported_devices.addAll(new Abbott().getDevices()); - this.supported_devices.addAll(new Dexcom().getDevices()); - this.supported_devices.addAll(new Minimed().getDevices()); + for(DeviceDefinition dd : CGMSDeviceDefinition.getSupportedDevices()) + { + CGMSDeviceDefinition pdd = (CGMSDeviceDefinition)dd; - // System.out.println("!!! CGMS Devices: " + - // this.supported_devices.size()); + CGMSDeviceInstanceWithHandler di = new CGMSDeviceInstanceWithHandler(pdd); + + this.supportedDevicesV2.put(di.getCompany().getName() + "_"+ di.getName(), di); + } } + + + } Added: trunk/ggc-cgm/src/icons/cgms/an_vibe_cgms.jpg =================================================================== (Binary files differ) Index: trunk/ggc-cgm/src/icons/cgms/an_vibe_cgms.jpg =================================================================== --- trunk/ggc-cgm/src/icons/cgms/an_vibe_cgms.jpg 2015-02-11 16:33:55 UTC (rev 1349) +++ trunk/ggc-cgm/src/icons/cgms/an_vibe_cgms.jpg 2015-02-11 16:34:43 UTC (rev 1350) Property changes on: trunk/ggc-cgm/src/icons/cgms/an_vibe_cgms.jpg ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Modified: trunk/ggc-desktop/pom.xml =================================================================== --- trunk/ggc-desktop/pom.xml 2015-02-11 16:33:55 UTC (rev 1349) +++ trunk/ggc-desktop/pom.xml 2015-02-11 16:34:43 UTC (rev 1350) @@ -100,6 +100,12 @@ <artifactId>jfreechart</artifactId> </dependency> + <dependency> + <groupId>commons-lang</groupId> + <artifactId>commons-lang</artifactId> + </dependency> + + <dependency> <groupId>postgresql</groupId> <artifactId>postgresql</artifactId> Added: trunk/ggc-meter/src/ggc/meter/data/defs/MeterDeviceDefinition.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/data/defs/MeterDeviceDefinition.java (rev 0) +++ trunk/ggc-meter/src/ggc/meter/data/defs/MeterDeviceDefinition.java 2015-02-11 16:34:43 UTC (rev 1350) @@ -0,0 +1,134 @@ +package ggc.meter.data.defs; + +import ggc.plugin.data.enums.DeviceCompanyDefinition; +import ggc.plugin.data.enums.DeviceHandlerType; +import ggc.plugin.device.DeviceDefinition; +import ggc.plugin.device.impl.animas.enums.AnimasDeviceType; +import ggc.plugin.manager.DeviceImplementationStatus; + +import java.util.ArrayList; +import java.util.List; + +/** + * Created by andy on 06.02.15. + */ +public enum MeterDeviceDefinition implements DeviceDefinition +{ + + AscensiaNextUsb(10009, "Ascensia Next USB", "pict", "instr", null, + DeviceImplementationStatus.IMPLEMENTATION_IN_PROGRESS, DeviceCompanyDefinition.Ascensia, DeviceHandlerType.AscensiaUsbHandler), + + + + + + ; + + static List<DeviceDefinition> allDevices; + static List<DeviceDefinition> supportedDevices; + + + static + { + allDevices = new ArrayList<DeviceDefinition>(); + supportedDevices = new ArrayList<DeviceDefinition>(); + + for(MeterDeviceDefinition mdd : values()) + { + allDevices.add(mdd); + + if (mdd.isSupportedDevice()) + { + supportedDevices.add(mdd); + } + } + } + + // we need to extend this to all values currently in DeviceImplementation + int deviceId; + String deviceName; + String iconName; + String instructions; + Object internalDefintion; + DeviceImplementationStatus implementationStatus; + DeviceCompanyDefinition companyDefinition; + DeviceHandlerType deviceHandlerType; + + + + private MeterDeviceDefinition(int id, String name, String iconName, String instructions, Object internalDefinition, DeviceImplementationStatus implementationStatus, DeviceCompanyDefinition companyDefinition, DeviceHandlerType deviceHandlerType) + { + this.deviceId = id; + this.deviceName = name; + this.iconName = iconName; + this.instructions = instructions; + this.internalDefintion = internalDefinition; + this.implementationStatus = implementationStatus; + this.companyDefinition = companyDefinition; + this.deviceHandlerType = deviceHandlerType; + } + + public int getDeviceId() + { + return deviceId; + } + + public String getDeviceName() + { + return this.deviceName; + } + + public String getIconName() + { + return this.iconName; + } + + + public String getInstructionsI18nKey() + { + return this.instructions; + } + + public DeviceImplementationStatus getDeviceImplementationStatus() + { + return this.implementationStatus; + } + + public Object getInternalDefintion() + { + return this.internalDefintion; + } + + public DeviceCompanyDefinition getDeviceCompany() + { + return this.companyDefinition; + } + + public DeviceHandlerType getDeviceHandler() + { + return this.deviceHandlerType; + } + + public List<DeviceDefinition> getSupportedDevices() + { + return supportedDevices; + } + + public List<DeviceDefinition> getAllDevices() + { + return allDevices; + } + + public boolean isSupportedDevice() + { + return isSupportedDevice(this); + } + + + public static boolean isSupportedDevice(MeterDeviceDefinition meterDeviceDefinition) + { + return DeviceImplementationStatus.isSupportedDevice(meterDeviceDefinition.getDeviceImplementationStatus()); + } + + +} Modified: trunk/ggc-meter/src/ggc/meter/manager/MeterDevicesIds.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/manager/MeterDevicesIds.java 2015-02-11 16:33:55 UTC (rev 1349) +++ trunk/ggc-meter/src/ggc/meter/manager/MeterDevicesIds.java 2015-02-11 16:34:43 UTC (rev 1350) @@ -127,6 +127,18 @@ */ public static final int METER_ASCENSIA_CONTOUR_LINK = 10006; + + public static final int METER_ASCENSIA_USB = 10007; + + + public static final int METER_ASCENSIA_NEXT = 10008; + + + public static final int METER_ASCENSIA_NEXT_USB = 10009; + + + + /** * Meter Device: SmartPix */ Modified: trunk/ggc-meter/src/ggc/meter/manager/MeterManager.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/manager/MeterManager.java 2015-02-11 16:33:55 UTC (rev 1349) +++ trunk/ggc-meter/src/ggc/meter/manager/MeterManager.java 2015-02-11 16:34:43 UTC (rev 1350) @@ -13,6 +13,8 @@ import ggc.meter.manager.company.USDiagnostic; import ggc.meter.manager.company.Wavesense; import ggc.plugin.manager.DeviceManager; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; /** * Application: GGC - GNU Gluco Control @@ -42,6 +44,7 @@ public class MeterManager extends DeviceManager { + private static Log LOG = LogFactory.getLog(MeterManager.class); /** * Singleton instance @@ -56,6 +59,12 @@ super(); } + @Override + protected void loadDeviceInstancesV2() + { + LOG.error("loadDeviceInstancesV2 not implemented !"); + } + /** * Get MeterManager instance * Modified: trunk/ggc-meter/src/ggc/meter/util/DataAccessMeter.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/util/DataAccessMeter.java 2015-02-11 16:33:55 UTC (rev 1349) +++ trunk/ggc-meter/src/ggc/meter/util/DataAccessMeter.java 2015-02-11 16:34:43 UTC (rev 1350) @@ -9,6 +9,7 @@ import ggc.meter.device.MeterInterface; import ggc.meter.manager.MeterManager; import ggc.plugin.cfg.DeviceConfiguration; +import ggc.plugin.device.mgr.DeviceHandlerManager; import ggc.plugin.list.BaseListEntry; import ggc.plugin.util.DataAccessPlugInBase; @@ -190,6 +191,12 @@ @Override + public void registerDeviceHandlers() + { + //DeviceHandlerManager.getInstance().addDeviceHandler(); + } + + @Override public GGCPluginType getPluginType() { return GGCPluginType.MeterToolPlugin; Modified: trunk/ggc-nutri/src/ggc/nutri/util/DataAccessNutri.java =================================================================== --- trunk/ggc-nutri/src/ggc/nutri/util/DataAccessNutri.java 2015-02-11 16:33:55 UTC (rev 1349) +++ trunk/ggc-nutri/src/ggc/nutri/util/DataAccessNutri.java 2015-02-11 16:34:43 UTC (rev 1350) @@ -301,6 +301,11 @@ // ******************************************************** @Override + public void registerDeviceHandlers() + { + } + + @Override public GGCPluginType getPluginType() { return GGCPluginType.NutritionToolPlugin; Modified: trunk/ggc-pump/src/ggc/pump/data/defs/PumpDeviceDefinition.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/data/defs/PumpDeviceDefinition.java 2015-02-11 16:33:55 UTC (rev 1349) +++ trunk/ggc-pump/src/ggc/pump/data/defs/PumpDeviceDefinition.java 2015-02-11 16:34:43 UTC (rev 1350) @@ -1,10 +1,14 @@ package ggc.pump.data.defs; import ggc.plugin.data.enums.DeviceCompanyDefinition; -import ggc.plugin.data.enums.DeviceDefinition; +import ggc.plugin.data.enums.DeviceHandlerType; +import ggc.plugin.device.DeviceDefinition; import ggc.plugin.device.impl.animas.enums.AnimasDeviceType; import ggc.plugin.manager.DeviceImplementationStatus; +import java.util.ArrayList; +import java.util.List; + /** * Created by andy on 06.02.15. */ @@ -12,28 +16,49 @@ { Animas_IR1000(40001, "Animas IR 1000", "", "", AnimasDeviceType.Animas_IR1000, - DeviceImplementationStatus.IMPLEMENTATION_NOT_PLANNED, DeviceCompanyDefinition.Animas), + DeviceImplementationStatus.IMPLEMENTATION_NOT_PLANNED, DeviceCompanyDefinition.Animas, DeviceHandlerType.NoHandler), Animas_IR1200(40002, "Animas IR 1200", "an_ir1200.jpg", "INSTRUCTIONS_ANIMAS_V2", AnimasDeviceType.Animas_IR1200, - DeviceImplementationStatus.IMPLEMENTATION_DONE, DeviceCompanyDefinition.Animas), + DeviceImplementationStatus.IMPLEMENTATION_DONE, DeviceCompanyDefinition.Animas, DeviceHandlerType.AnimasV2PumpHandler), Animas_IR1250(40003, "Animas IR 1250", "an_ir1250.jpg", "INSTRUCTIONS_ANIMAS_V2", AnimasDeviceType.Animas_IR1250, - DeviceImplementationStatus.IMPLEMENTATION_DONE, DeviceCompanyDefinition.Animas), + DeviceImplementationStatus.IMPLEMENTATION_DONE, DeviceCompanyDefinition.Animas, DeviceHandlerType.AnimasV2PumpHandler), Animas_2200(40004, "Animas IR 2020", "an_ir2020.jpg", "INSTRUCTIONS_ANIMAS_V2", AnimasDeviceType.Animas_2200, - DeviceImplementationStatus.IMPLEMENTATION_DONE, DeviceCompanyDefinition.Animas), + DeviceImplementationStatus.IMPLEMENTATION_DONE, DeviceCompanyDefinition.Animas, DeviceHandlerType.AnimasV2PumpHandler), OneTouchPing(40005, "OneTouch Ping", "an_ping.jpg", "INSTRUCTIONS_ANIMAS_V2", AnimasDeviceType.Animas_Ping, - DeviceImplementationStatus.IMPLEMENTATION_DONE, DeviceCompanyDefinition.Animas), + DeviceImplementationStatus.IMPLEMENTATION_DONE, DeviceCompanyDefinition.Animas, DeviceHandlerType.AnimasV2PumpHandler), OneTouchVibe(40006, "OneTouch Vibe", "an_vibe.png", "INSTRUCTIONS_ANIMAS_V2", AnimasDeviceType.Animas_Vibe, - DeviceImplementationStatus.IMPLEMENTATION_DONE, DeviceCompanyDefinition.Animas), + DeviceImplementationStatus.IMPLEMENTATION_DONE, DeviceCompanyDefinition.Animas, DeviceHandlerType.AnimasV2PumpHandler), + ; - ; + static List<DeviceDefinition> allDevices; + static List<DeviceDefinition> supportedDevices; + static + { + allDevices = new ArrayList<DeviceDefinition>(); + supportedDevices = new ArrayList<DeviceDefinition>(); + + for(PumpDeviceDefinition pdd : values()) + { + allDevices.add(pdd); + + if (pdd.isSupportedDevice()) + { + supportedDevices.add(pdd); + } + } + } + + + + // we need to extend this to all values currently in DeviceImplementation int deviceId; String deviceName; @@ -42,11 +67,11 @@ Object internalDefintion; DeviceImplementationStatus implementationStatus; DeviceCompanyDefinition companyDefinition; + DeviceHandlerType deviceHandlerType; - - private PumpDeviceDefinition(int id, String name, String iconName, String instructions, Object internalDefinition, DeviceImplementationStatus implementationStatus, DeviceCompanyDefinition companyDefinition) + private PumpDeviceDefinition(int id, String name, String iconName, String instructions, Object internalDefinition, DeviceImplementationStatus implementationStatus, DeviceCompanyDefinition companyDefinition, DeviceHandlerType deviceHandlerType) { this.deviceId = id; this.deviceName = name; @@ -88,7 +113,36 @@ return this.internalDefintion; } + public DeviceCompanyDefinition getDeviceCompany() + { + return this.companyDefinition; + } + public DeviceHandlerType getDeviceHandler() + { + return this.deviceHandlerType; + } + public static List<DeviceDefinition> getSupportedDevices() + { + return supportedDevices; + } + public static List<DeviceDefinition> getAllDevices() + { + return allDevices; + } + + public boolean isSupportedDevice() + { + return isSupportedDevice(this); + } + + + public static boolean isSupportedDevice(PumpDeviceDefinition pumpDeviceDefinition) + { + return DeviceImplementationStatus.isSupportedDevice(pumpDeviceDefinition.getDeviceImplementationStatus()); + } + + } Added: trunk/ggc-pump/src/ggc/pump/device/PumpDeviceInstanceWithHandler.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/PumpDeviceInstanceWithHandler.java (rev 0) +++ trunk/ggc-pump/src/ggc/pump/device/PumpDeviceInstanceWithHandler.java 2015-02-11 16:34:43 UTC (rev 1350) @@ -0,0 +1,99 @@ +package ggc.pump.device; + +import com.atech.graphics.dialogs.selector.ColumnSorter; +import com.atech.graphics.dialogs.selector.SelectableInterface; + +import ggc.plugin.data.GGCPlugInFileReaderContext; +import ggc.plugin.device.DeviceDefinition; +import ggc.plugin.device.DeviceIdentification; +import ggc.plugin.device.DeviceInterface; +import ggc.plugin.device.PlugInBaseException; +import ggc.plugin.device.mgr.DeviceHandlerManager; +import ggc.plugin.device.v2.DeviceHandler; +import ggc.plugin.device.v2.DeviceInstanceWithHandler; +import ggc.plugin.gui.DeviceSpecialConfigPanelInterface; +import ggc.plugin.manager.DeviceImplementationStatus; +import ggc.plugin.manager.company.AbstractDeviceCompany; +import ggc.pump.data.defs.*; + +import java.util.Hashtable; + +/** + * Created by andy on 10.02.15. + */ +public class PumpDeviceInstanceWithHandler extends DeviceInstanceWithHandler implements PumpInterface +{ + PumpDeviceDefinition pumpDeviceDefinition; + + public PumpDeviceInstanceWithHandler(DeviceDefinition deviceDefinition) + { + super(deviceDefinition); + pumpDeviceDefinition = (PumpDeviceDefinition)deviceDefinition; + } + + + public int getMaxMemoryRecords() + { + return 0; + } + + public void loadPumpSpecificValues() + { + + } + + public Hashtable<String, PumpAlarms> getAlarmMappings() + { + return null; + } + + public Hashtable<String, PumpEvents> getEventMappings() + { + return null; + } + + public Hashtable<String, PumpErrors> getErrorMappings() + { + return null; + } + + public Hashtable<String, PumpBolusType> getBolusMappings() + { + return null; + } + + public Hashtable<String, PumpReport> getReportMappings() + { + return null; + } + + public DeviceIdentification getDeviceInfo() + { + return null; + } + + public String getTemporaryBasalTypeDefinition() + { + return null; + } + + public float getBolusStep() + { + return 0; + } + + public float getBasalStep() + { + return 0; + } + + public boolean arePumpSettingsSet() + { + return false; + } + + public int howManyMonthsOfDataStored() + { + return 0; + } +} Property changes on: trunk/ggc-pump/src/ggc/pump/device/PumpDeviceInstanceWithHandler.java ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Modified: trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR1200Handler.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR1200Handler.java 2015-02-11 16:33:55 UTC (rev 1349) +++ trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR1200Handler.java 2015-02-11 16:34:43 UTC (rev 1350) @@ -1,7 +1,8 @@ package ggc.pump.device.animas; -import ggc.plugin.data.enums.DeviceDefinition; -import ggc.plugin.device.DeviceHandler; +import ggc.plugin.data.enums.DeviceHandlerType; +import ggc.plugin.device.DeviceDefinition; +import ggc.plugin.device.v2.DeviceHandler; import ggc.plugin.device.PlugInBaseException; import ggc.plugin.device.impl.animas.enums.AnimasDeviceType; import ggc.plugin.output.OutputWriter; @@ -18,6 +19,11 @@ } + public DeviceHandlerType getDeviceHandlerKey() + { + return DeviceHandlerType.AnimasV2PumpHandler; + } + public void readDeviceData(DeviceDefinition definition, // Object connectionParameters, // OutputWriter outputWriter) throws PlugInBaseException Modified: trunk/ggc-pump/src/ggc/pump/manager/PumpManager.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/manager/PumpManager.java 2015-02-11 16:33:55 UTC (rev 1349) +++ trunk/ggc-pump/src/ggc/pump/manager/PumpManager.java 2015-02-11 16:34:43 UTC (rev 1350) @@ -1,12 +1,15 @@ package ggc.pump.manager; +import ggc.plugin.device.DeviceDefinition; +import ggc.plugin.device.DeviceInterface; +import ggc.plugin.manager.DeviceImplementationStatus; import ggc.plugin.manager.DeviceManager; -import ggc.pump.manager.company.Animas; -import ggc.pump.manager.company.Deltec; -import ggc.pump.manager.company.Insulet; -import ggc.pump.manager.company.Minimed; -import ggc.pump.manager.company.Roche; -import ggc.pump.manager.company.Sooil; +import ggc.plugin.manager.company.AbstractDeviceCompany; +import ggc.pump.data.defs.PumpDeviceDefinition; +import ggc.pump.device.PumpDeviceInstanceWithHandler; +import ggc.pump.manager.company.*; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; /** * Application: GGC - GNU Gluco Control @@ -36,6 +39,7 @@ public class PumpManager extends DeviceManager { + private static Log LOG = LogFactory.getLog(PumpManager.class); /** * Singleton instance @@ -50,6 +54,20 @@ super(); } + @Override + protected void loadDeviceInstancesV2() + { + for(DeviceDefinition dd : PumpDeviceDefinition.getSupportedDevices()) + { + PumpDeviceDefinition pdd = (PumpDeviceDefinition)dd; + + PumpDeviceInstanceWithHandler di = new PumpDeviceInstanceWithHandler(pdd); + + this.supportedDevicesV2.put(di.getCompany().getName() + "_"+ di.getName(), di); + } + } + + /** * Get PumpManager instance * @@ -71,7 +89,7 @@ @Override public void loadDeviceCompanies() { - addDeviceCompany(new Animas()); + //addDeviceCompany(new Animas()); addDeviceCompany(new Deltec()); addDeviceCompany(new Insulet()); addDeviceCompany(new Minimed()); @@ -79,18 +97,4 @@ addDeviceCompany(new Sooil()); } - /** - * Load Supported Devices - */ - @Override - public void loadSupportedDevices() - { - this.supported_devices.addAll(new Animas().getDevices()); - this.supported_devices.addAll(new Deltec().getDevices()); - this.supported_devices.addAll(new Insulet().getDevices()); - this.supported_devices.addAll(new Minimed().getDevices()); - this.supported_devices.addAll(new Roche().getDevices()); - this.supported_devices.addAll(new Sooil().getDevices()); - } - } Modified: trunk/ggc-pump/src/ggc/pump/util/DataAccessPump.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/util/DataAccessPump.java 2015-02-11 16:33:55 UTC (rev 1349) +++ trunk/ggc-pump/src/ggc/pump/util/DataAccessPump.java 2015-02-11 16:34:43 UTC (rev 1350) @@ -2,6 +2,7 @@ import ggc.core.plugins.GGCPluginType; import ggc.plugin.cfg.DeviceConfiguration; +import ggc.plugin.device.mgr.DeviceHandlerManager; import ggc.plugin.list.BaseListEntry; import ggc.plugin.util.DataAccessPlugInBase; import ggc.pump.data.PumpDataHandler; @@ -17,6 +18,7 @@ import ggc.pump.data.defs.PumpErrors; import ggc.pump.data.defs.PumpEvents; import ggc.pump.data.defs.PumpReport; +import ggc.pump.device.animas.AnimasIR1200Handler; import ggc.pump.graph.PumpGraphContext; import ggc.pump.manager.PumpManager; @@ -340,6 +342,11 @@ } + @Override + public void registerDeviceHandlers() + { + DeviceHandlerManager.getInstance().addDeviceHandler(new AnimasIR1200Handler()); // Handler for Animas Implementation V2 (IR1200 and higher) + } @Override public GGCPluginType getPluginType() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <and...@us...> - 2015-03-13 20:00:11
|
Revision: 1351 http://sourceforge.net/p/ggc/code/1351 Author: andyrozman Date: 2015-03-13 19:59:54 +0000 (Fri, 13 Mar 2015) Log Message: ----------- - Animas Pump finished, CGMS still in works - Stocks started - Device V2 framework implemented Modified Paths: -------------- trunk/ggc-cgm/doc/Changelog trunk/ggc-cgm/doc/TO-DO_CGMTool.txt trunk/ggc-cgm/src/GGC_CGMSTool_en.properties trunk/ggc-cgm/src/ggc/cgms/data/CGMSTempValues.java trunk/ggc-cgm/src/ggc/cgms/data/CGMSValueConfig.java trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesEntry.java trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesExtendedEntry.java trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesSubEntry.java trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesTableModel.java trunk/ggc-cgm/src/ggc/cgms/data/cfg/CGMSConfigurationDefinition.java trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSBaseDataType.java trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSDeviceDefinition.java trunk/ggc-cgm/src/ggc/cgms/device/AbstractCGMS.java trunk/ggc-cgm/src/ggc/cgms/device/AbstractSerialCGMS.java trunk/ggc-cgm/src/ggc/cgms/device/CGMSDeviceInstanceWithHandler.java trunk/ggc-cgm/src/ggc/cgms/device/DummyCGMS.java trunk/ggc-cgm/src/ggc/cgms/device/animas/AnimasCGMS.java trunk/ggc-cgm/src/ggc/cgms/device/animas/OneTouchVibe.java trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/AnimasCGMSDeviceReader.java trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/converter/AnimasDexcomDataConverter.java trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/data/AnimasCGMSDataWriter.java trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/data/AnimasCGMSDeviceData.java trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/data/dto/AnimasDexcomHistoryEntry.java trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/data/dto/CGMSSettings.java trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/handler/AnimasDexcomDataHandler.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/DexcomCGMS.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/DexcomG4.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/DexcomSeven.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/DexcomSevenPlus.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/file/FRC_DexcomTxt_DM3.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/file/FRC_DexcomXml_DM3.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/DexcomDeviceReader.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/data/output/GGCOutputParser.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/DexcomG4Api.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/EGVRecord.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/parsers/DexcomCommandParserInterface.java trunk/ggc-cgm/src/ggc/cgms/device/freestyle/FreestyleCGMS.java trunk/ggc-cgm/src/ggc/cgms/device/freestyle/FreestyleNavigator.java trunk/ggc-cgm/src/ggc/cgms/device/minimed/GuardianRealTime.java trunk/ggc-cgm/src/ggc/cgms/device/minimed/MiniMedCGMS.java trunk/ggc-cgm/src/ggc/cgms/device/minimed/MiniMedCGMSGold.java trunk/ggc-cgm/src/ggc/cgms/device/minimed/MiniMedRealTime.java trunk/ggc-cgm/src/ggc/cgms/device/minimed/file/MinimedCareLinkCGMS.java trunk/ggc-cgm/src/ggc/cgms/gui/viewer/CGMSDataDialog.java trunk/ggc-cgm/src/ggc/cgms/manager/CGMSManager.java trunk/ggc-cgm/src/ggc/cgms/manager/company/Abbott.java trunk/ggc-cgm/src/ggc/cgms/manager/company/Dexcom.java trunk/ggc-cgm/src/ggc/cgms/manager/company/Minimed.java trunk/ggc-cgm/src/ggc/cgms/plugin/CGMSPlugInServer.java trunk/ggc-cgm/src/ggc/cgms/util/DataAccessCGMS.java trunk/ggc-core/src/GGC_Main.hbm.xml trunk/ggc-core/src/GGC_en.properties trunk/ggc-core/src/ggc/core/data/graph/GGCGraphViewControler.java trunk/ggc-core/src/ggc/core/db/GGCDb.java trunk/ggc-core/src/ggc/core/db/GGCDbConfig.java trunk/ggc-core/src/ggc/core/db/datalayer/StockBaseType.java trunk/ggc-core/src/ggc/core/db/datalayer/Stocks.java trunk/ggc-core/src/ggc/core/db/hibernate/StockSubTypeH.java trunk/ggc-core/src/ggc/core/db/tool/transfer/RestoreGGCDialog.java trunk/ggc-core/src/ggc/core/doc/util/DataAccessDoc.java trunk/ggc-core/src/ggc/core/plugins/CGMSPlugIn.java trunk/ggc-core/src/ggc/core/plugins/MetersPlugIn.java trunk/ggc-core/src/ggc/core/plugins/NutriPlugIn.java trunk/ggc-core/src/ggc/core/plugins/PumpsPlugIn.java trunk/ggc-core/src/ggc/core/util/DataAccess.java trunk/ggc-core/src/ggc/shared/bolushelper/BolusHelper.java trunk/ggc-core/src/ggc/shared/fooddesc/FoodDescriptionDialog.java trunk/ggc-core/src/ggc/shared/ratio/RatioBaseDialog.java trunk/ggc-core/src/ggc/shared/ratio/RatioCalculatorDialog.java trunk/ggc-core/src/ggc/shared/ratio/RatioEntryDialog.java trunk/ggc-core/src/ggc/shared/ratio/RatioExtendedDialog.java trunk/ggc-desktop/data/update/GGC_Update.properties trunk/ggc-desktop/doc/How_Can_I_Help.txt trunk/ggc-desktop/doc/TO-DO.txt trunk/ggc-desktop/doc/database_info.txt trunk/ggc-desktop/pom.xml trunk/ggc-desktop/src/ggc/gui/MainFrame.java trunk/ggc-desktop/src/ggc/gui/StatusBar.java trunk/ggc-desktop/src/ggc/gui/dialogs/AboutGGCDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/AppointmentDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/AppointmentsDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/DailyRowDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/DailyRowMealsDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/DailyStatsDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/DoctorDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/DoctorsDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/HbA1cDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/PrintingDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/PropertiesDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/SchemeDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/SchemeEDDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/graphs/CourseGraphDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/graphs/FrequencyGraphDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/graphs/HbA1cDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/graphs/SpreadGraphDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/stock/StockAmounts.java trunk/ggc-desktop/src/ggc/gui/dialogs/stock/StockDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/stock/StockListDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/stock/StockSelectorDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/stock/StockSubTypeDialog.java trunk/ggc-desktop/src/ggc/gui/little/GGCLittle.java trunk/ggc-desktop/src/ggc/gui/little/StatusBarL.java trunk/ggc-master-pom/pom.xml trunk/ggc-meter/docs/Changelog trunk/ggc-meter/pom.xml trunk/ggc-meter/src/ggc/meter/data/MeterValuesExtTableModel.java trunk/ggc-meter/src/ggc/meter/data/MeterValuesTableModel.java trunk/ggc-meter/src/ggc/meter/data/cfg/MeterConfigurationDefinition.java trunk/ggc-meter/src/ggc/meter/data/defs/MeterDeviceDefinition.java trunk/ggc-meter/src/ggc/meter/device/AbstractMeter.java trunk/ggc-meter/src/ggc/meter/device/AbstractSerialMeter.java trunk/ggc-meter/src/ggc/meter/device/AbstractUsbMeter.java trunk/ggc-meter/src/ggc/meter/device/AbstractXmlMeter.java trunk/ggc-meter/src/ggc/meter/device/DummyMeter.java trunk/ggc-meter/src/ggc/meter/device/abbott/Freestyle.java trunk/ggc-meter/src/ggc/meter/device/abbott/FreestyleFlash.java trunk/ggc-meter/src/ggc/meter/device/abbott/FreestyleFreedom.java trunk/ggc-meter/src/ggc/meter/device/abbott/FreestyleFreedomLite.java trunk/ggc-meter/src/ggc/meter/device/abbott/FreestyleLite.java trunk/ggc-meter/src/ggc/meter/device/abbott/FreestyleMeter.java trunk/ggc-meter/src/ggc/meter/device/abbott/OptiumXceed.java trunk/ggc-meter/src/ggc/meter/device/abbott/PrecisionXtra.java trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekSmartPixMeter.java trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaContourTest.java trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaContourUSB.java trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaMeter.java trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaMeterUsb.java trunk/ggc-meter/src/ggc/meter/device/menarini/GlucofixMio.java trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchMeter.java trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchMeter2.java trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchUltraSmart.java trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchVerioPro.java trunk/ggc-meter/src/ggc/meter/manager/MeterManager.java trunk/ggc-meter/src/ggc/meter/manager/company/Abbott.java trunk/ggc-meter/src/ggc/meter/manager/company/AscensiaBayer.java trunk/ggc-meter/src/ggc/meter/manager/company/DiabeticSupplyOfSunCoast.java trunk/ggc-meter/src/ggc/meter/manager/company/HipoGuard.java trunk/ggc-meter/src/ggc/meter/manager/company/HomeDiagnostic.java trunk/ggc-meter/src/ggc/meter/manager/company/LifeScan.java trunk/ggc-meter/src/ggc/meter/manager/company/Menarini.java trunk/ggc-meter/src/ggc/meter/manager/company/Prodigy.java trunk/ggc-meter/src/ggc/meter/manager/company/Roche.java trunk/ggc-meter/src/ggc/meter/manager/company/Sanvita.java trunk/ggc-meter/src/ggc/meter/manager/company/USDiagnostic.java trunk/ggc-meter/src/ggc/meter/manager/company/Wavesense.java trunk/ggc-meter/src/ggc/meter/plugin/MeterPlugInServer.java trunk/ggc-meter/src/ggc/meter/util/DataAccessMeter.java trunk/ggc-nutri/src/ggc/nutri/dialogs/FoodPartMainSelectorDialog.java trunk/ggc-nutri/src/ggc/nutri/dialogs/MealSelectorDialog.java trunk/ggc-nutri/src/ggc/nutri/dialogs/MealSpecialSelectorDialog.java trunk/ggc-nutri/src/ggc/nutri/dialogs/NutritionGroupDialog.java trunk/ggc-nutri/src/ggc/nutri/panels/PanelMealSelector.java trunk/ggc-nutri/src/ggc/nutri/panels/PanelNutritionFood.java trunk/ggc-nutri/src/ggc/nutri/panels/PanelNutritionFoodEdit.java trunk/ggc-nutri/src/ggc/nutri/panels/PanelNutritionFoodGroup.java trunk/ggc-nutri/src/ggc/nutri/panels/PanelNutritionFoodGroupEdit.java trunk/ggc-nutri/src/ggc/nutri/panels/PanelNutritionMain.java trunk/ggc-nutri/src/ggc/nutri/panels/PanelNutritionMeal.java trunk/ggc-nutri/src/ggc/nutri/panels/PanelNutritionMealEdit.java trunk/ggc-plugin_base/docs/Changelog trunk/ggc-plugin_base/pom.xml trunk/ggc-plugin_base/src/GGCPlugin_en.properties trunk/ggc-plugin_base/src/ggc/plugin/cfg/CommunicationPortComponent.java trunk/ggc-plugin_base/src/ggc/plugin/cfg/CommunicationPortSelector.java trunk/ggc-plugin_base/src/ggc/plugin/cfg/CommunicationSettingsPanel.java trunk/ggc-plugin_base/src/ggc/plugin/cfg/DeviceConfigEntry.java trunk/ggc-plugin_base/src/ggc/plugin/cfg/DeviceConfiguration.java trunk/ggc-plugin_base/src/ggc/plugin/cfg/DeviceConfigurationDefinition.java trunk/ggc-plugin_base/src/ggc/plugin/cfg/DeviceConfigurationDialog.java trunk/ggc-plugin_base/src/ggc/plugin/cfg/DeviceSelectorDialog.java trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceDataHandler.java trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceTempValues.java trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceValueConfigEntry.java trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceValueConfigEntryInterface.java trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceValuesConfigTable.java trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceValuesConfigTableModel.java trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceValuesTable.java trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceValuesTableModel.java trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceValuesWriter.java trunk/ggc-plugin_base/src/ggc/plugin/data/enums/ClockModeType.java trunk/ggc-plugin_base/src/ggc/plugin/data/enums/DeviceCompanyDefinition.java trunk/ggc-plugin_base/src/ggc/plugin/data/enums/DeviceHandlerType.java trunk/ggc-plugin_base/src/ggc/plugin/data/enums/GlucoseUnitType.java trunk/ggc-plugin_base/src/ggc/plugin/data/progress/ProgressData.java trunk/ggc-plugin_base/src/ggc/plugin/db/PluginDb.java trunk/ggc-plugin_base/src/ggc/plugin/device/DeviceAbstract.java trunk/ggc-plugin_base/src/ggc/plugin/device/DeviceIdentification.java trunk/ggc-plugin_base/src/ggc/plugin/device/DeviceInterface.java trunk/ggc-plugin_base/src/ggc/plugin/device/DownloadSupportType.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/abbott/CoPilot.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/accuchek/AccuChekSmartPix.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/AnimasDeviceReader.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/comm/AnimasCommProtocolAbstract.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/comm/AnimasCommProtocolV1.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/comm/AnimasCommProtocolV2.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/converter/AnimasAbstractDataConverter.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/data/AnimasDeviceData.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/data/AnimasDevicePacket.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/data/dto/SettingEntry.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/enums/AnimasDataType.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/enums/AnimasSoundType.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/enums/AnimasTransferType.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/enums/advsett/SoundValueType.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/handler/AnimasDataWriter.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/util/AnimasUtils.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/MinimedDevice.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/comm/MinimedComm_ComLink.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/comm/MinimedComm_ComStation.java trunk/ggc-plugin_base/src/ggc/plugin/device/mgr/DeviceHandlerManager.java trunk/ggc-plugin_base/src/ggc/plugin/device/v2/DeviceDefinition.java trunk/ggc-plugin_base/src/ggc/plugin/device/v2/DeviceHandler.java trunk/ggc-plugin_base/src/ggc/plugin/device/v2/DeviceInstanceWithHandler.java trunk/ggc-plugin_base/src/ggc/plugin/graph/PlugInGraphDialog.java trunk/ggc-plugin_base/src/ggc/plugin/gui/AboutBaseDialog.java trunk/ggc-plugin_base/src/ggc/plugin/gui/DeviceDisplayConfigDialog.java trunk/ggc-plugin_base/src/ggc/plugin/gui/DeviceDisplayDataDialog.java trunk/ggc-plugin_base/src/ggc/plugin/gui/DeviceExportDialog.java trunk/ggc-plugin_base/src/ggc/plugin/gui/DeviceInstructionsDialog.java trunk/ggc-plugin_base/src/ggc/plugin/gui/DevicePreInitRunner.java trunk/ggc-plugin_base/src/ggc/plugin/gui/DeviceReaderRunner.java trunk/ggc-plugin_base/src/ggc/plugin/gui/file/AbstractFileSelectorDialog.java trunk/ggc-plugin_base/src/ggc/plugin/gui/file/ImportFileSelectorDialog.java trunk/ggc-plugin_base/src/ggc/plugin/gui/file/MultipleFileSelectorDialog.java trunk/ggc-plugin_base/src/ggc/plugin/list/BaseListBrowserPanel.java trunk/ggc-plugin_base/src/ggc/plugin/list/BaseListDialog.java trunk/ggc-plugin_base/src/ggc/plugin/list/BaseListMainPanel.java trunk/ggc-plugin_base/src/ggc/plugin/manager/DeviceImplementationStatus.java trunk/ggc-plugin_base/src/ggc/plugin/manager/DeviceManager.java trunk/ggc-plugin_base/src/ggc/plugin/manager/EmptyMgrDevices.java trunk/ggc-plugin_base/src/ggc/plugin/manager/company/AbstractDeviceCompany.java trunk/ggc-plugin_base/src/ggc/plugin/output/OutputWriterConfigData.java trunk/ggc-plugin_base/src/ggc/plugin/protocol/BlueToothProtocol.java trunk/ggc-plugin_base/src/ggc/plugin/protocol/SerialProtocol.java trunk/ggc-plugin_base/src/ggc/plugin/protocol/USBProtocol.java trunk/ggc-plugin_base/src/ggc/plugin/protocol/XmlProtocol.java trunk/ggc-plugin_base/src/ggc/plugin/util/DataAccessPlugInBase.java trunk/ggc-plugin_base/src/ggc/plugin/util/PlugInDeviceUtil.java trunk/ggc-pump/docs/Changelog trunk/ggc-pump/pom.xml trunk/ggc-pump/src/GGCPumpTool_en.properties trunk/ggc-pump/src/ggc/pump/data/PumpDataHandler.java trunk/ggc-pump/src/ggc/pump/data/PumpValuesEntry.java trunk/ggc-pump/src/ggc/pump/data/PumpValuesEntryExt.java trunk/ggc-pump/src/ggc/pump/data/PumpValuesEntryProfile.java trunk/ggc-pump/src/ggc/pump/data/PumpValuesHourProcessor.java trunk/ggc-pump/src/ggc/pump/data/PumpValuesTableModel.java trunk/ggc-pump/src/ggc/pump/data/cfg/PumpConfigurationDefinition.java trunk/ggc-pump/src/ggc/pump/data/db/GGCPumpDb.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpBolusType.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpDeviceDefinition.java trunk/ggc-pump/src/ggc/pump/device/AbstractPump.java trunk/ggc-pump/src/ggc/pump/device/AbstractXmlPump.java trunk/ggc-pump/src/ggc/pump/device/DummyPump.java trunk/ggc-pump/src/ggc/pump/device/PumpDeviceInstanceWithHandler.java trunk/ggc-pump/src/ggc/pump/device/accuchek/AccuChekSmartPixPump.java trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR1000.java trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR1200.java trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR1200Handler.java trunk/ggc-pump/src/ggc/pump/device/animas/AnimasPump.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/AnimasPumpDeviceReader.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/data/AnimasPumpDeviceData.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/data/dto/BolusEntry.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/data/dto/BolusExtEntry.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/data/dto/PumpSettings.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/data/dto/SettingTimeValueEntry.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/handler/AnimasPumpDataWriter.java trunk/ggc-pump/src/ggc/pump/device/cozmo/FRC_CoPilotXMLPump.java trunk/ggc-pump/src/ggc/pump/device/dana/DanaDiabecare_II.java trunk/ggc-pump/src/ggc/pump/device/dana/DanaDiabecare_III_R.java trunk/ggc-pump/src/ggc/pump/device/dana/DanaDiabecare_IIS.java trunk/ggc-pump/src/ggc/pump/device/dana/DanaPump.java trunk/ggc-pump/src/ggc/pump/device/deltec/DeltecCosmo1700.java trunk/ggc-pump/src/ggc/pump/device/deltec/DeltecCosmo1800.java trunk/ggc-pump/src/ggc/pump/device/deltec/DeltecPump.java trunk/ggc-pump/src/ggc/pump/device/insulet/InsuletOmniPod.java trunk/ggc-pump/src/ggc/pump/device/insulet/InsuletPump.java trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed508.java trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed511.java trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed512.java trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed515.java trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed522.java trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed523.java trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed553.java trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed554_Veo.java trunk/ggc-pump/src/ggc/pump/device/minimed/MinimedPump.java trunk/ggc-pump/src/ggc/pump/device/minimed/MinimedPumpDevice.java trunk/ggc-pump/src/ggc/pump/device/minimed/file/MinimedCareLinkPump.java trunk/ggc-pump/src/ggc/pump/device/minimed/new_dev/Minimed512.java trunk/ggc-pump/src/ggc/pump/gui/manual/PumpDataAdditionalWizardOne.java trunk/ggc-pump/src/ggc/pump/gui/manual/PumpDataAdditionalWizardTwo.java trunk/ggc-pump/src/ggc/pump/gui/manual/PumpDataDialog.java trunk/ggc-pump/src/ggc/pump/gui/manual/PumpDataRowDialog.java trunk/ggc-pump/src/ggc/pump/gui/manual/PumpDataTypeComponent.java trunk/ggc-pump/src/ggc/pump/gui/profile/ProfileEditor.java trunk/ggc-pump/src/ggc/pump/gui/profile/ProfileEntryDialog.java trunk/ggc-pump/src/ggc/pump/gui/profile/ProfileSelector.java trunk/ggc-pump/src/ggc/pump/manager/PumpManager.java trunk/ggc-pump/src/ggc/pump/manager/company/Deltec.java trunk/ggc-pump/src/ggc/pump/manager/company/GenericPumpDevice.java trunk/ggc-pump/src/ggc/pump/manager/company/Insulet.java trunk/ggc-pump/src/ggc/pump/manager/company/Minimed.java trunk/ggc-pump/src/ggc/pump/manager/company/Roche.java trunk/ggc-pump/src/ggc/pump/manager/company/Sooil.java trunk/ggc-pump/src/ggc/pump/plugin/PumpPlugInServer.java trunk/ggc-pump/src/ggc/pump/print/PrintPumpDataDailyTimeSheet.java trunk/ggc-pump/src/ggc/pump/test/PumpConsoleTester.java trunk/ggc-pump/src/ggc/pump/test/TestAnimas.java trunk/ggc-pump/src/ggc/pump/util/DataAccessPump.java Added Paths: ----------- trunk/ggc-cgm/src/ggc/cgms/data/CGMSDataWriter.java trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSConfigurationGroup.java trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSTransmiterEvents.java trunk/ggc-cgm/src/ggc/cgms/device/CGMSInterfaceV2.java trunk/ggc-cgm/src/ggc/cgms/device/animas/AnimasCGMSHandler.java trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/converter/ConverterTries.txt trunk/ggc-cgm/src/ggc/cgms/test/TestAnimasCGMS.java trunk/ggc-core/src/GGC_New.hbm.xml trunk/ggc-core/src/ggc/core/data/defs/StockTypeBase.java trunk/ggc-core/src/ggc/core/data/defs/StockUsageUnit.java trunk/ggc-core/src/ggc/core/db/dto/ trunk/ggc-core/src/ggc/core/db/dto/StockDTO.java trunk/ggc-core/src/ggc/core/db/dto/StocktakingDTO.java trunk/ggc-core/src/ggc/core/db/hibernate/StockH.java trunk/ggc-core/src/ggc/core/db/hibernate/StocktakingH.java trunk/ggc-core/src/ggc/core/plugins/GGCPluginClient.java trunk/ggc-desktop/data/update/version/4_GGC_Update_0.4.3.xml trunk/ggc-desktop/doc/TO-DO Detailed.txt trunk/ggc-desktop/src/ggc/gui/dialogs/stock/def/ trunk/ggc-desktop/src/ggc/gui/dialogs/stock/def/StockListDef.java trunk/ggc-desktop/src/ggc/gui/dialogs/stock/def/StockTypeListDef.java trunk/ggc-desktop/src/ggc/gui/dialogs/stock/def/StocktakingListDef.java trunk/ggc-meter/src/ggc/meter/device/MeterInterfaceV2.java trunk/ggc-plugin_base/src/ggc/plugin/comm/ trunk/ggc-plugin_base/src/ggc/plugin/comm/IBMCommunicationHandler.java trunk/ggc-plugin_base/src/ggc/plugin/comm/NRSerialCommunicationHandler.java trunk/ggc-plugin_base/src/ggc/plugin/comm/RXTXCommunicationHandler.java trunk/ggc-plugin_base/src/ggc/plugin/comm/SerialCommunicationInterface.java trunk/ggc-plugin_base/src/ggc/plugin/comm/SerialSettings.java trunk/ggc-plugin_base/src/ggc/plugin/comm/SerialSpecialCommand.java trunk/ggc-plugin_base/src/ggc/plugin/data/enums/DeviceConfigurationGroup.java trunk/ggc-plugin_base/src/ggc/plugin/data/enums/DevicePortParameterType.java trunk/ggc-plugin_base/src/ggc/plugin/data/enums/DeviceProgressStatus.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/handler/AbstractDeviceDataV2Handler.java trunk/ggc-plugin_base/src/ggc/plugin/device/v2/DeviceInterfaceV2.java trunk/ggc-plugin_base/src/ggc/plugin/protocol/DeviceConnectionProtocol.java trunk/ggc-plugin_base/src/ggc/plugin/protocol/reader/ trunk/ggc-plugin_base/src/ggc/plugin/protocol/reader/AbstractDeviceReader.java trunk/ggc-plugin_base/src/ggc/plugin/protocol/reader/SerialDeviceReader.java trunk/ggc-pump/src/ggc/pump/data/PumpWriterValues.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpConfigurationGroup.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpDeviceValueType.java trunk/ggc-pump/src/ggc/pump/data/graph/writer/ trunk/ggc-pump/src/ggc/pump/data/graph/writer/PumpValuesWriter.java trunk/ggc-pump/src/ggc/pump/data/graph/writer/PumpWriterDefInterface.java trunk/ggc-pump/src/ggc/pump/device/PumpInterfaceV2.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/converter/AnimasBaseDataV1Converter.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/converter/AnimasBaseDataV2Converter.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/data/enums/ trunk/ggc-pump/src/ggc/pump/device/animas/impl/data/enums/AnimasBolusSettingSubType.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/handler/AnimasBaseDataV1Handler.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/handler/AnimasBaseDataV2Handler.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/handler/v1/ trunk/ggc-pump/src/ggc/pump/device/animas/impl/handler/v1/AnimasV1CommandType.java trunk/ggc-pump/src/ggc/pump/device/dana/impl/ trunk/ggc-pump/src/ggc/pump/device/dana/impl/DanaDeviceReader.java trunk/ggc-pump/src/ggc/pump/device/dana/impl/comm/ trunk/ggc-pump/src/ggc/pump/device/dana/impl/comm/DanaCommProtocolAbstract.java trunk/ggc-pump/src/ggc/pump/device/dana/impl/comm/DanaCommProtocolV1.java trunk/ggc-pump/src/ggc/pump/device/dana/impl/data/ trunk/ggc-pump/src/ggc/pump/device/dana/impl/data/defs/ trunk/ggc-pump/src/ggc/pump/device/dana/impl/data/defs/DanaDataType.java Removed Paths: ------------- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/DexcomDeviceProgressReport.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/enums/SpecialGlucoseValues.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/util/DexcomException.java trunk/ggc-core/src/ggc/core/db/hibernate/StockTypeH.java trunk/ggc-core/src/ggc/core/db/hibernate/StocksH.java trunk/ggc-desktop/data/update/4_GGC_Update_0.4.3.xml trunk/ggc-desktop/src/ggc/gui/dialogs/defs/StockListDef.java trunk/ggc-desktop/src/ggc/gui/dialogs/stock/StockTypeDialog.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/enums/AnimasSettingSubType.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/handler/AbstractDeviceDataHandler.java trunk/ggc-pump/src/ggc/pump/data/PumpDeviceValueType.java trunk/ggc-pump/src/ggc/pump/data/PumpTempValues.java trunk/ggc-pump/src/ggc/pump/data/PumpValuesEntryConfig.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpDefsAbstract.java trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR1250.java trunk/ggc-pump/src/ggc/pump/device/animas/OneTouchPing.java trunk/ggc-pump/src/ggc/pump/device/animas/OneTouchVibe.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/converter/AnimasBaseDataConverter.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/handler/AnimasBaseDataHandler.java trunk/ggc-pump/src/ggc/pump/manager/company/Animas.java Modified: trunk/ggc-cgm/doc/Changelog =================================================================== --- trunk/ggc-cgm/doc/Changelog 2015-02-11 16:34:43 UTC (rev 1350) +++ trunk/ggc-cgm/doc/Changelog 2015-03-13 19:59:54 UTC (rev 1351) @@ -2,6 +2,11 @@ Changes file for GGC CGM Tool ============================== +1.3.0 [19.2.2015] + * Device Interface V2 Framework + + * Animas CGMS implementation V1 + 1.2.0 [4.1.2015] * some minor changes all around * updated Lists Modified: trunk/ggc-cgm/doc/TO-DO_CGMTool.txt =================================================================== --- trunk/ggc-cgm/doc/TO-DO_CGMTool.txt 2015-02-11 16:34:43 UTC (rev 1350) +++ trunk/ggc-cgm/doc/TO-DO_CGMTool.txt 2015-03-13 19:59:54 UTC (rev 1351) @@ -17,11 +17,13 @@ - Statistics * Communication framework for CGM (interface that all CGMs will use) (later) - * Graphs (0.6) + * Graphs (0.6): - Daily Graph + - DailyGraph for DailySheet Pump Report * Specific CGM models implementations: o Abbott - no support at this time - o Dexcom - Dexcom 7 not supported + o Dexcom - Dexcom 7 not supported (probably won't be done) o MiniMed (2015-16) - protocol not public (use Carelink export file) + o Animas - Dexcom integration (2015) =============================================================================== Modified: trunk/ggc-cgm/src/GGC_CGMSTool_en.properties =================================================================== --- trunk/ggc-cgm/src/GGC_CGMSTool_en.properties 2015-02-11 16:34:43 UTC (rev 1350) +++ trunk/ggc-cgm/src/GGC_CGMSTool_en.properties 2015-03-13 19:59:54 UTC (rev 1351) @@ -43,6 +43,11 @@ MN_CGMS=CGMS MN_CGMS_READ=CGMS Read MN_CGMS_READ_DESC=Reading data from CGMS + +MN_CGMS_READ_CONFIG=Read configuration +MN_CGMS_READ_CONFIG_DESC=Read configuration from CGMS + + MN_CGMS_LIST=CGMS List MN_CGMS_LIST_DESC=List of available CGMS devices MN_CGMS_CONFIG=Configure @@ -180,6 +185,7 @@ CGMS_DATA_ALARM=Alarm CGMS_DATA_ERROR=Error CGMS_READING_TREND=Trend +CGMS_TRANSMITER_EVENT=Transmiter Event # # !G! CGMS Extended Types @@ -250,4 +256,29 @@ FailedCRCCheck("DXC_FAILED_CRC_CHECK"), // UnsupportedTypeOfParametersForCommand("DXC_UNSUPPORTED_TYPE_OF_PARAMS_FOR_CMD"), // UnsupportedReceiver("DXC_UNSUPPORTED_RECEIVER"), DownloadCanceledByUser("STATUS_STOPPED_USER"), DeviceNotFoundOnConfiguredPort( - "DEVICE_NOT_FOUND_ON_CONFIGURED_PORT"), DevicePortInUse("DEVICE_PORT_IN_USE"), \ No newline at end of file + "DEVICE_NOT_FOUND_ON_CONFIGURED_PORT"), DevicePortInUse("DEVICE_PORT_IN_USE"), + + +# +# !G! CGMS Configuration [2] +# + +# !SG! Groups +GROUP_TRANSMITER=Transmiter +GROUP_WARNINGS=Warnings + +# !SG! Sounds + +PCFG_SOUND_HIGH_ALERT=High Alert +PCFG_SOUND_LOW_ALERT=Low Alert +PCFG_SOUND_RISE_RATE=Rise Rate +PCFG_SOUND_FALL_RATE=Fall Rate +PCFG_SOUND_RANGE=Range +PCFG_SOUND_OTHER=Other +PCFG_SOUND_TRANSMITEROUT_OF_RANGE=Out of Range +CCFG_X_WARNING_ABOVE=%s Warning Above +CCFG_X_WARNING_BELOW=%s Warning Below +CCFG_X_SNOOZE_TIME=%s Snooze Time +CCFG_X_ENABLED=%s Enabled +CCFG_TRANSMITER_SERIAL_NUMBER=Serial Number + Added: trunk/ggc-cgm/src/ggc/cgms/data/CGMSDataWriter.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/CGMSDataWriter.java (rev 0) +++ trunk/ggc-cgm/src/ggc/cgms/data/CGMSDataWriter.java 2015-03-13 19:59:54 UTC (rev 1351) @@ -0,0 +1,178 @@ +package ggc.cgms.data; + +import com.atech.utils.data.ATechDate; +import ggc.cgms.device.dexcom.receivers.DexcomDevice; +import ggc.cgms.util.DataAccessCGMS; +import ggc.plugin.data.DeviceTempValues; +import ggc.plugin.output.OutputWriter; +import ggc.plugin.output.OutputWriterData; +import org.apache.commons.lang.StringUtils; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import sun.reflect.generics.reflectiveObjects.NotImplementedException; + +import java.util.HashMap; + +/** + * Created by andy on 04.03.15. + */ + + +// Writing of data for CGMS is little different than any other data (we pack daily data together in one entry), +// which means that normal writer can't be used, at least not yet... This is only temporary sollution. + +public class CGMSDataWriter extends HashMap<String, DeviceTempValues> +{ + private static Log log = LogFactory.getLog(CGMSDataWriter.class); + OutputWriter outputWriter; + CGMSValuesTableModel valuesModel; + DataAccessCGMS dataAccess = DataAccessCGMS.getInstance(); + private boolean isIdentificationWriten = false; + String source = ""; + + + public CGMSDataWriter(OutputWriter outputWriter) + { + this.outputWriter = outputWriter; + valuesModel = (CGMSValuesTableModel) dataAccess.getDeviceDataHandler().getDeviceValuesTableModel(); + } + + + private void addEntry(CGMSValuesSubEntry entry) + { + this.valuesModel.addEntry(entry); + + this.valuesModel.fireTableDataChanged(); + } + + + /** + * Write Object + * @param _type + * @param _datetime + * @param _value + * @return + */ + public boolean writeObject(String _type, ATechDate _datetime, String _value) + { + return this.writeObject(_type, _datetime, _value, StringUtils.isNotBlank(_value)); + } + + /** + * Write Object + * @param _type + * @param _datetime + * @param _value + * @return + */ + public boolean writeObject(String _type, ATechDate _datetime, String _value, boolean isNumericValue) + { + if (this.containsKey(_type)) + { + DeviceTempValues dtv = this.get(_type); + + if (StringUtils.isNotBlank(_value)) + { + boolean numeric = false; + + if (dtv.getIsNumericValue() != null) + { + numeric = dtv.getIsNumericValue().booleanValue(); + } + else + { + numeric = isNumericValue; + } + + if (numeric) + { + _value = _value.replace(',', '.'); + } + } + + OutputWriterData owd = dtv.getData(_datetime, _value); + + writeObject(owd); + + return true; + } + else + { + log.warn("Unknown key:" + _type); + return false; + } + } + + + public boolean writeObject(String _type, ATechDate _datetime, Number _value) + { + if (this.containsKey(_type)) + { + DeviceTempValues dtv = this.get(_type); + + OutputWriterData owd = dtv.getData(_datetime, _value.toString()); + + writeObject(owd); + + return true; + } + else + { + log.warn("Unknown key:" + _type); + return false; + } + } + + + public void writeObject(OutputWriterData owd) + { + if (owd instanceof CGMSValuesSubEntry) + { + + CGMSValuesSubEntry cvse = (CGMSValuesSubEntry)owd; + + System.out.println("Value: " + cvse); + addEntry(cvse); + } + else + { + throw new NotImplementedException(); + } + + } + + + /** + * Write Object + * + * @param _type + * @param _datetime + * @param code_type + * @param _value + * @return + */ +// public boolean writeObject(String _type, ATechDate _datetime, int code_type, String _value) +// { +// if (this.containsKey(_type)) +// { +// if (_value != null) +// { +// _value = _value.replace(',', '.'); +// } +// DeviceTempValues dtv = this.get(_type); +// +// //if (!this.is_silent_mode) +// { +// // output_writer.writeData(dtv.getData(_datetime, code_type, _value)); +// } +// return true; +// } +// else +// { +// log.warn("Unknown key:" + _type); +// return false; +// } +// } + + +} Modified: trunk/ggc-cgm/src/ggc/cgms/data/CGMSTempValues.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/CGMSTempValues.java 2015-02-11 16:34:43 UTC (rev 1350) +++ trunk/ggc-cgm/src/ggc/cgms/data/CGMSTempValues.java 2015-03-13 19:59:54 UTC (rev 1351) @@ -1,12 +1,15 @@ package ggc.cgms.data; import com.atech.utils.data.CodeEnum; +import com.atech.utils.data.CodeEnumWithTranslation; import ggc.cgms.data.defs.CGMSBaseDataType; import ggc.cgms.data.defs.CGMSObject; +import ggc.cgms.util.DataAccessCGMS; import ggc.plugin.data.DeviceTempValues; import ggc.plugin.output.OutputWriterData; import com.atech.utils.data.ATechDate; +import sun.reflect.generics.reflectiveObjects.NotImplementedException; /** * Application: GGC - GNU Gluco Control @@ -37,34 +40,60 @@ public class CGMSTempValues extends DeviceTempValues { - /** - * @param objectType - * @param baseType - * @param subType - */ - public CGMSTempValues(int objectType, int baseType, int subType) + + + public CGMSTempValues(int _object_type, int _base_type, Boolean isNumericValue) { + this(_object_type, _base_type, 0, null, isNumericValue); + } - super(objectType, baseType, subType, null); + public CGMSTempValues(int _object_type, CodeEnumWithTranslation _base_type, Boolean isNumericValue) + { + this(_object_type, _base_type.getCode(), 0, null, isNumericValue); } +// public CGMSTempValues(int _object_type, CodeEnumWithTranslation _base_type, +// Boolean isNumericValue) +// { +// this(_object_type, _base_type.getCode(), _sub_type.getCode(), null, isNumericValue); +// } +// public CGMSTempValues(int _object_type, int _base_type, Boolean isNumericValue) +// { +// this(_object_type, _base_type, 0, null, isNumericValue); +// } + +// public CGMSTempValues(int _object_type, CodeEnumWithTranslation _base_type, Boolean isNumericValue) +// { +// this(_object_type, _base_type.getCode(), 0, null, isNumericValue); +// } + + + + public CGMSTempValues(CGMSObject objectType, CGMSBaseDataType baseType) + { + this(objectType.getCode(), baseType.getCode(), 0, null, true); + } + /** + * IMPORTANT: Sub type is written as value and not as real subType. + * * @param objectType * @param baseType * @param subType */ public CGMSTempValues(CGMSObject objectType, CGMSBaseDataType baseType, CodeEnum subType) { - super(objectType.getCode(), baseType.getCode(), subType.getCode(), null); + this(objectType.getCode(), baseType.getCode(), 0, "" + subType.getCode(), true); } - /** - * @param objectType - * @param baseType - * @param subType - * @param _value_template - */ + // not used here + public CGMSTempValues(CGMSObject objectType, CGMSBaseDataType baseType, Boolean isNumericValue) + { + this(objectType.getCode(), baseType.getCode(), 0, null, isNumericValue); + } + + // not used here public CGMSTempValues(int objectType, int baseType, int subType, String _value_template, Boolean isNumericValue) { super(objectType, baseType, subType, _value_template, isNumericValue); @@ -74,12 +103,12 @@ /** * @param objectType * @param baseType - * @param subType + * * @param _value_template */ - public CGMSTempValues(CGMSObject objectType, CGMSBaseDataType baseType, int subType, String _value_template, Boolean isNumericValue) + public CGMSTempValues(CGMSObject objectType, CGMSBaseDataType baseType, String _value_template, Boolean isNumericValue) { - super(objectType.getCode(), baseType.getCode(), subType, _value_template, isNumericValue); + super(objectType.getCode(), baseType.getCode(), 0, _value_template, isNumericValue); } @@ -98,10 +127,10 @@ * @param objectType * @param baseType */ - public CGMSTempValues(CGMSObject objectType, CGMSBaseDataType baseType) - { - super(objectType.getCode(), baseType.getCode()); - } +// public CGMSTempValues(CGMSObject objectType, CGMSBaseDataType baseType) +// { +// super(objectType.getCode(), baseType.getCode()); +// } @@ -115,71 +144,140 @@ * getData */ @Override - public OutputWriterData getData(ATechDate dt, int subType, String _value) + public OutputWriterData getData(ATechDate dt, Integer subType, String _value) { String val = _value; - int stype = subType; + Integer stype = subType; - if (stype == -1) + if (stype == null) { stype = this.sub_type; } - if (val == null) - { - val = ""; - } +// if (val == null) +// { +// val = ""; +// } if (this.object_type == CGMSObject.Base.getCode()) { - CGMSValuesEntry pve = new CGMSValuesEntry(); - /* - * pve.se.setBaseType(this.base_type); - * pve.setSubType(stype); - * pve.setDateTimeObject(dt); - * if (this.value_template==null) - * { - * pve.setValue(val); - * } - * else - * { - * pve.setValue(this.value_template + "=" + val); - * } - */ - return pve; + new NotImplementedException(); +// CGMSValuesEntry cve = new CGMSValuesEntry(); +// +// cve.setType(this.base_type); +// //cve.set.setSubType(stype); +// cve.setDateTimeObject(dt); +// +// cve.va +// +// if (this.value_template==null) +// { +// cve.set.setValue(val); +// } +// else +// { +// pve.setValue(this.value_template + "=" + val); +// } +// +// return pve; } - /* - * else if (this.object_type == CGMSTempValues.OBJECT_BASE_SET_SUBTYPE) - * { - * PumpValuesEntry pve = new PumpValuesEntry(); - * pve.setBaseType(this.base_type); - * pve.setSubType(Integer.parseInt(val)); - * pve.setDateTimeObject(dt); - * return pve; - * } - */ else if (this.object_type == CGMSObject.SubEntry.getCode()) { + CGMSValuesSubEntry sub = new CGMSValuesSubEntry(); + sub.setDateTimeObject(dt); + sub.setType(this.base_type); + sub.setSource(DataAccessCGMS.getInstance().getSourceDevice()); - // SUB_TYPE= ; VALUE=; ISIG= + if (val==null) + { + if (subType!=null) + sub.value = subType; + else + sub.value = 0; + } + else + { + sub.value = Integer.parseInt(val); + } - /* - * CGMSValuesSubEntry pvex = new CGMSValuesSubEntry(); - * pvex.setType(this.base_type); - * pvex.setDateTimeObject(dt); - * if (this.value_template==null) - * { - * pvex.setValue(val); - * } - * else - * { - * pvex.setValue(this.value_template + "=" + val); - * } - * return pvex; - */ +// if (this.value_template==null) +// { +// +// } +// else +// { +// sub.setValue(this.value_template + "=" + val); +// } + + return sub; + } return null; } + private void test() + { +// String val = _value; +// int stype = _sub_type; +// +// if (stype == -1) +// { +// stype = this.sub_type; +// } +// +// if (val == null) +// { +// val = ""; +// } +// +// if (this.object_type == PumpTempValues.OBJECT_BASE) +// { +// PumpValuesEntry pve = new PumpValuesEntry(); +// pve.setBaseType(this.base_type); +// pve.setSubType(stype); +// pve.setDateTimeObject(dt); +// +// if (this.value_template == null) +// { +// pve.setValue(val); +// } +// else +// { +// pve.setValue(this.value_template + "=" + val); +// } +// +// return pve; +// } +// else if (this.object_type == PumpTempValues.OBJECT_BASE_SET_SUBTYPE) +// { +// PumpValuesEntry pve = new PumpValuesEntry(); +// pve.setBaseType(this.base_type); +// pve.setSubType(Integer.parseInt(val)); +// pve.setDateTimeObject(dt); +// +// return pve; +// } +// else if (this.object_type == PumpTempValues.OBJECT_EXT) +// { +// PumpValuesEntryExt pvex = new PumpValuesEntryExt(); +// pvex.setType(this.base_type); +// pvex.setDateTimeObject(dt); +// +// if (this.value_template == null) +// { +// pvex.setValue(val); +// } +// else +// { +// pvex.setValue(this.value_template + "=" + val); +// } +// +// return pvex; +// } +// +// return null; + + } + } Modified: trunk/ggc-cgm/src/ggc/cgms/data/CGMSValueConfig.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/CGMSValueConfig.java 2015-02-11 16:34:43 UTC (rev 1350) +++ trunk/ggc-cgm/src/ggc/cgms/data/CGMSValueConfig.java 2015-03-13 19:59:54 UTC (rev 1351) @@ -1,5 +1,6 @@ package ggc.cgms.data; +import ggc.plugin.data.DeviceValueConfigEntry; import ggc.plugin.output.OutputWriterConfigData; /** @@ -28,7 +29,7 @@ * Author: Andy {an...@at...} */ -public class CGMSValueConfig implements OutputWriterConfigData +public class CGMSValueConfig extends DeviceValueConfigEntry { String key; Modified: trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesEntry.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesEntry.java 2015-02-11 16:34:43 UTC (rev 1350) +++ trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesEntry.java 2015-03-13 19:59:54 UTC (rev 1351) @@ -295,7 +295,7 @@ * } * case 3: // value * { - * //return this.getValue(); + * //return this.getCode(); * return getValuePrint(); * } * case 4: // additional @@ -515,6 +515,7 @@ pdh.setPerson_id(this.person_id); pdh.setChanged(System.currentTimeMillis()); + Long _id = (Long) sess.save(pdh); tx.commit(); Modified: trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesExtendedEntry.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesExtendedEntry.java 2015-02-11 16:34:43 UTC (rev 1350) +++ trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesExtendedEntry.java 2015-03-13 19:59:54 UTC (rev 1351) @@ -2,6 +2,7 @@ import ggc.cgms.data.defs.extended.CGMSExtendedDataType; import ggc.cgms.util.CGMSUtil; +import ggc.cgms.util.DataAccessCGMS; import ggc.core.db.hibernate.GGCHibernateObject; import ggc.core.db.hibernate.cgms.CGMSDataExtendedH; import ggc.plugin.data.DeviceValuesEntry; @@ -36,6 +37,7 @@ public CGMSValuesExtendedEntry() { super(); + this.source = DataAccessCGMS.getInstance().getSourceDevice(); } /** @@ -229,8 +231,6 @@ CGMSDataExtendedH ext = new CGMSDataExtendedH(); - ext.setId(this.id); - this.saveDbData(ext); Long _id = (Long) sess.save(ext); @@ -259,9 +259,9 @@ { Transaction tx = sess.beginTransaction(); // System.out.println("id: " + old_id); - CGMSDataExtendedH ext = (CGMSDataExtendedH) sess.get(CGMSDataExtendedH.class, new Long(this.id)); + CGMSDataExtendedH ext = (CGMSDataExtendedH) sess.get(CGMSDataExtendedH.class, this.id); - ext.setId(this.id); + //ext.setId(this.id); this.saveDbData(ext); @@ -275,7 +275,7 @@ { Transaction tx = sess.beginTransaction(); - CGMSDataExtendedH ch = (CGMSDataExtendedH) sess.get(CGMSDataExtendedH.class, new Long(this.getId())); + CGMSDataExtendedH ch = (CGMSDataExtendedH) sess.get(CGMSDataExtendedH.class, this.getId()); sess.delete(ch); tx.commit(); @@ -290,7 +290,7 @@ public boolean DbGet(Session sess) throws Exception { - CGMSDataExtendedH ch = (CGMSDataExtendedH) sess.get(CGMSDataExtendedH.class, new Long(this.getId())); + CGMSDataExtendedH ch = (CGMSDataExtendedH) sess.get(CGMSDataExtendedH.class, this.getId()); loadDbData(ch); Modified: trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesSubEntry.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesSubEntry.java 2015-02-11 16:34:43 UTC (rev 1350) +++ trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesSubEntry.java 2015-03-13 19:59:54 UTC (rev 1351) @@ -48,32 +48,37 @@ private static final Log log = LogFactory.getLog(CGMSValuesSubEntry.class); - /** - * Sub Entry Type: CGMS BG Reading - */ - public static final int CGMS_BG_READING = 1; +// /** +// * Sub Entry Type: CGMS BG Reading +// */ +// public static final int CGMS_BG_READING = 1; +// +// /** +// * Sub Entry Type: Meter Calibration Reading +// */ +// public static final int METER_CALIBRATION_READING = 2; +// +// /** +// * +// */ +// public static final int CGMS_ALARM = 3; +// +// /** +// * +// */ +// public static final int CGMS_EVENT = 4; +// +// /** +// * +// */ +// public static final int CGMS_ERROR = 5; +// +// public static final int CGMS_TREND = 6; - /** - * Sub Entry Type: Meter Calibration Reading - */ - public static final int METER_CALIBRATION_READING = 2; - /** - * - */ - public static final int CGMS_ALARM = 3; - /** - * - */ - public static final int CGMS_EVENT = 4; - /** - * - */ - public static final int CGMS_ERROR = 5; - public static final int CGMS_TREND = 6; /** * DateTime @@ -123,6 +128,7 @@ */ public CGMSValuesSubEntry() { + this.source = DataAccessCGMS.getInstance().getSourceDevice(); } /** @@ -137,6 +143,7 @@ this.time = Integer.parseInt(entry.substring(0, entry.indexOf("="))); this.value = Integer.parseInt(entry.substring(entry.indexOf("=") + 1)); this.setType(type); + this.source = DataAccessCGMS.getInstance().getSourceDevice(); this.datetime = time * 10 + type; // time_only = true; @@ -163,6 +170,8 @@ this.datetime = dt; date = (int) (dt / 1000000); time = (int) (dt - date * 1000000); + + System.out.println("Date: " + date + ", Time: " + time); } @Override @@ -203,7 +212,7 @@ case DeviceEvent: return "?? " + this.value; - case MeterCalibration: + case SensorCalibration: case SensorReading: return DataAccessCGMS.getInstance().getDisplayedBGString("" + this.value); @@ -245,6 +254,7 @@ @Override public void setDateTimeObject(ATechDate dt) { + this.setDateTime(dt.getATDateTimeAsLong()); } public String getDVEName() Modified: trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesTableModel.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesTableModel.java 2015-02-11 16:34:43 UTC (rev 1350) +++ trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesTableModel.java 2015-03-13 19:59:54 UTC (rev 1351) @@ -60,19 +60,15 @@ String old_key = null; CGMSValuesEntry current_main = null; - int i = 0; /** * Add Entry - * + * * @param mve DeviceValuesEntry instance */ @Override public void addEntry(DeviceValuesEntryInterface mve) { - // if (i>5) - // return; - if (mve instanceof CGMSValuesSubEntry) { @@ -80,6 +76,8 @@ String key = se.date + "_" + se.getType(); + //System.out.println("SE: " + key); + if (old_key == null) { old_key = key; @@ -88,19 +86,26 @@ if (!old_key.equals(key)) { - processDeviceValueEntry(this.current_main); - this.dl_data.add(this.current_main); + addEntryAndProcess(this.current_main); - if (this.shouldBeDisplayed(this.current_main.getStatus())) - { - this.displayed_dl_data.add(this.current_main); - Collections.sort(displayed_dl_data); - } - this.fireTableDataChanged(); +// processDeviceValueEntry(this.current_main); +// this.dl_data.add(this.current_main); +// +// if (this.shouldBeDisplayed(this.current_main.getStatus())) +// { +// //System.out.println("Should be displayed: " ); +// this.displayed_dl_data.add(this.current_main); +// Collections.sort(displayed_dl_data); +// } +//// else +//// { +//// System.out.println("Should NOT be displayed: " ); +//// } +// this.fireTableDataChanged(); this.current_main = new CGMSValuesEntry(); - i++; + //i++; } if (current_main.isEmpty()) @@ -128,52 +133,38 @@ CGMSValuesExtendedEntry ext = (CGMSValuesExtendedEntry) mve; - processDeviceValueEntry(ext); - this.dl_data.add(ext); + addEntryAndProcess(ext); - if (this.shouldBeDisplayed(ext.getStatus())) - { - this.displayed_dl_data.add(ext); - Collections.sort(displayed_dl_data); - } - this.fireTableDataChanged(); +// processDeviceValueEntry(ext); +// this.dl_data.add(ext); +// +// if (this.shouldBeDisplayed(ext.getStatus())) +// { +// this.displayed_dl_data.add(ext); +// Collections.sort(displayed_dl_data); +// } +// this.fireTableDataChanged(); } - /* - * if (this.htable.containsKey(key)) - * { - * this.htable.get(key).addSubEntry(se); - * } - * else - * { - * CGMSValuesEntry cve = new CGMSValuesEntry(); - * cve.setDateTimeObject(new ATechDate(ATechDate.FORMAT_DATE_AND_TIME_S, - * se.datetime)); - * cve.addSubEntry(se); - * this.htable.put(key, cve); - * } - */ + } - // if se. - // getDate(se.datetime); + private void addEntryAndProcess(DeviceValuesEntryInterface mve) + { + processDeviceValueEntry(mve); + this.dl_data.add(mve); - // System.out.println("HTable: " + htable.size()); + if (this.shouldBeDisplayed(mve.getStatus())) + { + this.displayed_dl_data.add(mve); + Collections.sort(displayed_dl_data); + } + this.fireTableDataChanged(); - /* - * System.out.println("."); - * processDeviceValueEntry(mve); - * this.dl_data.add(mve); - * if (this.shouldBeDisplayed(mve.getStatus())) - * { - * this.displayed_dl_data.add(mve); - * Collections.sort(displayed_dl_data); - * } - * this.fireTableDataChanged(); - */ } + /** * Finish Reading */ Modified: trunk/ggc-cgm/src/ggc/cgms/data/cfg/CGMSConfigurationDefinition.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/cfg/CGMSConfigurationDefinition.java 2015-02-11 16:34:43 UTC (rev 1350) +++ trunk/ggc-cgm/src/ggc/cgms/data/cfg/CGMSConfigurationDefinition.java 2015-03-13 19:59:54 UTC (rev 1351) @@ -4,6 +4,7 @@ import ggc.cgms.manager.CGMSManager; import ggc.plugin.cfg.DeviceConfigurationDefinition; +import java.util.List; import java.util.Vector; import com.atech.graphics.dialogs.selector.SelectableInterface; @@ -83,9 +84,9 @@ * * @return */ - public Vector<? extends SelectableInterface> getSupportedDevices() + public List<SelectableInterface> getSupportedDevices() { - return CGMSManager.getInstance().getSupportedDevices(); + return CGMSManager.getInstance().getSupportedDevicesForSelector(); } /** @@ -98,4 +99,15 @@ return "CGMSTool_"; } + public Object getSpecificDeviceInstance(String company, String deviceName) + { + Object device = CGMSManager.getInstance().getDeviceV2(company, deviceName); + + if (device==null) + { + device = CGMSManager.getInstance().getDeviceV1(company, deviceName); + } + + return device; + } } Modified: trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSBaseDataType.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSBaseDataType.java 2015-02-11 16:34:43 UTC (rev 1350) +++ trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSBaseDataType.java 2015-03-13 19:59:54 UTC (rev 1351) @@ -58,15 +58,18 @@ None(0, "NONE"), // SensorReading(1, "CGMS_READING"), // - MeterCalibration(2, "CALIBRATION_READINGS"), // + SensorCalibration(2, "CALIBRATION_READINGS"), // DeviceAlarm(3, "CGMS_DATA_ALARM"), // DeviceEvent(4, "CGMS_DATA_EVENT"), // DeviceError(5, "CGMS_DATA_ERROR"), // SensorReadingTrend(6, "CGMS_READING_TREND"), // + TransmiterEvent(7, "CGMS_TRANSMITER_EVENT") ; + ; + static Hashtable<String, CGMSBaseDataType> translationMapping = new Hashtable<String, CGMSBaseDataType>(); static Hashtable<Integer, CGMSBaseDataType> codeMapping = new Hashtable<Integer, CGMSBaseDataType>(); Added: trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSConfigurationGroup.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSConfigurationGroup.java (rev 0) +++ trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSConfigurationGroup.java 2015-03-13 19:59:54 UTC (rev 1351) @@ -0,0 +1,89 @@ +package ggc.cgms.data.defs; + +import java.util.HashMap; +import java.util.Map; + +import com.atech.i18n.I18nControlAbstract; +import com.atech.utils.data.CodeEnumWithTranslation; + +import ggc.cgms.util.DataAccessCGMS; +import ggc.plugin.data.enums.DeviceConfigurationGroup; + + +/** + * Created by andy on 27.02.15. + */ +public enum CGMSConfigurationGroup implements DeviceConfigurationGroup +{ + General(1, "GROUP_GENERAL"), // + Device(2, "GROUP_DEVICE"), // + + Transmiter(3, "GROUP_TRANSMITER"), // ???? + Warnings(4, "GROUP_WARNINGS"), // + + Sound(6, "GROUP_SOUND"), // + + + + + Other(20, "GROUP_OTHER"), // + +; + + static Map<String, CodeEnumWithTranslation> translationMapping = new HashMap<String, CodeEnumWithTranslation>(); + static Map<Integer, CGMSConfigurationGroup> codeMapping = new HashMap<Integer, CGMSConfigurationGroup>(); + + + int code; + String i18nKey; + String translation; + + + static + { + I18nControlAbstract ic = DataAccessCGMS.getInstance().getI18nControlInstance(); + + for (CGMSConfigurationGroup pbt : values()) + { + pbt.setTranslation(ic.getMessage(pbt.i18nKey)); + translationMapping.put(pbt.getTranslation(), pbt); + codeMapping.put(pbt.code, pbt); + } + + } + + + + + CGMSConfigurationGroup(int code, String i18nKey) + { + this.code = code; + this.i18nKey = i18nKey; + } + + + public String getTranslation() + { + return translation; + } + + public void setTranslation(String translation) + { + this.translation = translation; + } + + public int getCode() + { + return code; + } + + public String getI18nKey() + { + return i18nKey; + } + + + + + +} Modified: trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSDeviceDefinition.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSDeviceDefinition.java 2015-02-11 16:34:43 UTC (rev 1350) +++ trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSDeviceDefinition.java 2015-03-13 19:59:54 UTC (rev 1351) @@ -5,9 +5,13 @@ import ggc.plugin.data.enums.DeviceCompanyDefinition; import ggc.plugin.data.enums.DeviceHandlerType; -import ggc.plugin.device.DeviceDefinition; +import ggc.plugin.data.enums.DevicePortParameterType; +import ggc.plugin.data.enums.DeviceProgressStatus; +import ggc.plugin.device.v2.DeviceDefinition; +import ggc.plugin.device.DownloadSupportType; import ggc.plugin.device.impl.animas.enums.AnimasDeviceType; import ggc.plugin.manager.DeviceImplementationStatus; +import ggc.plugin.protocol.DeviceConnectionProtocol; /** * Created by andy on 06.02.15. @@ -16,8 +20,8 @@ { OneTouchVibe(40006, "OneTouch Vibe", "an_vibe_cgms.jpg", "INSTRUCTIONS_ANIMAS_V2", AnimasDeviceType.An... [truncated message content] |
From: <and...@us...> - 2015-04-26 09:58:50
|
Revision: 1355 http://sourceforge.net/p/ggc/code/1355 Author: andyrozman Date: 2015-04-26 09:58:35 +0000 (Sun, 26 Apr 2015) Log Message: ----------- Checkin before 0.6 Complete - Update Client/Server - Startup change - CGMS: Enums, Graph, Viewr - CGMS: Animas Implementation finalize - CGMS: Dexcom G4 changes (refactoring) - Core: Stocks - Core: i18n Fix - Desktop: Main window fix, Docs, Config - Help: Doc - Meter: Data handling - Nutri: Data handling, cleanup of DA - PluginBase: Data handling, Enums, Communication handlers, Ports - PluginBase: Animas implementation finalized - Pump Tool: Enums, Data handler, Data Writter - Pump: Animas finalization Modified Paths: -------------- trunk/ggc-cgm/doc/Changelog trunk/ggc-cgm/doc/TO-DO_CGMTool.txt trunk/ggc-cgm/pom.xml trunk/ggc-cgm/src/GGC_CGMSTool_en.properties trunk/ggc-cgm/src/ggc/cgms/data/CGMSDailyStatistics.java trunk/ggc-cgm/src/ggc/cgms/data/CGMSDataHandler.java trunk/ggc-cgm/src/ggc/cgms/data/CGMSDataReader.java trunk/ggc-cgm/src/ggc/cgms/data/CGMSDataWriter.java trunk/ggc-cgm/src/ggc/cgms/data/CGMSTempValues.java trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesEntry.java trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesExtendedEntry.java trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesSubEntry.java trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesTableModel.java trunk/ggc-cgm/src/ggc/cgms/data/db/GGC_CGMSDb.java trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSAlarms.java trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSBaseDataType.java trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSConfigurationGroup.java trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSDeviceDefinition.java trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSErrors.java trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSEvents.java trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSObject.java trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSTransmiterEvents.java trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSTrendArrow.java trunk/ggc-cgm/src/ggc/cgms/data/defs/extended/CGMSExtendedDataType.java trunk/ggc-cgm/src/ggc/cgms/device/AbstractSerialCGMS.java trunk/ggc-cgm/src/ggc/cgms/device/CGMSDeviceInstanceWithHandler.java trunk/ggc-cgm/src/ggc/cgms/device/animas/AnimasCGMSHandler.java trunk/ggc-cgm/src/ggc/cgms/device/animas/TODO_animas_CGMS.txt trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/AnimasCGMSDeviceReader.java trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/converter/AnimasDexcomDataConverter.java trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/data/AnimasCGMSDeviceData.java trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/data/dto/CGMSSettings.java trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/data/enums/AnimasCGMSWarningType.java trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/handler/AnimasDexcomDataHandler.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/file/FRC_DexcomTxt_DM3.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/file/FRC_DexcomXml_DM3.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/DexcomDevice.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/data/output/ConsoleOutputParser.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/data/output/DataOutputParserInterface.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/data/output/DataOutputParserType.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/data/output/GGCOutputParser.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/DexcomG4Api.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/DexcomG4Commands.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/BytesConverterAbstract.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/BytesToDatabasePageHeaderConverter.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/BytesToDatabasePagesConverter.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/ConverterType.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/ElementToPartitionInfoConverter.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPageToEGVDataConverter.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPageToFileConverter.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPageToUserEventDataConverter.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPagesToInsertionTimeConverter.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPagesToMeterConverter.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/converter/data/DataPagesToXmlRecordConverter.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/EGVRecord.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/InsertionTimeRecord.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/ManufacturingDataRecord.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/MeterDataRecord.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/PCParameterRecord.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/UserEventDataRecord.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/XmlRecord.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/parsers/DateParser.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/parsers/DexcomCommandParserInterface.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/parsers/EmptyParser.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/parsers/IntegerParser.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/parsers/ParserType.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/parsers/ParserUtils.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/parsers/StringUTF8Parser.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/data/parsers/XmlParser.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/enums/BlindedModeType.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/enums/ClockModeType.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/enums/DeviceModeType.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/enums/Exercise.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/enums/GlucoseUnitType.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/enums/Health.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/enums/LanguageType.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/enums/NoiseMode.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/enums/ReceiverRecordType.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/enums/SensorSessionState.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/enums/TrendArrow.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/enums/UserEvent.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/internal/DatabasePage.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/internal/DatabasePageHeader.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/internal/DatabasePageRange.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/internal/DatabaseRecord.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/internal/GenericReceiverRecordAbstract.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/internal/IGenericReceiverRecord.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/internal/Partition.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/internal/PartitionInfo.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/receivers/g4receiver/util/DexcomUtils.java trunk/ggc-cgm/src/ggc/cgms/device/freestyle/FreestyleCGMS.java trunk/ggc-cgm/src/ggc/cgms/device/freestyle/FreestyleNavigator.java trunk/ggc-cgm/src/ggc/cgms/device/minimed/MiniMedCGMS.java trunk/ggc-cgm/src/ggc/cgms/device/minimed/MiniMedCGMSGold.java trunk/ggc-cgm/src/ggc/cgms/device/minimed/MiniMedRealTime.java trunk/ggc-cgm/src/ggc/cgms/device/minimed/file/MinimedCareLinkCGMS.java trunk/ggc-cgm/src/ggc/cgms/gui/viewer/CGMSDataDialog.java trunk/ggc-cgm/src/ggc/cgms/gui/viewer/CGMSDataTableModel.java trunk/ggc-cgm/src/ggc/cgms/manager/CGMSDevicesIds.java trunk/ggc-cgm/src/ggc/cgms/manager/CGMSManager.java trunk/ggc-cgm/src/ggc/cgms/manager/company/Dexcom.java trunk/ggc-cgm/src/ggc/cgms/plugin/BackupRestoreCGMSHandler.java trunk/ggc-cgm/src/ggc/cgms/test/CGMSConsoleTester.java trunk/ggc-cgm/src/ggc/cgms/test/TestAnimasCGMS.java trunk/ggc-cgm/src/ggc/cgms/util/CGMSUtil.java trunk/ggc-cgm/src/ggc/cgms/util/DataAccessCGMS.java trunk/ggc-cgm/src/ggc/cgms/util/GGC_CGMS_ICRunner.java trunk/ggc-core/docs/Changelog trunk/ggc-core/src/GGC_en.properties trunk/ggc-core/src/GGC_si.properties trunk/ggc-core/src/ggc/core/data/defs/StockTypeBase.java trunk/ggc-core/src/ggc/core/data/defs/StockUsageUnit.java trunk/ggc-core/src/ggc/core/print/PrintExtendedMonthlyReport.java trunk/ggc-core/src/ggc/core/util/DataAccess.java trunk/ggc-core/src/ggc/core/util/GGCI18nControl.java trunk/ggc-core/src/ggc/core/util/GGCI18nControlContext.java trunk/ggc-core/src/ggc/shared/ratio/RatioExtendedDialog.java trunk/ggc-desktop/data/update/GGC_Update.properties trunk/ggc-desktop/data/update/version/GGC_Update_11_0.5.0.3.properties trunk/ggc-desktop/data/update/version/Versions.txt trunk/ggc-desktop/doc/BUGS.txt trunk/ggc-desktop/doc/Changelog trunk/ggc-desktop/doc/How_Can_I_Help.txt trunk/ggc-desktop/doc/TO-DO Detailed.txt trunk/ggc-desktop/src/ggc/gui/MainFrame.java trunk/ggc-desktop/src/ggc/gui/StatusBar.java trunk/ggc-desktop/src/ggc/gui/little/StatusBarL.java trunk/ggc-desktop/src/ggc/gui/panels/prefs/AbstractPrefOptionsPanel.java trunk/ggc-desktop/src/ggc/gui/panels/prefs/PrefPrintingPane.java trunk/ggc-master-pom/pom.xml trunk/ggc-meter/src/ggc/meter/data/MeterDataHandler.java trunk/ggc-meter/src/ggc/meter/data/MeterDataReader.java trunk/ggc-meter/src/ggc/meter/data/MeterValuesEntry.java trunk/ggc-meter/src/ggc/meter/data/MeterValuesExtTableModel.java trunk/ggc-meter/src/ggc/meter/data/MeterValuesTableModel.java trunk/ggc-meter/src/ggc/meter/util/DataAccessMeter.java trunk/ggc-nutri/docs/Changelog trunk/ggc-nutri/src/ggc/nutri/util/DataAccessNutri.java trunk/ggc-plugin_base/docs/Changelog trunk/ggc-plugin_base/src/GGCPlugin_en.properties trunk/ggc-plugin_base/src/ggc/plugin/comm/NRSerialCommunicationHandler.java trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceDataHandler.java trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceValuesEntry.java trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceValuesEntryInterface.java trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceValuesTable.java trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceValuesTableModel.java trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceValuesWriter.java trunk/ggc-plugin_base/src/ggc/plugin/data/enums/ClockModeType.java trunk/ggc-plugin_base/src/ggc/plugin/data/enums/DeviceCompanyDefinition.java trunk/ggc-plugin_base/src/ggc/plugin/data/enums/DeviceHandlerType.java trunk/ggc-plugin_base/src/ggc/plugin/data/enums/GlucoseUnitType.java trunk/ggc-plugin_base/src/ggc/plugin/data/enums/PlugInExceptionType.java trunk/ggc-plugin_base/src/ggc/plugin/data/progress/ProgressData.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/comm/AnimasCommProtocolAbstract.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/comm/AnimasCommProtocolV2.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/converter/AnimasAbstractDataConverter.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/data/AnimasDeviceData.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/data/AnimasDevicePacket.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/enums/AnimasDataType.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/enums/AnimasSoundType.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/enums/advsett/SoundValueType.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/handler/AnimasDataConverter.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/util/AnimasUtils.java trunk/ggc-plugin_base/src/ggc/plugin/gui/DeviceDisplayDataDialog.java trunk/ggc-plugin_base/src/ggc/plugin/gui/DeviceInstructionsDialog.java trunk/ggc-plugin_base/src/ggc/plugin/gui/DeviceReaderRunner.java trunk/ggc-plugin_base/src/ggc/plugin/protocol/reader/AbstractDeviceReader.java trunk/ggc-plugin_base/src/ggc/plugin/test/TestDeviceInstructions.java trunk/ggc-plugin_base/src/ggc/plugin/util/DataAccessPlugInBase.java trunk/ggc-pump/docs/Changelog trunk/ggc-pump/src/ggc/pump/data/PumpDataHandler.java trunk/ggc-pump/src/ggc/pump/data/PumpValuesEntry.java trunk/ggc-pump/src/ggc/pump/data/PumpValuesEntryExt.java trunk/ggc-pump/src/ggc/pump/data/PumpValuesEntryProfile.java trunk/ggc-pump/src/ggc/pump/data/PumpValuesTableModel.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpAdditionalDataType.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpAlarms.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpBasalType.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpBaseType.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpBolusType.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpConfigurationGroup.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpErrors.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpEvents.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpReport.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/converter/AnimasBaseDataV2Converter.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/data/AnimasPumpDeviceData.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/data/dto/BolusEntry.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/data/dto/BolusExtEntry.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/data/enums/AnimasBolusSettingSubType.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/handler/AnimasBaseDataV2Handler.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/handler/AnimasPumpDataWriter.java trunk/ggc-pump/src/ggc/pump/print/PrintPumpDataAbstract.java trunk/ggc-pump/src/ggc/pump/util/DataAccessPump.java Added Paths: ----------- trunk/ggc-cgm/src/ggc/cgms/data/graph/ trunk/ggc-cgm/src/ggc/cgms/data/graph/CGMSGraphViewDaily.java trunk/ggc-cgm/src/ggc/cgms/data/writer/ trunk/ggc-cgm/src/ggc/cgms/data/writer/CGMSValuesWriter.java trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/handler/AnimasCGMSDataWriter.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/DexcomHandler.java trunk/ggc-desktop/data/update/version/GGC_Update_12_0.5.0.3-1.properties trunk/ggc-desktop/data/update/version/GGC_Update_13_0.6.properties trunk/ggc-desktop/data/update/version/xml/ trunk/ggc-desktop/src/icons/led_blue.gif trunk/ggc-help/docs/ trunk/ggc-help/docs/HelpSupportInGGC.doc trunk/ggc-plugin_base/src/ggc/plugin/comm/ports/ trunk/ggc-plugin_base/src/ggc/plugin/comm/ports/CommunicationPortDiscovery.java trunk/ggc-plugin_base/src/ggc/plugin/comm/ports/MassStorageDevice.java trunk/ggc-plugin_base/src/ggc/plugin/data/enums/DeviceEntryStatus.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/data/AnimasDeviceReplyPacket.java trunk/ggc-pump/src/ggc/pump/data/writer/ trunk/ggc-pump/src/ggc/pump/data/writer/PumpValuesWriter.java trunk/ggc-pump/src/ggc/pump/data/writer/PumpWriterDefInterface.java Removed Paths: ------------- trunk/ggc-cgm/src/ggc/cgms/data/CGMSValueConfig.java trunk/ggc-cgm/src/ggc/cgms/data/defs/CGMSDefsAbstract.java trunk/ggc-cgm/src/ggc/cgms/device/animas/AnimasCGMS.java trunk/ggc-cgm/src/ggc/cgms/device/animas/OneTouchVibe.java trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/data/AnimasCGMSDataWriter.java trunk/ggc-desktop/doc/HelpSupportInGGC.doc trunk/ggc-desktop/src/icons/led_blue.gif trunk/ggc-pump/src/ggc/pump/data/graph/writer/PumpValuesWriter.java trunk/ggc-pump/src/ggc/pump/data/graph/writer/PumpWriterDefInterface.java Modified: trunk/ggc-cgm/doc/Changelog =================================================================== --- trunk/ggc-cgm/doc/Changelog 2015-03-28 19:45:17 UTC (rev 1354) +++ trunk/ggc-cgm/doc/Changelog 2015-04-26 09:58:35 UTC (rev 1355) @@ -2,15 +2,20 @@ Changes file for GGC CGM Tool ============================== +1.3.1 [28.3.2015] + * Added Graph for CGMS + + 1.3.0 [19.2.2015] * Device Interface V2 Framework - * Animas CGMS implementation V1 + 1.2.0 [4.1.2015] * some minor changes all around * updated Lists + 1.1 [30.8.2014] * Added Dexcom G4 device * changed some classes to enums @@ -36,24 +41,30 @@ 0.5 [2.3.2010] * View data for CGMS - finalized + 0.4.3 * Dexcom mostly done * File import context testing + 0.4 * Start working on Dexcom7 * Changed I18n * PLUGIN_BASE: Required 0.4.5 + 0.3.1 [24.1.2010] - Andy * DeviceDataRetrieval done + 0.3 (16.1.2010) - Andy * List implemented + 0.2 * About Dialog implemented + 0.1 * Framework implementation Modified: trunk/ggc-cgm/doc/TO-DO_CGMTool.txt =================================================================== --- trunk/ggc-cgm/doc/TO-DO_CGMTool.txt 2015-03-28 19:45:17 UTC (rev 1354) +++ trunk/ggc-cgm/doc/TO-DO_CGMTool.txt 2015-04-26 09:58:35 UTC (rev 1355) @@ -4,41 +4,53 @@ Development of CGMS Tools runs totally independent on GGC project ================================================================== - - * I18n Files get to right state - - * Downloader: - Download / Export - - * Files: - Basic file extension selector (if we have more than two file types) - - Basic file selector (to select file) - - Password selector - - * Viewer: - See data - - Statistics + * Graphs (0.6): + - DailyGraph for DailySheet Pump Report - * Communication framework for CGM (interface that all CGMs will use) (later) - * Graphs (0.6): - Daily Graph - - DailyGraph for DailySheet Pump Report * Specific CGM models implementations: o Abbott - no support at this time o Dexcom - Dexcom 7 not supported (probably won't be done) o MiniMed (2015-16) - protocol not public (use Carelink export file) o Animas - Dexcom integration (2015) + * CGMS Configuration: + o Graphs: + - Color for background, + - Color for reading, + - Color for Calibration, + - Low Glucose Range, + - High Glucose Range + + =============================================================================== DONE * Base framework for CGM (0.4) + * Downloader: - Download / Export + * I18n Files get to right state + * List of CGMS (most of them not all) (0.4) + * Configuration and graphical interface for integration into GGC (0.5) + * Output types: o Console and file output (0.5) o GGC Db Output (for manual import) (0.5) o GGC Output (GUI integration) (0.5) + * Viewer: - See data + - Statistics + + * Graphs (0.6): + - Daily Graph + + * Communication framework for CGM (interface that all CGMs will use) (later) + * Specific CGM models implementations: o Dexcom G4 + o Animas - Dexcom integration (2015) - We support CGMS Data, and reading of configuration, but we have some + packets still not decoded. =============================================================================== @@ -46,5 +58,8 @@ DISCAREDED: * Manual adding of CGM data (data that will in future be read from CGM) (0.5) // not suported + * Files: - Basic file extension selector (if we have more than two file types) + - Basic file selector (to select file) + - Password selector Modified: trunk/ggc-cgm/pom.xml =================================================================== --- trunk/ggc-cgm/pom.xml 2015-03-28 19:45:17 UTC (rev 1354) +++ trunk/ggc-cgm/pom.xml 2015-04-26 09:58:35 UTC (rev 1355) @@ -1,79 +1,81 @@ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - <parent> - <groupId>net.sf.ggc</groupId> - <artifactId>ggc-parent</artifactId> - <version>1.0-SNAPSHOT</version> - <relativePath>../ggc-master-pom/pom.xml</relativePath> - </parent> + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>net.sf.ggc</groupId> + <artifactId>ggc-parent</artifactId> + <version>1.0-SNAPSHOT</version> + <relativePath>../ggc-master-pom/pom.xml</relativePath> + </parent> - <name>GGC CGMS Tool Project</name> + <name>GGC CGMS Tool Project</name> - <artifactId>ggc-cgms-tool</artifactId> - <version>${ggc-cgms-tool.version}</version> + <artifactId>ggc-cgms-tool</artifactId> + <version>${ggc-cgms-tool.version}</version> - <build> - <directory>target</directory> - <outputDirectory>target/classes</outputDirectory> - <finalName>${project.artifactId}-${project.version}</finalName> - <testOutputDirectory>target/test-classes</testOutputDirectory> - <sourceDirectory>src</sourceDirectory> - <scriptSourceDirectory>src</scriptSourceDirectory> - <testSourceDirectory>src/test/java</testSourceDirectory> - <resources> - <resource> - <directory>src</directory> - <filtering>true</filtering> - <excludes> - <exclude>**/*.java</exclude> - </excludes> - </resource> - </resources> - <testResources> - <testResource> - <directory>src/test/resources</directory> - </testResource> - </testResources> - </build> + <build> + <directory>target</directory> + <outputDirectory>target/classes</outputDirectory> + <finalName>${project.artifactId}-${project.version}</finalName> + <testOutputDirectory>target/test-classes</testOutputDirectory> + <sourceDirectory>src</sourceDirectory> + <scriptSourceDirectory>src</scriptSourceDirectory> + <testSourceDirectory>src/test/java</testSourceDirectory> + <resources> + <resource> + <directory>src</directory> + <filtering>true</filtering> + <excludes> + <exclude>**/*.java</exclude> + </excludes> + </resource> + </resources> + <testResources> + <testResource> + <directory>src/test/resources</directory> + </testResource> + </testResources> + </build> - <dependencies> - <dependency> - <groupId>net.sf.ggc</groupId> - <artifactId>ggc-core</artifactId> - </dependency> + <dependencies> + <dependency> + <groupId>net.sf.ggc</groupId> + <artifactId>ggc-core</artifactId> + </dependency> - <dependency> - <groupId>net.sf.ggc</groupId> - <artifactId>ggc-plugin-base</artifactId> - </dependency> + <dependency> + <groupId>net.sf.ggc</groupId> + <artifactId>ggc-plugin-base</artifactId> + </dependency> - <!-- <dependency> <groupId>org.bidib.jbidib.org.qbang.rxtx</groupId> <artifactId>rxtxcomm</artifactId> - </dependency> --> + <!-- <dependency> <groupId>org.bidib.jbidib.org.qbang.rxtx</groupId> <artifactId>rxtxcomm</artifactId> + </dependency> --> - <dependency> - <groupId>com.atech-software</groupId> - <artifactId>atech-tools</artifactId> - </dependency> + <dependency> + <groupId>com.atech-software</groupId> + <artifactId>atech-tools</artifactId> + </dependency> - <!-- NEW put into parent pom --> + <!-- NEW put into parent pom --> - <dependency> - <groupId>org.jdom</groupId> - <artifactId>jdom</artifactId> - <version>1.1</version> - </dependency> - <dependency> - <groupId>com.neuronrobotics</groupId> - <artifactId>nrjavaserial</artifactId> - </dependency> - </dependencies> + <dependency> + <groupId>org.jdom</groupId> + <artifactId>jdom</artifactId> + <version>1.1</version> + </dependency> - <properties> - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> - <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> + <dependency> + <groupId>com.neuronrobotics</groupId> + <artifactId>nrjavaserial</artifactId> + </dependency> + </dependencies> - </properties> + <properties> + + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> + + </properties> </project> Modified: trunk/ggc-cgm/src/GGC_CGMSTool_en.properties =================================================================== --- trunk/ggc-cgm/src/GGC_CGMSTool_en.properties 2015-03-28 19:45:17 UTC (rev 1354) +++ trunk/ggc-cgm/src/GGC_CGMSTool_en.properties 2015-04-26 09:58:35 UTC (rev 1355) @@ -8,7 +8,7 @@ # ###################################################################### # ### Language: English ### # ### Created by: Andy Rozman (an...@at...) ### -# ### Last change: 4th June 2011 ### +# ### Last change: 4th April 2015 ### # ### Library Version: 1.0.2 ### # ### Application Version: 0.5 ### # ###################################################################### @@ -17,7 +17,7 @@ # from any other files, since this is the Master language file. Create the # same header and specify application version number for easier changes at # later time. -# Translations should be grouped by groups as specified here. +# Translations should be grouped by groups as specified here. # Older groups are done by packages, newer by logical name. # @@ -282,3 +282,8 @@ CCFG_X_ENABLED=%s Enabled CCFG_TRANSMITER_SERIAL_NUMBER=Serial Number + +# +# !G! Graphs +# +CGMS_DAILY_GRAPH=CGMS Daily Graph \ No newline at end of file Modified: trunk/ggc-cgm/src/ggc/cgms/data/CGMSDailyStatistics.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/CGMSDailyStatistics.java 2015-03-28 19:45:17 UTC (rev 1354) +++ trunk/ggc-cgm/src/ggc/cgms/data/CGMSDailyStatistics.java 2015-04-26 09:58:35 UTC (rev 1355) @@ -1,15 +1,15 @@ package ggc.cgms.data; -import ggc.cgms.util.DataAccessCGMS; -import ggc.plugin.util.DataAccessPlugInBase; - import java.util.ArrayList; import com.atech.misc.statistics.StatisticsCollection; +import ggc.cgms.util.DataAccessCGMS; +import ggc.plugin.util.DataAccessPlugInBase; + /** * Application: GGC - GNU Gluco Control - * Plug-in: Pump Tool (support for Pump devices) + * Plug-in: CGMS Tool (support for CGMS devices) * * See AUTHORS for copyright information. * @@ -27,17 +27,19 @@ * this program; if not, write to the Free Software Foundation, Inc., 59 Temple * Place, Suite 330, Boston, MA 02111-1307 USA * - * Filename: ###---### - * Description: + * Filename: CGMSDailyStatistics + * Description: Daily Statistic for CGMS * * Author: Andy {an...@at...} */ public class CGMSDailyStatistics extends StatisticsCollection { + // public int bg_type = -1; DataAccessCGMS da_pump = DataAccessCGMS.getInstance(); + /** * Constructor */ @@ -46,6 +48,7 @@ super(DataAccessCGMS.getInstance(), new CGMSValuesSubEntry()); } + /** * Process Special Statistics * @@ -158,11 +161,13 @@ } + private boolean isCurrentlyIgnoredEntry(CGMSValuesSubEntry pve) { return false; } + private float getStandardDeviation(int type) { @@ -195,6 +200,7 @@ } + private void setBGValue(int index) { float v = this.stat_objects.get(index - 1).sum; @@ -203,11 +209,13 @@ setValue(index, new_val); } + private float getValueInternal(int index) { return this.stat_objects.get(index - 1).getStatistics(); } + private void setValue(int index, float val) { this.stat_objects.get(index - 1).sum = val; Modified: trunk/ggc-cgm/src/ggc/cgms/data/CGMSDataHandler.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/CGMSDataHandler.java 2015-03-28 19:45:17 UTC (rev 1354) +++ trunk/ggc-cgm/src/ggc/cgms/data/CGMSDataHandler.java 2015-04-26 09:58:35 UTC (rev 1355) @@ -1,14 +1,14 @@ package ggc.cgms.data; +import java.util.Hashtable; + import ggc.core.db.hibernate.DayValueH; import ggc.plugin.data.DeviceDataHandler; import ggc.plugin.util.DataAccessPlugInBase; -import java.util.Hashtable; - /** * Application: GGC - GNU Gluco Control - * Plug-in: Meter Tool (support for Meter devices) + * Plug-in: CGMS Tool (support for CGMS devices) * * See AUTHORS for copyright information. * @@ -26,8 +26,8 @@ * this program; if not, write to the Free Software Foundation, Inc., 59 Temple * Place, Suite 330, Boston, MA 02111-1307 USA * - * Filename: MeterDataHandler - * Description: Data Handler for Meter Tool + * Filename: CGMSDataHandler + * Description: Data Handler for CGMSs Tool * * Author: Andy {an...@at...} */ @@ -45,41 +45,18 @@ super(da); } - /** - * Execute export Db - * - * @see ggc.plugin.data.DeviceDataHandler#executeExportDb() - */ - /* - * public void executeExportDb() - * { - * //System.out.println("Checked entries: " + - * this.getDeviceValuesTableModel().getCheckedEntries()); - * this.m_server.setReturnData(this.getDeviceValuesTableModel(). - * getCheckedEntries(), this); - * } - */ /** - * Execute Export Other (not supported for now) - * - * @see ggc.plugin.data.DeviceDataHandler#executeExportOther() - */ - @Override - public void executeExportOther() - { - } - - /** * Create Device Values Table Model */ @Override public void createDeviceValuesTableModel() { this.m_model = new CGMSValuesTableModel(this, m_da.getSourceDevice()); // dataAccess.getSourceDevice()); - // System.out.println("Model"); + } + /** * Set Device Data * @@ -101,14 +78,12 @@ } } + /** * Set Reading Finished */ public void setReadingFinished() { - - // TODO Auto-generated method stub - } } Modified: trunk/ggc-cgm/src/ggc/cgms/data/CGMSDataReader.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/CGMSDataReader.java 2015-03-28 19:45:17 UTC (rev 1354) +++ trunk/ggc-cgm/src/ggc/cgms/data/CGMSDataReader.java 2015-04-26 09:58:35 UTC (rev 1355) @@ -1,18 +1,18 @@ package ggc.cgms.data; +import java.util.Hashtable; + +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + import ggc.cgms.data.db.GGC_CGMSDb; import ggc.cgms.util.DataAccessCGMS; import ggc.plugin.data.DeviceValuesEntryInterface; import ggc.plugin.gui.OldDataReaderAbstract; -import java.util.Hashtable; - -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; - /** * Application: GGC - GNU Gluco Control - * Plug-in: Pump Tool (support for Pump devices) + * Plug-in: CGMS Tool (support for CGMS devices) * * See AUTHORS for copyright information. * @@ -30,19 +30,21 @@ * this program; if not, write to the Free Software Foundation, Inc., 59 Temple * Place, Suite 330, Boston, MA 02111-1307 USA * - * Filename: PumpDataReader - * Description: Pump Data Reader for old data + * Filename: CGMSDataReader + * Description: CGMS Data Reader for old data * * Author: Andy {an...@at...} */ public class CGMSDataReader extends OldDataReaderAbstract { + private static Log log = LogFactory.getLog(CGMSDataReader.class); GGC_CGMSDb db = null; DataAccessCGMS m_da = null; + /** * Constructor * @@ -54,6 +56,7 @@ m_da = da; } + /** * Get Max Entries */ @@ -65,6 +68,7 @@ this.all_entries = db.getAllElementsCount(); } + /** * Read Old entries */ @@ -80,6 +84,7 @@ float db_reading = 0.0f; int current_entry = 0; + /** * Write status of reading * this must be implemebted by all children, since some children will require more reading into database, Modified: trunk/ggc-cgm/src/ggc/cgms/data/CGMSDataWriter.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/CGMSDataWriter.java 2015-03-28 19:45:17 UTC (rev 1354) +++ trunk/ggc-cgm/src/ggc/cgms/data/CGMSDataWriter.java 2015-04-26 09:58:35 UTC (rev 1355) @@ -1,34 +1,60 @@ package ggc.cgms.data; +import java.util.HashMap; + +import org.apache.commons.lang.StringUtils; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + +import sun.reflect.generics.reflectiveObjects.NotImplementedException; + import com.atech.utils.data.ATechDate; -import ggc.cgms.device.dexcom.receivers.DexcomDevice; + import ggc.cgms.util.DataAccessCGMS; import ggc.plugin.data.DeviceTempValues; import ggc.plugin.output.OutputWriter; import ggc.plugin.output.OutputWriterData; -import org.apache.commons.lang.StringUtils; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; -import sun.reflect.generics.reflectiveObjects.NotImplementedException; -import java.util.HashMap; - /** - * Created by andy on 04.03.15. + * Application: GGC - GNU Gluco Control + * Plug-in: CGMS Tool (support for CGMS devices) + * + * See AUTHORS for copyright information. + * + * This program is free software; you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation; either version 2 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., 59 Temple + * Place, Suite 330, Boston, MA 02111-1307 USA + * + * Filename: CGMSDataWriter + * Description: CGMS Entries data Writer + * + * Author: Andy {an...@at...} */ +// Writing of data for CGMS is little different than any other data (we pack +// daily data together in one entry per day), which means that normal writer +// can't be used, at least not yet... This is only temporary solution. -// Writing of data for CGMS is little different than any other data (we pack daily data together in one entry), -// which means that normal writer can't be used, at least not yet... This is only temporary sollution. - public class CGMSDataWriter extends HashMap<String, DeviceTempValues> { + private static Log log = LogFactory.getLog(CGMSDataWriter.class); OutputWriter outputWriter; CGMSValuesTableModel valuesModel; DataAccessCGMS dataAccess = DataAccessCGMS.getInstance(); private boolean isIdentificationWriten = false; String source = ""; + boolean debug = false; public CGMSDataWriter(OutputWriter outputWriter) @@ -38,10 +64,21 @@ } + public CGMSDataWriter() + { + valuesModel = (CGMSValuesTableModel) dataAccess.getDeviceDataHandler().getDeviceValuesTableModel(); + } + + + public void setOutputWriter(OutputWriter ow) + { + this.outputWriter = ow; + } + + private void addEntry(CGMSValuesSubEntry entry) { this.valuesModel.addEntry(entry); - this.valuesModel.fireTableDataChanged(); } @@ -58,6 +95,7 @@ return this.writeObject(_type, _datetime, _value, StringUtils.isNotBlank(_value)); } + /** * Write Object * @param _type @@ -129,9 +167,9 @@ if (owd instanceof CGMSValuesSubEntry) { - CGMSValuesSubEntry cvse = (CGMSValuesSubEntry)owd; + CGMSValuesSubEntry cvse = (CGMSValuesSubEntry) owd; - System.out.println("Value: " + cvse); + // System.out.println("Value: " + cvse); addEntry(cvse); } else @@ -142,6 +180,16 @@ } + public void addConfiguration(String key, DeviceTempValues deviceTempValues) + { + if (debug) + { + System.out.println("Config [key=" + key + ", DeviceTempValues=" + deviceTempValues.toString() + "]"); + } + + put(key, deviceTempValues); + } + /** * Write Object * @@ -151,28 +199,28 @@ * @param _value * @return */ -// public boolean writeObject(String _type, ATechDate _datetime, int code_type, String _value) -// { -// if (this.containsKey(_type)) -// { -// if (_value != null) -// { -// _value = _value.replace(',', '.'); -// } -// DeviceTempValues dtv = this.get(_type); -// -// //if (!this.is_silent_mode) -// { -// // output_writer.writeData(dtv.getData(_datetime, code_type, _value)); -// } -// return true; -// } -// else -// { -// log.warn("Unknown key:" + _type); -// return false; -// } -// } + // public boolean writeObject(String _type, ATechDate _datetime, int + // code_type, String _value) + // { + // if (this.containsKey(_type)) + // { + // if (_value != null) + // { + // _value = _value.replace(',', '.'); + // } + // DeviceTempValues dtv = this.get(_type); + // + // //if (!this.is_silent_mode) + // { + // // output_writer.writeData(dtv.getData(_datetime, code_type, _value)); + // } + // return true; + // } + // else + // { + // log.warn("Unknown key:" + _type); + // return false; + // } + // } - } Modified: trunk/ggc-cgm/src/ggc/cgms/data/CGMSTempValues.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/CGMSTempValues.java 2015-03-28 19:45:17 UTC (rev 1354) +++ trunk/ggc-cgm/src/ggc/cgms/data/CGMSTempValues.java 2015-04-26 09:58:35 UTC (rev 1355) @@ -1,16 +1,17 @@ package ggc.cgms.data; +import sun.reflect.generics.reflectiveObjects.NotImplementedException; + +import com.atech.utils.data.ATechDate; import com.atech.utils.data.CodeEnum; import com.atech.utils.data.CodeEnumWithTranslation; + import ggc.cgms.data.defs.CGMSBaseDataType; import ggc.cgms.data.defs.CGMSObject; import ggc.cgms.util.DataAccessCGMS; import ggc.plugin.data.DeviceTempValues; import ggc.plugin.output.OutputWriterData; -import com.atech.utils.data.ATechDate; -import sun.reflect.generics.reflectiveObjects.NotImplementedException; - /** * Application: GGC - GNU Gluco Control * Plug-in: CGMS Tool (support for CGMS devices) @@ -31,7 +32,7 @@ * this program; if not, write to the Free Software Foundation, Inc., 59 Temple * Place, Suite 330, Boston, MA 02111-1307 USA * - * Filename: PumpTempValues + * Filename: CGMSTempValues * Description: Class for Writer * * Author: Andy {an...@at...} @@ -40,41 +41,44 @@ public class CGMSTempValues extends DeviceTempValues { - - public CGMSTempValues(int _object_type, int _base_type, Boolean isNumericValue) { this(_object_type, _base_type, 0, null, isNumericValue); } + public CGMSTempValues(int _object_type, CodeEnumWithTranslation _base_type, Boolean isNumericValue) { this(_object_type, _base_type.getCode(), 0, null, isNumericValue); } -// public CGMSTempValues(int _object_type, CodeEnumWithTranslation _base_type, -// Boolean isNumericValue) -// { -// this(_object_type, _base_type.getCode(), _sub_type.getCode(), null, isNumericValue); -// } -// public CGMSTempValues(int _object_type, int _base_type, Boolean isNumericValue) -// { -// this(_object_type, _base_type, 0, null, isNumericValue); -// } + // public CGMSTempValues(int _object_type, CodeEnumWithTranslation + // _base_type, + // Boolean isNumericValue) + // { + // this(_object_type, _base_type.getCode(), _sub_type.getCode(), null, + // isNumericValue); + // } -// public CGMSTempValues(int _object_type, CodeEnumWithTranslation _base_type, Boolean isNumericValue) -// { -// this(_object_type, _base_type.getCode(), 0, null, isNumericValue); -// } + // public CGMSTempValues(int _object_type, int _base_type, Boolean + // isNumericValue) + // { + // this(_object_type, _base_type, 0, null, isNumericValue); + // } + // public CGMSTempValues(int _object_type, CodeEnumWithTranslation + // _base_type, Boolean isNumericValue) + // { + // this(_object_type, _base_type.getCode(), 0, null, isNumericValue); + // } - public CGMSTempValues(CGMSObject objectType, CGMSBaseDataType baseType) { this(objectType.getCode(), baseType.getCode(), 0, null, true); } + /** * IMPORTANT: Sub type is written as value and not as real subType. * @@ -87,12 +91,14 @@ this(objectType.getCode(), baseType.getCode(), 0, "" + subType.getCode(), true); } + // not used here public CGMSTempValues(CGMSObject objectType, CGMSBaseDataType baseType, Boolean isNumericValue) { this(objectType.getCode(), baseType.getCode(), 0, null, isNumericValue); } + // not used here public CGMSTempValues(int objectType, int baseType, int subType, String _value_template, Boolean isNumericValue) { @@ -106,13 +112,13 @@ * * @param _value_template */ - public CGMSTempValues(CGMSObject objectType, CGMSBaseDataType baseType, String _value_template, Boolean isNumericValue) + public CGMSTempValues(CGMSObject objectType, CGMSBaseDataType baseType, String _value_template, + Boolean isNumericValue) { super(objectType.getCode(), baseType.getCode(), 0, _value_template, isNumericValue); } - /** * @param objectType * @param baseType @@ -127,13 +133,11 @@ * @param objectType * @param baseType */ -// public CGMSTempValues(CGMSObject objectType, CGMSBaseDataType baseType) -// { -// super(objectType.getCode(), baseType.getCode()); -// } + // public CGMSTempValues(CGMSObject objectType, CGMSBaseDataType baseType) + // { + // super(objectType.getCode(), baseType.getCode()); + // } - - /* * public void writeObject(OutputWriter ow, String _value) * { @@ -154,32 +158,32 @@ stype = this.sub_type; } -// if (val == null) -// { -// val = ""; -// } + // if (val == null) + // { + // val = ""; + // } if (this.object_type == CGMSObject.Base.getCode()) { new NotImplementedException(); -// CGMSValuesEntry cve = new CGMSValuesEntry(); -// -// cve.setType(this.base_type); -// //cve.set.setSubType(stype); -// cve.setDateTimeObject(dt); -// -// cve.va -// -// if (this.value_template==null) -// { -// cve.set.setValue(val); -// } -// else -// { -// pve.setValue(this.value_template + "=" + val); -// } -// -// return pve; + // CGMSValuesEntry cve = new CGMSValuesEntry(); + // + // cve.setType(this.base_type); + // //cve.set.setSubType(stype); + // cve.setDateTimeObject(dt); + // + // cve.va + // + // if (this.value_template==null) + // { + // cve.set.setValue(val); + // } + // else + // { + // pve.setValue(this.value_template + "=" + val); + // } + // + // return pve; } else if (this.object_type == CGMSObject.SubEntry.getCode()) { @@ -188,9 +192,9 @@ sub.setType(this.base_type); sub.setSource(DataAccessCGMS.getInstance().getSourceDevice()); - if (val==null) + if (val == null) { - if (subType!=null) + if (subType != null) sub.value = subType; else sub.value = 0; @@ -200,14 +204,14 @@ sub.value = Integer.parseInt(val); } -// if (this.value_template==null) -// { -// -// } -// else -// { -// sub.setValue(this.value_template + "=" + val); -// } + // if (this.value_template==null) + // { + // + // } + // else + // { + // sub.setValue(this.value_template + "=" + val); + // } return sub; @@ -216,67 +220,68 @@ return null; } + private void test() { -// String val = _value; -// int stype = _sub_type; -// -// if (stype == -1) -// { -// stype = this.sub_type; -// } -// -// if (val == null) -// { -// val = ""; -// } -// -// if (this.object_type == PumpTempValues.OBJECT_BASE) -// { -// PumpValuesEntry pve = new PumpValuesEntry(); -// pve.setBaseType(this.base_type); -// pve.setSubType(stype); -// pve.setDateTimeObject(dt); -// -// if (this.value_template == null) -// { -// pve.setValue(val); -// } -// else -// { -// pve.setValue(this.value_template + "=" + val); -// } -// -// return pve; -// } -// else if (this.object_type == PumpTempValues.OBJECT_BASE_SET_SUBTYPE) -// { -// PumpValuesEntry pve = new PumpValuesEntry(); -// pve.setBaseType(this.base_type); -// pve.setSubType(Integer.parseInt(val)); -// pve.setDateTimeObject(dt); -// -// return pve; -// } -// else if (this.object_type == PumpTempValues.OBJECT_EXT) -// { -// PumpValuesEntryExt pvex = new PumpValuesEntryExt(); -// pvex.setType(this.base_type); -// pvex.setDateTimeObject(dt); -// -// if (this.value_template == null) -// { -// pvex.setValue(val); -// } -// else -// { -// pvex.setValue(this.value_template + "=" + val); -// } -// -// return pvex; -// } -// -// return null; + // String val = _value; + // int stype = _sub_type; + // + // if (stype == -1) + // { + // stype = this.sub_type; + // } + // + // if (val == null) + // { + // val = ""; + // } + // + // if (this.object_type == PumpTempValues.OBJECT_BASE) + // { + // PumpValuesEntry pve = new PumpValuesEntry(); + // pve.setBaseType(this.base_type); + // pve.setSubType(stype); + // pve.setDateTimeObject(dt); + // + // if (this.value_template == null) + // { + // pve.setValue(val); + // } + // else + // { + // pve.setValue(this.value_template + "=" + val); + // } + // + // return pve; + // } + // else if (this.object_type == PumpTempValues.OBJECT_BASE_SET_SUBTYPE) + // { + // PumpValuesEntry pve = new PumpValuesEntry(); + // pve.setBaseType(this.base_type); + // pve.setSubType(Integer.parseInt(val)); + // pve.setDateTimeObject(dt); + // + // return pve; + // } + // else if (this.object_type == PumpTempValues.OBJECT_EXT) + // { + // PumpValuesEntryExt pvex = new PumpValuesEntryExt(); + // pvex.setType(this.base_type); + // pvex.setDateTimeObject(dt); + // + // if (this.value_template == null) + // { + // pvex.setValue(val); + // } + // else + // { + // pvex.setValue(this.value_template + "=" + val); + // } + // + // return pvex; + // } + // + // return null; } Deleted: trunk/ggc-cgm/src/ggc/cgms/data/CGMSValueConfig.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/CGMSValueConfig.java 2015-03-28 19:45:17 UTC (rev 1354) +++ trunk/ggc-cgm/src/ggc/cgms/data/CGMSValueConfig.java 2015-04-26 09:58:35 UTC (rev 1355) @@ -1,60 +0,0 @@ -package ggc.cgms.data; - -import ggc.plugin.data.DeviceValueConfigEntry; -import ggc.plugin.output.OutputWriterConfigData; - -/** - * Application: GGC - GNU Gluco Control - * Plug-in: CGMS Tool (support for CGMS devices) - * - * See AUTHORS for copyright information. - * - * This program is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation; either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program; if not, write to the Free Software Foundation, Inc., 59 Temple - * Place, Suite 330, Boston, MA 02111-1307 USA - * - * Filename: CGMSValueConfig - * Description: Class for Output Writer Config Data - * - * Author: Andy {an...@at...} - */ - -public class CGMSValueConfig extends DeviceValueConfigEntry -{ - - String key; - String value; - String valueRaw; - - public CGMSValueConfig(String key, String value) - { - this.key = key; - this.value = value; - } - - public String getDataKey() { - return key; - } - - public String getDataValue() { - return this.value; - } - - public String getDataValueRaw() { - return this.value; - } - - public boolean isDataValueBG() { - return false; - } -} Modified: trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesEntry.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesEntry.java 2015-03-28 19:45:17 UTC (rev 1354) +++ trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesEntry.java 2015-04-26 09:58:35 UTC (rev 1355) @@ -1,16 +1,7 @@ package ggc.cgms.data; -import ggc.cgms.util.DataAccessCGMS; -import ggc.core.db.hibernate.GGCHibernateObject; -import ggc.core.db.hibernate.cgms.CGMSDataH; -import ggc.plugin.data.DeviceValuesEntry; -import ggc.plugin.output.OutputWriterType; +import java.util.*; -import java.util.ArrayList; -import java.util.Collections; -import java.util.Hashtable; -import java.util.StringTokenizer; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.hibernate.Session; @@ -19,6 +10,13 @@ import com.atech.misc.statistics.StatisticsItem; import com.atech.utils.data.ATechDate; +import ggc.cgms.data.defs.CGMSBaseDataType; +import ggc.cgms.util.DataAccessCGMS; +import ggc.core.db.hibernate.GGCHibernateObject; +import ggc.core.db.hibernate.cgms.CGMSDataH; +import ggc.plugin.data.DeviceValuesEntry; +import ggc.plugin.output.OutputWriterType; + /** * Application: GGC - GNU Gluco Control * Plug-in: CGMS Tool (support for CGMS devices) @@ -39,20 +37,15 @@ * this program; if not, write to the Free Software Foundation, Inc., 59 Temple * Place, Suite 330, Boston, MA 02111-1307 USA * - * Filename: CGMValuesEntry.java - * Description: Collection of CGMValuesEntry, which contains all daily values. + * Filename: CGMSValuesEntry + * Description: Collection of CGMSValuesEntry, which contains all daily values. * * Author: Andy {an...@at...} */ -// IMPORTANT NOTICE: -// This class is not implemented yet, all existing methods should be rechecked -// (they were copied from similar -// class, with different type of data. Trying to find a way to use super class -// instead of this. - public class CGMSValuesEntry extends DeviceValuesEntry implements StatisticsItem { + DataAccessCGMS da = DataAccessCGMS.getInstance(); private static Log log = LogFactory.getLog(CGMSValuesEntry.class); @@ -72,6 +65,7 @@ int person_id = 0; String item_data = null; + /** * Constructor */ @@ -82,6 +76,7 @@ // this.person_id = (int)this.da.getCurrentUserId(); } + /** * Constructor * @@ -98,6 +93,7 @@ this.person_id = pdh.getPerson_id(); } + /** * Set Date * @@ -110,6 +106,7 @@ this.datetime = dt; } + /** * Get DateTime (long) * @@ -121,6 +118,7 @@ return this.datetime; } + /** * Get DateTime Object (ATechDate) * @@ -132,6 +130,7 @@ return new ATechDate(ATechDate.FORMAT_DATE_AND_TIME_S, this.datetime); } + /** * Add Sub Entry * @@ -142,6 +141,13 @@ this.list.add(subentry); } + + public void addSubEntries(List<CGMSValuesSubEntry> entries) + { + this.list.addAll(entries); + } + + /** * Get Sub Entry List * @@ -152,6 +158,7 @@ return this.list; } + /** * Set Empty * @@ -162,6 +169,7 @@ this.empty = empty_; } + /** * Is Empty * @@ -172,6 +180,7 @@ return this.empty; } + /** * Add Parameter * @@ -192,6 +201,7 @@ } + /** * @return */ @@ -213,6 +223,7 @@ } + /** * Prepare Entry [Framework v2] */ @@ -222,6 +233,7 @@ this.saveExtended(); } + /** * Set Type * @@ -232,6 +244,7 @@ this.type = type_; } + /** * Get Type * @@ -242,6 +255,7 @@ return this.type; } + /** * Create Comment * @@ -259,6 +273,7 @@ } + /** * To String * @see java.lang.Object#toString() @@ -269,6 +284,7 @@ return "CGMSValuesEntry [date/time=" + this.datetime + ",readings=" + this.list.size() + "type=" + type + "]"; } + /** * Get Column Value * @@ -311,6 +327,7 @@ return "N/A"; } + /** * Get DateTime format * @@ -322,6 +339,7 @@ return ATechDate.FORMAT_DATE_AND_TIME_S; } + /** * Get Db Objects * @@ -335,6 +353,7 @@ return null; } + /** * Get Data As String * @@ -377,6 +396,7 @@ } } + /** * Set DateTime Object (ATechDate) * @@ -388,6 +408,7 @@ this.datetime = dt.getATDateTimeAsLong(); } + /** * Get Value For Item * @@ -399,6 +420,7 @@ return 0; } + /** * Get Statistics Action - we define how statistic is done (we have several predefined * types of statistics @@ -411,6 +433,7 @@ return 0; } + /** * Is Special Action - tells if selected statistics item has special actions * @@ -422,6 +445,7 @@ return false; } + /** * Get Max Statistics Object - we can have several Statistic types defined here * @@ -432,6 +456,7 @@ return 0; } + /** * If we have any special actions for any of objects * @@ -442,6 +467,7 @@ return false; } + /** * Get Table Column Value (in case that we need special display values for download data table, this method * can be used, if it's the same as getColumnValue, we can just call that one. @@ -457,16 +483,16 @@ return this.date_obj.getDateString(); case 1: - return DataAccessCGMS.value_type[this.type]; // m_ic.getMessage("BASE_TYPE_SH"); + return CGMSBaseDataType.getByCode(this.type).getTranslation(); case 2: - return "" + this.list.size(); // this.getBaseTypeString(); + return this.list.size(); case 3: - return new Boolean(getChecked()); + return this.getStatusType(); case 4: - return this.getStatus(); + return getChecked(); default: return ""; @@ -474,6 +500,7 @@ } + /** * Get Special Id * @@ -484,6 +511,7 @@ return "CD_" + this.datetime + "_" + this.type; } + /** * getObjectUniqueId - get id of object * @return unique object id @@ -493,6 +521,7 @@ return "" + this.datetime; } + /** * DbAdd - Add this object to database * @@ -515,7 +544,6 @@ pdh.setPerson_id(this.person_id); pdh.setChanged(System.currentTimeMillis()); - Long _id = (Long) sess.save(pdh); tx.commit(); @@ -525,6 +553,7 @@ return "" + _id.longValue(); } + /** * DbEdit - Edit this object in database * @@ -555,6 +584,7 @@ return true; } + /** * DbDelete - Delete this object in database * @@ -573,6 +603,7 @@ return true; } + /** * DbHasChildren - Shows if this entry has any children object, this is needed for delete * @@ -585,6 +616,7 @@ return false; } + /** * DbGet - Loads this object. Id must be set. * @@ -606,6 +638,7 @@ return true; } + /** * getObjectName - returns name of DatabaseObject * @@ -616,6 +649,7 @@ return "CGMSValuesEntry"; } + /** * isDebugMode - returns debug mode of object * @@ -626,6 +660,7 @@ return false; } + /** * getAction - returns action that should be done on object * 0 = no action @@ -642,6 +677,7 @@ return 0; } + /** * Get DeviceValuesEntry Name * @@ -652,6 +688,7 @@ return "CGMSValuesEntry"; } + /** * Get Value of object * @@ -664,6 +701,7 @@ long old_id; + /** * Set Old Id (this is used for changing old objects in framework v2) * @@ -674,6 +712,7 @@ this.id = id_in; } + /** * Get Old Id (this is used for changing old objects in framework v2) * @@ -684,6 +723,7 @@... [truncated message content] |
From: <and...@us...> - 2015-07-09 18:22:19
|
Revision: 1356 http://sourceforge.net/p/ggc/code/1356 Author: andyrozman Date: 2015-07-09 18:22:14 +0000 (Thu, 09 Jul 2015) Log Message: ----------- GGC 0.6.0-2 - changes for 0.6.0 - added Omnipod support Modified Paths: -------------- trunk/ggc-cgm/doc/Changelog trunk/ggc-cgm/src/GGC_CGMSTool_en.properties trunk/ggc-cgm/src/ggc/cgms/data/CGMSDataHandler.java trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesEntry.java trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesExtendedEntry.java trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesSubEntry.java trunk/ggc-cgm/src/ggc/cgms/data/ExtendedCGMSValuesExtendedEntry.java trunk/ggc-cgm/src/ggc/cgms/device/AbstractCGMS.java trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/data/AnimasCGMSDeviceData.java trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/data/dto/CGMSSettings.java trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/handler/AnimasDexcomDataHandler.java trunk/ggc-cgm/src/ggc/cgms/device/dexcom/DexcomCGMS.java trunk/ggc-cgm/src/ggc/cgms/device/minimed/MiniMedCGMS.java trunk/ggc-cgm/src/ggc/cgms/plugin/CGMSPlugInServer.java trunk/ggc-cgm/src/ggc/cgms/util/DataAccessCGMS.java trunk/ggc-core/docs/Changelog trunk/ggc-core/src/ggc/core/data/Converter_mgdL_mmolL.java trunk/ggc-core/src/ggc/core/data/DailyValuesRow.java trunk/ggc-core/src/ggc/core/data/ExtendedRatioCollection.java trunk/ggc-core/src/ggc/core/data/GlucoValues.java trunk/ggc-core/src/ggc/core/data/WeeklyValues.java trunk/ggc-core/src/ggc/core/data/cfg/ConfigurationManager.java trunk/ggc-core/src/ggc/core/data/defs/ExerciseStrength.java trunk/ggc-core/src/ggc/core/data/defs/Health.java trunk/ggc-core/src/ggc/core/data/defs/StockTypeBase.java trunk/ggc-core/src/ggc/core/data/defs/StockUsageUnit.java trunk/ggc-core/src/ggc/core/data/graph/GGCGraphViewControler.java trunk/ggc-core/src/ggc/core/data/graph/GraphViewFrequency.java trunk/ggc-core/src/ggc/core/db/GGCDb.java trunk/ggc-core/src/ggc/core/db/GGCDbConfig.java trunk/ggc-core/src/ggc/core/db/GGCDbLoader.java trunk/ggc-core/src/ggc/core/db/datalayer/DailyValue.java trunk/ggc-core/src/ggc/core/db/tool/InitDb.java trunk/ggc-core/src/ggc/core/db/tool/transfer/GGCBackupRestoreRunner.java trunk/ggc-core/src/ggc/core/db/tool/transfer/GGCImporter.java trunk/ggc-core/src/ggc/core/db/tool/transfer/RestoreGGCSelectorDialog.java trunk/ggc-core/src/ggc/core/doc/util/DataAccessDoc.java trunk/ggc-core/src/ggc/core/plugins/GGCPluginClient.java trunk/ggc-core/src/ggc/core/test/ImportDacioDb.java trunk/ggc-core/src/ggc/core/util/DataAccess.java trunk/ggc-core/src/ggc/core/util/GGCProperties.java trunk/ggc-core/src/ggc/shared/bolushelper/BolusHelper.java trunk/ggc-core/src/ggc/shared/fooddesc/FoodDescriptionDialog.java trunk/ggc-core/src/ggc/shared/ratio/RatioCalculatorDialog.java trunk/ggc-core/src/ggc/shared/ratio/RatioEntryDialog.java trunk/ggc-core/src/ggc/shared/ratio/RatioEntryPanel.java trunk/ggc-desktop/data/update/GGC_Update.properties trunk/ggc-desktop/data/update/version/GGC_Update_13_0.6.properties trunk/ggc-desktop/doc/Changelog trunk/ggc-desktop/doc/Diabetes_Hardware.txt trunk/ggc-desktop/doc/GGC_Supported_Hardware.html trunk/ggc-desktop/doc/How_Can_I_Help.txt trunk/ggc-desktop/doc/README.de trunk/ggc-desktop/doc/README.en trunk/ggc-desktop/doc/README.si trunk/ggc-desktop/doc/TO-DO Detailed.txt trunk/ggc-desktop/pom.xml trunk/ggc-desktop/src/ggc/gui/MainFrame.java trunk/ggc-desktop/src/ggc/gui/dialogs/DailyRowDialog.java trunk/ggc-desktop/src/ggc/gui/dialogs/stock/StockAmounts.java trunk/ggc-desktop/src/ggc/gui/dialogs/stock/def/StockListDef.java trunk/ggc-master-pom/pom.xml trunk/ggc-meter/docs/Changelog trunk/ggc-meter/src/GGCMeterTool_en.properties trunk/ggc-meter/src/ggc/meter/data/MeterDataHandler.java trunk/ggc-meter/src/ggc/meter/data/MeterValuesEntry.java trunk/ggc-meter/src/ggc/meter/data/MeterValuesEntrySpecial.java trunk/ggc-meter/src/ggc/meter/data/MeterValuesExtTableModel.java trunk/ggc-meter/src/ggc/meter/data/MeterValuesTableModel.java trunk/ggc-meter/src/ggc/meter/data/db/GGCMeterDb.java trunk/ggc-meter/src/ggc/meter/device/AbstractUsbMeter.java trunk/ggc-meter/src/ggc/meter/device/abbott/FreestyleMeter.java trunk/ggc-meter/src/ggc/meter/device/abbott/OptiumXceed.java trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekAvivaCombo.java trunk/ggc-meter/src/ggc/meter/device/accuchek/AccuChekSmartPixMeter.java trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaContourTest.java trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaMeter.java trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaMeterUsb.java trunk/ggc-meter/src/ggc/meter/device/menarini/GlucofixMio.java trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchMeter.java trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchMeter2.java trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchUltraSmart.java trunk/ggc-meter/src/ggc/meter/device/onetouch/OneTouchVerioPro.java trunk/ggc-meter/src/ggc/meter/plugin/MeterPlugInServer.java trunk/ggc-meter/src/ggc/meter/util/DataAccessMeter.java trunk/ggc-nutri/docs/Changelog trunk/ggc-nutri/src/ggc/nutri/plugin/NutriPlugInServer.java trunk/ggc-nutri/src/ggc/nutri/print/PrintFoodMenuAbstract.java trunk/ggc-nutri/src/ggc/nutri/print/PrintFoodMenuBase.java trunk/ggc-nutri/src/ggc/nutri/print/PrintFoodMenuExt1.java trunk/ggc-nutri/src/ggc/nutri/print/PrintFoodMenuExt2.java trunk/ggc-nutri/src/ggc/nutri/util/DataAccessNutri.java trunk/ggc-plugin_base/docs/Changelog trunk/ggc-plugin_base/src/GGCPlugin_en.properties trunk/ggc-plugin_base/src/ggc/plugin/DevicePlugInServer.java trunk/ggc-plugin_base/src/ggc/plugin/cfg/CommunicationPortSelector.java trunk/ggc-plugin_base/src/ggc/plugin/cfg/DeviceConfigurationDialog.java trunk/ggc-plugin_base/src/ggc/plugin/comm/IBMCommunicationHandler.java trunk/ggc-plugin_base/src/ggc/plugin/comm/NRSerialCommunicationHandler.java trunk/ggc-plugin_base/src/ggc/plugin/comm/SerialCommunicationInterface.java trunk/ggc-plugin_base/src/ggc/plugin/comm/SerialSettings.java trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceDataHandler.java trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceValuesEntry.java trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceValuesEntryInterface.java trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceValuesTable.java trunk/ggc-plugin_base/src/ggc/plugin/data/DeviceValuesTableModel.java trunk/ggc-plugin_base/src/ggc/plugin/data/enums/DeviceCompanyDefinition.java trunk/ggc-plugin_base/src/ggc/plugin/data/enums/DeviceHandlerType.java trunk/ggc-plugin_base/src/ggc/plugin/data/enums/PlugInExceptionType.java trunk/ggc-plugin_base/src/ggc/plugin/db/PluginDb.java trunk/ggc-plugin_base/src/ggc/plugin/device/DeviceAbstract.java trunk/ggc-plugin_base/src/ggc/plugin/device/DeviceInterface.java trunk/ggc-plugin_base/src/ggc/plugin/device/DownloadSupportType.java trunk/ggc-plugin_base/src/ggc/plugin/device/PlugInBaseException.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/accuchek/AccuChekSmartPix.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/comm/AnimasCommProtocolAbstract.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/comm/AnimasCommProtocolV2.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/data/AnimasDeviceData.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/data/dto/PumpInfo.java trunk/ggc-plugin_base/src/ggc/plugin/device/v2/DeviceHandler.java trunk/ggc-plugin_base/src/ggc/plugin/device/v2/DeviceInstanceWithHandler.java trunk/ggc-plugin_base/src/ggc/plugin/device/v2/DeviceInterfaceV2.java trunk/ggc-plugin_base/src/ggc/plugin/graph/panel/DefinitionsPanel.java trunk/ggc-plugin_base/src/ggc/plugin/gui/DeviceDisplayConfigDialog.java trunk/ggc-plugin_base/src/ggc/plugin/gui/DeviceInstructionsDialog.java trunk/ggc-plugin_base/src/ggc/plugin/gui/DeviceReaderRunner.java trunk/ggc-plugin_base/src/ggc/plugin/gui/file/AbstractFileSelectorDialog.java trunk/ggc-plugin_base/src/ggc/plugin/gui/file/ImportFileSelectorDialog.java trunk/ggc-plugin_base/src/ggc/plugin/gui/file/MultipleFileSelectorDialog.java trunk/ggc-plugin_base/src/ggc/plugin/manager/DeviceManager.java trunk/ggc-plugin_base/src/ggc/plugin/output/ConsoleOutputWriter.java trunk/ggc-plugin_base/src/ggc/plugin/util/DataAccessPlugInBase.java trunk/ggc-plugin_base/src/ggc/plugin/util/PlugInDeviceUtil.java trunk/ggc-pump/docs/Changelog trunk/ggc-pump/src/GGCPumpTool_en.properties trunk/ggc-pump/src/ggc/pump/data/PumpDataHandler.java trunk/ggc-pump/src/ggc/pump/data/PumpValuesEntry.java trunk/ggc-pump/src/ggc/pump/data/PumpValuesEntryExt.java trunk/ggc-pump/src/ggc/pump/data/db/GGCPumpDb.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpAlarms.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpBasalType.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpBolusType.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpDeviceDefinition.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpErrors.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpEvents.java trunk/ggc-pump/src/ggc/pump/data/defs/PumpReport.java trunk/ggc-pump/src/ggc/pump/data/writer/PumpValuesWriter.java trunk/ggc-pump/src/ggc/pump/device/accuchek/AccuChekSmartPixPump.java trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR1200Handler.java trunk/ggc-pump/src/ggc/pump/device/animas/TODO_animas.txt trunk/ggc-pump/src/ggc/pump/device/animas/impl/converter/AnimasBaseDataV2Converter.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/data/dto/BolusEntry.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/data/dto/PumpSettings.java trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed508.java trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed511.java trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed512.java trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed515.java trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed522.java trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed523.java trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed553.java trunk/ggc-pump/src/ggc/pump/device/minimed/Minimed554_Veo.java trunk/ggc-pump/src/ggc/pump/device/minimed/MinimedPump.java trunk/ggc-pump/src/ggc/pump/device/minimed/PumpSimple.java trunk/ggc-pump/src/ggc/pump/gui/PumpPrintDialog.java trunk/ggc-pump/src/ggc/pump/gui/manual/PumpDataAdditionalWizardOne.java trunk/ggc-pump/src/ggc/pump/gui/manual/PumpDataTypeComponent.java trunk/ggc-pump/src/ggc/pump/manager/PumpManager.java trunk/ggc-pump/src/ggc/pump/manager/company/Insulet.java trunk/ggc-pump/src/ggc/pump/plugin/PumpPlugInServer.java trunk/ggc-pump/src/ggc/pump/test/MinimedConsoleTester.java trunk/ggc-pump/src/ggc/pump/util/DataAccessPump.java trunk/ggc-support/eclipse/ggc profile.xml trunk/web_page/inc_news.inc Added Paths: ----------- trunk/ggc-cgm/src/ggc/cgms/data/graph/def/ trunk/ggc-cgm/src/ggc/cgms/data/graph/v2/ trunk/ggc-cgm/src/ggc/cgms/data/graph/v2/CGMSGraphContext.java trunk/ggc-cgm/src/ggc/cgms/data/graph/v2/defs/ trunk/ggc-cgm/src/ggc/cgms/data/graph/v2/defs/CGMSDataSourceTargetType.java trunk/ggc-cgm/src/ggc/cgms/data/graph/v2/defs/CGMSDataSourceType.java trunk/ggc-cgm/src/ggc/cgms/device/CGMSDeviceHandler.java trunk/ggc-core/src/ggc/core/data/ExtendedDailyValueHandler.java trunk/ggc-core/src/ggc/core/data/defs/ClockModeType.java trunk/ggc-core/src/ggc/core/data/defs/DailyValuesExtendedType.java trunk/ggc-core/src/ggc/core/data/defs/GlucoseUnitType.java trunk/ggc-core/src/ggc/core/data/graph/v2/ trunk/ggc-core/src/ggc/core/data/graph/v2/GGCGraphContext.java trunk/ggc-desktop/data/update/version/test/ trunk/ggc-desktop/data/update/version/test/GGC_Update.properties trunk/ggc-desktop/data/update/version/xml/GGC_Update_10_0.5.xml trunk/ggc-desktop/data/update/version/xml/GGC_Update_11_0.5.0.3.xml trunk/ggc-desktop/data/update/version/xml/GGC_Update_12_0.5.0.3-1.xml trunk/ggc-desktop/doc/old_docs/ trunk/ggc-desktop/doc/old_docs/How_Can_I_Help_v1.txt trunk/ggc-desktop/doc/old_docs/How_Can_I_Help_v2.txt trunk/ggc-help/docs/Changelog.txt trunk/ggc-meter/src/ggc/meter/data/MeterValuesEntryDataType.java trunk/ggc-plugin_base/src/ggc/plugin/comm/CommunicationInterface.java trunk/ggc-plugin_base/src/ggc/plugin/comm/Hid4JavaCommunicationHandler.java trunk/ggc-plugin_base/src/ggc/plugin/comm/SerialSettingsType.java trunk/ggc-pump/src/ggc/pump/data/dto/ trunk/ggc-pump/src/ggc/pump/data/dto/BasalDTO.java trunk/ggc-pump/src/ggc/pump/data/dto/BolusDTO.java trunk/ggc-pump/src/ggc/pump/data/dto/BolusWizardDTO.java trunk/ggc-pump/src/ggc/pump/device/insulet/FRC_InsuletOmnipod.java trunk/ggc-pump/src/ggc/pump/device/insulet/InsuletHandler.java trunk/ggc-pump/src/ggc/pump/device/insulet/InsuletReader.java trunk/ggc-pump/src/ggc/pump/device/insulet/data/ trunk/ggc-pump/src/ggc/pump/device/insulet/data/converter/ trunk/ggc-pump/src/ggc/pump/device/insulet/data/converter/OmnipodConfigConverter.java trunk/ggc-pump/src/ggc/pump/device/insulet/data/converter/OmnipodConverter.java trunk/ggc-pump/src/ggc/pump/device/insulet/data/converter/OmnipodDataConverter.java trunk/ggc-pump/src/ggc/pump/device/insulet/data/dto/ trunk/ggc-pump/src/ggc/pump/device/insulet/data/dto/AbstractRecord.java trunk/ggc-pump/src/ggc/pump/device/insulet/data/dto/UnknownRecord.java trunk/ggc-pump/src/ggc/pump/device/insulet/data/dto/config/ trunk/ggc-pump/src/ggc/pump/device/insulet/data/dto/config/BasalProgramNames.java trunk/ggc-pump/src/ggc/pump/device/insulet/data/dto/config/ConfigRecord.java trunk/ggc-pump/src/ggc/pump/device/insulet/data/dto/config/EepromSettings.java trunk/ggc-pump/src/ggc/pump/device/insulet/data/dto/config/IbfVersion.java trunk/ggc-pump/src/ggc/pump/device/insulet/data/dto/config/LogDescription.java trunk/ggc-pump/src/ggc/pump/device/insulet/data/dto/config/LogDescriptions.java trunk/ggc-pump/src/ggc/pump/device/insulet/data/dto/config/LogHeader.java trunk/ggc-pump/src/ggc/pump/device/insulet/data/dto/config/ManufacturingData.java trunk/ggc-pump/src/ggc/pump/device/insulet/data/dto/config/PdmVersion.java trunk/ggc-pump/src/ggc/pump/device/insulet/data/dto/config/Profile.java trunk/ggc-pump/src/ggc/pump/device/insulet/data/dto/config/ProfileHeader.java trunk/ggc-pump/src/ggc/pump/device/insulet/data/dto/data/ trunk/ggc-pump/src/ggc/pump/device/insulet/data/dto/data/HistoryRecord.java trunk/ggc-pump/src/ggc/pump/device/insulet/data/dto/data/LogRecord.java trunk/ggc-pump/src/ggc/pump/device/insulet/data/dto/data/PumpAlarmRecord.java trunk/ggc-pump/src/ggc/pump/device/insulet/data/enums/ trunk/ggc-pump/src/ggc/pump/device/insulet/data/enums/AlarmType.java trunk/ggc-pump/src/ggc/pump/device/insulet/data/enums/BGFlags.java trunk/ggc-pump/src/ggc/pump/device/insulet/data/enums/HistoryRecordType.java trunk/ggc-pump/src/ggc/pump/device/insulet/data/enums/LogType.java trunk/ggc-pump/src/ggc/pump/device/insulet/data/enums/OmnipodDataType.java trunk/ggc-pump/src/ggc/pump/device/insulet/data/enums/ProfileType.java trunk/ggc-pump/src/ggc/pump/device/insulet/insulet_TODO.txt trunk/ggc-pump/src/ggc/pump/device/insulet/org/ trunk/ggc-pump/src/ggc/pump/device/insulet/org/Insulet.txt trunk/ggc-pump/src/ggc/pump/device/insulet/org/insuletDriverDelete.js trunk/ggc-pump/src/ggc/pump/device/insulet/org/insuletDriverOriginal.js trunk/ggc-pump/src/ggc/pump/device/insulet/util/ trunk/ggc-pump/src/ggc/pump/device/insulet/util/InsuletUtil.java trunk/ggc-pump/src/ggc/pump/test/TestOmnipod.java trunk/ggc-support/doc/ trunk/ggc-support/doc/deployment/ trunk/ggc-support/doc/deployment/createFullDependencies.sh trunk/ggc-support/doc/deployment/deployment-HowTo.txt Removed Paths: ------------- trunk/ggc-core/src/ggc/core/data/ExtendedDailyValue.java trunk/ggc-core/src/ggc/core/plugins/GGCDataReader.java trunk/ggc-plugin_base/src/ggc/core/data/ trunk/ggc-plugin_base/src/ggc/plugin/data/enums/ClockModeType.java trunk/ggc-plugin_base/src/ggc/plugin/data/enums/GlucoseUnitType.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/MM_en.properties trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/MinimedDevice.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/MinimedDeviceConfig.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/MinimedDeviceUtil.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/MinimedDevicesIds.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/MinimedSpecialConfig.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/cmd/BadDeviceValueException.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/cmd/MinimedCommand.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/cmd/MinimedCommandHistoryCGMS.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/cmd/MinimedCommandHistoryData.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/cmd/MinimedCommandReply.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/cmd/MinimedReplyDecoder.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/cmd/MinimedReplyHistoryDecoder.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/comm/MinimedComm_ComLink.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/comm/MinimedComm_ComStation.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/comm/MinimedComm_Interface.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/minimed/comm/MinimedComm_USBLink.java trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR1000.java trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR1200.java trunk/ggc-pump/src/ggc/pump/device/animas/AnimasIR2020.java trunk/ggc-pump/src/ggc/pump/device/animas/AnimasPump.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/converter/AnimasBaseDataV1Converter.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/handler/AnimasBaseDataV1Handler.java trunk/ggc-pump/src/ggc/pump/device/animas/impl/handler/v1/ trunk/ggc-pump/src/ggc/pump/device/insulet/IRFReader.java trunk/ggc-pump/src/ggc/pump/device/insulet/InsuletOmniPod.java trunk/ggc-pump/src/ggc/pump/device/insulet/InsuletPump.java trunk/ggc-pump/src/ggc/pump/device/insulet/MacBinaryDecoderOutputStream.java trunk/ggc-pump/src/ggc/pump/device/minimed/MinimedPumpDevice.java trunk/ggc-pump/src/ggc/pump/device/minimed/comm/ trunk/ggc-pump/src/ggc/pump/device/minimed/data/ trunk/ggc-pump/src/ggc/pump/device/minimed/new_dev/ Modified: trunk/ggc-cgm/doc/Changelog =================================================================== --- trunk/ggc-cgm/doc/Changelog 2015-04-26 09:58:35 UTC (rev 1355) +++ trunk/ggc-cgm/doc/Changelog 2015-07-09 18:22:14 UTC (rev 1356) @@ -2,6 +2,13 @@ Changes file for GGC CGM Tool ============================== +1.3.2 [26.4.2015] + * Finalized Animas CGMS implementation + * Enums fixed + * extended viewer + * Dexcom Handler/ Changes + * Data handling and display + 1.3.1 [28.3.2015] * Added Graph for CGMS Modified: trunk/ggc-cgm/src/GGC_CGMSTool_en.properties =================================================================== --- trunk/ggc-cgm/src/GGC_CGMSTool_en.properties 2015-04-26 09:58:35 UTC (rev 1355) +++ trunk/ggc-cgm/src/GGC_CGMSTool_en.properties 2015-07-09 18:22:14 UTC (rev 1356) @@ -279,10 +279,46 @@ CCFG_X_WARNING_ABOVE=%s Warning Above CCFG_X_WARNING_BELOW=%s Warning Below CCFG_X_SNOOZE_TIME=%s Snooze Time + + +# !SG! Sensor CCFG_X_ENABLED=%s Enabled +CCFG_X_LIMIT_ENABLED=%s Limit Enabled CCFG_TRANSMITER_SERIAL_NUMBER=Serial Number +CCFG_SENSOR_ENABLED=Sensor Enabled +CCFG_SENSOR_BG_UNITS=Sensor BG Units +CCFG_SENSOR_CALIBRATION_REMINDER_ENABLE=Sensor Calibration Reminder Enable +CCFG_SENSOR_CALIBRATION_REMINDER_TIME=Sensor Calibration Reminder Time +CCFG_SENSOR_TRANSMITER_ID=Sensor Transmiter ID +CCFG_SENSOR_WEAK_SIGNAL_TIME=Sensor Weak Signal Time +CCFG_SENSOR_ALARM_SNOOZE_TIME=Sensor Alarm Snooze Time +CCFG_SENSOR_DEMO_ENABLE=Sensor Demo Enable +CCFG_SENSOR_GRAPH_TIMEOUT=Sensor Graph Timeout +CCFG_SENSOR_TIME_SENSITIVITY_LOW_PREDICTIVE_ALERT=Time Sensitivity - Low Predictive Alert +CCFG_SENSOR_TIME_SENSITIVITY_HIGH_PREDICTIVE_ALERT=Time Sensitivity - High Predictive Alert +CCFG_OPTION_OFF=Off +CCFG_SENSOR_ALERT_SILENCE_TYPE=Alert Silence Type +CCFG_SENSOR_ALERT_SILENCE_HI_ALERTS=High Alerts +CCFG_SENSOR_ALERT_SILENCE_LO_ALERTS=Low Alerts +CCFG_SENSOR_ALERT_SILENCE_HI_LO_ALERTS=High/Low Alerts +CCFG_SENSOR_ALERT_SILENCE_ALL_SENSOR_ALERTS=All Sensor Alerts +CCFG_SENSOR_ALERT_SILENCE_TIME=Alert Silence Time +CCFG_SENSOR_AUTOCALIBRATE=Sensor Autocalibrate +CCFG_SENSOR_LOW_BG_SUSPEND=Sensor Low BG Suspend +CCFG_SENSOR_CALIBRATION_REPEAT_TIME=Calibration Repeat Time +CCFG_SENSOR_BG_LIMITS_ENABLED=BG Limits Enabled +CCFG_SENSOR_BG_LIMIT=BG Limit +CCFG_RATE_OF_CHANGE_ALERTS_RISE_RATE_LIMIT=Change Alert - Rise Rate Limit +CCFG_RATE_OF_CHANGE_ALERTS_FALL_RATE_LIMIT=Change Alert - Fall Rate Limit + + + + + + + # # !G! Graphs # Modified: trunk/ggc-cgm/src/ggc/cgms/data/CGMSDataHandler.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/CGMSDataHandler.java 2015-04-26 09:58:35 UTC (rev 1355) +++ trunk/ggc-cgm/src/ggc/cgms/data/CGMSDataHandler.java 2015-07-09 18:22:14 UTC (rev 1356) @@ -1,8 +1,5 @@ package ggc.cgms.data; -import java.util.Hashtable; - -import ggc.core.db.hibernate.DayValueH; import ggc.plugin.data.DeviceDataHandler; import ggc.plugin.util.DataAccessPlugInBase; @@ -58,28 +55,6 @@ /** - * Set Device Data - * - * @param data data as Hashtable<String,?> data - */ - @SuppressWarnings("unchecked") - @Override - public void setDeviceData(Hashtable<String, ?> data) - { - if (data == null || data.size() == 0) - { - // System.out.println("NO Old data: " + old_data); - old_data = new Hashtable<String, DayValueH>(); - } - else - { - old_data = data; - // System.out.println("Old data: " + old_data); - } - } - - - /** * Set Reading Finished */ public void setReadingFinished() Modified: trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesEntry.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesEntry.java 2015-04-26 09:58:35 UTC (rev 1355) +++ trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesEntry.java 2015-07-09 18:22:14 UTC (rev 1356) @@ -341,20 +341,6 @@ /** - * Get Db Objects - * - * @return ArrayList of elements extending GGCHibernateObject - * @deprecated - */ - @Deprecated - @Override - public ArrayList<? extends GGCHibernateObject> getDbObjects() - { - return null; - } - - - /** * Get Data As String * * @see ggc.plugin.output.OutputWriterData#getDataAsString() Modified: trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesExtendedEntry.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesExtendedEntry.java 2015-04-26 09:58:35 UTC (rev 1355) +++ trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesExtendedEntry.java 2015-07-09 18:22:14 UTC (rev 1356) @@ -1,7 +1,6 @@ package ggc.cgms.data; -import java.util.ArrayList; -import java.util.Hashtable; +import java.util.HashMap; import org.apache.commons.lang.StringUtils; import org.hibernate.Session; @@ -14,7 +13,6 @@ import ggc.cgms.data.defs.extended.CGMSExtendedDataType; import ggc.cgms.util.CGMSUtil; import ggc.cgms.util.DataAccessCGMS; -import ggc.core.db.hibernate.GGCHibernateObject; import ggc.core.db.hibernate.cgms.CGMSDataExtendedH; import ggc.plugin.data.DeviceValuesEntry; import ggc.plugin.output.OutputWriterType; @@ -394,13 +392,6 @@ @Override - public ArrayList<? extends GGCHibernateObject> getDbObjects() - { - return null; - } - - - @Override public Object getColumnValue(int index) { return "N/A"; @@ -438,7 +429,7 @@ private void loadExtended(String extended2) { ExtendedHandler handler = CGMSUtil.getExtendedHandler(this.getDVEName()); - Hashtable<String, String> data = handler.loadExtended(extended2); + HashMap<String, String> data = handler.loadExtended(extended2); if (handler.isExtendedValueSet(ExtendedCGMSValuesExtendedEntry.EXTENDED_SUB_TYPE, data)) { @@ -456,7 +447,7 @@ private String saveExtended() { ExtendedHandler handler = CGMSUtil.getExtendedHandler(this.getDVEName()); - Hashtable<String, String> data = new Hashtable<String, String>(); + HashMap<String, String> data = new HashMap<String, String>(); if (this.subType > 0) { Modified: trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesSubEntry.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesSubEntry.java 2015-04-26 09:58:35 UTC (rev 1355) +++ trunk/ggc-cgm/src/ggc/cgms/data/CGMSValuesSubEntry.java 2015-07-09 18:22:14 UTC (rev 1356) @@ -226,13 +226,6 @@ @Override - public ArrayList<? extends GGCHibernateObject> getDbObjects() - { - return null; - } - - - @Override public void setDateTimeObject(ATechDate dt) { this.setDateTime(dt.getATDateTimeAsLong()); Modified: trunk/ggc-cgm/src/ggc/cgms/data/ExtendedCGMSValuesExtendedEntry.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/ExtendedCGMSValuesExtendedEntry.java 2015-04-26 09:58:35 UTC (rev 1355) +++ trunk/ggc-cgm/src/ggc/cgms/data/ExtendedCGMSValuesExtendedEntry.java 2015-07-09 18:22:14 UTC (rev 1356) @@ -10,15 +10,17 @@ public static final int EXTENDED_SUB_TYPE = 0; public static final int EXTENDED_SOURCE = 1; - @SuppressWarnings("unused") + private static final int EXTENDED_MAX = 1; + public ExtendedCGMSValuesExtendedEntry(ATDataAccessAbstract da) { super(da); } + @Override public void initExtended() { @@ -27,6 +29,7 @@ ext_mapped_types.put(ExtendedCGMSValuesExtendedEntry.EXTENDED_SOURCE, "SOURCE"); } + @Override public String getExtendedObject() { Added: trunk/ggc-cgm/src/ggc/cgms/data/graph/v2/CGMSGraphContext.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/graph/v2/CGMSGraphContext.java (rev 0) +++ trunk/ggc-cgm/src/ggc/cgms/data/graph/v2/CGMSGraphContext.java 2015-07-09 18:22:14 UTC (rev 1356) @@ -0,0 +1,38 @@ +package ggc.cgms.data.graph.v2; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; + +import com.atech.graphics.graphs.v2.data.GraphContext; +import com.atech.graphics.graphs.v2.defs.GraphDataSourceTarget; +import com.atech.graphics.graphs.v2.defs.GraphDataSourceType; +import ggc.cgms.data.graph.v2.defs.CGMSDataSourceType; + +/** + * Created by andy on 30.04.15. + */ +public class CGMSGraphContext implements GraphContext +{ + + List<GraphDataSourceType> dataSources; + + + public CGMSGraphContext() + { + dataSources = new ArrayList<GraphDataSourceType>(); + dataSources.add(CGMSDataSourceType.CGMSData); + } + + + public List<GraphDataSourceType> getDataSources() + { + return dataSources; + } + + + public HashMap<GraphDataSourceType, GraphDataSourceTarget> getDataSourceTargets() + { + return null; + } +} Added: trunk/ggc-cgm/src/ggc/cgms/data/graph/v2/defs/CGMSDataSourceTargetType.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/graph/v2/defs/CGMSDataSourceTargetType.java (rev 0) +++ trunk/ggc-cgm/src/ggc/cgms/data/graph/v2/defs/CGMSDataSourceTargetType.java 2015-07-09 18:22:14 UTC (rev 1356) @@ -0,0 +1,35 @@ +package ggc.cgms.data.graph.v2.defs; + +import com.atech.graphics.graphs.v2.defs.GraphDataSourceTarget; +import com.atech.graphics.graphs.v2.defs.GraphDataSourceType; + +/** + * Created by andy on 28.05.15. + */ +public enum CGMSDataSourceTargetType implements GraphDataSourceTarget +{ + BGReading(CGMSDataSourceType.CGMSData), // + BGCalibration(CGMSDataSourceType.CGMSData), // + + ; + + GraphDataSourceType dataSource; + + + private CGMSDataSourceTargetType(GraphDataSourceType dataSource) + { + this.dataSource = dataSource; + } + + + public String getKey() + { + return this.name(); + } + + + public GraphDataSourceType getDataSource() + { + return this.dataSource; + } +} Added: trunk/ggc-cgm/src/ggc/cgms/data/graph/v2/defs/CGMSDataSourceType.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/data/graph/v2/defs/CGMSDataSourceType.java (rev 0) +++ trunk/ggc-cgm/src/ggc/cgms/data/graph/v2/defs/CGMSDataSourceType.java 2015-07-09 18:22:14 UTC (rev 1356) @@ -0,0 +1,16 @@ +package ggc.cgms.data.graph.v2.defs; + +import com.atech.graphics.graphs.v2.defs.GraphDataSourceType; + +/** + * Created by andy on 28.05.15. + */ +public enum CGMSDataSourceType implements GraphDataSourceType +{ + CGMSData; + + public String getKey() + { + return this.name(); + } +} Modified: trunk/ggc-cgm/src/ggc/cgms/device/AbstractCGMS.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/AbstractCGMS.java 2015-04-26 09:58:35 UTC (rev 1355) +++ trunk/ggc-cgm/src/ggc/cgms/device/AbstractCGMS.java 2015-07-09 18:22:14 UTC (rev 1356) @@ -35,7 +35,7 @@ */ public abstract class AbstractCGMS extends DeviceAbstract // CGMSInterface, - // SelectableInterface +// SelectableInterface { // AbstractDeviceCompany cgms_company; @@ -55,8 +55,8 @@ // protected OutputWriter outputWriter; protected String parameter; + // protected DataAccessCGMS dataAccess; - // protected GGCPlugInFileReaderContext[] fileContexts = null; /** * Constructor @@ -66,6 +66,7 @@ super(DataAccessCGMS.getInstance()); } + /** * Constructor * @@ -78,6 +79,7 @@ this.parameter = param; } + /** * Constructor * @@ -88,6 +90,7 @@ super(DataAccessCGMS.getInstance(), ow); } + /** * Constructor (should be used) * @@ -101,6 +104,7 @@ this.setCGMSType(cmp.getName(), getName()); } + /** * Constructor * @@ -113,6 +117,7 @@ super(params, writer, da); } + /** * Set Pump Type * @@ -139,6 +144,7 @@ } + /** * Get Name */ @@ -147,6 +153,7 @@ return "Generic device"; } + /** * Get Download Support Type (if device supports downloading data from it) * @@ -157,6 +164,7 @@ return DownloadSupportType.NoDownloadSupport; } + /** * How Many Months Of Data Stored * @@ -167,6 +175,7 @@ return 6; } + /** * hasIndeterminateProgressStatus - if status can't be determined then JProgressBar will go from * left to right side, without displaying progress. @@ -178,6 +187,7 @@ return false; } + @Override public boolean hasDefaultParameter() { @@ -190,9 +200,11 @@ * ... - OT Smart, etc), this devices require more extended data display. * @return */ - /*public int getInterfaceTypeForMeter() - { - return 0; - }*/ + /* + * public int getInterfaceTypeForMeter() + * { + * return 0; + * } + */ } Added: trunk/ggc-cgm/src/ggc/cgms/device/CGMSDeviceHandler.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/CGMSDeviceHandler.java (rev 0) +++ trunk/ggc-cgm/src/ggc/cgms/device/CGMSDeviceHandler.java 2015-07-09 18:22:14 UTC (rev 1356) @@ -0,0 +1,34 @@ +package ggc.cgms.device; + +import java.util.List; + +import ggc.cgms.data.defs.CGMSDeviceDefinition; +import ggc.plugin.data.GGCPlugInFileReaderContext; +import ggc.plugin.device.DownloadSupportType; +import ggc.plugin.device.v2.DeviceDefinition; +import ggc.plugin.device.v2.DeviceHandler; + +/** + * Created by andy on 15.04.15. + */ +public abstract class CGMSDeviceHandler implements DeviceHandler +{ + + public List<GGCPlugInFileReaderContext> getFileDownloadContexts(DownloadSupportType downloadSupportType) + { + return null; + } + + + protected String getCommunicationPort(Object connectionParameters) + { + return (String) connectionParameters; + } + + + protected CGMSDeviceDefinition getDeviceDefinition(DeviceDefinition definition) + { + return (CGMSDeviceDefinition) definition; + } + +} Modified: trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/data/AnimasCGMSDeviceData.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/data/AnimasCGMSDeviceData.java 2015-04-26 09:58:35 UTC (rev 1355) +++ trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/data/AnimasCGMSDeviceData.java 2015-07-09 18:22:14 UTC (rev 1356) @@ -16,7 +16,7 @@ import ggc.cgms.device.animas.impl.data.dto.AnimasDexcomWarning; import ggc.cgms.device.animas.impl.data.dto.CGMSSettings; import ggc.cgms.device.animas.impl.handler.AnimasCGMSDataWriter; -import ggc.plugin.data.enums.ClockModeType; +import ggc.core.data.defs.ClockModeType; import ggc.plugin.device.impl.animas.data.AnimasDeviceData; import ggc.plugin.device.impl.animas.data.AnimasDevicePacket; import ggc.plugin.device.impl.animas.data.dto.SettingEntry; Modified: trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/data/dto/CGMSSettings.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/data/dto/CGMSSettings.java 2015-04-26 09:58:35 UTC (rev 1355) +++ trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/data/dto/CGMSSettings.java 2015-07-09 18:22:14 UTC (rev 1356) @@ -10,9 +10,9 @@ import ggc.cgms.data.defs.CGMSConfigurationGroup; import ggc.cgms.util.DataAccessCGMS; +import ggc.core.data.defs.ClockModeType; +import ggc.core.data.defs.GlucoseUnitType; import ggc.plugin.data.DeviceValueConfigEntry; -import ggc.plugin.data.enums.ClockModeType; -import ggc.plugin.data.enums.GlucoseUnitType; import ggc.plugin.device.impl.animas.data.dto.SettingEntry; import ggc.plugin.device.impl.animas.enums.AnimasDataType; import ggc.plugin.device.impl.animas.enums.AnimasSoundType; Modified: trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/handler/AnimasDexcomDataHandler.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/handler/AnimasDexcomDataHandler.java 2015-04-26 09:58:35 UTC (rev 1355) +++ trunk/ggc-cgm/src/ggc/cgms/device/animas/impl/handler/AnimasDexcomDataHandler.java 2015-07-09 18:22:14 UTC (rev 1356) @@ -64,7 +64,7 @@ dexcomDataConverter = new AnimasDexcomDataConverter(deviceReader, data); new Thread(dexcomDataConverter).start(); this.dataConverter = this.dexcomDataConverter; - this.setDebugMode(true, false); + this.setDebugMode(false, false); } Modified: trunk/ggc-cgm/src/ggc/cgms/device/dexcom/DexcomCGMS.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/dexcom/DexcomCGMS.java 2015-04-26 09:58:35 UTC (rev 1355) +++ trunk/ggc-cgm/src/ggc/cgms/device/dexcom/DexcomCGMS.java 2015-07-09 18:22:14 UTC (rev 1356) @@ -1,5 +1,7 @@ package ggc.cgms.device.dexcom; +import java.util.ArrayList; + import ggc.cgms.device.AbstractCGMS; import ggc.cgms.device.dexcom.file.FRC_DexcomTxt_DM3; import ggc.cgms.device.dexcom.file.FRC_DexcomXml_DM3; @@ -51,6 +53,7 @@ super(); } + /** * Constructor * @@ -62,6 +65,7 @@ super(params, writer); } + /** * Constructor * @@ -74,6 +78,7 @@ super(params, writer, da); } + /** * Constructor * @@ -84,6 +89,7 @@ super(cmp); } + /** * getComment - Get Comment for device * @@ -94,6 +100,7 @@ return ""; } + /** * getImplementationStatus - Get Implementation Status * @@ -105,6 +112,7 @@ return DeviceImplementationStatus.Partitial; } + /** * Open * @@ -116,6 +124,7 @@ return true; } + /** * Close * @@ -125,6 +134,7 @@ { } + /** * This is method for reading configuration, in case that dump doesn't give this information. * @@ -135,6 +145,7 @@ { } + /** * readDeviceDataFull - This is method for reading data from device. All reading from actual device should * be done from here. Reading can be done directly here, or event can be used to read data. Usage of events @@ -146,6 +157,7 @@ { } + /** * This is method for reading partial data from device. This can be used if your device can be read partialy * (from some date to another) @@ -157,6 +169,7 @@ { } + /** * This is for reading device information. This should be used only if normal dump doesn't retrieve this * information (most dumps do). @@ -168,6 +181,7 @@ { } + /** * getDeviceInfo - get Device info (firmware and software revision) * @@ -179,6 +193,7 @@ return this.outputWriter.getDeviceIdentification(); } + /** * Dispose */ @@ -186,6 +201,7 @@ { } + /** * getConnectionPort - connection port data * @@ -196,6 +212,7 @@ return null; } + /** * getConnectionProtocol - returns id of connection protocol * @@ -206,6 +223,7 @@ return DeviceConnectionProtocol.None; } + /** * hasSpecialProgressStatus - in most cases we read data directly from device, in this case we have * normal progress status, but with some special devices we calculate progress through other means. @@ -218,6 +236,7 @@ return false; } + /** * getInstructions - get instructions for device * Should be implemented by meter class. @@ -229,6 +248,7 @@ return "INSTRUCTIONS_DEXCOM"; } + /** * Is Device Communicating * @@ -239,6 +259,7 @@ return true; } + /** * Is Device Readable (there are some devices that are not actual devices, but are used to get some * sort of specific device data - in most cases we call them generics, and they don't have ability @@ -252,6 +273,7 @@ return false; } + /** * Get DateTime From String * @@ -272,6 +294,7 @@ return Long.parseLong(val); } + /** * Get Time From String * @@ -288,16 +311,16 @@ return Integer.parseInt(val); } + /** * Load File Contexts - Load file contexts that device supports */ @Override public void loadFileContexts() { - // System.out.println("loadFileContexts"); - this.fileContexts = new GGCPlugInFileReaderContext[2]; - this.fileContexts[0] = new FRC_DexcomXml_DM3(dataAccess, this.outputWriter); - this.fileContexts[1] = new FRC_DexcomTxt_DM3(dataAccess, this.outputWriter); + this.fileContexts = new ArrayList<GGCPlugInFileReaderContext>(); + this.fileContexts.add(new FRC_DexcomXml_DM3(dataAccess, this.outputWriter)); + this.fileContexts.add(new FRC_DexcomTxt_DM3(dataAccess, this.outputWriter)); } } Modified: trunk/ggc-cgm/src/ggc/cgms/device/minimed/MiniMedCGMS.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/device/minimed/MiniMedCGMS.java 2015-04-26 09:58:35 UTC (rev 1355) +++ trunk/ggc-cgm/src/ggc/cgms/device/minimed/MiniMedCGMS.java 2015-07-09 18:22:14 UTC (rev 1356) @@ -1,5 +1,7 @@ package ggc.cgms.device.minimed; +import java.util.ArrayList; + import ggc.cgms.device.AbstractCGMS; import ggc.cgms.device.minimed.file.FRC_MinimedCarelink; import ggc.plugin.data.GGCPlugInFileReaderContext; @@ -297,9 +299,8 @@ @Override public void loadFileContexts() { - // System.out.println("loadFileContexts"); - this.fileContexts = new GGCPlugInFileReaderContext[1]; - this.fileContexts[0] = new FRC_MinimedCarelink(dataAccess, this.outputWriter); + this.fileContexts = new ArrayList<GGCPlugInFileReaderContext>(); + this.fileContexts.add(new FRC_MinimedCarelink(dataAccess, this.outputWriter)); } Modified: trunk/ggc-cgm/src/ggc/cgms/plugin/CGMSPlugInServer.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/plugin/CGMSPlugInServer.java 2015-04-26 09:58:35 UTC (rev 1355) +++ trunk/ggc-cgm/src/ggc/cgms/plugin/CGMSPlugInServer.java 2015-07-09 18:22:14 UTC (rev 1356) @@ -55,27 +55,26 @@ public class CGMSPlugInServer extends DevicePlugInServer implements ActionListener { + // /** + // * Command: Read CGMS data + // */ + // public static final int COMMAND_READ_CGMS_DATA = 0; + // + // /** + // * Command: Get List of devices + // */ + // public static final int COMMAND_CGMS_LIST = 1; + // + // /** + // * Command: Configuration + // */ + // public static final int COMMAND_CGMS_CONFIGURATION = 2; + // + // /** + // * Command: About + // */ + // public static final int COMMAND_CGMS_ABOUT = 3; -// /** -// * Command: Read CGMS data -// */ -// public static final int COMMAND_READ_CGMS_DATA = 0; -// -// /** -// * Command: Get List of devices -// */ -// public static final int COMMAND_CGMS_LIST = 1; -// -// /** -// * Command: Configuration -// */ -// public static final int COMMAND_CGMS_CONFIGURATION = 2; -// -// /** -// * Command: About -// */ -// public static final int COMMAND_CGMS_ABOUT = 3; - /** * Return Object: Selected Device with parameters */ @@ -91,15 +90,16 @@ */ public static final int RETURN_ACTION_CONFIG = 2; - //private String commands[] = { "MN_CGMS_READ_DESC", "MN_CGMS_LIST_DESC", "MN_CGMS_CONFIG_DESC", "MN_CGMS_ABOUT_DESC" }; + // private String commands[] = { "MN_CGMS_READ_DESC", "MN_CGMS_LIST_DESC", + // "MN_CGMS_CONFIG_DESC", "MN_CGMS_ABOUT_DESC" }; DataAccessCGMS da_local; private JMenuItem[] menus = new JMenuItem[3]; /** - * Constructor - */ + * Constructor + */ public CGMSPlugInServer() { super(); @@ -122,49 +122,6 @@ /** - * Execute Command on Server Side - * - * @param command - */ - @Override - public void executeCommand(int command, Object obj_data) - { -// switch (command) -// { -// case CGMSPlugInServer.COMMAND_READ_CGMS_DATA: -// { -// this.featureNotImplemented(commands[CGMSPlugInServer.COMMAND_READ_CGMS_DATA]); -// // DbDataReaderAbstract reader = -// // (DbDataReaderAbstract)obj_data; -// // new MeterInstructionsDialog(reader, this); -// return; -// } -// -// case CGMSPlugInServer.COMMAND_CGMS_LIST: -// { -// this.featureNotImplemented(commands[CGMSPlugInServer.COMMAND_CGMS_LIST]); -// return; -// } -// -// case CGMSPlugInServer.COMMAND_CGMS_ABOUT: -// { -// this.featureNotImplemented(commands[CGMSPlugInServer.COMMAND_CGMS_ABOUT]); -// return; -// } -// -// default: -// case CGMSPlugInServer.COMMAND_CGMS_CONFIGURATION: -// { -// this.featureNotImplemented(commands[CGMSPlugInServer.COMMAND_CGMS_CONFIGURATION]); -// return; -// } -// -// } - - } - - - /** * Get Name of plugin * * @return @@ -206,14 +163,14 @@ @Override public void initPlugIn() { - ic = m_da.getI18nControlInstance(); + ic = dataAccess.getI18nControlInstance(); if (da_local == null) { - da_local = DataAccessCGMS.createInstance(((ATDataAccessLMAbstract) m_da).getLanguageManager()); + da_local = DataAccessCGMS.createInstance(((ATDataAccessLMAbstract) dataAccess).getLanguageManager()); } - this.initPlugInServer((DataAccess) m_da, da_local); + this.initPlugInServer((DataAccess) dataAccess, da_local); } @@ -241,7 +198,7 @@ return da.getI18nControlInstance().getMessage("NO_DEVICE_SELECTED"); else { - if (m_da.isValueSet(de.communication_port) + if (dataAccess.isValueSet(de.communication_port) && !de.communication_port.equals(da.getI18nControlInstance().getMessage("NOT_SET"))) return String.format(da.getI18nControlInstance().getMessage("DEVICE_FULL_NAME_WITH_PORT"), de.device_device + " [" + de.device_company + "]", de.communication_port); @@ -348,7 +305,7 @@ } - private void refreshMenusAfterConfig() + public void refreshMenusAfterConfig() { menus[0].setEnabled(DownloadSupportType.isOptionSet(da_local.getDownloadStatus(), DownloadSupportType.DownloadData)); @@ -396,7 +353,7 @@ else if (command.equals("cgms_read_file")) { new DeviceInstructionsDialog(this.parent, DataAccessCGMS.getInstance(), this, - DeviceDataHandler.TRANSFER_READ_FILE); + DeviceDataHandler.TRANSFER_READ_DATA_FILE); // this.client.executeReturnAction(CGMSPlugInServer.RETURN_ACTION_READ_DATA); } else if (command.equals("cgms_list")) Modified: trunk/ggc-cgm/src/ggc/cgms/util/DataAccessCGMS.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgms/util/DataAccessCGMS.java 2015-04-26 09:58:35 UTC (rev 1355) +++ trunk/ggc-cgm/src/ggc/cgms/util/DataAccessCGMS.java 2015-07-09 18:22:14 UTC (rev 1356) @@ -15,10 +15,12 @@ import ggc.cgms.data.ExtendedCGMSValuesExtendedEntry; import ggc.cgms.data.cfg.CGMSConfigurationDefinition; import ggc.cgms.data.db.GGC_CGMSDb; +import ggc.cgms.data.graph.v2.CGMSGraphContext; import ggc.cgms.device.animas.AnimasCGMSHandler; import ggc.cgms.device.dexcom.DexcomHandler; import ggc.cgms.manager.CGMSManager; import ggc.core.plugins.GGCPluginType; +import ggc.core.util.DataAccess; import ggc.plugin.cfg.DeviceConfiguration; import ggc.plugin.data.enums.DeviceEntryStatus; import ggc.plugin.device.impl.animas.enums.AnimasSoundType; @@ -58,7 +60,7 @@ /** * PlugIn Version */ - public static final String PLUGIN_VERSION = "1.3.1"; // 1.0.2 + public static final String PLUGIN_VERSION = "1.3.2"; // 1.0.2 private static final String EXTENDED_HANDLER_CGMSValuesExtendedEntry = "CGMSValuesExtendedEntry"; @@ -108,7 +110,7 @@ this.createPlugInVersion(); loadDeviceDataHandler(); // loadManager(); - //loadReadingStatuses(); + // loadReadingStatuses(); this.createPlugInDataRetrievalContext(); this.createDeviceConfiguration(); this.createOldDataReader(); @@ -116,6 +118,7 @@ this.loadConverters(); this.prepareTranslationForEnums(); + this.prepareGraphContext(); } @@ -563,4 +566,13 @@ return "GGC CGMS Plugin"; } + + @Override + public void prepareGraphContext() + { + graphContext = new CGMSGraphContext(); + + DataAccess.getInstance().getGraphContext().addContext(graphContext); + } + } Modified: trunk/ggc-core/docs/Changelog =================================================================== --- trunk/ggc-core/docs/Changelog 2015-04-26 09:58:35 UTC (rev 1355) +++ trunk/ggc-core/docs/Changelog 2015-07-09 18:22:14 UTC (rev 1356) @@ -6,9 +6,10 @@ -------------------------------------------------------------------------------------------------- -0.6 [28.3.2015] [Andy] +0.6 [26.4.2015] [Andy] * Stocks changes * Configuration internal PDF Viewer + * I18n Fix 0.5.0.3 Modified: trunk/ggc-core/src/ggc/core/data/Converter_mgdL_mmolL.java =================================================================== --- trunk/ggc-core/src/ggc/core/data/Converter_mgdL_mmolL.java 2015-04-26 09:58:35 UTC (rev 1355) +++ trunk/ggc-core/src/ggc/core/data/Converter_mgdL_mmolL.java 2015-07-09 18:22:14 UTC (rev 1356) @@ -1,11 +1,33 @@ package ggc.core.data; import com.atech.misc.converter.ATechConverter; +import ggc.core.data.defs.GlucoseUnitType; /** - * @author Andy + * Application: GGC - GNU Gluco Control * + * See AUTHORS for copyright information. + * + * This program is free software; you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation; either version 2 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., 59 Temple + * Place, Suite 330, Boston, MA 02111-1307 USA + * + * Filename: Converter_mgdL_mmolL + * Description: mg/dL -> mmol/L converter. + * + * Author: Andy {an...@at...} */ + public class Converter_mgdL_mmolL extends ATechConverter { @@ -19,6 +41,7 @@ */ public static final int UNIT_mmol_L = 2; + private static final float MGDL_TO_MMOL_FACTOR = 0.0555f; private static final float MMOL_TO_MGDL_FACTOR = 18.016f; @@ -41,6 +64,19 @@ } + + public float getValueByType(GlucoseUnitType inputType, GlucoseUnitType outputType, Number value) + { + return this.getValueByType(getType(inputType), getType(outputType), value.floatValue()); + } + + + public int getType(GlucoseUnitType type) + { + return type == GlucoseUnitType.mg_dL ? UNIT_mg_dL : UNIT_mmol_L; + } + + /** * @param args */ Modified: trunk/ggc-core/src/ggc/core/data/DailyValuesRow.java =================================================================== --- trunk/ggc-core/src/ggc/core/data/DailyValuesRow.java 2015-04-26 09:58:35 UTC (rev 1355) +++ trunk/ggc-core/src/ggc/core/data/DailyValuesRow.java 2015-07-09 18:22:14 UTC (rev 1356) @@ -1,13 +1,9 @@ package ggc.core.data; -import ggc.core.db.hibernate.DayValueH; -import ggc.core.util.DataAccess; -import ggc.core.util.GGCProperties; - import java.io.Serializable; import java.util.ArrayList; import java.util.Date; -import java.util.Hashtable; +import java.util.HashMap; import java.util.StringTokenizer; import org.apache.commons.logging.Log; @@ -18,6 +14,10 @@ import com.atech.utils.ATDataAccessAbstract; import com.atech.utils.data.ATechDate; +import ggc.core.db.hibernate.DayValueH; +import ggc.core.util.DataAccess; +import ggc.core.util.GGCProperties; + /** * Application: GGC - GNU Gluco Control * @@ -69,8 +69,9 @@ DataAccess m_da = DataAccess.getInstance(); GGCProperties props = m_da.getSettings(); boolean debug = false; - Hashtable<String, String> ht_extended = new Hashtable<String, String>(); + HashMap<String, String> ht_extended = new HashMap<String, String>(); + public DailyValuesRow() { this.datetime = 0L; @@ -84,6 +85,7 @@ this.ht_extended = this.getExtendedHandler().loadExtended(extended); } + public DailyValuesRow(long datetime, int bg, int ins1, int ins2, float ch, String extended, String comment) { this.datetime = datetime; @@ -97,6 +99,7 @@ this.ht_extended = this.getExtendedHandler().loadExtended(extended); } + public DailyValuesRow(long datetime, int bg, int ins1, int ins2, float ch, String activity, String urine, String comment) { @@ -106,13 +109,14 @@ this.ins1 = ins1; this.ins2 = ins2; this.ch = ch; - this.setExtendedValue(ExtendedDailyValue.EXTENDED_ACTIVITY, activity, false); - this.setExtendedValue(ExtendedDailyValue.EXTENDED_URINE, urine, false); + this.setExtendedValue(ExtendedDailyValueHandler.EXTENDED_ACTIVITY, activity, false); + this.setExtendedValue(ExtendedDailyValueHandler.EXTENDED_URINE, urine, false); // this.activity = activity; // this.urine = urine; this.comment = comment; } + public DailyValuesRow(DayValueH dv) { this.datetime = dv.getDt_info(); @@ -128,6 +132,7 @@ this.ht_extended = this.getExtendedHandler().loadExtended(extended); } + public DailyValuesRow(long datetime, String BG, String Ins1, String Ins2, String CH, String act, String urine, String Comment, ArrayList<String> lst_meals) { @@ -137,8 +142,8 @@ this.ins2 = m_da.getIntValueFromString(Ins2, 0); this.ch = m_da.getIntValueFromString(CH, 0); - this.setExtendedValue(ExtendedDailyValue.EXTENDED_ACTIVITY, act, false); - this.setExtendedValue(ExtendedDailyValue.EXTENDED_URINE, urine, false); + this.setExtendedValue(ExtendedDailyValueHandler.EXTENDED_ACTIVITY, act, false); + this.setExtendedValue(ExtendedDailyValueHandler.EXTENDED_URINE, urine, false); // this.meals = dv.getMeals_ids(); // this.extended = dv.getExtended(); @@ -146,14 +151,16 @@ } + public boolean areMealsSet() { - if (m_da.isValueSet(this.meals) || this.isExtendedValueSet(ExtendedDailyValue.EXTENDED_FOOD_DESCRIPTION)) + if (m_da.isValueSet(this.meals) || this.isExtendedValueSet(ExtendedDailyValueHandler.EXTENDED_FOOD_DESCRIPTION)) return true; else return false; } + /** * Are Meals Set * @@ -163,22 +170,25 @@ { if (m_da.isValueSet(this.meals)) return 1; - else if (this.isExtendedValueSet(ExtendedDailyValue.EXTENDED_FOOD_DESCRIPTION)) + else if (this.isExtendedValueSet(ExtendedDailyValueHandler.EXTENDED_FOOD_DESCRIPTION)) return 2; else return 0; } + public String getMealsIds() { return this.meals; } + public void setMealsIds(String val) { this.meals = val; } + /** * Get DateTime Long * @@ -205,6 +215,7 @@ } + /** * To String * @@ -217,10 +228,11 @@ // ";Ins2=" + Ins2 + ";BE=" + BE + ";Act=" + Act + ";Comment=" + Comment // + ";"; return "DailyValuesRow [dt=" + getDateTime() + ";bg=" + bg + ";ins1=" + ins1 + ";ins2=" + ins2 + ";CH=" + ch - + ";activity=" + getExtendedValue(ExtendedDailyValue.EXTENDED_ACTIVITY) + ";urine=" - + getExtendedValue(ExtendedDailyValue.EXTENDED_URINE) + ";comment=" + comment + "]"; + + ";activity=" + getExtendedValue(ExtendedDailyValueHandler.EXTENDED_ACTIVITY) + ";urine=" + + getExtendedValue(ExtendedDailyValueHandler.EXTENDED_URINE) + ";comment=" + comment + "]"; } + /** * Get DateTime * @@ -232,6 +244,7 @@ return datetime; } + /** * Set DateTime * @@ -246,6 +259,7 @@ } } + /** * Get Date * @@ -256,6 +270,7 @@ return datetime / 10000; } + /** * Get Date As String * @@ -266,6 +281,7 @@ return ATDataAccessAbstract.getDateTimeAsDateString(datetime); } + /** * Get Time As String * @@ -276,6 +292,7 @@ return ATDataAccessAbstract.getDateTimeAsTimeString(datetime); } + /** * Get DateTime As Time * @@ -287,6 +304,7 @@ + ATechDate.convertATDate(datetime, ATechDate.FORMAT_DATE_AND_TIME_MIN, ATechDate.FORMAT_TIME_ONLY_MIN); } + /** * Get DateTime As ATDate * @@ -297,6 +315,7 @@ return new ATechDate(datetime); } + /** * Get DateTime As Date * @@ -319,6 +338,7 @@ } + /** * Set DateTime * @@ -330,6 +350,7 @@ datetime = getDateTimeLong(date, time); } + /** * Get BG * @@ -354,7 +375,7 @@ return v; - // return m_da.getBGValueByType(DataAccess.BG_MMOL, bg); + // return dataAccess.getBGValueByType(DataAccess.BG_MMOL, bg); } else { @@ -368,6 +389,7 @@ } + /** * Get BG As String * @@ -404,6 +426,7 @@ } + /** * Get BG Raw * @@ -414,6 +437,7 @@ return bg; } + /** * Get BG * @@ -445,6 +469,7 @@ */ public static int BG_MGDL = 1; + /** * Set BG * @@ -477,6 +502,7 @@ } + /** * Set BG * @@ -506,6 +532,7 @@ } + /** * Set BG * @@ -525,6 +552,7 @@ } } + /** * Get Ins 1 * @return @@ -534,6 +562,7 @@ return ins1; } + /** * Get Ins 1 As String * @return @@ -543,24 +572,27 @@ return getFloatAsIntString(ins1); } + /** * Get Ins 1 As Decimal String * @return */ public String getIns1AsStringDecimal() { - return getDecimalValue(this.ins1, this.getExtendedValue(ExtendedDailyValue.EXTENDED_DECIMAL_PART_INS1)); + return getDecimalValue(this.ins1, this.getExtendedValue(ExtendedDailyValueHandler.EXTENDED_DECIMAL_PART_INS1)); } + /** * Get Ins 2 As Decimal String * @return */ public String getIns2AsStringDecimal() { - return getDecimalValue(this.ins2, this.getExtendedValue(ExtendedDailyValue.EXTENDED_DECIMAL_PART_INS2)); + return getDecimalValue(this.ins2, this.getExtendedValue(ExtendedDailyValueHandler.EXTENDED_DECIMAL_PART_INS2)); } + private String getDecimalValue(int val, String decimal) { int dec = 0; @@ -581,6 +613,7 @@ } + private float getDecimalValueAsFloat(int value, String decimal_part) { float val = 0.0f; @@ -591,6 +624,7 @@ return val; } + /** * Set Ins 1 * @@ -604,6 +638,7 @@ } } + /** * Set Ins 1 * @@ -618,6 +653,7 @@ } } + /** * Get Ins 2 * @return @@ -627,6 +663,7 @@ return ins2; } + /** * Get Ins 1 As String * @return @@ -636,6 +673,7 @@ return getFloatAsIntString(ins2); } + /** * Set Ins 2 * @@ -653,6 +691,7 @@ } } + /** * Set Ins 2 * @@ -667,6 +706,7 @@ } } + /** * Get CH * @@ -677,6 +717,7 @@ return ch; } + /** * Get CH As String * @@ -687,6 +728,7 @@ return this.getFloatAsString(ch); } + /** * Set CH * @@ -697,6 +739,7 @@ setCH(m_da.getFloatValue(val)); } + /** * Set CH * @@ -711,6 +... [truncated message content] |
From: <and...@us...> - 2015-08-01 08:52:59
|
Revision: 1358 http://sourceforge.net/p/ggc/code/1358 Author: andyrozman Date: 2015-08-01 08:52:57 +0000 (Sat, 01 Aug 2015) Log Message: ----------- - web page for 0.6 (not complete) - some docs Modified Paths: -------------- trunk/ggc-core/src/ggc/core/db/GGCDbLoader.java trunk/ggc-desktop/doc/TO-DO Detailed.txt trunk/ggc-support/doc/deployment/deployment-HowTo.txt trunk/web_page/inc_download.inc Modified: trunk/ggc-core/src/ggc/core/db/GGCDbLoader.java =================================================================== --- trunk/ggc-core/src/ggc/core/db/GGCDbLoader.java 2015-07-29 09:59:45 UTC (rev 1357) +++ trunk/ggc-core/src/ggc/core/db/GGCDbLoader.java 2015-08-01 08:52:57 UTC (rev 1358) @@ -270,8 +270,6 @@ // System.out.println("We needed " + (dif/1000) + // " seconds to startup."); log.debug("We needed " + dif / 1000 + " seconds to startup."); - - m_da.getMainParent() } Modified: trunk/ggc-desktop/doc/TO-DO Detailed.txt =================================================================== --- trunk/ggc-desktop/doc/TO-DO Detailed.txt 2015-07-29 09:59:45 UTC (rev 1357) +++ trunk/ggc-desktop/doc/TO-DO Detailed.txt 2015-08-01 08:52:57 UTC (rev 1358) @@ -1,5 +1,27 @@ +GGC 0.7 +======= +- stocks feature +- minimed support: There should be Pump Support available, to be used with ComLink (Serial cable) and ContourLink (USB) + NOT IN SCOPE: CGMS, CountourNextLink (Meter), Carelink file import (Pump or CGMS) +- upgrade feature +- graphs framework v2: read xml file and create graph in viewer + NOT IN SCOPE: editor, not all graph types will be supported (we will start with some simple graphs and then extends this in next versions) + +- report DailyTimesheet + CGMS data + +???? + + + + + + + + + + STOCKS Feature: =============== - stock types Modified: trunk/ggc-support/doc/deployment/deployment-HowTo.txt =================================================================== --- trunk/ggc-support/doc/deployment/deployment-HowTo.txt 2015-07-29 09:59:45 UTC (rev 1357) +++ trunk/ggc-support/doc/deployment/deployment-HowTo.txt 2015-08-01 08:52:57 UTC (rev 1358) @@ -5,6 +5,7 @@ 1. Make full build: mvn clean install in root + 2. Make dependencies build: a.) mvn dependency:copy-dependencies b.) mvn dependency:copy-dependencies "-Dmdep.useRepositoryLayout=true" "-DcopyPom=true" @@ -15,28 +16,35 @@ 3. Copy createFullDependencies.sh to ggc root and run it. It will copy all dependencies from all projects into specified (in .sh) directory. This will also copy together all documentation. + 4. Compare new dependencies to old one (previous release) and copy them to target deployment directory and prepare new GGCUpdate.properties configuration. + 5. Sort copied documentation from step 3 + 6. Make final deployment artifacts: - zip deployment of project (GGC-<version>.zip) - copy all files to windows build environent and create Windows installer - create update zip (update from 0.3.0 version) + 7. Send mail to all testers (GGC Testers list) with link to new version. --- WAIT 2 weeks and fix problems, start again with step 1 and then skip step 7 or give software for retest + 8. Prepare entries for Update Server (xml of GGCUpdate, copy update zip) + 9. Prepare Web page -7. Release deployment files to sf.net and deploy web page +10. Release deployment files to sf.net and deploy web page + a) b) @@ -46,11 +54,17 @@ -8. Deploy some documentation to Website if required +11. Deploy some documentation to Website if required +12. Tag released version in SVN +svn copy svn+ssh://and...@sv.../p/ggc/code/trunk \ + svn+ssh://and...@sv.../p/ggc/code/tags/0.6.0 -m "GGC 0.6.0" + + + --- Useful commands A) Create dependency tree Modified: trunk/web_page/inc_download.inc =================================================================== --- trunk/web_page/inc_download.inc 2015-07-29 09:59:45 UTC (rev 1357) +++ trunk/web_page/inc_download.inc 2015-08-01 08:52:57 UTC (rev 1358) @@ -1,212 +1,345 @@ <blockquote> -<br> -<h1 class="header">Download</h1> + <br> -<br> -<h2>Packaged software</h2> + <h1 class="header">Download</h1> -This is preffered way of getting software (intended for all end users). In short you need to download package and install it. -This is easier done on Windows platform, since we have installer, and little harder for all other platforms. There are detailed -instructions in instalation package (see \docs folder, files Readme_1st and Readme, this 2 files are translated into german and -slovene (as is application)). + <br> -<h3>GGC Releases</h3> + <h2>Packaged software</h2> + This is preffered way of getting software (intended for all end users). In short you need to download package and + install it. This is easier done on Windows platform, since we have installer, and little harder for all other + platforms. There are detailed instructions in instalation package (see \docs folder, files Readme_1st and Readme, + this 2 files are translated into german and slovene (as is application)). + <br><br><br> + In each release there are 4 files: + <ul> + <li>GGC_Setup_<Version Number>_jre.exe - This is Windows installer with Java. You should use this install + file if you have no knowledge about Java. It contains JRE, so the file is much bigger, but you can just + install it, out-of-the-box, without any special intervention (advised for most end-users).. [This is + recomended option for Windows Users] + </li> -<h4>Version 0.5.0.3 [May 2014] (fixed release September 2014) </h4> + <li>GGC_Setup_<Version Number>.exe - This is windows installer without Java. Download this if you have + Java already + on computer and your knowledge of computers is above average (you might need to configure java to run with + application). + </li> -<ul> -<li><a href="http://sourceforge.net/projects/ggc/files/GNU%20Gluco%20Control/GGC%200.5.0.3-2/GGC_Setup_0.5.0.3-2_jre.exe/download"> -GGC 0.5.0.3 (release 2) Windows Installer (with JRE)</a> - You should use this -install file if you have no knowledge about Java. It contains JRE, so the file is much bigger, but you can just install it, out-of-the-box, -without any special intervention (advised for most end-users).</li> + <li>GGC_<Version Number>.zip - (Full) Zip file< containing all the files - This is for all other + platforms. + You just extract it and then follow by reading Readme_1st to get it running. (in short you need to enter bin + folder and run "run_ + <platform>" file, platform is either win, linux, mac or freebsd). + </li> -<li><a href="http://sourceforge.net/projects/ggc/files/GNU%20Gluco%20Control/GGC%200.5.0.3-2/GGC_Setup_0.5.0.3-2.exe/download"> -GGC 0.5.0.3 (release 2) Windows Installer (without JRE)</a> - If you have Java -already on your computer, and your knowledge of computer is above average you can decide to take this file and manually configure -application to run with your installed Java.</li> + <li>GGC_Upgrade_<Version Number>.zip - Upgrade Zip file. If you have installed previous version of GGC + (version 0.3 + and above) and already have data stored in it, this is the file you need to use. Read document + 'How_To_Upgrade.txt' + in zip file. (This file should be used only by users who know basic of O.S. they are using. Please make + backup + first before you attempt any update. <br><b>NOTE:</b> If you are not sure if you can do upgrade, you can do + following: + backup all data from previous version, install new version and then do restore of data. + </li> + </ul> -<li><a href="http://sourceforge.net/projects/ggc/files/GNU%20Gluco%20Control/GGC%200.5.0.3-2/GGC_0.5.0.3-2.zip/download">GGC 0.5.0.3 (release 2) Zip file</a>, with all files - -For all other platforms you need to use this file. You just extract it and then follow by reading Readme_1st to get it -running. (in short you need to enter bin folder and run "run_<platform>" file, platform is either win, linux, mac or freebsd).</li> -<li><a href="http://sourceforge.net/projects/ggc/files/GNU%20Gluco%20Control/GGC%200.5.0.3-2/GGC_Update_0.5.0.3-2.zip/download">GGC Update 0.5.0.3 (release 2) Zip file</a>, this -file contains only files that were updates since 1st release (0.3). If you have installed previous version of GGC and have data -in it, this would be file to use. Read document 'How_To_Upgrade.txt' in zip file. (This file should be used only by users who know -basic of O.S. they are using. Please make backup first before you attempt any update. Safer way would be to backup all data -from previous version, install new version and then do restore of data.</li> + <h3>GGC Releases</h3> -</ul> + <h4>Version 0.6.0 [July 2015]</h4> + <ul> + <li> + <a href="http://sourceforge.net/projects/ggc/files/GNU%20Gluco%20Control/GGC%200.5.0.3-2/GGC_Setup_0.5.0.3-2_jre.exe/download"> + GGC 0.5.0.3 (release 2) Windows Installer with Java [Preferred for Windows users]</a> + </li> -<h4>Version 0.4 Updates</h4> + <li> + <a href="http://sourceforge.net/projects/ggc/files/GNU%20Gluco%20Control/GGC%200.5.0.3-2/GGC_Setup_0.5.0.3-2.exe/download"> + GGC 0.5.0.3 (release 2) Windows Installer without Java</a> - If you have Java + already on your computer, and your knowledge of computer is above average you can decide to take this file + and manually configure + application to run with your installed Java. + </li> + <li> + <a href="http://sourceforge.net/projects/ggc/files/GNU%20Gluco%20Control/GGC%200.5.0.3-2/GGC_0.5.0.3-2.zip/download">GGC + 0.5.0.3 (release 2) Zip file</a>, with all files - + For all other platforms you need to use this file. You just extract it and then follow by reading Readme_1st + to get it + running. (in short you need to enter bin folder and run "run_ + <platform>" file, platform is either win, linux, mac or freebsd). + </li> -<ul> -<li><a href="http://downloads.sourceforge.net/ggc/GGC_Update_0.4.10.1.zip?use_mirror=osdn">GGC 0.4.10.1 Update</a> - -This is minor fix, for configuration (there was problem with setting BG unit, which might be problematic for new -users). Old users don't need to install this (unless they want to change BG Unit). -</li> -</ul> + <li> + <a href="http://sourceforge.net/projects/ggc/files/GNU%20Gluco%20Control/GGC%200.5.0.3-2/GGC_Update_0.5.0.3-2.zip/download">GGC + Update 0.5.0.3 (release 2) Zip file</a>, this + file contains only files that were updates since 1st release (0.3). If you have installed previous version + of GGC and have data + in it, this would be file to use. Read document 'How_To_Upgrade.txt' in zip file. (This file should be used + only by users who know + basic of O.S. they are using. Please make backup first before you attempt any update. Safer way would be to + backup all data + from previous version, install new version and then do restore of data. + </li> + </ul> -<ul> -<li><a href="http://downloads.sourceforge.net/ggc/GGC_Update_0.4.10.zip?use_mirror=osdn">GGC 0.4.10 Update</a> - This update makes changes -to main application (application mode), and some bug fixes on all parts. Most changes were done on Pump Tool (added devices, -changes made to manual adding).</li> -</ul> + <h4>Version 0.5.0.3 [May 2014] (fixed release September 2014) </h4> + <ul> + <li> + <a href="http://sourceforge.net/projects/ggc/files/GNU%20Gluco%20Control/GGC%200.5.0.3-2/GGC_Setup_0.5.0.3-2_jre.exe/download"> + GGC 0.5.0.3 (release 2) Windows Installer (with JRE)</a> - You should use this + install file if you have no knowledge about Java. It contains JRE, so the file is much bigger, but you can + just install it, out-of-the-box, + without any special intervention (advised for most end-users). + </li> -<ul> -<li><a href="http://downloads.sourceforge.net/ggc/GGC_Update_0.4.3.zip?use_mirror=osdn">GGC 0.4.3 Update</a> - This update makes changes -to HbA1c Dialog, Printing system and Startup system, also there has been change to Nutrition part (we now have dynamic loading of data, -so startup is faster).</li> -</ul> + <li> + <a href="http://sourceforge.net/projects/ggc/files/GNU%20Gluco%20Control/GGC%200.5.0.3-2/GGC_Setup_0.5.0.3-2.exe/download"> + GGC 0.5.0.3 (release 2) Windows Installer (without JRE)</a> - If you have Java + already on your computer, and your knowledge of computer is above average you can decide to take this file + and manually configure + application to run with your installed Java. + </li> -<h4>Version 0.4</h4> + <li> + <a href="http://sourceforge.net/projects/ggc/files/GNU%20Gluco%20Control/GGC%200.5.0.3-2/GGC_0.5.0.3-2.zip/download">GGC + 0.5.0.3 (release 2) Zip file</a>, with all files - + For all other platforms you need to use this file. You just extract it and then follow by reading Readme_1st + to get it + running. (in short you need to enter bin folder and run "run_ + <platform>" file, platform is either win, linux, mac or freebsd). + </li> -<ul> -<li><a href="http://downloads.sourceforge.net/ggc/GGC_Setup_0.4_jre.exe?use_mirror=osdn">GGC 0.4 Windows Installer (with JRE)</a> - You should use this -install file if you have no knowledge about Java. It contains JRE, so the file is much bigger, but you can just install it, out-of-the-box, -without any special intervention (advised for most end-users).</li> + <li> + <a href="http://sourceforge.net/projects/ggc/files/GNU%20Gluco%20Control/GGC%200.5.0.3-2/GGC_Update_0.5.0.3-2.zip/download">GGC + Update 0.5.0.3 (release 2) Zip file</a>, this + file contains only files that were updates since 1st release (0.3). If you have installed previous version + of GGC and have data + in it, this would be file to use. Read document 'How_To_Upgrade.txt' in zip file. (This file should be used + only by users who know + basic of O.S. they are using. Please make backup first before you attempt any update. Safer way would be to + backup all data + from previous version, install new version and then do restore of data. + </li> -<li><a href="http://downloads.sourceforge.net/ggc/GGC_Setup_0.4.exe?use_mirror=osdn">GGC 0.4 Windows Installer (without JRE)</a> - If you have Java -already on your computer, and your knowledge of computer is above average you can decide to take this file and manually configure -application to run with your installed Java.</li> + </ul> -<li><a href="http://downloads.sourceforge.net/ggc/GGC_0.4.zip?use_mirror=osdn">GGC 0.4 Zip file</a>, with all files - For all other platforms you need -to use this file. You just extract it and then follow by reading Readme_1st to get it running.</li> -<li><a href="http://downloads.sourceforge.net/ggc/GGC_Update_0.4.zip?use_mirror=osdn">GGC Update 0.4 Zip file</a>, this file contains only files that were -updates since 1st release (0.3). If you have installed GGC 0.3 and have data in it, this would be file to use. Read document 'How_To_Upgrade.txt' in zip -file.</li> + <h4>Version 0.4 Updates</h4> -</ul> + <ul> + <li><a href="http://downloads.sourceforge.net/ggc/GGC_Update_0.4.10.1.zip?use_mirror=osdn">GGC 0.4.10.1 + Update</a> - + This is minor fix, for configuration (there was problem with setting BG unit, which might be problematic for + new + users). Old users don't need to install this (unless they want to change BG Unit). + </li> + </ul> -<h4>Version 0.3.1</h4> + <ul> + <li><a href="http://downloads.sourceforge.net/ggc/GGC_Update_0.4.10.zip?use_mirror=osdn">GGC 0.4.10 Update</a> - + This update makes changes + to main application (application mode), and some bug fixes on all parts. Most changes were done on Pump Tool + (added devices, + changes made to manual adding). + </li> + </ul> -<ul> -<li><a href="http://downloads.sourceforge.net/ggc/GGC_Update_0.3.1.zip?use_mirror=osdn">Update 0.3.1</a> - This update is needed -if you plan to update your GGC from version 0.3. If you don't have any data in 0.3, it would be wiser to uninstall 0.3 -and install one of higher versions.</li> + <ul> + <li><a href="http://downloads.sourceforge.net/ggc/GGC_Update_0.4.3.zip?use_mirror=osdn">GGC 0.4.3 Update</a> - + This update makes changes + to HbA1c Dialog, Printing system and Startup system, also there has been change to Nutrition part (we now + have dynamic loading of data, + so startup is faster). + </li> + </ul> + <h4>Version 0.4</h4> -</ul> + <ul> + <li><a href="http://downloads.sourceforge.net/ggc/GGC_Setup_0.4_jre.exe?use_mirror=osdn">GGC 0.4 Windows + Installer (with JRE)</a> - You should use this + install file if you have no knowledge about Java. It contains JRE, so the file is much bigger, but you can + just install it, out-of-the-box, + without any special intervention (advised for most end-users). + </li> + <li><a href="http://downloads.sourceforge.net/ggc/GGC_Setup_0.4.exe?use_mirror=osdn">GGC 0.4 Windows Installer + (without JRE)</a> - If you have Java + already on your computer, and your knowledge of computer is above average you can decide to take this file + and manually configure + application to run with your installed Java. + </li> -<h4>Version 0.3</h4> + <li><a href="http://downloads.sourceforge.net/ggc/GGC_0.4.zip?use_mirror=osdn">GGC 0.4 Zip file</a>, with all + files - For all other platforms you need + to use this file. You just extract it and then follow by reading Readme_1st to get it running. + </li> -<ul> -<li><a href="http://downloads.sourceforge.net/ggc/GGC_Setup_0.3_jre.exe?use_mirror=osdn">GGC 0.3 Windows Installer (with JRE)</a> - You should use this -install file if you have no knowledge about Java. It contains JRE, so the file is much bigger, but you can just install it, out-of-the-box, -without any special intervention (advised for most end-users).</li> + <li><a href="http://downloads.sourceforge.net/ggc/GGC_Update_0.4.zip?use_mirror=osdn">GGC Update 0.4 Zip + file</a>, this file contains only files that were + updates since 1st release (0.3.1). If you have installed GGC 0.3.1 and have data in it, this would be file + to + use. Read document 'How_To_Upgrade.txt' in zip + file. + </li> -<li><a href="http://downloads.sourceforge.net/ggc/GGC_Setup_0.3.exe?use_mirror=osdn">GGC 0.3 Windows Installer (without JRE)</a> - If you have Java -already on your computer, and your knowledge of computer is above average you can decide to take this file and manually configure -application to run with your installed Java.</li> + </ul> -<li><a href="http://downloads.sourceforge.net/ggc/GGC_0.3.zip?use_mirror=osdn">GGC 0.3 Zip file</a>, with all files - For all other platforms you need -to use this file. You just extract it and then follow by reading Readme_1st to get it running.</li> + <h4>Version 0.3.1</h4> -</ul> + <ul> + <li><a href="http://downloads.sourceforge.net/ggc/GGC_Update_0.3.1.zip?use_mirror=osdn">Update 0.3.1</a> - This + update is needed if you plan to update your GGC from version 0.3. If you don't have any data in 0.3, it + would be wiser to uninstall 0.3 and install one of higher versions. + </li> + </ul> -<br> -<h3>USB Releases</h3> + <h4>Version 0.3</h4> -<h4>GGC USB Version</h4> -<ul> -<li>USB Releases are the same as full releases. Download any of them, and extract them from zip file, then -download one of GVM releases (for version 0.4 and higher) or VM releases (for version 0.3). - /li> -</ul> + <ul> + <li><a href="http://downloads.sourceforge.net/ggc/GGC_Setup_0.3_jre.exe?use_mirror=osdn">GGC 0.3 Windows + Installer with Java [Preferred for Windows users]</a> + </li> + <li><a href="http://downloads.sourceforge.net/ggc/GGC_Setup_0.3.exe?use_mirror=osdn">GGC 0.3 Windows Installer + without Java</a> + </li> -<h4>USB GVMs (from 0.4 up) - Full</h4> + <li><a href="http://downloads.sourceforge.net/ggc/GGC_0.3.zip?use_mirror=osdn">GGC 0.3 (Full) Zip file</a> + </li> -<ul> -<li><a href="http://downloads.sourceforge.net/ggc/GVM_linux_x86_1.zip?use_mirror=osdn">Linux GVM [Java 1.6]</a></li> -<li><a href="http://downloads.sourceforge.net/ggc/GVM_win_1.zip?use_mirror=osdn">Windows GVM [Java 1.6]</a></li> -<li><a href="http://downloads.sourceforge.net/ggc/GVM_freebsd_1.zip?use_mirror=osdn">FreeBSD GVM [Java 1.6]</a></li> -</ul> + </ul> -<h4>USB GVMs (from 0.4 up) - Lite</h4> + <br> -<ul> -<li><a href="http://downloads.sourceforge.net/ggc/GVM_freebsd_lite_1.zip?use_mirror=osdn">FreeBSD Lite GVM</a></li> -<li><a href="http://downloads.sourceforge.net/ggc/GVM_mac_lite_1.zip?use_mirror=osdn">Mac Lite GVM</a></li> -</ul> + <h3>USB Releases</h3> + <h4>GGC USB Version</h4> + <ul> + <li>USB Releases are the same as full releases. Download any of them, and extract them from zip file, then + download one of GVM releases (for version 0.4 and higher) or VM releases (for version 0.3). + /li> + </ul> -<h4>USB VMs (this were used for 0.3 version only)</h4> -<ul> -<li><a href="http://downloads.sourceforge.net/ggc/Windows_16.zip?use_mirror=osdn">Windows VM [Java 1.6]</a></li> -<li><a href="http://downloads.sourceforge.net/ggc/Linux_16.zip?use_mirror=osdn">Linux VM [Java 1.6]</a></li> -<li><a href="http://downloads.sourceforge.net/ggc/FreeBSD_v7_16.zip?use_mirror=osdn">FreeBSD VM (FreeBSD 7.0) [Java 1.6]</a></li> -</ul> + <h4>USB GVMs (from 0.4 up) - Full</h4> -<br> + <ul> + <li><a href="http://downloads.sourceforge.net/ggc/GVM_linux_x86_1.zip?use_mirror=osdn">Linux GVM [Java 1.6]</a> + </li> + <li><a href="http://downloads.sourceforge.net/ggc/GVM_win_1.zip?use_mirror=osdn">Windows GVM [Java 1.6]</a></li> + <li><a href="http://downloads.sourceforge.net/ggc/GVM_freebsd_1.zip?use_mirror=osdn">FreeBSD GVM [Java 1.6]</a> + </li> + </ul> -<h3>Other files</h3> + <h4>USB GVMs (from 0.4 up) - Lite</h4> -<h4>USDA Nutrition Database</h4> + <ul> + <li><a href="http://downloads.sourceforge.net/ggc/GVM_freebsd_lite_1.zip?use_mirror=osdn">FreeBSD Lite GVM</a> + </li> + <li><a href="http://downloads.sourceforge.net/ggc/GVM_mac_lite_1.zip?use_mirror=osdn">Mac Lite GVM</a></li> + </ul> -<ul> -<li><a href="http://downloads.sourceforge.net/ggc/USDA_Nutrient_Db_for_Standard_Reference_r18.zip?use_mirror=kent">USDA Nutrition Database 18</a> - Our software supports any of USDA databases, but since we are using some of data here imported (Home Weights), we are still little bit dependant. If you will start with your own User database, you should install newer version, but for some of here supplied User Databases, you will need specific versions. We will remove this dependency in the future, but for now our "Supported" version is still 18.</li> -</ul> + <h4>USB VMs (this were used for 0.3 version only)</h4> + <ul> + <li><a href="http://downloads.sourceforge.net/ggc/Windows_16.zip?use_mirror=osdn">Windows VM [Java 1.6]</a></li> + <li><a href="http://downloads.sourceforge.net/ggc/Linux_16.zip?use_mirror=osdn">Linux VM [Java 1.6]</a></li> + <li><a href="http://downloads.sourceforge.net/ggc/FreeBSD_v7_16.zip?use_mirror=osdn">FreeBSD VM (FreeBSD 7.0) + [Java 1.6]</a></li> + </ul> -<h4>Custom Nutrition Databases</h4> -<ul> -<li><a href="http://downloads.sourceforge.net/ggc/SLO_Db_1.zip?use_mirror=osdn">Slovenian Nutrition Database 1</a> - This is nutrition database for people living in Slovenia and speaking Slovenian. All instructions and notes are inside zip archive. Required USDA SR-18. Contains database from diabetes software Kocka.</li> -<li><a href="http://downloads.sourceforge.net/ggc/SLO_Db_2.zip?use_mirror=osdn">Slovenian Nutrition Database 2</a> - This is nutrition database for people living in Slovenia and speaking Slovenian. All instructions and notes are inside zip archive. Required USDA SR-18. Contains databases from 2 different Slovenian programs: Kocka and Daciofit</li> -</ul> + <br> + <h3>Other files</h3> -<br> -<h2>Build from source</h2> + <h4>USDA Nutrition Database</h4> -If you are Java developer, you will probably try to build whole thing from source code. All our current code is in SVN (we -used CVS few years back). If you are not ready for a challenge, then try to download packaged software release. There will -be pause between releases (6 months or more for major releases, minor releases will be released, when needed changes are -done). + <ul> + <li> + <a href="http://downloads.sourceforge.net/ggc/USDA_Nutrient_Db_for_Standard_Reference_r18.zip?use_mirror=kent">USDA + Nutrition Database 18</a> - Our software supports any of USDA databases, but since we are using some of + data here imported (Home Weights), we are still little bit dependant. If you will start with your own User + database, you should install newer version, but for some of here supplied User Databases, you will need + specific versions. We will remove this dependency in the future, but for now our "Supported" version is + still 18. + </li> + </ul> -<ul> + <h4>Custom Nutrition Databases</h4> -<li>SVN:</li><br> + <ul> + <li><a href="http://downloads.sourceforge.net/ggc/SLO_Db_1.zip?use_mirror=osdn">Slovenian Nutrition Database + 1</a> - This is nutrition database for people living in Slovenia and speaking Slovenian. All instructions + and notes are inside zip archive. Required USDA SR-18. Contains database from diabetes software Kocka. + </li> + <li><a href="http://downloads.sourceforge.net/ggc/SLO_Db_2.zip?use_mirror=osdn">Slovenian Nutrition Database + 2</a> - This is nutrition database for people living in Slovenia and speaking Slovenian. All instructions + and notes are inside zip archive. Required USDA SR-18. Contains databases from 2 different Slovenian + programs: Kocka and Daciofit + </li> + </ul> + + + <br> + + <h2>Build from source</h2> + + If you are Java developer, you will probably try to build whole thing from source code. All our current code is in + SVN (we + used CVS few years back). If you are not ready for a challenge, then try to download packaged software release. + There will + be pause between releases (6 months or more for major releases, minor releases will be released, when needed changes + are + done). + + + <ul> + + <li>SVN:</li> + <br> SVN system is current versioning system. You neeed to pull down whole tree. When builing with ANT, compiled files will be stored into ggc-support\bin folder from where you can directly run it.<br> - Here is the link to the Sourceforge SVN Page:<br> - <a href="http://sourceforge.net/svn/?group_id=49749">http://sourceforge.net/svn/?group_id=49749</a> <br><br> - For details on how to check out sources see the Sourceforge SVN page.<br><br> + Here is the link to the Sourceforge SVN Page:<br> + <a href="http://sourceforge.net/svn/?group_id=49749">http://sourceforge.net/svn/?group_id=49749</a> <br><br> + For details on how to check out sources see the Sourceforge SVN page.<br><br> -<li>CVS:</li><br> - CVS system was deprecated (there are still old file there) when Sourceforge installed SVN, which is now the way to get sources.<br><br> - <a href="http://sourceforge.net/cvs/?group_id=49749">http://sourceforge.net/cvs/?group_id=49749</a> <br><br> + <li>CVS:</li> + <br> + CVS system was deprecated (there are still old file there) when Sourceforge installed SVN, which is now the way + to get sources.<br><br> + <a href="http://sourceforge.net/cvs/?group_id=49749">http://sourceforge.net/cvs/?group_id=49749</a> <br><br> -</ul> + </ul> -<br> -<h2>Link to sourceforge files download area</h2> - - <a href="http://sourceforge.net/project/showfiles.php?group_id=49749">http://sourceforge.net/project/showfiles.php?group_id=49749</a><br> + <br> + <h2>Link to sourceforge files download area</h2> -</ul> + <a href="http://sourceforge.net/project/showfiles.php?group_id=49749">http://sourceforge.net/project/showfiles.php?group_id=49749</a><br> + + + </ul> </blockquote> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <and...@us...> - 2015-08-02 20:34:25
|
Revision: 1359 http://sourceforge.net/p/ggc/code/1359 Author: andyrozman Date: 2015-08-02 20:34:22 +0000 (Sun, 02 Aug 2015) Log Message: ----------- - web page 0.6 - fixing problem, when no database could be contacted Modified Paths: -------------- trunk/ggc-core/src/GGC_en.properties trunk/ggc-core/src/ggc/core/db/GGCDbLoader.java trunk/ggc-core/src/ggc/core/util/DataAccess.java trunk/ggc-desktop/doc/TO-DO Detailed.txt trunk/ggc-desktop/src/ggc/gui/MainFrame.java trunk/ggc-desktop/src/ggc/gui/panels/info/GeneralInfoPanel.java trunk/web_page/inc_download.inc trunk/web_page/inc_features.inc trunk/web_page/inc_news.inc trunk/web_page/inc_projects.inc Modified: trunk/ggc-core/src/GGC_en.properties =================================================================== --- trunk/ggc-core/src/GGC_en.properties 2015-08-01 08:52:57 UTC (rev 1358) +++ trunk/ggc-core/src/GGC_en.properties 2015-08-02 20:34:22 UTC (rev 1359) @@ -95,6 +95,11 @@ STANDARD_EXPRESSIVENESS=Standard Expressiveness GOOD_EXPRESSIVENESS=Good Expressiveness +# !SG! db problem +DB_PROBLEM_NOT_CONNECTED=There was problem connecting to your database. Likely cause of this might be misconfiguration of your database connection and/or missing database driver (JDBC) and/or incorrect database structure.<br>Currently selected configuration is:<br>%s - %s<br>Currently used database driver class:<br> %s +DB_PROBLEM_NOT_CONNECTED_TOOLTIP=There was problem connecting to your database. Likely cause of this might be misconfiguration of your database connection and/or missing database driver (JDBC) and/or incorrect database structure.<br><b>Currently selected configuration is:</b><br>%s - %s<br><b>Driver Class:</b> %s<br><b>Connection:</b> %s<br><b>Username:</b> %s<br><b>Password:</b> %s<br><b>Dialect:</b> %s +DB_PROBLEM_NOT_CONNECTED_SOLUTION=There are several possible solutions to your problem (and several causes). Take a look at Tooltip (or copy whole text into clipboard to better review all data. +DB_PROBLEM_NOT_CONNECTED_SOLUTION_TOOLTIP=Following problems/solutions (to determine problem please take a look at stack trace (first line usually tells the problem):<br>1. Database does not exist. This happens if our Connection URL is false (it points to unexisting database, unexisting server)<br>2. Database access not authorized. This happens when we use wrong username/password (it might be part of Connection URL) to connect to database.<br>3. Driver not found. If you use non-internal database you need JDBC driver to connect to it. This must be placed in lib/jar_additional and file data/StartupStatus.txt must be deleted.<br>4. Wrong configuration. Both problem 1 and 2 go back to wrong configuration. You need to check data/GGC_Config.properties if eveything is configured correctly.<br>5. Database table is missing or has wrong column(s). If you use external database you need to update it after new version is installed. Remove file data/StartupStatus.txt and start GGC. Database will be reconfigured to conatins all correct tables.<br><br>If none of this problems/solutions is correct, click on "Copy to Clipboard" and send this information to us, and we will try to help you. # # !G! Daily Values Stats [1] @@ -171,6 +176,7 @@ COMMENTS=Comments ARE_YOU_SURE_DELETE=Are you sure you want to delete this entry? ARE_YOU_SURE_DELETE_ROW=Are you sure you want to delete this entry? +COPY_TO_CLIPBOARD=Copy To Clipboard # # !G! GGC Little (GUI) [2] Modified: trunk/ggc-core/src/ggc/core/db/GGCDbLoader.java =================================================================== --- trunk/ggc-core/src/ggc/core/db/GGCDbLoader.java 2015-08-01 08:52:57 UTC (rev 1358) +++ trunk/ggc-core/src/ggc/core/db/GGCDbLoader.java 2015-08-02 20:34:22 UTC (rev 1359) @@ -54,46 +54,40 @@ // 99 - loading complete // green - private static Log log = LogFactory.getLog(GGCDbLoader.class); - - DataAccess m_da = null; - // StatusBar m_bar = null; - // StatusBarL m_barL = null; - // private boolean real_run = false; - private boolean run_once = false; - - // public boolean part_start = true; /** - * Part start. When this is enables, we don't load Food, Doctor's data - */ - public boolean part_start = false; - - // public boolean debug = false; - - /** * Db Status: Not started */ public static final int DB_NOT_STARTED = 0; - /** * Db Status: Init done */ public static final int DB_INIT_DONE = 1; - /** * Db Status: Base data loaded */ public static final int DB_DATA_BASE = 2; + // public boolean part_start = true; /** * Db Status: Data from plugins loaded */ public static final int DB_DATA_PLUGINS = 3; + // public boolean debug = false; /** * Db Status: Db Initialization done - Load completed */ public static final int DB_INIT_FINISHED = 4; + private static Log log = LogFactory.getLog(GGCDbLoader.class); + /** + * Part start. When this is enables, we don't load Food, Doctor's data + */ + public boolean part_start = false; + DataAccess m_da = null; + // StatusBar m_bar = null; + // StatusBarL m_barL = null; + // private boolean real_run = false; + private boolean run_once = false; /** @@ -132,144 +126,160 @@ GGCDb db = new GGCDb(m_da); - // if (!part_start) + m_da.setDb(db); + + try { - m_da.setChangeOnEventSource(DataAccess.OBSERVABLE_STATUS, "DB_NAME=" - + db.getHibernateConfiguration().getConnectionName()); - /* - * if (m_bar!=null) - * m_bar.setDatabaseName(db.getHibernateConfiguration(). - * getConnectionName()); - * else - * m_barL.setDatabaseName(db.getHibernateConfiguration(). - * getConnectionName()); - */ - } + // if (!part_start) + { + m_da.setChangeOnEventSource(DataAccess.OBSERVABLE_STATUS, + "DB_NAME=" + db.getHibernateConfiguration().getConnectionName()); + /* + * if (m_bar!=null) + * m_bar.setDatabaseName(db.getHibernateConfiguration(). + * getConnectionName()); + * else + * m_barL.setDatabaseName(db.getHibernateConfiguration(). + * getConnectionName()); + */ + } - db.initDb(); + db.initDb(); - setDbStatus(RefreshInfo.DB_INIT_DONE); - m_da.setDbLoadingStatus(GGCDbLoader.DB_INIT_DONE); + setDbStatus(RefreshInfo.DB_INIT_DONE); + m_da.setDbLoadingStatus(GGCDbLoader.DB_INIT_DONE); - // 2 - load configuration + // 2 - load configuration - db.loadConfigData(); - db.loadStaticData(); - m_da.setDb(db); - m_da.setDbLoadingStatus(GGCDbLoader.DB_DATA_BASE); + db.loadConfigData(); + db.loadStaticData(); + // m_da.setDb(db); + m_da.setDbLoadingStatus(GGCDbLoader.DB_DATA_BASE); - m_da.setChangeOnEventSource(DataAccess.OBSERVABLE_PANELS, RefreshInfo.PANEL_GROUP_GENERAL_INFO); + m_da.setChangeOnEventSource(DataAccess.OBSERVABLE_PANELS, RefreshInfo.PANEL_GROUP_GENERAL_INFO); - // 3 - init plugins - m_da.initPlugIns(); + // 3 - init plugins + m_da.initPlugIns(); - m_da.setChangeOnEventSource(DataAccess.OBSERVABLE_PANELS, RefreshInfo.PANEL_GROUP_PLUGINS_ALL); + m_da.setChangeOnEventSource(DataAccess.OBSERVABLE_PANELS, RefreshInfo.PANEL_GROUP_PLUGINS_ALL); - // 4 - load daily data for display, appointments + // 4 - load daily data for display, appointments - if (m_da.getParent() != null) - { - m_da.loadDailySettings(new GregorianCalendar(), true); - } - else - { - m_da.loadDailySettingsLittle(new GregorianCalendar(), true); - } + if (m_da.getParent() != null) + { + m_da.loadDailySettings(new GregorianCalendar(), true); + } + else + { + m_da.loadDailySettingsLittle(new GregorianCalendar(), true); + } - // dataAccess.loadSettingsFromDb(); - m_da.setChangeOnEventSource(DataAccess.OBSERVABLE_PANELS, RefreshInfo.PANEL_GROUP_ALL_DATA); - m_da.setChangeOnEventSource(DataAccess.OBSERVABLE_STATUS, m_da.getI18nControlInstance().getMessage("READY")); + // dataAccess.loadSettingsFromDb(); + m_da.setChangeOnEventSource(DataAccess.OBSERVABLE_PANELS, RefreshInfo.PANEL_GROUP_ALL_DATA); + m_da.setChangeOnEventSource(DataAccess.OBSERVABLE_STATUS, + m_da.getI18nControlInstance().getMessage("READY")); - // mf.informationPanel.refreshPanels(); - // mf.statusPanel.setStatusMessage(dataAccess.getI18nControlInstance().getMessage("READY")); + // mf.informationPanel.refreshPanels(); + // mf.statusPanel.setStatusMessage(dataAccess.getI18nControlInstance().getMessage("READY")); - /* - * if (dataAccess.getParent()!=null) - * { - * // GGC - * MainFrame mf = dataAccess.getParent(); - * //mf.setDbActions(true); - * dataAccess.loadSettingsFromDb(); - * mf.informationPanel.refreshPanels(); - * mf.statusPanel.setStatusMessage(dataAccess.getI18nControlInstance(). - * getMessage - * ("READY")); - * } - * else - * { - * /// GGC Little - * !! mf = dataAccess.getParentLittle(); - * //mf.setDbActions(true); - * dataAccess.loadSettingsFromDb(); - * mf.getInformationPanel().dailyStats.getTableModel().setDailyValues( - * dataAccess - * .getDayStats(new GregorianCalendar())); - * mf.getInformationPanel().refreshPanels(); - * mf.getStatusPanel().setStatusMessage(dataAccess.getI18nControlInstance - * (). - * getMessage("READY")); - * } - */ - setDbStatus(RefreshInfo.DB_BASE_DONE); + /* + * if (dataAccess.getParent()!=null) + * { + * // GGC + * MainFrame mf = dataAccess.getParent(); + * //mf.setDbActions(true); + * dataAccess.loadSettingsFromDb(); + * mf.informationPanel.refreshPanels(); + * mf.statusPanel.setStatusMessage(dataAccess.getI18nControlInstance + * (). + * getMessage + * ("READY")); + * } + * else + * { + * /// GGC Little + * !! mf = dataAccess.getParentLittle(); + * //mf.setDbActions(true); + * dataAccess.loadSettingsFromDb(); + * mf.getInformationPanel().dailyStats.getTableModel(). + * setDailyValues( + * dataAccess + * .getDayStats(new GregorianCalendar())); + * mf.getInformationPanel().refreshPanels(); + * mf.getStatusPanel().setStatusMessage(dataAccess. + * getI18nControlInstance + * (). + * getMessage("READY")); + * } + */ + setDbStatus(RefreshInfo.DB_BASE_DONE); - // 5 - Load plugin data + // 5 - Load plugin data - if (m_da.isPluginAvailable(GGCPluginType.NutritionToolPlugin)) - { - m_da.getPlugIn(GGCPluginType.NutritionToolPlugin).executeCommand(NutriPlugIn.COMMAND_LOAD_DATABASE); - } - m_da.setDbLoadingStatus(GGCDbLoader.DB_DATA_PLUGINS); - setDbStatus(RefreshInfo.DB_LOADED); + if (m_da.isPluginAvailable(GGCPluginType.NutritionToolPlugin)) + { + m_da.getPlugIn(GGCPluginType.NutritionToolPlugin).executeCommand(NutriPlugIn.COMMAND_LOAD_DATABASE); + } + m_da.setDbLoadingStatus(GGCDbLoader.DB_DATA_PLUGINS); + setDbStatus(RefreshInfo.DB_LOADED); - // refreshMenus(); + // refreshMenus(); - // if (!part_start) - { + // if (!part_start) + { + /* + * // 4 - load doctors data + * // TODO: in version 0.4 + * // 5 - load nutrition(1) root data + * db.loadNutritionDbBase(); + * db.loadNutritionDb1(); + * // 6 - load nutrition(2) root data + * db.loadNutritionDb2(); + * // 7 - load meals root data + * db.loadMealsDb(); + * setDbStatus(RefreshInfo.DB_LOADED); + */ + } /* - * // 4 - load doctors data - * // TODO: in version 0.4 - * // 5 - load nutrition(1) root data + * else + * { * db.loadNutritionDbBase(); + * setDbStatus(StatusBar.DB_LOADED); + * } + */ + + /* + * if (part_start) + * { * db.loadNutritionDb1(); - * // 6 - load nutrition(2) root data * db.loadNutritionDb2(); - * // 7 - load meals root data * db.loadMealsDb(); - * setDbStatus(RefreshInfo.DB_LOADED); + * } + * else + * { + * db.loadConfigData(); + * db.loadStaticData(); + * db.loadNutritionDb1(); + * // db.loadImplementedMeterData(); + * } */ - } - /* - * else - * { - * db.loadNutritionDbBase(); - * setDbStatus(StatusBar.DB_LOADED); - * } - */ - /* - * if (part_start) - * { - * db.loadNutritionDb1(); - * db.loadNutritionDb2(); - * db.loadMealsDb(); - * } - * else - * { - * db.loadConfigData(); - * db.loadStaticData(); - * db.loadNutritionDb1(); - * // db.loadImplementedMeterData(); - * } - */ + m_da.setDbLoadingStatus(GGCDbLoader.DB_INIT_FINISHED); + m_da.runAfterDbLoad(); - m_da.setDbLoadingStatus(GGCDbLoader.DB_INIT_FINISHED); - m_da.runAfterDbLoad(); + long dif = System.currentTimeMillis() - start_time; - long dif = System.currentTimeMillis() - start_time; + // System.out.println("We needed " + (dif/1000) + + // " seconds to startup."); + log.debug("We needed " + dif / 1000 + " seconds to startup."); - // System.out.println("We needed " + (dif/1000) + - // " seconds to startup."); - log.debug("We needed " + dif / 1000 + " seconds to startup."); + } + catch (Exception ex) + { + + m_da.setChangeOnEventSource(DataAccess.OBSERVABLE_DB, ex); + + } } Modified: trunk/ggc-core/src/ggc/core/util/DataAccess.java =================================================================== --- trunk/ggc-core/src/ggc/core/util/DataAccess.java 2015-08-01 08:52:57 UTC (rev 1358) +++ trunk/ggc-core/src/ggc/core/util/DataAccess.java 2015-08-02 20:34:22 UTC (rev 1359) @@ -822,7 +822,12 @@ */ public static final int OBSERVABLE_STATUS = 2; + /** + * Observable: Db + */ + public static final int OBSERVABLE_DB = 3; + /** * Init Observable */ @@ -832,6 +837,7 @@ observables.put("" + OBSERVABLE_PANELS, new EventSource()); observables.put("" + OBSERVABLE_STATUS, new EventSource()); + observables.put("" + OBSERVABLE_DB, new EventSource()); } @@ -887,6 +893,18 @@ } + /** + * Set Change On Event Source + * + * @param type + * @param value + */ + public void setChangeOnEventSource(int type, Object value) + { + observables.get("" + type).sendChangeNotification(value); + } + + // ******************************************************** // ****** Language ***** // ******************************************************** Modified: trunk/ggc-desktop/doc/TO-DO Detailed.txt =================================================================== --- trunk/ggc-desktop/doc/TO-DO Detailed.txt 2015-08-01 08:52:57 UTC (rev 1358) +++ trunk/ggc-desktop/doc/TO-DO Detailed.txt 2015-08-02 20:34:22 UTC (rev 1359) @@ -1,27 +1,68 @@ GGC 0.7 -======= +======== +- Startup Feature + - stocks feature -- minimed support: There should be Pump Support available, to be used with ComLink (Serial cable) and ContourLink (USB) + +- minimed feature (1, 2, 5a): There should be Pump Support available, to be used with ComLink (Serial cable) and ContourLink (USB) NOT IN SCOPE: CGMS, CountourNextLink (Meter), Carelink file import (Pump or CGMS) -- upgrade feature +- Upgrade feature + - graphs framework v2: read xml file and create graph in viewer NOT IN SCOPE: editor, not all graph types will be supported (we will start with some simple graphs and then extends this in next versions) -- report DailyTimesheet + CGMS data +- reports: + - DailyTimesheet add new basal type (Value change) + - DailyTimesheet II (colors, more pump data) [when finished remove DailyTimesheet I] + - DailyTimesheet IV (II + CGMS data) -???? +- usb hid +- contour usb support +BUGS: +- fix error when database can not be contacted +- device selector sort +- device config, switch from one type to another (SmartPix -> Some serial) leaves display wrong +- daily graph pen/injection fix +- daily graph pump fix: base new basal type +GGC 0.7 - DONE +============== +GGC 0.8 +======== +- additional data to pump and P/I: weight, pills, blood preasure +OTHER: +- comments in CGMS, Pumps and others + + +Startup 1.4 Feature +=================== +Startup script need to be generated in bin\ext instead of bin. In bin there should really be files that we need to start the +application. All additional startup file (db tool, db, import, etc) need to go into ext, as well as generated run_ggc files. +In bin there will be only run_win, run_linux, run_mac, run_freebsd files + + +DailyTimesheet Report Feature +============================= +There is only one Dailytimesheet but with several types of data... I will be removed when II is ready + - DailyTimesheet I add new basal type (Value change) + - DailyTimesheet II (colors, more pump data) [when finished remove DailyTimesheet I] + - DailyTimeshett III (II + food) + - DailyTimesheet IV (II + CGMS data) + - DailyTimesheet V (III + CGMS) + + + STOCKS Feature: =============== - stock types @@ -125,7 +166,23 @@ Fonts: (everywhere where not ATSwingUtils used) +MINIMED Feature +=============== +1. Pump Support +2. Pump History Decode +2. CGMS Support +4. CGMS History Decode +5a. Carelink USB support: Pump +5b. Carelink USB support: CGMS +6a. Import Carelink file: Pump +6b. Import Carelink file: CGMS +7a. Contour Next Link: Pump +7b. Contour Next Link: CGMS +8. Minimed 530G (New One) + + + GRAPHS ====== Modified: trunk/ggc-desktop/src/ggc/gui/MainFrame.java =================================================================== --- trunk/ggc-desktop/src/ggc/gui/MainFrame.java 2015-08-01 08:52:57 UTC (rev 1358) +++ trunk/ggc-desktop/src/ggc/gui/MainFrame.java 2015-08-02 20:34:22 UTC (rev 1359) @@ -20,6 +20,7 @@ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import com.atech.db.hibernate.HibernateConfiguration; import com.atech.graphics.dialogs.guilist.GUIListDialog; import com.atech.graphics.graphs.GraphViewer; import com.atech.help.HelpContext; @@ -75,8 +76,7 @@ { private static final long serialVersionUID = -8971779470148201332L; - private static Log log = LogFactory.getLog(MainFrame.class); - + private static final String skinLFdir = "../data/skinlf_themes/"; /** * Skin Look and Feel */ @@ -86,90 +86,46 @@ * Developer version */ public static boolean developer_version = false; + private static Log log = LogFactory.getLog(MainFrame.class); + /** + * Static definitions (Look and Feel) + */ + static + { + MainFrame.setLookAndFeel(); + } + + /** + * Status panels + */ + public StatusBar statusPanel; + /** + * Information panels + */ + public InfoPanel informationPanel; + boolean title_set = false; + /** * Menu Bar */ private JMenuBar menuBar = new JMenuBar(); - /** * Tool Bars */ private Hashtable<GGCToolbarType, JToolBar> toolbars = null; - private DataAccess m_da = null; - private static final String skinLFdir = "../data/skinlf_themes/"; private I18nControlAbstract m_ic = null; - private Map<String, JMenu> menus = null; private Map<String, JMenuItem> actions = null; - private Map<GGCToolbarType, Map<String, JButton>> toolbarItems = new HashMap<GGCToolbarType, Map<String, JButton>>(); - // private Hashtable<String, JMenuItem> toolbar_pen_items = null; // private Hashtable<String, JMenuItem> toolbar_pump_items = null; private GGCToolbarType current_toolbar = GGCToolbarType.None; private String next_version = "0.7"; - /** - * Status panels - */ - public StatusBar statusPanel; /** - * Information panels - */ - public InfoPanel informationPanel; - - /** - * Static definitions (Look and Feel) - */ - static - { - MainFrame.setLookAndFeel(); - } - - - /** - * Set Look & Feel - */ - public static void setLookAndFeel() - { - - try - { - - String data[] = DataAccess.getLFData(); - - if (data == null) - return; - else - { - if (data[0].equals("com.l2fprod.gui.plaf.skin.SkinLookAndFeel")) - { - SkinLookAndFeel.setSkin(SkinLookAndFeel.loadThemePack(skinLFdir + data[1])); - - s_skinlf = new com.l2fprod.gui.plaf.skin.SkinLookAndFeel(); - UIManager.setLookAndFeel(s_skinlf); - } - else - { - UIManager.setLookAndFeel(data[0]); - } - - JFrame.setDefaultLookAndFeelDecorated(true); - JDialog.setDefaultLookAndFeelDecorated(true); - } - } - catch (Exception ex) - { - System.err.println("Error loading L&F: " + ex); - } - - } - - - /** * Constructor * * @param title @@ -212,6 +168,7 @@ createToolBars(); this.setSoftwareMode(); m_da.addObserver(DataAccess.OBSERVABLE_STATUS, this); + m_da.addObserver(DataAccess.OBSERVABLE_DB, this); // getContentPane().add(this.toolbars.get("TOOLBAR_PEN"), // BorderLayout.NORTH); @@ -233,12 +190,66 @@ } + /** + * Set Look & Feel + */ + public static void setLookAndFeel() + { + + try + { + + String data[] = DataAccess.getLFData(); + + if (data == null) + return; + else + { + if (data[0].equals("com.l2fprod.gui.plaf.skin.SkinLookAndFeel")) + { + SkinLookAndFeel.setSkin(SkinLookAndFeel.loadThemePack(skinLFdir + data[1])); + + s_skinlf = new com.l2fprod.gui.plaf.skin.SkinLookAndFeel(); + UIManager.setLookAndFeel(s_skinlf); + } + else + { + UIManager.setLookAndFeel(data[0]); + } + + JFrame.setDefaultLookAndFeelDecorated(true); + JDialog.setDefaultLookAndFeelDecorated(true); + } + } + catch (Exception ex) + { + System.err.println("Error loading L&F: " + ex); + } + + } + + private void setSoftwareMode() { setSoftwareMode(false); } + /** + * Get Software Mode + * + * @return + */ + public String getSoftwareMode() + { + return " [" + m_ic.getMessage(m_da.getSoftwareModeDescription()) + "]"; + } + + + // ------------------------------------------------------ + // -- Menus + // ------------------------------------------------------ + private void setSoftwareMode(boolean force) { // System.out.println("SW: " + dataAccess.getSoftwareMode()); @@ -285,21 +296,6 @@ } - /** - * Get Software Mode - * - * @return - */ - public String getSoftwareMode() - { - return " [" + m_ic.getMessage(m_da.getSoftwareModeDescription()) + "]"; - } - - - // ------------------------------------------------------ - // -- Menus - // ------------------------------------------------------ - private void createMenus() { JMenu menux, menuxsub; @@ -431,7 +427,7 @@ this.menuBar.add(this.menus.get("MENU_PRINT")); GGCPluginType[] keys = { GGCPluginType.MeterToolPlugin, GGCPluginType.PumpToolPlugin, - GGCPluginType.CGMSToolPlugin, }; + GGCPluginType.CGMSToolPlugin, }; for (GGCPluginType key : keys) { @@ -486,6 +482,10 @@ } + // ------------------------------------------------------ + // -- Toolbars + // ------------------------------------------------------ + private JMenu createMenu(JMenu parent, String name, String tool_tip) { JMenu item = new JMenu(m_ic.getMessageWithoutMnemonic(name)); @@ -502,10 +502,6 @@ } - // ------------------------------------------------------ - // -- Toolbars - // ------------------------------------------------------ - private void createToolBars() { this.toolbars = new Hashtable<GGCToolbarType, JToolBar>(); @@ -532,7 +528,8 @@ this.createToolbarButton("MN_LOGIN", "MN_LOGIN_DESC", "file_login", "logon.png", GGCToolbarType.PenInjection); toolbar.addSeparator(d); - this.createToolbarButton("MN_DAILY", "MN_DAILY_DESC", "view_daily", "calendar.png", GGCToolbarType.PenInjection); + this.createToolbarButton("MN_DAILY", "MN_DAILY_DESC", "view_daily", "calendar.png", + GGCToolbarType.PenInjection); this.createToolbarButton("MN_COURSE", "MN_COURSE_DESC", "view_course", "line-chart.png", GGCToolbarType.PenInjection); this.createToolbarButton("MN_SPREAD", "MN_SPREAD_DESC", "view_spread", "dot-chart.png", @@ -706,6 +703,30 @@ } + // private void createAction_Old(JMenu menu, String name, String tip, String + // action_command, String icon_small) + // { + // GGCAction action = new GGCAction(name, tip, action_command); + // + // if (icon_small != null) + // { + // action.putValue(Action.SMALL_ICON, ATSwingUtils.getImageIcon(icon_small, + // 15, 15, this, dataAccess)); + // // new ImageIcon(getClass().getResource("/icons/" + icon_small))); + // // action.putValue(Action.LARGE_ICON_KEY, new + // // ImageIcon(getClass().getResource("/icons/" + icon_small))); + // } + // + // if (menu != null) + // { + // menu.add(action); + // } + // + // // this.actions.put(action_command, item); + // + // // return action; + // } + private void createMenuItem(JMenu menu, String name, String toolTip, String actionCommand, String iconSmall) { JMenuItem item = new JMenuItem(m_ic.getMessageWithoutMnemonic(name)); @@ -745,29 +766,9 @@ } - // private void createAction_Old(JMenu menu, String name, String tip, String - // action_command, String icon_small) - // { - // GGCAction action = new GGCAction(name, tip, action_command); - // - // if (icon_small != null) - // { - // action.putValue(Action.SMALL_ICON, ATSwingUtils.getImageIcon(icon_small, - // 15, 15, this, dataAccess)); - // // new ImageIcon(getClass().getResource("/icons/" + icon_small))); - // // action.putValue(Action.LARGE_ICON_KEY, new - // // ImageIcon(getClass().getResource("/icons/" + icon_small))); - // } - // - // if (menu != null) - // { - // menu.add(action); - // } - // - // // this.actions.put(action_command, item); - // - // // return action; - // } + // ------------------------------------------------------ + // -- Help + // ------------------------------------------------------ /** * Set menus by Db Loading status @@ -842,10 +843,6 @@ } - // ------------------------------------------------------ - // -- Help - // ------------------------------------------------------ - private void helpInit() { log.debug("JavaHelp - START"); @@ -1022,26 +1019,6 @@ } - - private void close() - { - m_da.getSettings().save(); - - if (m_da != null) - { - if (m_da.getDb() != null) - { - m_da.getDb().closeDb(); - } - - DataAccess.deleteInstance(); - } - - dispose(); - System.exit(0); - } - - /* * private JMenuItem addMenuItem(JMenu menu, Action action) { JMenuItem item * = menu.add(action); @@ -1056,6 +1033,7 @@ * private void addToolBarSpacer() { toolBar.addSeparator(); } */ + // private JButton addToolBarButton(Action action, GGCToolbarType // toolbarType) // { @@ -1077,6 +1055,25 @@ // return button; // } + private void close() + { + m_da.getSettings().save(); + + if (m_da != null) + { + if (m_da.getDb() != null) + { + m_da.getDb().closeDb(); + } + + DataAccess.deleteInstance(); + } + + dispose(); + System.exit(0); + } + + public void actionPerformed(ActionEvent e) { @@ -1238,7 +1235,7 @@ } else // if ((command.equals("report_pdf_extended")) || - if (command.equals("file_login") || command.equals("report_foodmenu_ext3") || command.equals("file_logout")) + if (command.equals("file_login") || command.equals("report_foodmenu_ext3") || command.equals("file_logout")) { featureNotImplemented(command, "0.7"); } @@ -1338,21 +1335,12 @@ this.informationPanel.invalidatePanelsConstants(); } - - /** - * Refresh panels - */ - public void refreshPanels() - { - this.informationPanel.refreshPanels(); - } - - /* * private JButton addToolBarButtonWithName(String cmd) { return * addToolBarButton(this.actions.get(cmd)); } */ + // class GGCAction extends AbstractAction // { // @@ -1435,6 +1423,15 @@ // // } + /** + * Refresh panels + */ + public void refreshPanels() + { + this.informationPanel.refreshPanels(); + } + + private void featureNotImplemented(String cmd, String version) { String text = m_ic.getMessage("FEATURE"); @@ -1462,17 +1459,7 @@ } - private class CloseListener extends WindowAdapter - { - @Override - public void windowClosing(WindowEvent e) - { - close(); - } - } - - /** * To String * @@ -1484,9 +1471,7 @@ return "GGC::MainFrame"; } - boolean title_set = false; - /** * Update */ @@ -1521,9 +1506,55 @@ refreshMenus(); } } + else if (arg instanceof Exception) + { + Exception ex = (Exception) arg; + log.error("Error connecting to Database: " + ex.getMessage(), ex); + + m_da.createErrorDialog("Main", "Opening Db", ex, getDbSettingsAndCause(false), // + getDbSettingsAndCause(true), // + m_ic.getMessage("DB_PROBLEM_NOT_CONNECTED_SOLUTION"), // + m_ic.getMessage("DB_PROBLEM_NOT_CONNECTED_SOLUTION_TOOLTIP")); + + System.exit(1); + } } + private String getDbSettingsAndCause(boolean forToolTip) + { + HibernateConfiguration hc = m_da.getDb().getHibernateConfiguration(); + + StringBuilder sb = new StringBuilder(); + + if (!forToolTip) + { + return String.format(m_ic.getMessage("DB_PROBLEM_NOT_CONNECTED"), hc.db_num, hc.db_conn_name, + hc.db_driver_class); + } + else + { + // sb.append( + // "There was problem connecting/getting metadata from you database. + // Likely cause of this might be misconfiguration of your database + // connection and/or missing database driver (JDBC)."); + // sb.append("<br><b>Currently selected configuration is: </b>"); + // sb.append(hc.db_num); + // sb.append(" - " + hc.db_conn_name); + // sb.append("<br><b>Driver Class:</b> " + hc.db_driver_class); + // sb.append("<br>Connection: " + hc.db_conn_url); + // sb.append("<br>Username: " + hc.db_conn_username); + // sb.append("<br>Password: " + hc.db_conn_password); + // sb.append("<br>Dialect: " + hc.db_hib_dialect); + + return String.format(m_ic.getMessage("DB_PROBLEM_NOT_CONNECTED_TOOLTIP"), hc.db_num, hc.db_conn_name, + hc.db_driver_class, hc.db_conn_url, hc.db_conn_username, hc.db_conn_password, hc.db_hib_dialect); + } + // + // return sb.toString(); + } + + /** * This refresh is used when configuration of plugin changes */ @@ -1552,6 +1583,7 @@ private static List<GGCToolbarType> activeValues; + static { activeValues = new ArrayList<GGCToolbarType>(); @@ -1566,4 +1598,14 @@ } } + private class CloseListener extends WindowAdapter + { + + @Override + public void windowClosing(WindowEvent e) + { + close(); + } + } + } Modified: trunk/ggc-desktop/src/ggc/gui/panels/info/GeneralInfoPanel.java =================================================================== --- trunk/ggc-desktop/src/ggc/gui/panels/info/GeneralInfoPanel.java 2015-08-01 08:52:57 UTC (rev 1358) +++ trunk/ggc-desktop/src/ggc/gui/panels/info/GeneralInfoPanel.java 2015-08-02 20:34:22 UTC (rev 1359) @@ -108,9 +108,13 @@ private void changeMode(GGCSoftwareMode newMode) { - if (newMode.equals(this.currentMode)) + if (newMode==null) return; + + if ((this.currentMode!= null) && (newMode.equals(this.currentMode))) + return; + this.removeAll(); this.currentMode = newMode; Modified: trunk/web_page/inc_download.inc =================================================================== --- trunk/web_page/inc_download.inc 2015-08-01 08:52:57 UTC (rev 1358) +++ trunk/web_page/inc_download.inc 2015-08-02 20:34:22 UTC (rev 1359) @@ -14,34 +14,34 @@ <br><br><br> In each release there are 4 files: <ul> - <li>GGC_Setup_<Version Number>_jre.exe - This is Windows installer with Java. You should use this install + <li><b>GGC_Setup_<Version Number>_jre.exe - This is Windows installer with Java.</b> You should use this install file if you have no knowledge about Java. It contains JRE, so the file is much bigger, but you can just install it, out-of-the-box, without any special intervention (advised for most end-users).. [This is recomended option for Windows Users] </li> - <li>GGC_Setup_<Version Number>.exe - This is windows installer without Java. Download this if you have + <li><b>GGC_Setup_<Version Number>.exe - This is windows installer without Java.</b> Download this if you have Java already on computer and your knowledge of computers is above average (you might need to configure java to run with application). </li> - <li>GGC_<Version Number>.zip - (Full) Zip file< containing all the files - This is for all other + <li><b>GGC_<Version Number>.zip - (Full) Zip file containing all the files.</b> This is for all other platforms. You just extract it and then follow by reading Readme_1st to get it running. (in short you need to enter bin folder and run "run_ <platform>" file, platform is either win, linux, mac or freebsd). </li> - <li>GGC_Upgrade_<Version Number>.zip - Upgrade Zip file. If you have installed previous version of GGC - (version 0.3 + <li><b>GGC_Upgrade_<Version Number>.zip - Upgrade Zip file.</b> If you have installed previous version of GGC + (version 0.3.1 and above) and already have data stored in it, this is the file you need to use. Read document 'How_To_Upgrade.txt' in zip file. (This file should be used only by users who know basic of O.S. they are using. Please make backup first before you attempt any update. <br><b>NOTE:</b> If you are not sure if you can do upgrade, you can do - following: - backup all data from previous version, install new version and then do restore of data. + following: backup all data (Tools -> Database maintenance -> Backup) from previous version, install new version + and then do restore (Tools -> Database maintenance -> Restore) of data. </li> </ul> @@ -49,41 +49,27 @@ <h3>GGC Releases</h3> - <h4>Version 0.6.0 [July 2015]</h4> + <h4>Version 0.6.0 [August 2015]</h4> <ul> <li> - <a href="http://sourceforge.net/projects/ggc/files/GNU%20Gluco%20Control/GGC%200.5.0.3-2/GGC_Setup_0.5.0.3-2_jre.exe/download"> - GGC 0.5.0.3 (release 2) Windows Installer with Java [Preferred for Windows users]</a> + <a href="http://sourceforge.net/projects/ggc/files/GNU%20Gluco%20Control/GGC%200.6.0/GGC_Setup_0.6.0_jre.exe/download"> + GGC 0.6.0 - Windows Installer with Java [Preferred for Windows users]</a> </li> <li> - <a href="http://sourceforge.net/projects/ggc/files/GNU%20Gluco%20Control/GGC%200.5.0.3-2/GGC_Setup_0.5.0.3-2.exe/download"> - GGC 0.5.0.3 (release 2) Windows Installer without Java</a> - If you have Java - already on your computer, and your knowledge of computer is above average you can decide to take this file - and manually configure - application to run with your installed Java. + <a href="http://sourceforge.net/projects/ggc/files/GNU%20Gluco%20Control/GGC%200.6.0/GGC_Setup_0.6.0.exe/download"> + GGC 0.6.0 - Windows Installer without Java</a> </li> <li> - <a href="http://sourceforge.net/projects/ggc/files/GNU%20Gluco%20Control/GGC%200.5.0.3-2/GGC_0.5.0.3-2.zip/download">GGC - 0.5.0.3 (release 2) Zip file</a>, with all files - - For all other platforms you need to use this file. You just extract it and then follow by reading Readme_1st - to get it - running. (in short you need to enter bin folder and run "run_ - <platform>" file, platform is either win, linux, mac or freebsd). + <a href="http://sourceforge.net/projects/ggc/files/GNU%20Gluco%20Control/GGC%200.6.0/GGC_0.6.0.zip/download">GGC + 0.6.0 (Full) Zip file</a> </li> <li> - <a href="http://sourceforge.net/projects/ggc/files/GNU%20Gluco%20Control/GGC%200.5.0.3-2/GGC_Update_0.5.0.3-2.zip/download">GGC - Update 0.5.0.3 (release 2) Zip file</a>, this - file contains only files that were updates since 1st release (0.3). If you have installed previous version - of GGC and have data - in it, this would be file to use. Read document 'How_To_Upgrade.txt' in zip file. (This file should be used - only by users who know - basic of O.S. they are using. Please make backup first before you attempt any update. Safer way would be to - backup all data - from previous version, install new version and then do restore of data. + <a href="http://sourceforge.net/projects/ggc/files/GNU%20Gluco%20Control/GGC%200.6.0/GGC_Update_0.6.0.zip/download">GGC + 0.6.0 Update Zip file</a> </li> </ul> @@ -94,39 +80,22 @@ <ul> <li> <a href="http://sourceforge.net/projects/ggc/files/GNU%20Gluco%20Control/GGC%200.5.0.3-2/GGC_Setup_0.5.0.3-2_jre.exe/download"> - GGC 0.5.0.3 (release 2) Windows Installer (with JRE)</a> - You should use this - install file if you have no knowledge about Java. It contains JRE, so the file is much bigger, but you can - just install it, out-of-the-box, - without any special intervention (advised for most end-users). + GGC 0.5.0.3 (release 2) Windows Installer with Java</a> </li> <li> <a href="http://sourceforge.net/projects/ggc/files/GNU%20Gluco%20Control/GGC%200.5.0.3-2/GGC_Setup_0.5.0.3-2.exe/download"> - GGC 0.5.0.3 (release 2) Windows Installer (without JRE)</a> - If you have Java - already on your computer, and your knowledge of computer is above average you can decide to take this file - and manually configure - application to run with your installed Java. + GGC 0.5.0.3 (release 2) Windows Installer without Java</a> </li> <li> <a href="http://sourceforge.net/projects/ggc/files/GNU%20Gluco%20Control/GGC%200.5.0.3-2/GGC_0.5.0.3-2.zip/download">GGC - 0.5.0.3 (release 2) Zip file</a>, with all files - - For all other platforms you need to use this file. You just extract it and then follow by reading Readme_1st - to get it - running. (in short you need to enter bin folder and run "run_ - <platform>" file, platform is either win, linux, mac or freebsd). + 0.5.0.3 (release 2) (Full) Zip file</a> </li> <li> <a href="http://sourceforge.net/projects/ggc/files/GNU%20Gluco%20Control/GGC%200.5.0.3-2/GGC_Update_0.5.0.3-2.zip/download">GGC - Update 0.5.0.3 (release 2) Zip file</a>, this - file contains only files that were updates since 1st release (0.3). If you have installed previous version - of GGC and have data - in it, this would be file to use. Read document 'How_To_Upgrade.txt' in zip file. (This file should be used - only by users who know - basic of O.S. they are using. Please make backup first before you attempt any update. Safer way would be to - backup all data - from previous version, install new version and then do restore of data. + Update 0.5.0.3 (release 2) Zip file</a> </li> </ul> @@ -167,31 +136,20 @@ <h4>Version 0.4</h4> <ul> - <li><a href="http://downloads.sourceforge.net/ggc/GGC_Setup_0.4_jre.exe?use_mirror=osdn">GGC 0.4 Windows - Installer (with JRE)</a> - You should use this - install file if you have no knowledge about Java. It contains JRE, so the file is much bigger, but you can - just install it, out-of-the-box, - without any special intervention (advised for most end-users). + <li><a href="http://sourceforge.net/projects/ggc/files/GNU%20Gluco%20Control/GGC%200.4/GGC_Setup_0.4_jre.exe/download"> + GGC 0.4 Windows Installer with Java</a> </li> - <li><a href="http://downloads.sourceforge.net/ggc/GGC_Setup_0.4.exe?use_mirror=osdn">GGC 0.4 Windows Installer - (without JRE)</a> - If you have Java - already on your computer, and your knowledge of computer is above average you can decide to take this file - and manually configure - application to run with your installed Java. + <li><a href="http://sourceforge.net/projects/ggc/files/GNU%20Gluco%20Control/GGC%200.4/GGC_Setup_0.4.exe/download"> + GGC 0.4 Windows Installer without Java</a> </li> - <li><a href="http://downloads.sourceforge.net/ggc/GGC_0.4.zip?use_mirror=osdn">GGC 0.4 Zip file</a>, with all - files - For all other platforms you need - to use this file. You just extract it and then follow by reading Readme_1st to get it running. + <li><a href="http://sourceforge.net/projects/ggc/files/GNU%20Gluco%20Control/GGC%200.4/GGC_0.4.zip/download"> + GGC 0.4 (Full) Zip file</a> </li> - <li><a href="http://downloads.sourceforge.net/ggc/GGC_Update_0.4.zip?use_mirror=osdn">GGC Update 0.4 Zip - file</a>, this file contains only files that were - updates since 1st release (0.3.1). If you have installed GGC 0.3.1 and have data in it, this would be file - to - use. Read document 'How_To_Upgrade.txt' in zip - file. + <li><a href="http://sourceforge.net/projects/ggc/files/GNU%20Gluco%20Control/GGC%200.4/GGC_Update_0.4.zip/download"> + GGC Update 0.4 Zip file</a> </li> </ul> Modified: trunk/web_page/inc_features.inc =================================================================== --- trunk/web_page/inc_features.inc 2015-08-01 08:52:57 UTC (rev 1358) +++ trunk/web_page/inc_features.inc 2015-08-02 20:34:22 UTC (rev 1359) @@ -10,68 +10,76 @@ <b>Currently Implemented Features:</b> <ul> - <li>Entering You can enter:</li> + <li><b>Data entry</b></li> <ul> + <li>We support 2 different data entries: via Pen/Injection forms or Pump forms <li>Blood Glucose (BG) Values (in both formats)</li> - <li>2 different Insulins (Basal, Bolus)</li> + <li>2 different Insulin types (Basal, Bolus)</li> <li>Carbohydrates intake</li> <li>Activity level</li> - <li>Urine tests</li> + <li>Urine</li> <li>Comments</li> <li>Adding food data (From Db)</li> <li>Adding food data (by description)</li> <li>Bolus Helper to determine Bolus dose</li> <li>Simple Ratio Helper</li> </ul> - <li>Store your data in:</li> + <li><b>Data storage</b></li> <ul> - <li>With help of Hibernate (see <a href="http://www.hibernate.org/">http://www.hibernate.org/</a>) we now support wide + <li>With help of Hibernate 3.1.3 (see <a href="http://www.hibernate.org/">http://www.hibernate.org/</a>) we now support wide variety of databases. <li>We have one "internal" database, which can be used out-of-the-box (we use <a href="http://www.h2database.com/">H2</a> database for that)</li> - <li>Backup data and restore (full only)</li> + <li>Support for full backup and restore</li> <li>Database versioning</li> </ul> - <li>Graphs:</li> + <li><b>Graphs</b></li> <ul> - <li>One Day (shows a BG curve, avg BG, insulin and BU intake)</li> + <li>One Day (shows a BG curve, avg BG, insulin and CH intake)</li> <li>Course (shows you your values over a period of time)</li> <li>Spread (shows data over a period of time, but plots the days over each other, so you can find accumulations)</li> <li>Frequency (shows kind of a histogram for your BG values)</li> <li>We are now using JFreeChart library for graphs (through ATech Graph Framework)</li> </ul> - <li>Nutrition database:</li> + + <li><b>Nutrition database</b></li> <ul> - <li>We have now tree nutrition/food databases. </li> + <li>We have now 3 nutrition/food databases. </li> <li>USDA database. This is static database of nutrition data of US department of Agriculture.</li> - <li>User database. To add foods that are not USDA</li> + <li>User database. To add foods that are not part of USDA</li> <li>Meals database. You can group USDA/User/Meal entries into meals</li> </ul> - <li>Print support:</li> + + <li><b>Reports</b></li> <ul> - <li>We can now create PDFs with Simple and Extended reports. From within PDF Reader, we can - then print-out our data.</li> - <li>Simple report. Gathers together data for BGs, Insulins and CHs and displays them.</li> - <li>Extended report. It shows every entry as it was written, with fully detailed data.</li> - <li>Printing of Food Menus (with different options)</li> + <li>Our reporting is currently limited to creating PDF reports (we use iText library) + <li>When report is created we cn view it with either external PDF viewer or with + internal one. + <li>Pen/Injecton: We have Simple and Extended reports available</li> + <li>Nutrition: We have printing of food menus (options) used + <li>Pump: Here we have Extended reports, Daily Timesheet report and some other minor reports which can help with diabetes management. </ul> + <li>Approximate your current HbA1c</li> - <li>Customize whole application</li> - <li>Three sub-projects were created: Meter Tool, Pump Tool and CGMS Tool (see page Sub-Projects)</li> - <li>Help framework integrated (Some help pages written)</li> - <li>USB Image of GGC</li> - <li>Application update: Client side is working, we need to implement server side</li> - <li>Tools integration:</li> + + <li><b>Support for Diabetes devices</b></li> <ul> - <li>Meter Tool integration (v2.0.3) - See projects page for details.</li> - <li>Pump Tool integration (v1.3.4) - See projects page for details.</li> - <li>CGMS Tool integration (v1.0.3) - See projects page for details.</li> + <li>Meter Tool integration - See projects page for details.</li> + <li>Pump Tool integration - See projects page for details.</li> + <li>CGMS Tool integration - See projects page for details.</li> </ul> - + + + <li><b>Other features</b></li> + <ul> + <li>Customization of application</li> + <li>Help framework integrated (Some help pages written)</li> + <li>USB Image of GGC</li> + </ul> </ul> <b>Versioning:</b> Our application is still in 0.x version, but that will change, when some of major features are -implemented, we will go to version 1.0. This will probably happen with version 0.5, if all items +implemented, we will go to version 1.0. This will probably happen with version 0.7, if all items marked with [1.0] will be finished, then first release, with them, will be 1.0.<br><br> @@ -79,26 +87,23 @@ <ul> -<li><i>Version 0.6 [4Q/2014]:</i></li> +<li><i>Version 0.7 [4Q/2015]:</i></li> <ul> <li>Stocks</li> - <li>Update system - Server side [1.0]</li> + <li>Update system [1.0]</li> <li>Write help pages for English (full help) [1.0] </li> <li>Db Tool [1.0]</li> <li>Support for multiple persons</li> <li>USB devices integration (via HID interface)</li> - <li>Internal PDF Viewer</li> - <li>moving from Rxtx to java-simple-serial-connector (not 100% decided)</li> - <li>moving to development with Maven (internal change)</li> </ul> -<li><i>Version 0.7 or later:</i></li> +<li><i>Version 0.8 or later:</i></li> <ul> <li>Extend nutrition databases functionality</li> <li>Add Remote Food database</li> - <li>Editor for Graph (v2)</li> + <li>Editor for Graph (v3)</li> <li>Restore data (partitial/update)</li> <li>Appointment and Doctors handling</li> <li>Activity manager</li> Modified: trunk/web_page/inc_news.inc =================================================================== --- trunk/web_page/inc_news.inc 2015-08-01 08:52:57 UTC (rev 1358) +++ trunk/web_page/inc_news.inc 2015-08-02 20:34:22 UTC (rev 1359) @@ -5,7 +5,7 @@ <table cellpadding="3" cellspacing="0" align="center" width="100%" summary="" class="container"> <tr class="newsheader"> -<td width="150">2014-07-08</td> +<td width="150">2014-08-01</td> <td>Release 0.6</td> </tr> <tr> @@ -24,7 +24,7 @@ - added few reports for Pumps (check Daily Timesheet)<br> - some fixes here and there...<br> <br> -If you find some problems please report and I will try to make a fix release if needed (in august).<br> +If you find some problems please report and I will try to make a fix release if needed.<br> <br> Next release is planned for end of year 2015. If everything works OK, we should have some support for Minimed Pumps. I am working on it with full speed, so I hope it will be finished by end of year Modified: trunk/web_page/inc_projects.inc =================================================================== --- trunk/web_page/inc_projects.inc 2015-08-01 08:52:57 UTC (rev 1358) +++ trunk/web_page/inc_projects.inc 2015-08-02 20:34:22 UTC (rev 1359) @@ -29,7 +29,7 @@ <h3 class="header">Meter Tool</h3> Meter Tool implementation is now finished. All that remains is adding support for more Meter Devices.<br> -<b>Current version:</b> 2.0.3<br> +<b>Current version:</b> 2.2<br> <br><br> <b><i>Tasks that are already done:</i></b> <ul> @@ -47,17 +47,17 @@ <ul> <li>Ascensia/Bayer - Contour, Countour Link, Dex, Elite, Breeze </li> <li>Roche/Accu-Chek - All devices supported through Smart Pix device</li> - <li>Lifescan - OT Ultra, <strike>OT Ultra2</strike>, OT Ultra Smart (partitial), OT Easy/Mini </li> + <li>Lifescan - OT Ultra, OT Ultra Smart (partitial), OT Easy/Mini </li> </ul> </ul> <br> <b><i>Planned devices: </i></b> <ul> <li>Abbott - Some of them</li> - <li>Ascensia: Contour USB</li> + <li>Ascensia: Contour USB, Contour Next, Contour Next Link</li> <li>Arkray: Glucocard X-mini plus</li> <li>Calla Light</li> - <li>OT: Verio, Smart</li> + <li>Lifescan: Verio, Smart, OT Ultra2</li> </ul> @@ -70,7 +70,7 @@ Pump Tool development is mostly finished. Some of functionalities still need to be completed, but most of stuff works. We still need to add support for more devices.<br> -<b>Current version:</b> 1.3.4<br> +<b>Current version:</b> 1.5.1<br> <br><br> @@ -92,22 +92,26 @@ <ul> <li>Roche/Disetronic: Spirit, Combo <li>Sooil: Dana III + <li>Omni Pod + <li>Animas 1200 and greater (including Vibe) </ul> </ul> -<br><br> +<br> <b><i>Tasks that need to be done:</i></b> <ul> - <li>Graphs (0.6) (waiting on Graphs v2 with Editor)</li> + <li>Graphs (0.7) (waiting on Graphs v2 with Editor)</li> </ul> + <br> + <b><i>Planned devices: </i></b> <ul> - <li>MiniMed (2015) - <li>Animas (unknown) [we have one developer working just on this] - <li>Smith's Cosmo (?) - <li>Omni Pod (?) + <li>MiniMed (end of 2015) + <li>MiniMed 530G (??) + <li>Tandem [no support from company yet, perhaps in future] + </ul> <br> @@ -116,7 +120,7 @@ CGMS tool is still in implementation phase. Base framework is finished, and some imports are already working, but we still need to do some implementation and also same analysis on the problem.<br> -<b>Current version:</b> 1.0.3<br> +<b>Current version:</b> 1.3.2<br> <br><br> <b><i>Tasks that are already done:</i></b> @@ -124,27 +128,37 @@ <li>Base framework for CGMS</li> <li>Communication framework for CGMS (interface that all CGMS will use)</li> <li>Configuration and graphical interface for integration into GGC</li> + <li>List of CGMS</li> <li>Output types:</li> <ul> <li>Console and file output <li>GGC Db Output (for manual import) <li>GGC Output (GUI integration) </ul> + <li>Specific CGMS models implementations:</li> + <ul> + <li>Dexcom G4 + <li>Animas Vibe (Dexcom Integration) + </ul> </ul> +<br> + <b><i>Tasks that need to be done:</i></b> <ul> - <li>List of CGMS (0.6)</li> - <li>Graphs (0.6) (waiting on Graphs v2 with Editor)</li> - <li>Specific CGMS models implementations:</li> - <ul> - <li>MiniMed (2015) - <li>Dexcom (?, we currently suppport only import through export file from DM3 app) - <li>Abbott (?) - </ul> + <li>Graphs (0.7) (waiting on Graphs v2 with Editor)</li> </ul> +<br> +<b><i>Planned devices: </i></b> +<ul> + <li>MiniMed (2016) + <li>Dexcom 7 (?) + <li>Abbott (?) +</ul> + + <br> <h3 class="header">Translation Tool</h3> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <and...@us...> - 2015-09-23 19:14:58
|
Revision: 1360 http://sourceforge.net/p/ggc/code/1360 Author: andyrozman Date: 2015-09-23 19:14:54 +0000 (Wed, 23 Sep 2015) Log Message: ----------- Contour USB - implementation of Contour USB devices - little refactoring for Ascensia - Device config fix when reseting device - Hid4JavaCommunicationHandler for USB HID - creating -j15 libraries and tying them into project Modified Paths: -------------- trunk/ggc-cgm/pom.xml trunk/ggc-master-pom/pom.xml trunk/ggc-meter/pom.xml trunk/ggc-meter/src/GGCMeterTool_en.properties trunk/ggc-meter/src/ggc/meter/data/MeterDataHandler.java trunk/ggc-meter/src/ggc/meter/data/MeterValuesEntry.java trunk/ggc-meter/src/ggc/meter/data/defs/MeterDeviceDefinition.java trunk/ggc-meter/src/ggc/meter/device/MeterInterfaceV2.java trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaMeter.java trunk/ggc-meter/src/ggc/meter/manager/MeterDevicesIds.java trunk/ggc-meter/src/ggc/meter/manager/MeterManager.java trunk/ggc-meter/src/ggc/meter/test/MeterConsoleTester.java trunk/ggc-meter/src/ggc/meter/util/DataAccessMeter.java trunk/ggc-plugin_base/pom.xml trunk/ggc-plugin_base/src/GGCPlugin_en.properties trunk/ggc-plugin_base/src/ggc/plugin/cfg/CommunicationSettingsPanel.java trunk/ggc-plugin_base/src/ggc/plugin/cfg/DeviceConfigEntry.java trunk/ggc-plugin_base/src/ggc/plugin/cfg/DeviceConfigurationDialog.java trunk/ggc-plugin_base/src/ggc/plugin/comm/Hid4JavaCommunicationHandler.java trunk/ggc-plugin_base/src/ggc/plugin/comm/IBMCommunicationHandler.java trunk/ggc-plugin_base/src/ggc/plugin/comm/NRSerialCommunicationHandler.java trunk/ggc-plugin_base/src/ggc/plugin/comm/SerialCommunicationInterface.java trunk/ggc-plugin_base/src/ggc/plugin/data/enums/DeviceCompanyDefinition.java trunk/ggc-plugin_base/src/ggc/plugin/data/enums/PlugInExceptionType.java trunk/ggc-plugin_base/src/ggc/plugin/device/impl/animas/comm/AnimasCommProtocolAbstract.java trunk/ggc-plugin_base/src/ggc/plugin/gui/DeviceDisplayConfigDialog.java trunk/ggc-plugin_base/src/ggc/plugin/gui/DeviceDisplayDataDialog.java trunk/ggc-plugin_base/src/ggc/plugin/gui/DeviceReaderRunner.java trunk/ggc-plugin_base/src/ggc/plugin/util/DataAccessPlugInBase.java trunk/ggc-pump/pom.xml trunk/ggc-pump/src/ggc/pump/manager/PumpManager.java trunk/pom.xml Added Paths: ----------- trunk/ggc-meter/src/ggc/meter/device/MeterDeviceInstanceWithHandler.java trunk/ggc-meter/src/ggc/meter/device/MeterDisplayInterfaceType.java trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaUsbMeterHandler.java trunk/ggc-meter/src/ggc/meter/device/ascensia/impl/ trunk/ggc-meter/src/ggc/meter/device/ascensia/impl/AscensiaContourUsbReader.java trunk/ggc-meter/src/ggc/meter/device/ascensia/impl/AscensiaDecoder.java trunk/ggc-meter/src/icons/meters/ascensia_contour_next.jpg trunk/ggc-meter/src/icons/meters/ascensia_contour_nextlink.jpg trunk/ggc-meter/src/icons/meters/ascensia_contour_nextusb.jpg trunk/ggc-meter/src/icons/meters/ascensia_contour_usb.jpg trunk/ggc-plugin_base/src/ggc/plugin/comm/cfg/ trunk/ggc-plugin_base/src/ggc/plugin/comm/cfg/SerialSettings.java trunk/ggc-plugin_base/src/ggc/plugin/comm/cfg/SerialSettingsType.java trunk/ggc-plugin_base/src/ggc/plugin/comm/cfg/SerialSpecialCommand.java trunk/ggc-plugin_base/src/ggc/plugin/comm/cfg/USBDevice.java Removed Paths: ------------- trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaContourUSB.java trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaMeterUsb.java trunk/ggc-plugin_base/src/ggc/plugin/comm/SerialSettings.java trunk/ggc-plugin_base/src/ggc/plugin/comm/SerialSettingsType.java trunk/ggc-plugin_base/src/ggc/plugin/comm/SerialSpecialCommand.java Modified: trunk/ggc-cgm/pom.xml =================================================================== --- trunk/ggc-cgm/pom.xml 2015-08-02 20:34:22 UTC (rev 1359) +++ trunk/ggc-cgm/pom.xml 2015-09-23 19:14:54 UTC (rev 1360) @@ -65,11 +65,12 @@ <version>1.1</version> </dependency> - - <dependency> - <groupId>com.neuronrobotics</groupId> - <artifactId>nrjavaserial</artifactId> - </dependency> + <!-- + <dependency> + <groupId>com.neuronrobotics</groupId> + <artifactId>nrjavaserial</artifactId> + </dependency> + --> </dependencies> <properties> Modified: trunk/ggc-master-pom/pom.xml =================================================================== --- trunk/ggc-master-pom/pom.xml 2015-08-02 20:34:22 UTC (rev 1359) +++ trunk/ggc-master-pom/pom.xml 2015-09-23 19:14:54 UTC (rev 1360) @@ -273,11 +273,6 @@ </exclusions> </dependency> - <dependency> - <groupId>net.java.dev.jna</groupId> - <artifactId>jna</artifactId> - <version>${jna.version}</version> - </dependency> <!--This is some outdated library which we use only for BlueTooth, it needs to be removed or changed, but so far it's here and it's version is @@ -289,39 +284,46 @@ <version>${ibm-compapi.version}</version> </dependency> - <!-- This library is created in parallel to GGC and it should be used - for USB communication. For USB devices that have HID interfaces (most of - them), we will use other library, but for legacy support we use this for - now. --> - <!-- - <dependency> - <groupId>net.sf.ggc.libusb4j</groupId> - <artifactId>libusb4jwo</artifactId> - <version>${libusb4jwo.version}</version> - </dependency> - --> + <dependency> + <groupId>com.neuronrobotics</groupId> + <artifactId>nrjavaserial</artifactId> + <version>${nrjavaserial.version}</version> + </dependency> +--> + <dependency> + <groupId>jaxen</groupId> + <artifactId>jaxen</artifactId> + <version>${jaxen.version}</version> + </dependency> <!-- - <dependency> - <groupId>com.codeminders</groupId> - <artifactId>hidapi</artifactId> - <version>${hidapi.version}</version> - </dependency> + <dependency> + <groupId>net.java.dev.jna</groupId> + <artifactId>jna</artifactId> + <version>${jna.version}</version> + </dependency> --> <dependency> - <groupId>com.neuronrobotics</groupId> - <artifactId>nrjavaserial</artifactId> - <version>${nrjavaserial.version}</version> + <groupId>net.java.dev.jna</groupId> + <artifactId>jna-j15</artifactId> + <version>${jna-j15.version}</version> </dependency> <dependency> - <groupId>jaxen</groupId> - <artifactId>jaxen</artifactId> - <version>${jaxen.version}</version> + <groupId>org.hid4java</groupId> + <artifactId>hid4java-j15</artifactId> + <version>${hid4java-j15.version}</version> </dependency> + + <dependency> + <groupId>com.neuronrobotics</groupId> + <artifactId>nrjavaserial-j15</artifactId> + <version>${nrjavaserial-j15.version}</version> + </dependency> + </dependencies> </dependencyManagement> @@ -358,19 +360,22 @@ <javahelp.version>2.0.05</javahelp.version> <!-- NEW THIS VERSION --> - <hidapi.version>1.1</hidapi.version> - <!-- remove ?? use hid4java perhaps --> - <nrjavaserial.version>3.9.3-GGC</nrjavaserial.version> + <icepdf-core.version>5.0.7</icepdf-core.version> <icepdf-viewer.version>5.0.7</icepdf-viewer.version> <jaxen.version>1.1.6</jaxen.version> <!-- NEW VERSION IN THIS VERSION --> - <jna.version>3.3.0</jna.version> - <!-- 3.5.3 --> <atech-tools.version>0.7.12-SNAPSHOT</atech-tools.version> + <jna-j15.version>4.1.0</jna-j15.version> + <hid4java-j15.version>0.3.1</hid4java-j15.version> + <nrjavaserial-j15.version>3.9.3.1</nrjavaserial-j15.version> + <!-- Removed --> + <jna.version>4.1.0-GGC</jna.version> + <nrjavaserial.version>3.9.3-GGC</nrjavaserial.version> + <maven.compiler.source>1.5</maven.compiler.source> <maven.compiler.target>1.5</maven.compiler.target> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> Modified: trunk/ggc-meter/pom.xml =================================================================== --- trunk/ggc-meter/pom.xml 2015-08-02 20:34:22 UTC (rev 1359) +++ trunk/ggc-meter/pom.xml 2015-09-23 19:14:54 UTC (rev 1360) @@ -1,86 +1,83 @@ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> + <modelVersion>4.0.0</modelVersion> - <parent> - <groupId>net.sf.ggc</groupId> - <artifactId>ggc-parent</artifactId> - <version>1.0-SNAPSHOT</version> - <relativePath>../ggc-master-pom/pom.xml</relativePath> - </parent> + <parent> + <groupId>net.sf.ggc</groupId> + <artifactId>ggc-parent</artifactId> + <version>1.0-SNAPSHOT</version> + <relativePath>../ggc-master-pom/pom.xml</relativePath> + </parent> - <name>GGC Meter Tool Project</name> + <name>GGC Meter Tool Project</name> - <artifactId>ggc-meter-tool</artifactId> - <version>${ggc-meter-tool.version}</version> + <artifactId>ggc-meter-tool</artifactId> + <version>${ggc-meter-tool.version}</version> - <build> - <directory>target</directory> - <outputDirectory>target/classes</outputDirectory> - <finalName>${project.artifactId}-${project.version}</finalName> - <testOutputDirectory>target/test-classes</testOutputDirectory> - <sourceDirectory>src</sourceDirectory> - <scriptSourceDirectory>src</scriptSourceDirectory> - <testSourceDirectory>src/test/java</testSourceDirectory> - <resources> - <resource> - <directory>src</directory> - <filtering>true</filtering> - <excludes> - <exclude>**/*.java</exclude> - </excludes> - </resource> - </resources> - <testResources> - <testResource> - <directory>src/test/resources</directory> - </testResource> - </testResources> + <build> + <directory>target</directory> + <outputDirectory>target/classes</outputDirectory> + <finalName>${project.artifactId}-${project.version}</finalName> + <testOutputDirectory>target/test-classes</testOutputDirectory> + <sourceDirectory>src</sourceDirectory> + <scriptSourceDirectory>src</scriptSourceDirectory> + <testSourceDirectory>src/test/java</testSourceDirectory> + <resources> + <resource> + <directory>src</directory> + <filtering>true</filtering> + <excludes> + <exclude>**/*.java</exclude> + </excludes> + </resource> + </resources> + <testResources> + <testResource> + <directory>src/test/resources</directory> + </testResource> + </testResources> - </build> + </build> - <dependencies> + <dependencies> <dependency> <groupId>com.atech-software</groupId> <artifactId>atech-tools</artifactId> </dependency> - <dependency> - <groupId>net.sf.ggc</groupId> - <artifactId>ggc-core</artifactId> - </dependency> + <dependency> + <groupId>net.sf.ggc</groupId> + <artifactId>ggc-core</artifactId> + </dependency> - <dependency> - <groupId>net.sf.ggc</groupId> - <artifactId>ggc-plugin-base</artifactId> - </dependency> + <dependency> + <groupId>net.sf.ggc</groupId> + <artifactId>ggc-plugin-base</artifactId> + </dependency> - <dependency> - <groupId>net.java.dev.jna</groupId> - <artifactId>jna</artifactId> - </dependency> - <!-- - <dependency> - <groupId>net.sf.ggc.libusb4j</groupId> - <artifactId>libusb4jwo</artifactId> - </dependency> - --> + <dependency> + <groupId>net.java.dev.jna</groupId> + <artifactId>jna</artifactId> + </dependency> + --> + <!-- + <dependency> + <groupId>com.neuronrobotics</groupId> + <artifactId>nrjavaserial</artifactId> + </dependency> + --> - <dependency> - <groupId>com.neuronrobotics</groupId> - <artifactId>nrjavaserial</artifactId> - </dependency> - </dependencies> + </dependencies> - <properties> + <properties> - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> - <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> - </properties> + </properties> </project> Modified: trunk/ggc-meter/src/GGCMeterTool_en.properties =================================================================== --- trunk/ggc-meter/src/GGCMeterTool_en.properties 2015-08-02 20:34:22 UTC (rev 1359) +++ trunk/ggc-meter/src/GGCMeterTool_en.properties 2015-09-23 19:14:54 UTC (rev 1360) @@ -137,6 +137,7 @@ INSTRUCTIONS_ASCENSIA_CONTOUR=<html>Instructions for meter download:<ul><li>Attach the meter cable to the selected PC<br> serial port</li><li>Plug the meter cable into the round meter port<br></li><li>Press the meter button M to turn the meter ON</li></ul><br>Click "Start Download" to begin reading data from<br>your meter...</html> INSTRUCTIONS_ASCENSIA_ELITE_XL=<html>Instructions for meter download:<ul><li>Attach the meter cable to the selected PC<br> serial port</li><li>Plug the meter cable into the round meter<br>port<br></li><li>Press the meter button to turn the meter ON</li></ul><br>Click "Start Download" to begin reading data from<br>your meter...</html> INSTRUCTIONS_ASCENSIA_DEX=<html>Instructions for meter download:<ul><li>Attach the meter cable to the selected PC<br> serial port<br></li><li>Plug the meter cable into the port between<br> the two meter buttons<br></li><li>Slide the meter cover to turn the meter ON</li></ul><br>Click "Start Download" to begin reading data from<br>your meter...</html> +INSTRUCTIONS_ASCENSIA_CONTOUR_USB=<html><ul><li>Attach meter to USB port<br></li></ul><br>Click "Start Download" to begin reading data from<br>your meter...</html> # !SG! roche # same instructions: compact & integra, active & go, advantage & comfort & sensor @@ -180,3 +181,15 @@ # !SG! AccuChek Combo BG_UNIT=BG Unit TIME_ON_DEVICE=Time on device + +# !SG! Ascensia +MARKER_HI=High BG +MARKER_LO=Low BG +MARKER_PRE_MEAL=Pre-Meal +MARKER_POST_MEAL=Post-Meal +MARKER_DONT_FEEL_RIGHT=Don't feel right +MARKER_SICK=Sick +MARKER_STRESS=Stress +MARKER_ACTIVITY=Activity +MARKER_CONTROL_RESULT=Control result +MARKER_AFTER_FOOD=Time after food (%s) \ No newline at end of file Modified: trunk/ggc-meter/src/ggc/meter/data/MeterDataHandler.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/data/MeterDataHandler.java 2015-08-02 20:34:22 UTC (rev 1359) +++ trunk/ggc-meter/src/ggc/meter/data/MeterDataHandler.java 2015-09-23 19:14:54 UTC (rev 1360) @@ -10,7 +10,6 @@ import ggc.core.db.hibernate.pump.PumpDataExtendedH; import ggc.meter.data.db.GGCMeterDb; -import ggc.meter.device.MeterInterface; import ggc.meter.util.DataAccessMeter; import ggc.plugin.data.DeviceDataHandler; import ggc.plugin.data.DeviceValuesEntry; @@ -134,7 +133,6 @@ Hashtable<String, PumpDataExtendedH> pumpData = db.getPumpData(timeMarksWithChangedData); this.setCustomStatus(1, 10); - // 5. add/edit pump items for (Map.Entry<Long, HashMap<MeterValuesEntryDataType, Object>> timeData : timeMarksWithChangedData.entrySet()) @@ -206,7 +204,6 @@ } } - int current_static_stat = 0; int element_current = 0; int elementCountAll = 0; @@ -270,9 +267,7 @@ createDeviceValuesTableModel(); } - MeterInterface mi = (MeterInterface) m_da.getSelectedDeviceInstance(); - - if (mi.getInterfaceTypeForMeter() == MeterInterface.METER_INTERFACE_SIMPLE) + if (!m_da.isDataDownloadScreenWide()) return m_model; else return m_model2; Modified: trunk/ggc-meter/src/ggc/meter/data/MeterValuesEntry.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/data/MeterValuesEntry.java 2015-08-02 20:34:22 UTC (rev 1359) +++ trunk/ggc-meter/src/ggc/meter/data/MeterValuesEntry.java 2015-09-23 19:14:54 UTC (rev 1360) @@ -65,6 +65,7 @@ private HashMap<String, String> extendedMap; public MeterValuesEntryDataType extendedType = MeterValuesEntryDataType.None; + /** * Constructor */ @@ -76,6 +77,7 @@ resetExtendedType(); } + /** * Constructor * @param dv @@ -108,6 +110,7 @@ this.datetime = dt; } + /** * Get DateTime Object (ATechDate) * @@ -119,6 +122,7 @@ return this.datetime; } + /** * Get DateTime (long) * @@ -130,6 +134,7 @@ return this.datetime.getATDateTimeAsLong(); } + /** * Add Parameter * @@ -138,7 +143,7 @@ */ public void addParameter(String key, String value) { - if (value.equals("_") || value.trim().length() == 0) + if ((value == null) || (value.equals("_") || value.trim().length() == 0)) return; if (params == null) @@ -204,7 +209,6 @@ } - /** * Prepare Entry [Framework v2] */ @@ -213,6 +217,7 @@ { } + /** * This is used just for compliance with old Meter code. This method is deprecated, but since Meter Tool * is still not fully switched over to Framework v2, we need this method. @@ -227,7 +232,6 @@ } - /** * Create Comment * @@ -243,6 +247,7 @@ return p; } + /** * To String * @@ -257,6 +262,7 @@ + "]"; } + /** * Get Data As String (for non-db exports) */ @@ -302,6 +308,7 @@ } } + /** * Is Data BG * @@ -313,6 +320,7 @@ return true; } + /** * Get Column Value * @@ -322,12 +330,13 @@ @Override public Object getColumnValue(int column) { - if (!da.isDataDownloadSceenWide()) + if (!da.isDataDownloadScreenWide()) return this.getColumnValueBase(column); else return this.getColumnValueExtended(column); } + private Object getColumnValueBase(int column) { switch (column) @@ -352,6 +361,7 @@ } } + private Object getColumnValueExtended(int column) { switch (column) @@ -377,6 +387,7 @@ } } + /** * Get DateTime format * @@ -400,6 +411,7 @@ return 0; } + /** * Get Statistics Action - we define how statistic is done (we have several predefined * types of statistics @@ -412,6 +424,7 @@ return 0; } + /** * Is Special Action - tells if selected statistics item has special actions * @@ -423,6 +436,7 @@ return false; } + /** * Get Max Statistics Object - we can have several Statistic types defined here * @@ -433,6 +447,7 @@ return 0; } + /** * If we have any special actions for any of objects * @@ -443,6 +458,7 @@ return false; } + /** * Get Table Column Value (in case that we need special display values for download data table, this method * can be used, if it's the same as getColumnValue, we can just call that one. @@ -466,6 +482,7 @@ return "MVE_" + this.datetime.getATDateTimeAsLong(); } + /** * getObjectUniqueId - get id of object * @return unique object id @@ -475,6 +492,7 @@ return null; } + /** * DbAdd - Add this object to database * @@ -489,6 +507,7 @@ return "" + this.getId(); } + /** * DbEdit - Edit this object in database * @@ -502,6 +521,7 @@ return true; } + /** * DbDelete - Delete this object in database * @@ -587,6 +607,7 @@ return false; } + /** * DbGet - Loads this object. Id must be set. * @@ -599,6 +620,7 @@ return false; } + /** * getObjectName - returns name of DatabaseObject * @@ -609,6 +631,7 @@ return getDVEName(); } + /** * isDebugMode - returns debug mode of object * @@ -619,6 +642,7 @@ return false; } + /** * getAction - returns action that should be done on object * 0 = no action @@ -635,6 +659,7 @@ return 0; } + /** * Get DeviceValuesEntry Name * @@ -645,6 +670,7 @@ return "MeterValuesEntry"; } + /** * Get Value of object * @@ -658,6 +684,7 @@ return this.getValueFull(); } + /** * Get Value of object (for comparing two objects are the same) * @@ -685,6 +712,7 @@ long old_id; + /** * Set Old Id (this is used for changing old objects in framework v2) * @@ -695,6 +723,7 @@ this.old_id = id_in; } + /** * Get Old Id (this is used for changing old objects in framework v2) * @@ -707,6 +736,7 @@ String source; + /** * Set Source * @@ -718,6 +748,7 @@ } + /** * Get Source * @@ -728,6 +759,7 @@ return this.source; } + // --- // --- Special entries // --- @@ -867,6 +899,7 @@ return ic.getMessage(extendedType.getDescription()); // extendedTypeDescription; } + /** * Get Extended Type Value (if we use extended interface, this is value) * @@ -944,6 +977,7 @@ return extendedType; } + /** * Create data for extended field in database (special entries without CH) * @return Modified: trunk/ggc-meter/src/ggc/meter/data/defs/MeterDeviceDefinition.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/data/defs/MeterDeviceDefinition.java 2015-08-02 20:34:22 UTC (rev 1359) +++ trunk/ggc-meter/src/ggc/meter/data/defs/MeterDeviceDefinition.java 2015-09-23 19:14:54 UTC (rev 1360) @@ -1,40 +1,56 @@ package ggc.meter.data.defs; +import java.util.ArrayList; +import java.util.List; + +import ggc.meter.device.MeterDisplayInterfaceType; import ggc.plugin.data.enums.DeviceCompanyDefinition; import ggc.plugin.data.enums.DeviceHandlerType; import ggc.plugin.data.enums.DevicePortParameterType; import ggc.plugin.data.enums.DeviceProgressStatus; import ggc.plugin.device.v2.DeviceDefinition; -import ggc.plugin.device.DownloadSupportType; import ggc.plugin.manager.DeviceImplementationStatus; import ggc.plugin.protocol.DeviceConnectionProtocol; -import java.util.ArrayList; -import java.util.List; - /** * Created by andy on 06.02.15. */ public enum MeterDeviceDefinition implements DeviceDefinition { - AscensiaNextUsb(10009, "Ascensia Next USB", "pict", "instr", null, - DeviceImplementationStatus.InProgress, DeviceCompanyDefinition.Ascensia, - DeviceHandlerType.AscensiaUsbHandler, DevicePortParameterType.SimpleParameter, - DeviceConnectionProtocol.USB_Hid, DeviceProgressStatus.Special, ""), + AscensiaContourUsb(10007, "Contour USB", "ascensia_contour_usb.jpg", "INSTRUCTIONS_ASCENSIA_CONTOUR_USB", null, + DeviceImplementationStatus.Done, DeviceCompanyDefinition.Ascensia, DeviceHandlerType.AscensiaUsbHandler, + DevicePortParameterType.NoParameters, DeviceConnectionProtocol.USB_Hid, DeviceProgressStatus.Special, "", + 500, MeterDisplayInterfaceType.Simple), + AscensiaContourNext(10008, "Contour Next", "ascensia_contour_next.jpg", "INSTRUCTIONS_ASCENSIA_CONTOUR_USB", null, + DeviceImplementationStatus.Done, DeviceCompanyDefinition.Ascensia, DeviceHandlerType.AscensiaUsbHandler, + DevicePortParameterType.NoParameters, DeviceConnectionProtocol.USB_Hid, DeviceProgressStatus.Special, "", + 500, MeterDisplayInterfaceType.Simple), + + AscensiaContourNextUsb(10009, "Contour Next USB", "ascensia_contour_nextusb.jpg", + "INSTRUCTIONS_ASCENSIA_CONTOUR_USB", null, DeviceImplementationStatus.Done, + DeviceCompanyDefinition.Ascensia, DeviceHandlerType.AscensiaUsbHandler, + DevicePortParameterType.NoParameters, DeviceConnectionProtocol.USB_Hid, DeviceProgressStatus.Special, "", + 500, MeterDisplayInterfaceType.Simple), + + AscensiaContourNextLink(10010, "Contour Next Link", "ascensia_contour_nextlink.jpg", + "INSTRUCTIONS_ASCENSIA_CONTOUR_USB", null, DeviceImplementationStatus.InProgress, + DeviceCompanyDefinition.Ascensia, DeviceHandlerType.AscensiaUsbHandler, + DevicePortParameterType.NoParameters, DeviceConnectionProtocol.USB_Hid, DeviceProgressStatus.Special, "", + 500, MeterDisplayInterfaceType.Simple), + ; static List<DeviceDefinition> allDevices; static List<DeviceDefinition> supportedDevices; - static { allDevices = new ArrayList<DeviceDefinition>(); supportedDevices = new ArrayList<DeviceDefinition>(); - for(MeterDeviceDefinition mdd : values()) + for (MeterDeviceDefinition mdd : values()) { allDevices.add(mdd); @@ -58,13 +74,15 @@ DeviceConnectionProtocol deviceConnectionProtocol; DeviceProgressStatus deviceProgressStatus; String specialComment; + int maxRecords; + MeterDisplayInterfaceType displayInterfaceType; private MeterDeviceDefinition(int id, String name, String iconName, String instructions, Object internalDefinition, - DeviceImplementationStatus implementationStatus, DeviceCompanyDefinition companyDefinition, - DeviceHandlerType deviceHandlerType, - DevicePortParameterType portParameterType, DeviceConnectionProtocol connectionProtocol, - DeviceProgressStatus progressStatus, String specialComment) + DeviceImplementationStatus implementationStatus, DeviceCompanyDefinition companyDefinition, + DeviceHandlerType deviceHandlerType, DevicePortParameterType portParameterType, + DeviceConnectionProtocol connectionProtocol, DeviceProgressStatus progressStatus, String specialComment, + int maxRecords, MeterDisplayInterfaceType displayInterfaceType) { this.deviceId = id; this.deviceName = name; @@ -78,19 +96,23 @@ this.deviceConnectionProtocol = connectionProtocol; this.deviceProgressStatus = progressStatus; this.specialComment = specialComment; - + this.maxRecords = maxRecords; + this.displayInterfaceType = displayInterfaceType; } + public int getDeviceId() { return deviceId; } + public String getDeviceName() { return this.deviceName; } + public String getIconName() { return this.iconName; @@ -102,46 +124,55 @@ return this.instructions; } + public DeviceImplementationStatus getDeviceImplementationStatus() { return this.implementationStatus; } + public Object getInternalDefintion() { return this.internalDefintion; } + public DeviceCompanyDefinition getDeviceCompany() { return this.companyDefinition; } + public DeviceHandlerType getDeviceHandler() { return this.deviceHandlerType; } + public List<DeviceDefinition> getSupportedDevices() { return supportedDevices; } - public List<DeviceDefinition> getAllDevices() + + public static List<DeviceDefinition> getAllDevices() { return allDevices; } + public boolean isSupportedDevice() { return isSupportedDevice(this); } + public static boolean isSupportedDevice(MeterDeviceDefinition meterDeviceDefinition) { return DeviceImplementationStatus.isSupportedDevice(meterDeviceDefinition.getDeviceImplementationStatus()); } + /** * Get Device handler key * @return @@ -161,6 +192,7 @@ return this.devicePortParameterType; } + /** * Get Connection Protocol * @@ -171,6 +203,7 @@ return this.deviceConnectionProtocol; } + /** * Get Device Progress Status. It determines how device progress is determined. In most casess we use Special * progress which is then implemented by Handler. @@ -189,4 +222,9 @@ } + public MeterDisplayInterfaceType getMeterDisplayInterfaceType() + { + return this.displayInterfaceType; + } + } Copied: trunk/ggc-meter/src/ggc/meter/device/MeterDeviceInstanceWithHandler.java (from rev 1359, trunk/ggc-pump/src/ggc/pump/device/PumpDeviceInstanceWithHandler.java) =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/MeterDeviceInstanceWithHandler.java (rev 0) +++ trunk/ggc-meter/src/ggc/meter/device/MeterDeviceInstanceWithHandler.java 2015-09-23 19:14:54 UTC (rev 1360) @@ -0,0 +1,47 @@ +package ggc.meter.device; + +import ggc.meter.data.defs.MeterDeviceDefinition; +import ggc.meter.util.DataAccessMeter; +import ggc.plugin.device.DeviceIdentification; +import ggc.plugin.device.v2.DeviceDefinition; +import ggc.plugin.device.v2.DeviceInstanceWithHandler; + +/** + * Created by andy on 10.02.15. + */ +public class MeterDeviceInstanceWithHandler extends DeviceInstanceWithHandler implements MeterInterfaceV2 +{ + + MeterDeviceDefinition meterDeviceDefinition; + + + public MeterDeviceInstanceWithHandler(DeviceDefinition deviceDefinition) + { + super(deviceDefinition, DataAccessMeter.getInstance()); + meterDeviceDefinition = (MeterDeviceDefinition) deviceDefinition; + } + + + public int getMaxMemoryRecords() + { + return 0; + } + + + public DeviceIdentification getDeviceInfo() + { + return null; + } + + + public MeterDisplayInterfaceType getInterfaceTypeForMeter() + { + return meterDeviceDefinition.getMeterDisplayInterfaceType(); + } + + + public int howManyMonthsOfDataStored() + { + return -1; + } +} Added: trunk/ggc-meter/src/ggc/meter/device/MeterDisplayInterfaceType.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/MeterDisplayInterfaceType.java (rev 0) +++ trunk/ggc-meter/src/ggc/meter/device/MeterDisplayInterfaceType.java 2015-09-23 19:14:54 UTC (rev 1360) @@ -0,0 +1,12 @@ +package ggc.meter.device; + +/** + * Created by andy on 23.09.15. + */ +public enum MeterDisplayInterfaceType +{ + Simple, // + Extended, // + ; + +} Modified: trunk/ggc-meter/src/ggc/meter/device/MeterInterfaceV2.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/MeterInterfaceV2.java 2015-08-02 20:34:22 UTC (rev 1359) +++ trunk/ggc-meter/src/ggc/meter/device/MeterInterfaceV2.java 2015-09-23 19:14:54 UTC (rev 1360) @@ -3,8 +3,6 @@ import com.atech.graphics.dialogs.selector.SelectableInterface; import ggc.plugin.device.DeviceIdentification; -import ggc.plugin.device.DeviceInterface; -import ggc.plugin.device.PlugInBaseException; import ggc.plugin.device.v2.DeviceInterfaceV2; /** @@ -45,6 +43,7 @@ */ public int getMaxMemoryRecords(); + // ************************************************ // *** Available Functionality for Meter *** // ************************************************ @@ -55,22 +54,13 @@ */ public DeviceIdentification getDeviceInfo(); - /** - * Meter Interface - Simple (for normal meter devices, which store only BG data) - */ - public static final int METER_INTERFACE_SIMPLE = 1; /** - * Meter Interface - Extended (for meter devices, which store more then just BG data) - */ - public static final int METER_INTERFACE_EXTENDED = 2; - - /** * getInterfaceTypeForMeter - most meter devices, store just BG data, this use simple interface, but * there are some device which can store different kind of data (Ketones - Optium Xceed; Food, Insulin * ... - OT Smart, etc), this devices require more extended data display. * @return */ - public int getInterfaceTypeForMeter(); + MeterDisplayInterfaceType getInterfaceTypeForMeter(); } Deleted: trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaContourUSB.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaContourUSB.java 2015-08-02 20:34:22 UTC (rev 1359) +++ trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaContourUSB.java 2015-09-23 19:14:54 UTC (rev 1360) @@ -1,173 +0,0 @@ -package ggc.meter.device.ascensia; - -import ggc.meter.manager.MeterDevicesIds; -import ggc.plugin.manager.DeviceImplementationStatus; -import ggc.plugin.manager.company.AbstractDeviceCompany; -import ggc.plugin.output.OutputWriter; -import ggc.plugin.protocol.DeviceConnectionProtocol; -import ggc.plugin.util.DataAccessPlugInBase; - -/** - * Application: GGC - GNU Gluco Control - * Plug-in: Meter Tool (support for Meter devices) - * - * See AUTHORS for copyright information. - * - * This program is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation; either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program; if not, write to the Free Software Foundation, Inc., 59 Temple - * Place, Suite 330, Boston, MA 02111-1307 USA - * - * Filename: AscensiaContour - * Description: Support for Ascensia/Bayer Contour Meter - * - * Author: Andy {an...@at...} - */ - -public class AscensiaContourUSB extends AscensiaMeterUsb -{ - - /** - * Constructor - */ - public AscensiaContourUSB() - { - } - - /** - * Constructor - * - * @param cmp - */ - public AscensiaContourUSB(AbstractDeviceCompany cmp) - { - super(cmp); - } - - /** - * Constructor - * - * @param portName - * @param writer - */ - public AscensiaContourUSB(String portName, OutputWriter writer) - { - super(portName, writer); - } - - /** - * Constructor - * - * @param comm_parameters - * @param writer - * @param da - */ - public AscensiaContourUSB(String comm_parameters, OutputWriter writer, DataAccessPlugInBase da) - { - super(comm_parameters, writer, da); - } - - // ************************************************ - // *** Meter Identification Methods *** - // ************************************************ - - /** - * getName - Get Name of meter. - * - * @return name of meter - */ - public String getName() - { - return "ContourUSB"; - } - - /** - * getIconName - Get Icon of meter - * - * @return icon name - */ - public String getIconName() - { - return "ascensia_contour.png"; - } - - /** - * getDeviceId - Get Device Id, within MgrCompany class - * Should be implemented by device class. - * - * @return id of device within company - */ - public int getDeviceId() - { - return MeterDevicesIds.METER_ASCENSIA_CONTOUR; - } - - /** - * getInstructions - get instructions for device - * - * @return instructions for reading data - */ - public String getInstructions() - { - return "INSTRUCTIONS_ASCENSIA_CONTOUR"; - } - - /** - * getComment - Get Comment for device - * - * @return comment or null - */ - public String getComment() - { - return null; - } - - /** - * getImplementationStatus - Get implementation status - * - * @return implementation status as number - * @see ggc.plugin.manager.DeviceImplementationStatus - */ - public DeviceImplementationStatus getImplementationStatus() - { - return DeviceImplementationStatus.Done; - } - - /** - * Get Device ClassName - */ - public String getDeviceClassName() - { - return "ggc.meter.device.ascensia.AscensiaContour"; - } - - /** - * Maximum of records that device can store - */ - public int getMaxMemoryRecords() - { - return 480; - } - - public DeviceConnectionProtocol getConnectionProtocol() - { - return DeviceConnectionProtocol.USB_Hid; - } - - @Override - public void initializeUsbSettings() - { - //this.supported_devices = new Hashtable<String, String>(); - //this.supported_devices.put("1A79:6002", "1A79:6002"); - } - -} Modified: trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaMeter.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaMeter.java 2015-08-02 20:34:22 UTC (rev 1359) +++ trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaMeter.java 2015-09-23 19:14:54 UTC (rev 1360) @@ -8,16 +8,12 @@ import org.apache.commons.logging.LogFactory; import com.atech.utils.ATDataAccessAbstract; -import com.atech.utils.data.ATechDate; import com.atech.utils.data.TimeZoneUtil; -import ggc.core.data.defs.GlucoseUnitType; -import ggc.meter.data.MeterValuesEntry; import ggc.meter.device.AbstractSerialMeter; -import ggc.meter.manager.MeterDevicesIds; +import ggc.meter.device.ascensia.impl.AscensiaDecoder; import ggc.meter.manager.company.AscensiaBayer; import ggc.meter.util.DataAccessMeter; -import ggc.plugin.device.DeviceIdentification; import ggc.plugin.device.PlugInBaseException; import ggc.plugin.manager.DeviceImplementationStatus; import ggc.plugin.manager.company.AbstractDeviceCompany; @@ -64,8 +60,6 @@ public abstract class AscensiaMeter extends AbstractSerialMeter { - // protected I18nControl i18nControlAbstract = I18nControl.getInstance(); - protected TimeZoneUtil tzu = TimeZoneUtil.getInstance(); private static Log log = LogFactory.getLog(AscensiaMeter.class); @@ -76,7 +70,9 @@ String end_strings[] = null; String text_def[] = null; boolean device_running; + private AscensiaDecoder decoder; + /** * Constructor */ @@ -84,16 +80,18 @@ { } + /** * Constructor * - * @param cmp + * @param cmp abstract device company instance */ public AscensiaMeter(AbstractDeviceCompany cmp) { super(cmp); } + /** * Constructor * @@ -105,6 +103,7 @@ this(portName, writer, DataAccessMeter.getInstance()); } + /** * Constructor * @@ -116,6 +115,8 @@ { super(comm_parameters, writer, da); + decoder = new AscensiaDecoder(writer); + // communcation settings for this meter(s) this.setCommunicationSettings(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE, SerialPort.FLOWCONTROL_NONE, SerialProtocol.SERIAL_EVENT_BREAK_INTERRUPT @@ -144,42 +145,31 @@ this.outputWriter.writeHeader(); - // this.serialPort.notifyOnOutputEmpty(true); // notify on empty for - // stopping - // this.serialPort.notifyOnBreakInterrupt(true); // notify on break - // interrupt for stopping - // setting specific for this driver this.end_strings = new String[2]; - end_strings[0] = new Character((char) 3).toString(); // ETX - End of - // Text - end_strings[1] = new Character((char) 4).toString(); // EOT - End of - // Transmission - // end_strings[2] = (new Character((char)23)).toString(); // ETB - - // End of Text + // ETX - End of Text + end_strings[0] = Character.toString((char) 3); + // EOT - End of Transmission + end_strings[1] = Character.toString((char) 4); + this.text_def = new String[3]; - this.text_def[0] = new Character((char) 2).toString(); // STX - - // Start of - // Text - this.text_def[1] = new Character((char) 3).toString(); // ETX - - // Start of - // Text - this.text_def[2] = new Character((char) 13).toString(); // EOL - - // Start of - // Text + // STX - Start of Text + this.text_def[0] = Character.toString((char) 2); + // ETX - Start of Text + this.text_def[1] = Character.toString((char) 3); + // EOL - Start of Text + this.text_def[2] = Character.toString((char) 13); } catch (Exception ex) { log.error("Exception on create:" + ex, ex); - // System.out.println("AscensiaMeter -> Exception on create: " + - // ex); - // ex.printStackTrace(); } } + // ************************************************ // *** Device Implemented methods *** // ************************************************ @@ -222,14 +212,15 @@ } + private void sendToProcess(String text) { boolean stx = false; - int stx_idx = 0; + int stx_idx; boolean etx = false; - int etx_idx = 0; + int etx_idx; boolean eol = false; - int eol_idx = 0; + int eol_idx; // System.out.println("Send: " + text); @@ -325,6 +316,7 @@ } + private boolean isDeviceStopped(String vals) { if (!this.device_running) @@ -348,6 +340,7 @@ } + /** * Set Device Stopped */ @@ -357,6 +350,7 @@ this.outputWriter.endOutput(); } + /** * We don't use serial event for reading data, because process takes too long, we use serial event just * to determine if device is stopped (interrupted) @@ -400,13 +394,14 @@ } } + protected void processData(String input) { input = ATDataAccessAbstract.replaceExpression(input, "||", "|_|"); if (input.contains("|^^^Glucose|")) { - readData(input); + decoder.decodeResultNonUsbMeters(input); } else if (input.contains("|Bayer")) { @@ -414,6 +409,7 @@ } } + protected void readDeviceIdAndSettings(String input) { input = input.substring(input.indexOf("Bayer")); @@ -435,77 +431,16 @@ // System.out.println("Device:\n" + devId + "\nDate: " + date); // System.out.println("Data (" + strtok.countTokens() + "): " + input); - readDeviceId(devId); + decoder.decodeHeaderDeviceIdentification(devId); + + // readDeviceId(devId); readDateInformation(date); this.outputWriter.writeDeviceIdentification(); } - protected void readDeviceId(String input) - { - DeviceIdentification di = this.outputWriter.getDeviceIdentification(); - - // System.out.println("readDeviceId: " + input); - StringTokenizer strtok = new StringTokenizer(input, "^"); - - String inf = ""; - - String id = strtok.nextToken(); - String versions = strtok.nextToken(); - String serial = strtok.nextToken(); - - inf += i18nControlAbstract.getMessage("PRODUCT_CODE") + ": "; - - String tmp; - - if (id.equals("Bayer6115") || id.equals("Bayer6116")) - { - // inf += "BREEZE Meter Family ("; - tmp = "Breeze Family ("; - } - else if (id.equals("Bayer7150")) - { - tmp = "CONTOUR Meter Family ("; - } - else if (id.equals("Bayer3950")) - { - tmp = "DEX Meter Family ("; - } - else if (id.equals("Bayer3883")) - { - tmp = "ELITE XL Meter Family ("; - } - else - { - tmp = "Unknown Meter Family ("; - } - - tmp += id; - tmp += ")"; - - di.device_identified = tmp; - - inf += tmp; - inf += "\n"; - - StringTokenizer strtok2 = new StringTokenizer(versions, "\\"); - - di.device_software_version = strtok2.nextToken(); - di.device_hardware_version = strtok2.nextToken(); - di.device_serial_number = serial; - - inf += i18nControlAbstract.getMessage("SOFTWARE_VERSION") + ": " + di.device_software_version; - inf += i18nControlAbstract.getMessage("\nEEPROM_VERSION") + ": " + di.device_hardware_version; - - inf += i18nControlAbstract.getMessage("\nSERIAL_NUMBER") + ": " + serial; - - // this.m_info = inf; - System.out.println("Info: " + inf); - - } - protected void readDateInformation(String dt) { @@ -530,95 +465,7 @@ } - boolean header_set = false; - protected void readData(String input) - { - try - { - - StringTokenizer strtok = new StringTokenizer(input, "|"); - - boolean found = false; - - // we search for entry containing Glucose... (in case that data was - // not - // received entirely) - while (!found && strtok.hasMoreElements()) - { - String s = strtok.nextToken(); - if (s.equals("^^^Glucose")) - { - found = true; - } - } - - if (!found) - return; - - // System.out.println(input); - - MeterValuesEntry mve = new MeterValuesEntry(); - - String val = strtok.nextToken(); - - // System.out.println("val:" + val); - - // mve.setBgValue(val); // bg_value - String unit = strtok.nextToken(); // unit mmol/L^x, mg/dL^x - - mve.addParameter("REF_RANGES", strtok.nextToken()); // Reference - // ranges (Dex - // Only) - mve.addParameter("RES_ABNORMAL_FLAGS", strtok.nextToken()); // Result - // abnormal - // flags - // (7) - mve.addParameter("USER_MARKS", strtok.nextToken()); // User Marks - // (8) - mve.addParameter("RES_STATUS_MARKER", strtok.nextToken()); // Result - // status - // marker - strtok.nextToken(); // N/A - strtok.nextToken(); // OperatorId (N/A) - - String time = strtok.nextToken(); // datetime - - mve.setDateTimeObject(tzu.getCorrectedDateTime(new ATechDate(Long.parseLong(time)))); - - if (unit.startsWith("mg/dL")) - { - mve.setBgValue(val, GlucoseUnitType.mg_dL); - // this.m_output.writeBGData(atd, bg_value, OutputUtil.BG_MGDL); - // dv.setBG(DailyValuesRow.BG_MGDL, value); - } - else - { - mve.setBgValue(getCorrectDecimal(val), GlucoseUnitType.mmol_L); - // this.m_output.writeBGData(atd, bg_value, OutputUtil.BG_MMOL); - // dv.setBG(DailyValuesRow.BG_MMOLL, value); - } - - this.outputWriter.writeData(mve); - - } - catch (Exception ex) - { - System.out.println("Exception: " + ex); - System.out.println("Entry: " + input); - ex.printStackTrace(); - } - - // this.data.add(dv); - - } - - protected String getCorrectDecimal(String input) - { - float f = Float.parseFloat(input); - return DataAccessPlugInBase.Decimal1Format.format(f).replace(',', '.'); - } - // ************************************************ // *** Test *** // ************************************************ @@ -631,6 +478,7 @@ { } + /** * This is method for reading partitial data from device. All reading from actual device should be done from * here. Reading can be done directly here, or event can be used to read data. @@ -640,6 +488,7 @@ { } + /** * This is method for reading configuration * @@ -650,6 +499,7 @@ { } + /** * This is for reading device information. This should be used only if normal dump doesn't retrieve this * information (most dumps do). @@ -660,27 +510,10 @@ { } - /** - * getCompanyId - Get Company Id - * - * @return id of company - */ - public int getCompanyId() - { - return MeterDevicesIds.COMPANY_ASCENSIA; - } - - /** - * getImplementationStatus - Get implementation status - * - * @return implementation status as number - * @see ggc.plugin.manager.DeviceImplementationStatus - */ public DeviceImplementationStatus getImplementationStatus() { return DeviceImplementationStatus.Done; } - } Deleted: trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaMeterUsb.java =================================================================== --- trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaMeterUsb.java 2015-08-02 20:34:22 UTC (rev 1359) +++ trunk/ggc-meter/src/ggc/meter/device/ascensia/AscensiaMeterUsb.java 2015-09-23 19:14:54 UTC (rev 1360) @@ -1,781 +0,0 @@ -package ggc.meter.device.ascensia; - -import java.util.Calendar; -import java.util.GregorianCalendar; -import java.util.StringTokenizer; - -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; - -import com.atech.utils.ATDataAccessAbstract; -import com.atech.utils.data.ATechDate; -import com.atech.utils.data.TimeZoneUtil; - -import ggc.core.data.defs.GlucoseUnitType; -import ggc.meter.data.MeterValuesEntry; -import ggc.meter.device.AbstractUsbMeter; -import ggc.meter.manager.MeterDevicesIds; -import ggc.meter.manager.company.AscensiaBayer; -import ggc.meter.util.DataAccessMeter; -import ggc.plugin.device.DeviceIdentification; -import ggc.plugin.device.PlugInBaseException; -import ggc.plugin.manager.company.AbstractDeviceCompany; -import ggc.plugin.output.AbstractOutputWriter; -import ggc.plugin.output.OutputWriter; -import ggc.plugin.util.DataAccessPlugInBase; -import gnu.io.SerialPortEvent; - -/** - * This class can be used as example on how to implement USB meter driver - * - * @author Andy - * - */ - -/** - * Application: GGC - GNU Gluco Control - * Plug-in: Meter Tool (support for Meter devices) - * - * See AUTHORS for copyright information. - * - * This program is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation; either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program; if not, write to the Free Software Foundation, Inc., 59 Temple - * Place, Suite 330, Boston, MA 02111-1307 USA - * - * Filename: AscensiaMeterUsb - * Description: Base Implementation for all Ascensia/Bayer meter devices - * - * Author: Andy {an...@at...} - */ - -public abstract class AscensiaMeterUsb extends AbstractUsbMeter -{ - - // protected I18nControl i18nControlAbstract = I18nControl.getInstance(); - - protected TimeZoneUtil tzu = TimeZoneUtil.getInstance(); - private static Log log = LogFactory.getLog(AscensiaMeterUsb.class); - - boolean multiline = false; - String multiline_body; - - // String end_string; - String end_strings[] = null; - String text_def[] = null; - boolean device_running; - - /** - * Constructor - */ - public AscensiaMeterUsb() - { - } - - /** - * Constructor - * - * @param cmp - */ - public AscensiaMeterUsb(AbstractDeviceCompany cmp) - { - super(cmp); - } - - /** - * Constructor - * - * @param portName - * @param writer - */ - public AscensiaMeterUsb(String portName, OutputWriter writer) - { - this(portName, writer, DataAccessMeter.getInstance()); - } - - /** - * Constructor - * - * @param comm_parameters - * @param writer - * @param da - */ - public AscensiaMeterUsb(String comm_parameters, OutputWriter writer, DataAccessPlugInBase da) - { - super(comm_parameters, writer, da); - - // communcation settings for this meter(s) - /* - * this.setCommunicationSettings( - * 9600, - * SerialPort.DATABITS_8, - * SerialPort.STOPBITS_1, - * SerialPort.PARITY_NONE, - * SerialPort.FLOWCONTROL_NONE, - * SerialProtocol.SERIAL_EVENT_BREAK_INTERRUPT|SerialProtocol. - * SERIAL_EVENT_OUTPUT_EMPTY); - */ - // output writer, this is how data is returned (for testing new devices, - // we can use Consol - this.outputWriter = writer; - this.outputWriter.getOutputUtil().setMaxMemoryRecords(this.getMaxMemoryRecords()); - - // set meter type (this will be deprecated in future, but it's needed - // for now - this.setMeterType("Ascensia/Bayer", this.getName()); - - // set device company (needed for now, will also be deprecated) - this.setDeviceCompany(new AscensiaBayer()); - - // settting serial port in com library - try - { - // this.setSerialPort(comm_parameters); - - initializeUsbSettings(); - - if (!this.open()) - // this.m_status = 1; - return; - - this.outputWriter.writeHeader(); - - // this.serialPort.notifyOnOutputEmpty(true); // notify on empty for - // stopping - // this.serialPort.notifyOnBreakInterrupt(true); // notify on break - // interrupt for stopping - - // setting specific for this driver - this.end_strings = new String[2]; - end_strings[0] = new Character((char) 3).toString(); // ETX - End of - // Text - end_strings[1] = new Character((char) 4).toString(); // EOT - End of - // Transmission - // end_strings[2] = (new Character((char)23)).toString(); // ETB - - // End of Text - - this.text_def = new String[3]; - this.text_def[0] = new Character((char) 2).toString(); // STX - - // Start of - // Text - this.text_def[1] = new Character((char) 3).toString(); // ETX - - // Start of - // Text - this.text_def[2] = new Character((char) 13).toString(); // EOL - - // Start of - // Text - - } - catch (Exception ex) - { - log.error("Exception on create:" + ex, ex); - // System.out.println("AscensiaMeter -> Exception on create: " + - // ex); - // ex.printStackTrace(); - } - - } - - - public abstract void initializeUsbSettings(); - - // ************************************************ - // *** Device Implemented methods *** - // ************************************************ - - /** - * readDeviceDataFull - This is method for reading data from device. All reading from actual device should - * be done from here. Reading can be done directly here, or event can be used to read data. Usage of events - * is discouraged because reading takes 3-4x more time. - */ - public void readDeviceDataFull() throws PlugInBaseException - { - - try - { - byte buffer[] = new byte[65]; - - byte buffer_out[] = new byte[40]; - - int status; - - // foo.SetVendorID((short)0x1a79); - // foo.SetProductID((short)0x6002); - // foo.GetHIDHandle(); - - /* - * if (!foo.isOpened()) - * { - * System.out.println("Didn't open."); - * } - * System.out.println("Input: " + foo.GetInputReportLength() + - * " output: " + - * foo.GetOutputReportLength() + " feature: " + - * foo.GetFeatureReportLength()); - */ - -// this.device_running = true; -// System.out.println("USB Reading --- Begin"); -// this.setUsbDebugLevel(4); -// -// this.claimInterface(0); -// // this.setRequiredEndpoint(0x81, 0x01); -// this.setRequiredEndpoint(0x81, 0x01); -// // this.setRequiredEndpoint(0x01, 0x81); - - // this.claimInterface(1); - // this.setRequiredEndpoint(0x82, 0x02); - - buffer[0] = 0; - buffer[1] = 0; - buffer[2] = 0; - buffer[3] = 1; - buffer[4] = 4; - -// status = this.write(buffer); // foo.Write(buffer, 65); -// System.out.println("Status:" + status); - - while (true) - { -// this.waitTime(500); -// status = this.read(buffer_out); -// System.out.println("Status:" + status); - for (int i = 0; i < 64; i++) - { - System.out.print("." + buffer[i]); - ... [truncated message content] |
From: <and...@us...> - 2015-10-24 14:02:56
|
Revision: 1383 http://sourceforge.net/p/ggc/code/1383 Author: andyrozman Date: 2015-10-24 14:02:54 +0000 (Sat, 24 Oct 2015) Log Message: ----------- - updated versions Modified Paths: -------------- trunk/ggc-nutri/docs/Changelog trunk/ggc-nutri/src/ggc/nutri/defs/NutriPluginDefinition.java trunk/ggc-plugin_base/docs/Changelog trunk/ggc-plugin_base/src/ggc/plugin/util/DataAccessPlugInBase.java trunk/ggc-pump/docs/Changelog trunk/ggc-pump/src/ggc/pump/defs/PumpPluginDefinition.java Modified: trunk/ggc-nutri/docs/Changelog =================================================================== --- trunk/ggc-nutri/docs/Changelog 2015-10-24 14:02:12 UTC (rev 1382) +++ trunk/ggc-nutri/docs/Changelog 2015-10-24 14:02:54 UTC (rev 1383) @@ -6,7 +6,7 @@ -------------------------------------------------------------------------------------------------- -1.3.8 [24.10.2015] +1.4.0 [24.10.2015] * refactoring changing Log to Logger instance * refactoring use of BG converter * refactoring whole plugin to use DevicePluginDefintionAbstract Modified: trunk/ggc-nutri/src/ggc/nutri/defs/NutriPluginDefinition.java =================================================================== --- trunk/ggc-nutri/src/ggc/nutri/defs/NutriPluginDefinition.java 2015-10-24 14:02:12 UTC (rev 1382) +++ trunk/ggc-nutri/src/ggc/nutri/defs/NutriPluginDefinition.java 2015-10-24 14:02:54 UTC (rev 1383) @@ -19,7 +19,7 @@ public class NutriPluginDefinition extends DevicePluginDefinitionAbstract { - String PLUGIN_VERSION = "1.3.6"; + String PLUGIN_VERSION = "1.4.0"; String PLUGIN_NAME = "GGC Nutrition Plugin"; Modified: trunk/ggc-plugin_base/docs/Changelog =================================================================== --- trunk/ggc-plugin_base/docs/Changelog 2015-10-24 14:02:12 UTC (rev 1382) +++ trunk/ggc-plugin_base/docs/Changelog 2015-10-24 14:02:54 UTC (rev 1383) @@ -2,7 +2,7 @@ Changes file for GGC Plug-In Base ================================== -1.0.3 [24.10.2015] +1.1.0 [24.10.2015] - refactoring changing Log to Logger instance - refactoring use of BG converter - configuration changes (ConfigPanel) @@ -11,8 +11,6 @@ - AccuChek moving pump to Device V2 - added File handling to V2 instances (with AccuChek) - - 1.0.2 [8.10.2015] * implemented DiscoveryAgents functionality for configuration of different devices (agents for Serial, BluetoothSerial, Usb Hid, MassStorage) Modified: trunk/ggc-plugin_base/src/ggc/plugin/util/DataAccessPlugInBase.java =================================================================== --- trunk/ggc-plugin_base/src/ggc/plugin/util/DataAccessPlugInBase.java 2015-10-24 14:02:12 UTC (rev 1382) +++ trunk/ggc-plugin_base/src/ggc/plugin/util/DataAccessPlugInBase.java 2015-10-24 14:02:54 UTC (rev 1383) @@ -86,7 +86,7 @@ /** * Plugin Version */ - public String plugin_version = "1.0.1"; + public String plugin_version = "1.1.0"; /** * Decimal format: 0 decimal places Modified: trunk/ggc-pump/docs/Changelog =================================================================== --- trunk/ggc-pump/docs/Changelog 2015-10-24 14:02:12 UTC (rev 1382) +++ trunk/ggc-pump/docs/Changelog 2015-10-24 14:02:54 UTC (rev 1383) @@ -2,14 +2,8 @@ Changes file for GGC Pump Tool ============================== -1.6.2 [22.10.2015] [Andy] +1.7.1 [24.10.2015] [Andy] * implemented all devices as DeviceV2 (created bridges for V1 to V2) - * added PumpPluginDefinition for plugin defintions - * added PumpReportDefinition for better management of reports - * migrating from Log to SLF4j Logger - * PumpBasalType TBR Profile deprecated - * refactoring BG conversion - * Reports changes: PumpAdditionalDataHandler * ATechDateType getDateTimeFormat() refactoring * AChanges for device V2: AccuChekPumpHandler, AccuChekPumpReader, DanaPumpHandler, updated PumpDefinitions * Pump Profile adding with type Profile, ProfileSelector. We now get an error when adding Profile in case that profiles are not defined. We need additional change here, but at least we don;t get nullPointer exception. @@ -19,6 +13,15 @@ * manager all devices removed from V1 context +1.7.0 [19.10.2015] [Andy] + * added PumpPluginDefinition for plugin defintions and refactoring of DataAccessPump + * added PumpReportDefinition for better management of reports + * migrating from Log to SLF4j Logger + * PumpBasalType TBR Profile deprecated + * refactoring BG conversion + * Reports changes: PumpAdditionalDataHandler + + 1.6.1 [10.10.2015] * refactoring because of DataAccess and ConfigurationManagerWrapper changes * added Minimed Devices to PumpDefinition Modified: trunk/ggc-pump/src/ggc/pump/defs/PumpPluginDefinition.java =================================================================== --- trunk/ggc-pump/src/ggc/pump/defs/PumpPluginDefinition.java 2015-10-24 14:02:12 UTC (rev 1382) +++ trunk/ggc-pump/src/ggc/pump/defs/PumpPluginDefinition.java 2015-10-24 14:02:54 UTC (rev 1383) @@ -33,7 +33,7 @@ private static final Logger LOG = LoggerFactory.getLogger(PumpPluginDefinition.class); - String PLUGIN_VERSION = "1.6.0"; + String PLUGIN_VERSION = "1.7.1"; String PLUGIN_NAME = "GGC Pump Plugin"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <and...@us...> - 2016-06-28 21:15:10
|
Revision: 1408 http://sourceforge.net/p/ggc/code/1408 Author: andyrozman Date: 2016-06-28 21:15:07 +0000 (Tue, 28 Jun 2016) Log Message: ----------- - GGC Update - updated for 0.7.0 - master pom with versions updated Modified Paths: -------------- trunk/ggc-desktop/data/update/GGC_Update.properties trunk/ggc-desktop/doc/TO-DO.txt trunk/ggc-desktop/pom.xml trunk/ggc-master-pom/pom.xml Modified: trunk/ggc-desktop/data/update/GGC_Update.properties =================================================================== --- trunk/ggc-desktop/data/update/GGC_Update.properties 2016-06-28 21:02:40 UTC (rev 1407) +++ trunk/ggc-desktop/data/update/GGC_Update.properties 2016-06-28 21:15:07 UTC (rev 1408) @@ -11,8 +11,9 @@ PRODUCT_ID=ggc ROOT=.. -VERSION_NAME=0.6.1 -VERSION_NUMERIC=14 +VERSION_NAME=0.7 +VERSION_NUMERIC=15 + VERSION_DESCRIPTION=Core 0.6.0, Desktop 0.6.0, Meter Tool 2.2.0, Pump Tool 1.5.0, CGMS Tool 1.3.5 @@ -65,7 +66,7 @@ # # Components # -LAST_COMPONENT=30 +LAST_COMPONENT=31 # @@ -83,18 +84,18 @@ # CHANGE COMPONENT_1_GROUP=1 COMPONENT_1_NAME=GGC Desktop App -COMPONENT_1_VERSION=0.6.1 -COMPONENT_1_VERSION_NUM=14 +COMPONENT_1_VERSION=0.7.0 +COMPONENT_1_VERSION_NUM=15 COMPONENT_1_ROOT_DIR=/lib/ggc -COMPONENT_1_FILES=%ROOT%/ggc-desktop-0.6.1.jar +COMPONENT_1_FILES=%ROOT%/ggc-desktop-0.7.0.jar # CHANGE COMPONENT_2_GROUP=1 COMPONENT_2_NAME=GGC Core -COMPONENT_2_VERSION=0.6.1 -COMPONENT_2_VERSION_NUM=14 +COMPONENT_2_VERSION=0.7.0 +COMPONENT_2_VERSION_NUM=15 COMPONENT_2_ROOT_DIR=/lib/ggc -COMPONENT_2_FILES=%ROOT%/ggc-core-0.6.1.jar +COMPONENT_2_FILES=%ROOT%/ggc-core-0.7.0.jar COMPONENT_2_HAS_DB_FILES=true COMPONENT_3_GROUP=1 @@ -110,48 +111,47 @@ COMPONENT_27_GROUP=1 COMPONENT_27_NAME=GGC Help -COMPONENT_27_VERSION=0.2 -COMPONENT_27_VERSION_NUM=1 +COMPONENT_27_VERSION=0.2.2 +COMPONENT_27_VERSION_NUM=2 COMPONENT_27_ROOT_DIR=/lib/ggc -COMPONENT_27_FILES=%ROOT%/ggc-help-0.2.jar +COMPONENT_27_FILES=%ROOT%/ggc-help-0.2.2.jar COMPONENT_5_GROUP=2 COMPONENT_5_NAME=GGC Plugin Base -COMPONENT_5_VERSION=1.0.1 -COMPONENT_5_VERSION_NUM=11 +COMPONENT_5_VERSION=1.2.2 +COMPONENT_5_VERSION_NUM=12 COMPONENT_5_ROOT_DIR=/lib/ggc -COMPONENT_5_FILES=%ROOT%/ggc-plugin-base-1.0.1.jar +COMPONENT_5_FILES=%ROOT%/ggc-plugin-base-1.2.2.jar COMPONENT_20_GROUP=2 COMPONENT_20_NAME=Nutrition Tool -COMPONENT_20_VERSION=1.3.6 -COMPONENT_20_VERSION_NUM=7 +COMPONENT_20_VERSION=1.4.1 +COMPONENT_20_VERSION_NUM=8 COMPONENT_20_ROOT_DIR=/lib/ggc -COMPONENT_20_FILES=%ROOT%/ggc-nutri-tool-1.3.6.jar +COMPONENT_20_FILES=%ROOT%/ggc-nutri-tool-1.4.1.jar -# CHANGE COMPONENT_6_GROUP=2 COMPONENT_6_NAME=Meter Tool -COMPONENT_6_VERSION=2.3.0 -COMPONENT_6_VERSION_NUM=10 +COMPONENT_6_VERSION=2.4.1 +COMPONENT_6_VERSION_NUM=11 COMPONENT_6_ROOT_DIR=/lib/ggc -COMPONENT_6_FILES=%ROOT%/ggc-meter-tool-2.3.0.jar +COMPONENT_6_FILES=%ROOT%/ggc-meter-tool-2.4.1.jar COMPONENT_7_GROUP=2 COMPONENT_7_NAME=Pump Tool -COMPONENT_7_VERSION=1.6.0 -COMPONENT_7_VERSION_NUM=10 +COMPONENT_7_VERSION=2.0.1 +COMPONENT_7_VERSION_NUM=11 COMPONENT_7_ROOT_DIR=/lib/ggc -COMPONENT_7_FILES=%ROOT%/ggc-pump-tool-1.6.0.jar +COMPONENT_7_FILES=%ROOT%/ggc-pump-tool-2.0.1.jar COMPONENT_8_GROUP=2 COMPONENT_8_NAME=CGMS Tool -COMPONENT_8_VERSION=1.3.3 -COMPONENT_8_VERSION_NUM=3 +COMPONENT_8_VERSION=1.5.1 +COMPONENT_8_VERSION_NUM=4 COMPONENT_8_ROOT_DIR=/lib/ggc -COMPONENT_8_FILES=%ROOT%/ggc-cgms-tool-1.3.3.jar +COMPONENT_8_FILES=%ROOT%/ggc-cgms-tool-1.5.1.jar COMPONENT_9_GROUP=3 @@ -173,10 +173,10 @@ COMPONENT_11_GROUP=3 COMPONENT_11_NAME=Atech Tools -COMPONENT_11_VERSION=0.7.13 -COMPONENT_11_VERSION_NUM=12 +COMPONENT_11_VERSION=0.8.2 +COMPONENT_11_VERSION_NUM=13 COMPONENT_11_ROOT_DIR=/lib/utils -COMPONENT_11_FILES=%ROOT%/atech-tools-0.7.13.jar;%ROOT%/joda-time-2.8.2.jar +COMPONENT_11_FILES=%ROOT%/atech-tools-0.8.2.jar;%ROOT%/joda-time-2.8.2.jar COMPONENT_12_GROUP=3 COMPONENT_12_NAME=iText Pdf Library @@ -269,10 +269,10 @@ # CHANGE COMPONENT_25_GROUP=3 COMPONENT_25_NAME=NeuronRobotics Java Serial API (Java 1.5) -COMPONENT_25_VERSION=3.9.3.1 -COMPONENT_25_VERSION_NUM=2 +COMPONENT_25_VERSION=3.13.0-DEV +COMPONENT_25_VERSION_NUM=3 COMPONENT_25_ROOT_DIR=/lib/utils -COMPONENT_25_FILES=%ROOT%/nrjavaserial-j15-3.9.3.1.jar +COMPONENT_25_FILES=%ROOT%/nrjavaserial-j15-3.13.0-DEV.jar COMPONENT_26_GROUP=3 COMPONENT_26_NAME=Commons Lang @@ -286,11 +286,11 @@ COMPONENT_28_GROUP=3 -COMPONENT_28_NAME=HID4Java (Java 1.5) -COMPONENT_28_VERSION=0.3.1 -COMPONENT_28_VERSION_NUM=1 +COMPONENT_28_NAME=Hid4Java (Java 1.5) +COMPONENT_28_VERSION=0.4.1-DEV +COMPONENT_28_VERSION_NUM=2 COMPONENT_28_ROOT_DIR=/lib/utils -COMPONENT_28_FILES=%ROOT%/hid4java-j15-0.3.1.jar +COMPONENT_28_FILES=%ROOT%/hid4java-j15-0.4.1-DEV.jar COMPONENT_29_GROUP=3 @@ -310,6 +310,13 @@ COMPONENT_30_FILES=%ROOT%/slf4j-api-1.7.12.jar;%ROOT%/slf4j-log4j12-1.7.12.jar;%ROOT%/jcl-over-slf4j-1.7.12.jar; +COMPONENT_31_GROUP=3 +COMPONENT_31_NAME=Table Layout +COMPONENT_31_VERSION=4.3.0 +COMPONENT_31_VERSION_NUM=1 +COMPONENT_31_ROOT_DIR=/lib/utils +COMPONENT_31_FILES=%ROOT%/table-layout-4.3.0.jar; + # REMOVED COMPONENTS COMPONENT_4_GROUP=1 Modified: trunk/ggc-desktop/doc/TO-DO.txt =================================================================== --- trunk/ggc-desktop/doc/TO-DO.txt 2016-06-28 21:02:40 UTC (rev 1407) +++ trunk/ggc-desktop/doc/TO-DO.txt 2016-06-28 21:15:07 UTC (rev 1408) @@ -85,6 +85,11 @@ - data retrival: - gluco values - menus + + +Graph: - Configuration CGMS for Graph (Low, High Value) + + (4) Release 0.7: - prepare release - release Modified: trunk/ggc-desktop/pom.xml =================================================================== --- trunk/ggc-desktop/pom.xml 2016-06-28 21:02:40 UTC (rev 1407) +++ trunk/ggc-desktop/pom.xml 2016-06-28 21:15:07 UTC (rev 1408) @@ -80,12 +80,13 @@ <artifactId>ggc-nutri-tool</artifactId> </dependency> + <!-- <dependency> <groupId>net.sf.ggc</groupId> <artifactId>ggc-connect-tool</artifactId> </dependency> +--> - <dependency> <groupId>javax.help</groupId> <artifactId>javahelp</artifactId> Modified: trunk/ggc-master-pom/pom.xml =================================================================== --- trunk/ggc-master-pom/pom.xml 2016-06-28 21:02:40 UTC (rev 1407) +++ trunk/ggc-master-pom/pom.xml 2016-06-28 21:15:07 UTC (rev 1408) @@ -15,34 +15,60 @@ <id>atechrepositorypublic</id> <name>Atech Software Public Repository</name> <!-- <url>http://www.atech-software.com:8081/repository/public/</url> --> - <url>http://www.atech-software.com:8081/nexus/content/groups/public/</url> + <url>http://www.atech-software.com/nexus/content/groups/public/</url> </repository> - <!-- <repository> <id>mvnrepository</id> <name>Mvn Central Repository</name> - <url>http://www.mvnrepository.com</url> </repository> <repository> <id>jbossrepository</id> - <name>jbossrepository</name> <url>https://repository.jboss.org/nexus/</url> - </repository> <repository> <id>sonatype</id> <name>Sonatype OSS Snapshots - Repository</name> <url>http://oss.sonatype.org/content/groups/public</url> - </repository> <repository> <id>javanet</id> <name>Download Java Net Repository</name> - <url>http://download.java.net/maven/2/</url> </repository> <repository> <id>mavenrepository</id> - <name>Maven Repository Repository</name> <layout>legacy</layout> <url>http://maven-repository.com/artifacts/</url> - </repository> --> + <repository> + <id>mvnrepository</id> + <name>Mvn Central Repository</name> + <url>http://www.mvnrepository.com</url> + </repository> + <repository> + <id>jbossrepository</id> + <name>jbossrepository</name> + <url>https://repository.jboss.org/nexus/</url> + </repository> + + <repository> + <id>javanet</id> + <name>Download Java Net Repository</name> + <url>http://download.java.net/maven/2/</url> + </repository> + <repository> + <id>mavenrepository</id> + <name>Maven Repository Repository</name> + <layout>legacy</layout> + <url>http://maven-repository.com/artifacts/</url> + </repository> + + + <!-- SONAType Maven Central - DO NOT USE --> + <repository> + <id>sonatype</id> + <name>Sonatype OSS Snapshots + Repository + </name> + <url>http://oss.sonatype.org/content/groups/public</url> + </repository> + </repositories> + <!-- <distributionManagement> <repository> <id>releases</id> <name>Internal Releases</name> - <!-- <url>http://www.atech-software.com:8090/repository/internal/</url> --> + <! -X- <url>http://www.atech-software.com:8090/repository/internal/</url> -X- > <url>http://www.atech-software.com:8081/nexus/content/repositories/releases/</url> </repository> <snapshotRepository> <id>snapshots</id> - <name>Internal Snapshots</name> - <!-- <url>http://www.atech-software.com:8090/repository/snapshots/</url> --> - <url>http://www.atech-software.com:8081/nexus/content/repositories/snapshots/</url> - </snapshotRepository> - </distributionManagement> + <name>Internal Snapshots</name> + <! -X- <url>http://www.atech-software.com:8090/repository/snapshots/</url> -X- > + <url>http://www.atech-software.com:8081/nexus/content/repositories/snapshots/</url> + </snapshotRepository> + </distributionManagement> + --> <build> <defaultGoal>compile</defaultGoal> @@ -69,30 +95,93 @@ </testResources> <pluginManagement> <plugins> + <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> - <version>2.1</version> + <version>${maven-compiler-plugin.version}</version> <configuration> - <source>1.5</source> - <target>1.5</target> + <source>${maven.compiler.source}</source> + <target>${maven.compiler.target}</target> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <version>${maven-surefire-plugin.version}</version> + </plugin> - </configuration> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <version>${maven-jar-plugin.version}</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-clean-plugin</artifactId> + <version>${maven-clean-plugin.version}</version> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-install-plugin</artifactId> + <version>${maven-install-plugin.version}</version> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-resources-plugin</artifactId> + <version>${maven-resources-plugin.version}</version> + </plugin> + + <plugin> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-compiler-api</artifactId> + <version>${plexus.version}</version> + </plugin> + + <plugin> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-compiler</artifactId> + <version>${plexus.version}</version> + </plugin> + + + <plugin> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-compiler-manager</artifactId> + <version>${plexus.version}</version> + </plugin> + + <plugin> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-compiler-javac</artifactId> + <version>${plexus.version}</version> + </plugin> + + + <plugin> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-compilers</artifactId> + <version>${plexus.version}</version> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-eclipse-plugin</artifactId> - <version>2.9</version> + <version>${maven-eclipse-plugin.version}</version> <configuration> <useProjectReferences>false</useProjectReferences> </configuration> </plugin> + <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> + <version>${maven-dependency-plugin.version}</version> <executions> <execution> <id>copy-dependencies</id> @@ -119,12 +208,11 @@ <outputDirectory>target/site</outputDirectory> </reporting> - <!-- <modules> <module>ggc-core</module> <module>ggc-plugin-base</module> - </modules> --> <dependencyManagement> <dependencies> + <!-- GGC Artifacts --> <dependency> <groupId>net.sf.ggc</groupId> <artifactId>ggc-help</artifactId> @@ -137,7 +225,6 @@ <version>${ggc-core.version}</version> </dependency> - <dependency> <groupId>net.sf.ggc</groupId> <artifactId>ggc-plugin-base</artifactId> @@ -170,11 +257,41 @@ <dependency> <groupId>net.sf.ggc</groupId> + <artifactId>ggc-connect-tool</artifactId> + <version>${ggc-connect-tool.version}</version> + </dependency> + + <dependency> + <groupId>net.sf.ggc</groupId> <artifactId>ggc-desktop</artifactId> <version>${ggc-desktop.version}</version> </dependency> + + <!-- Atech Tools - Main Helper Library --> <dependency> + <groupId>com.atech-software</groupId> + <artifactId>atech-tools</artifactId> + <version>${atech-tools.version}</version> + <exclusions> + <exclusion> + <groupId>javax.servlet</groupId> + <artifactId>servlet-api</artifactId> + </exclusion> + <exclusion> + <groupId>net.sf.jasperreports</groupId> + <artifactId>jasperreports</artifactId> + </exclusion> + <!-- <exclusion> + <groupId>org.simpleframework</groupId> + <artifactId>simple-xml</artifactId> + </exclusion> --> + </exclusions> + </dependency> + + + <!-- Hibernate API --> + <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate</artifactId> <version>${hibernate.version}</version> @@ -191,6 +308,8 @@ </exclusions> </dependency> + + <!-- Internal Web Service --> <dependency> <groupId>net.sf.ggc.pygmy-httpd</groupId> <artifactId>pygmy-core</artifactId> @@ -203,88 +322,71 @@ <version>${pygmy-handlers.version}</version> </dependency> + + <!-- Java Help --> <dependency> + <groupId>javax.help</groupId> + <artifactId>javahelp</artifactId> + <version>${javahelp.version}</version> + </dependency> + + + <!-- Skin Look & Feel --> + <dependency> + <groupId>net.sf.squirrel-sql.thirdparty-non-maven</groupId> + <artifactId>skinlf</artifactId> + <version>${skinlf.version}</version> + </dependency> + + + <!-- JUnit for testing --> + <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>${junit.version}</version> - <scope>test</scope> + <!-- <scope>test</scope> --> </dependency> - <dependency> - <groupId>javax.servlet</groupId> - <artifactId>servlet-api</artifactId> - <version>${servlet-api.version}</version> - <scope>provided</scope> - </dependency> + <!-- Reporting --> <dependency> <groupId>com.itextpdf</groupId> <artifactId>itextpdf</artifactId> <version>${itextpdf.version}</version> </dependency> + <!-- Not required for now - may be used later for reporting <dependency> - <groupId>commons-lang</groupId> - <artifactId>commons-lang</artifactId> - <version>${commons-lang.version}</version> + <groupId>net.sf.jasperreports</groupId> + <artifactId>jasperreports</artifactId> + <version>${jasperreports.version}</version> </dependency> + --> - <dependency> - <groupId>javax.help</groupId> - <artifactId>javahelp</artifactId> - <version>${javahelp.version}</version> - </dependency> + <!-- Commons --> <dependency> - <groupId>net.sf.squirrel-sql.thirdparty-non-maven</groupId> - <artifactId>skinlf</artifactId> - <version>${skinlf.version}</version> + <groupId>commons-lang</groupId> + <artifactId>commons-lang</artifactId> + <version>${commons-lang.version}</version> </dependency> <dependency> - <groupId>log4j</groupId> - <artifactId>log4j</artifactId> - <version>${log4j.version}</version> + <groupId>commons-collections</groupId> + <artifactId>commons-collections</artifactId> + <version>${commons-collections.version}</version> </dependency> - <dependency> - <groupId>net.sf.jasperreports</groupId> - <artifactId>jasperreports</artifactId> - <version>${jasperreports.version}</version> - </dependency> + <!-- Jfree - Graph Framework --> <dependency> <groupId>jfree</groupId> <artifactId>jfreechart</artifactId> <version>${jfreechart.version}</version> </dependency> - <!-- This should be replaced with nrserial, which is just extention of - rxtx that also contains binary files in jar. --> - <!-- <dependency> <groupId>org.bidib.jbidib.org.qbang.rxtx</groupId> <artifactId>rxtxcomm</artifactId> - <version>${rxtxcomm.version}</version> </dependency> --> - <dependency> - <groupId>com.atech-software</groupId> - <artifactId>atech-tools</artifactId> - <version>${atech-tools.version}</version> - <exclusions> - <exclusion> - <groupId>javax.servlet</groupId> - <artifactId>servlet-api</artifactId> - </exclusion> - <exclusion> - <groupId>net.sf.jasperreports</groupId> - <artifactId>jasperreports</artifactId> - </exclusion> - <exclusion> - <groupId>org.simpleframework</groupId> - <artifactId>simple-xml</artifactId> - </exclusion> - </exclusions> - </dependency> - - + <!-- BlueTooth Library --> <!--This is some outdated library which we use only for BlueTooth, it needs to be removed or changed, but so far it's here and it's version is fixed. This NEEDS to be removed and changed to some other library in near @@ -295,27 +397,24 @@ <version>${ibm-compapi.version}</version> </dependency> - <!-- + + <!-- Jaxen - Xml --> <dependency> - <groupId>com.neuronrobotics</groupId> - <artifactId>nrjavaserial</artifactId> - <version>${nrjavaserial.version}</version> - </dependency> ---> - <dependency> <groupId>jaxen</groupId> <artifactId>jaxen</artifactId> <version>${jaxen.version}</version> </dependency> - <!-- + + <!-- Serial API Support --> <dependency> - <groupId>net.java.dev.jna</groupId> - <artifactId>jna</artifactId> - <version>${jna.version}</version> + <groupId>com.neuronrobotics</groupId> + <artifactId>nrjavaserial-j15</artifactId> + <version>${nrjavaserial-j15.version}</version> </dependency> - --> + + <!-- USB Hid Support --> <dependency> <groupId>net.java.dev.jna</groupId> <artifactId>jna-j15</artifactId> @@ -329,63 +428,108 @@ </dependency> + <!-- Upgrade feature dependencies - WIP !!! --> <dependency> - <groupId>com.neuronrobotics</groupId> - <artifactId>nrjavaserial-j15</artifactId> - <version>${nrjavaserial-j15.version}</version> + <groupId>org.simpleframework</groupId> + <artifactId>simple-xml</artifactId> + <version>${simpleframework.version}</version> </dependency> <dependency> - <groupId>commons-collections</groupId> - <artifactId>commons-collections</artifactId> - <version>${commons-collections.version}</version> + <groupId>net.lingala.zip4j</groupId> + <artifactId>zip4j</artifactId> + <version>${zip4j.version}</version> </dependency> + <!-- WIP --> - <!-- slf4j API --> + <!-- Logging utils --> <dependency> - <groupId>org.slf4j</groupId> - <artifactId>slf4j-api</artifactId> - <version>${slf4j.version}</version> + <groupId>log4j</groupId> + <artifactId>log4j</artifactId> + <version>${log4j.version}</version> </dependency> - <!-- <dependency> <groupId>org.slf4j</groupId> - <artifactId>log4j-over-slf4j</artifactId> + <artifactId>slf4j-api</artifactId> + <!-- slf4j API --> <version>${slf4j.version}</version> </dependency> - --> - <!-- slf4j over log4j --> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> + <!-- slf4j over log4j --> <version>${slf4j.version}</version> </dependency> - <!-- Commons logging over slf4j --> <dependency> <groupId>org.slf4j</groupId> <artifactId>jcl-over-slf4j</artifactId> + <!-- Commons logging over slf4j --> <version>${slf4j.version}</version> </dependency> + + <!-- Java Simple Serial Connection - This is for testing purposes only. We don't use this in production --> + <dependency> + <groupId>org.scream3r</groupId> + <artifactId>jssc</artifactId> + <version>${jssc.version}</version> + </dependency> + + + <!-- Table Layout for Desktop --> + + <!-- + <dependency> + <groupId>info.clearthought</groupId> + <artifactId>tablelayout-j15</artifactId> + <version>${tablelayout-j15.version}</version> + </dependency> + --> + + <dependency> + <groupId>info.clearthought</groupId> + <artifactId>table-layout</artifactId> + <version>${table-layout.version}</version> + </dependency> + + + <!-- + <dependency> + <groupId>javax.servlet</groupId> + <artifactId>servlet-api</artifactId> + <version>${servlet-api.version}</version> + <scope>provided</scope> + </dependency> --> + </dependencies> </dependencyManagement> <properties> - <!-- GGC Modules versions --> <!-- Version already moved up one version 0.6.2 --> - <ggc-core.version>0.6.2-SNAPSHOT</ggc-core.version> - <ggc-plugin-base.version>1.1.0-SNAPSHOT</ggc-plugin-base.version> <!-- 0.6.2 = 1.0.2, 1.1.0 --> - <ggc-meter-tool.version>2.4.0-SNAPSHOT</ggc-meter-tool.version> <!-- 0.6.2 = 2.3.1, 2.4.0 --> + <!-- GGC Modules versions --> + <ggc-core.version>0.7.0-SNAPSHOT</ggc-core.version> + <ggc-plugin-base.version>1.2.2-SNAPSHOT</ggc-plugin-base.version> - <ggc-pump-tool.version>1.7.1-SNAPSHOT</ggc-pump-tool.version> <!-- 0.6.2 = 1.6.1, 1.7.1 --> - <ggc-cgms-tool.version>1.4.0-SNAPSHOT</ggc-cgms-tool.version> <!-- 0.6.2 = 1.3.4, 1.4.0 --> - <ggc-nutri-tool.version>1.4.0-SNAPSHOT</ggc-nutri-tool.version> <!-- 0.6.2 = 1.3.7, 1.4.0 --> - <ggc-desktop.version>0.6.2-SNAPSHOT</ggc-desktop.version> - <ggc-help.version>0.2.1-SNAPSHOT</ggc-help.version> <!-- 0.6.2 = 0.2, 0.2.1 --> + <ggc-meter-tool.version>2.4.1-SNAPSHOT</ggc-meter-tool.version> + <!-- 0.6.2 = 2.3.1, 2.4.0 --> + <ggc-pump-tool.version>2.0.1-SNAPSHOT</ggc-pump-tool.version> + <!-- 0.6.2 = 1.6.1, 1.7.1 --> + <ggc-cgms-tool.version>1.5.1-SNAPSHOT</ggc-cgms-tool.version> + <!-- 0.6.2 = 1.3.4, 1.4.0 --> + <ggc-nutri-tool.version>1.4.1-SNAPSHOT</ggc-nutri-tool.version> + <!-- 0.6.2 = 1.3.7, 1.4.0 --> + + <ggc-connect-tool.version>0.1.0-SNAPSHOT</ggc-connect-tool.version> + + <ggc-desktop.version>0.7.0-SNAPSHOT</ggc-desktop.version> + + <ggc-help.version>0.2.2-SNAPSHOT</ggc-help.version> + <!-- 0.6.2 = 0.2, 0.2.1 --> + <!-- NON MAVEN --> <ggc-little.version>0.2.4-SNAPSHOT</ggc-little.version> @@ -407,15 +551,44 @@ <icepdf-viewer.version>5.0.7</icepdf-viewer.version> <jaxen.version>1.1.6</jaxen.version> <jna-j15.version>4.1.0</jna-j15.version> - <hid4java-j15.version>0.3.1</hid4java-j15.version> - <nrjavaserial-j15.version>3.9.3.1</nrjavaserial-j15.version> + <commons-collections.version>3.2.1</commons-collections.version> <slf4j.version>1.7.12</slf4j.version> + <!-- Changed: CGMS, Core, Meter --> - <atech-tools.version>0.7.15-SNAPSHOT</atech-tools.version> + <atech-tools.version>0.8.2-SNAPSHOT</atech-tools.version> + <!-- 0.6.2 --> + <jssc.version>2.8.0</jssc.version> + <!-- 0.7 --> + <table-layout.version>4.3.0</table-layout.version> + <hid4java-j15.version>0.4.1-DEV</hid4java-j15.version> + <!-- <hid4java-j15.version>0.4.0</hid4java-j15.version> --> + <!-- <hid4java-j15.version>0.3.1</hid4java-j15.version> --> + <nrjavaserial-j15.version>3.13.0-DEV</nrjavaserial-j15.version> + + + <!-- 0.8 ?? --> + <simpleframework.version>2.7.1</simpleframework.version> + <zip4j.version>1.3.2</zip4j.version> + + + <!-- Maven Plugins --> + <plexus.version>2.5</plexus.version> + <maven-resources-plugin.version>2.6</maven-resources-plugin.version> + <maven-compiler-plugin.version>3.3</maven-compiler-plugin.version> + <maven-surefire-plugin.version>2.19.1</maven-surefire-plugin.version> + <maven-clean-plugin.version>2.5</maven-clean-plugin.version> + <maven-install-plugin.version>2.5.2</maven-install-plugin.version> + <maven-jar-plugin.version>2.3.2</maven-jar-plugin.version> + <maven-eclipse-plugin.version>2.9</maven-eclipse-plugin.version> + <maven-dependency-plugin.version>2.10</maven-dependency-plugin.version> + + <!-- Maven Settings --> + + <maven.compiler.source>1.5</maven.compiler.source> <maven.compiler.target>1.5</maven.compiler.target> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |