Update of /cvsroot/jrobin/src/jrobin/core
In directory sc8-pr-cvs1:/tmp/cvs-serv4316/jrobin/core
Modified Files:
ArcDef.java ArcState.java Archive.java Datasource.java
DsDef.java FetchData.java FetchPoint.java FetchRequest.java
Header.java Robin.java RpnCalculator.java RrdDb.java
RrdDbPool.java RrdDef.java RrdDouble.java RrdException.java
RrdFile.java RrdInt.java RrdLong.java RrdString.java
RrdUpdater.java Sample.java Util.java XmlReader.java
XmlWriter.java
Log Message:
Uniform source code headers provided. Minor changes to Demo classes
Index: ArcDef.java
===================================================================
RCS file: /cvsroot/jrobin/src/jrobin/core/ArcDef.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ArcDef.java 4 Sep 2003 13:26:41 -0000 1.1
--- ArcDef.java 6 Nov 2003 15:52:52 -0000 1.2
***************
*** 8,11 ****
--- 8,14 ----
* (C) Copyright 2003, by Sasa Markovic.
*
+ * Developers: Sasa Markovic (sa...@jr...)
+ * Arne Vandamme (cob...@jr...)
+ *
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
Index: ArcState.java
===================================================================
RCS file: /cvsroot/jrobin/src/jrobin/core/ArcState.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** ArcState.java 6 Oct 2003 10:45:04 -0000 1.4
--- ArcState.java 6 Nov 2003 15:52:52 -0000 1.5
***************
*** 8,11 ****
--- 8,14 ----
* (C) Copyright 2003, by Sasa Markovic.
*
+ * Developers: Sasa Markovic (sa...@jr...)
+ * Arne Vandamme (cob...@jr...)
+ *
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
Index: Archive.java
===================================================================
RCS file: /cvsroot/jrobin/src/jrobin/core/Archive.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** Archive.java 22 Oct 2003 08:55:10 -0000 1.7
--- Archive.java 6 Nov 2003 15:52:52 -0000 1.8
***************
*** 8,11 ****
--- 8,14 ----
* (C) Copyright 2003, by Sasa Markovic.
*
+ * Developers: Sasa Markovic (sa...@jr...)
+ * Arne Vandamme (cob...@jr...)
+ *
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
Index: Datasource.java
===================================================================
RCS file: /cvsroot/jrobin/src/jrobin/core/Datasource.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Datasource.java 6 Oct 2003 10:45:04 -0000 1.5
--- Datasource.java 6 Nov 2003 15:52:52 -0000 1.6
***************
*** 8,11 ****
--- 8,14 ----
* (C) Copyright 2003, by Sasa Markovic.
*
+ * Developers: Sasa Markovic (sa...@jr...)
+ * Arne Vandamme (cob...@jr...)
+ *
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
Index: DsDef.java
===================================================================
RCS file: /cvsroot/jrobin/src/jrobin/core/DsDef.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** DsDef.java 16 Oct 2003 09:26:30 -0000 1.2
--- DsDef.java 6 Nov 2003 15:52:52 -0000 1.3
***************
*** 8,11 ****
--- 8,14 ----
* (C) Copyright 2003, by Sasa Markovic.
*
+ * Developers: Sasa Markovic (sa...@jr...)
+ * Arne Vandamme (cob...@jr...)
+ *
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
Index: FetchData.java
===================================================================
RCS file: /cvsroot/jrobin/src/jrobin/core/FetchData.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** FetchData.java 23 Oct 2003 23:16:36 -0000 1.4
--- FetchData.java 6 Nov 2003 15:52:52 -0000 1.5
***************
*** 8,11 ****
--- 8,14 ----
* (C) Copyright 2003, by Sasa Markovic.
*
+ * Developers: Sasa Markovic (sa...@jr...)
+ * Arne Vandamme (cob...@jr...)
+ *
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
Index: FetchPoint.java
===================================================================
RCS file: /cvsroot/jrobin/src/jrobin/core/FetchPoint.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** FetchPoint.java 21 Oct 2003 12:53:05 -0000 1.2
--- FetchPoint.java 6 Nov 2003 15:52:52 -0000 1.3
***************
*** 8,11 ****
--- 8,14 ----
* (C) Copyright 2003, by Sasa Markovic.
*
+ * Developers: Sasa Markovic (sa...@jr...)
+ * Arne Vandamme (cob...@jr...)
+ *
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
Index: FetchRequest.java
===================================================================
RCS file: /cvsroot/jrobin/src/jrobin/core/FetchRequest.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** FetchRequest.java 23 Oct 2003 14:55:34 -0000 1.4
--- FetchRequest.java 6 Nov 2003 15:52:52 -0000 1.5
***************
*** 8,11 ****
--- 8,14 ----
* (C) Copyright 2003, by Sasa Markovic.
*
+ * Developers: Sasa Markovic (sa...@jr...)
+ * Arne Vandamme (cob...@jr...)
+ *
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
Index: Header.java
===================================================================
RCS file: /cvsroot/jrobin/src/jrobin/core/Header.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Header.java 6 Oct 2003 10:45:04 -0000 1.4
--- Header.java 6 Nov 2003 15:52:52 -0000 1.5
***************
*** 12,15 ****
--- 12,18 ----
* either version 2.1 of the License, or (at your option) any later version.
*
+ * Developers: Sasa Markovic (sa...@jr...)
+ * Arne Vandamme (cob...@jr...)
+ *
* This library 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.
Index: Robin.java
===================================================================
RCS file: /cvsroot/jrobin/src/jrobin/core/Robin.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Robin.java 21 Oct 2003 12:53:05 -0000 1.4
--- Robin.java 6 Nov 2003 15:52:52 -0000 1.5
***************
*** 12,15 ****
--- 12,18 ----
* either version 2.1 of the License, or (at your option) any later version.
*
+ * Developers: Sasa Markovic (sa...@jr...)
+ * Arne Vandamme (cob...@jr...)
+ *
* This library 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.
Index: RpnCalculator.java
===================================================================
RCS file: /cvsroot/jrobin/src/jrobin/core/RpnCalculator.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** RpnCalculator.java 23 Oct 2003 14:55:34 -0000 1.2
--- RpnCalculator.java 6 Nov 2003 15:52:52 -0000 1.3
***************
*** 8,11 ****
--- 8,14 ----
* (C) Copyright 2003, by Sasa Markovic.
*
+ * Developers: Sasa Markovic (sa...@jr...)
+ * Arne Vandamme (cob...@jr...)
+ *
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
Index: RrdDb.java
===================================================================
RCS file: /cvsroot/jrobin/src/jrobin/core/RrdDb.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** RrdDb.java 23 Oct 2003 14:55:34 -0000 1.12
--- RrdDb.java 6 Nov 2003 15:52:52 -0000 1.13
***************
*** 8,11 ****
--- 8,14 ----
* (C) Copyright 2003, by Sasa Markovic.
*
+ * Developers: Sasa Markovic (sa...@jr...)
+ * Arne Vandamme (cob...@jr...)
+ *
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
Index: RrdDbPool.java
===================================================================
RCS file: /cvsroot/jrobin/src/jrobin/core/RrdDbPool.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** RrdDbPool.java 23 Oct 2003 14:55:34 -0000 1.1
--- RrdDbPool.java 6 Nov 2003 15:52:52 -0000 1.2
***************
*** 8,11 ****
--- 8,14 ----
* (C) Copyright 2003, by Sasa Markovic.
*
+ * Developers: Sasa Markovic (sa...@jr...)
+ * Arne Vandamme (cob...@jr...)
+ *
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
Index: RrdDef.java
===================================================================
RCS file: /cvsroot/jrobin/src/jrobin/core/RrdDef.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** RrdDef.java 4 Sep 2003 13:26:41 -0000 1.1
--- RrdDef.java 6 Nov 2003 15:52:52 -0000 1.2
***************
*** 8,11 ****
--- 8,14 ----
* (C) Copyright 2003, by Sasa Markovic.
*
+ * Developers: Sasa Markovic (sa...@jr...)
+ * Arne Vandamme (cob...@jr...)
+ *
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
Index: RrdDouble.java
===================================================================
RCS file: /cvsroot/jrobin/src/jrobin/core/RrdDouble.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** RrdDouble.java 4 Sep 2003 13:26:41 -0000 1.1
--- RrdDouble.java 6 Nov 2003 15:52:52 -0000 1.2
***************
*** 8,11 ****
--- 8,14 ----
* (C) Copyright 2003, by Sasa Markovic.
*
+ * Developers: Sasa Markovic (sa...@jr...)
+ * Arne Vandamme (cob...@jr...)
+ *
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
Index: RrdException.java
===================================================================
RCS file: /cvsroot/jrobin/src/jrobin/core/RrdException.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** RrdException.java 6 Oct 2003 08:50:59 -0000 1.2
--- RrdException.java 6 Nov 2003 15:52:52 -0000 1.3
***************
*** 8,11 ****
--- 8,14 ----
* (C) Copyright 2003, by Sasa Markovic.
*
+ * Developers: Sasa Markovic (sa...@jr...)
+ * Arne Vandamme (cob...@jr...)
+ *
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
Index: RrdFile.java
===================================================================
RCS file: /cvsroot/jrobin/src/jrobin/core/RrdFile.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** RrdFile.java 23 Oct 2003 14:55:34 -0000 1.3
--- RrdFile.java 6 Nov 2003 15:52:52 -0000 1.4
***************
*** 8,11 ****
--- 8,14 ----
* (C) Copyright 2003, by Sasa Markovic.
*
+ * Developers: Sasa Markovic (sa...@jr...)
+ * Arne Vandamme (cob...@jr...)
+ *
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
Index: RrdInt.java
===================================================================
RCS file: /cvsroot/jrobin/src/jrobin/core/RrdInt.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** RrdInt.java 4 Sep 2003 13:26:41 -0000 1.1
--- RrdInt.java 6 Nov 2003 15:52:52 -0000 1.2
***************
*** 8,11 ****
--- 8,14 ----
* (C) Copyright 2003, by Sasa Markovic.
*
+ * Developers: Sasa Markovic (sa...@jr...)
+ * Arne Vandamme (cob...@jr...)
+ *
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
Index: RrdLong.java
===================================================================
RCS file: /cvsroot/jrobin/src/jrobin/core/RrdLong.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** RrdLong.java 4 Sep 2003 13:26:41 -0000 1.1
--- RrdLong.java 6 Nov 2003 15:52:52 -0000 1.2
***************
*** 8,11 ****
--- 8,14 ----
* (C) Copyright 2003, by Sasa Markovic.
*
+ * Developers: Sasa Markovic (sa...@jr...)
+ * Arne Vandamme (cob...@jr...)
+ *
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
Index: RrdString.java
===================================================================
RCS file: /cvsroot/jrobin/src/jrobin/core/RrdString.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** RrdString.java 4 Sep 2003 13:26:41 -0000 1.1
--- RrdString.java 6 Nov 2003 15:52:52 -0000 1.2
***************
*** 12,15 ****
--- 12,18 ----
* either version 2.1 of the License, or (at your option) any later version.
*
+ * Developers: Sasa Markovic (sa...@jr...)
+ * Arne Vandamme (cob...@jr...)
+ *
* This library 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.
Index: RrdUpdater.java
===================================================================
RCS file: /cvsroot/jrobin/src/jrobin/core/RrdUpdater.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** RrdUpdater.java 4 Sep 2003 13:26:41 -0000 1.1
--- RrdUpdater.java 6 Nov 2003 15:52:52 -0000 1.2
***************
*** 8,11 ****
--- 8,14 ----
* (C) Copyright 2003, by Sasa Markovic.
*
+ * Developers: Sasa Markovic (sa...@jr...)
+ * Arne Vandamme (cob...@jr...)
+ *
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
Index: Sample.java
===================================================================
RCS file: /cvsroot/jrobin/src/jrobin/core/Sample.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Sample.java 23 Oct 2003 14:55:34 -0000 1.4
--- Sample.java 6 Nov 2003 15:52:52 -0000 1.5
***************
*** 8,11 ****
--- 8,14 ----
* (C) Copyright 2003, by Sasa Markovic.
*
+ * Developers: Sasa Markovic (sa...@jr...)
+ * Arne Vandamme (cob...@jr...)
+ *
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
Index: Util.java
===================================================================
RCS file: /cvsroot/jrobin/src/jrobin/core/Util.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** Util.java 30 Oct 2003 16:21:13 -0000 1.9
--- Util.java 6 Nov 2003 15:52:52 -0000 1.10
***************
*** 8,11 ****
--- 8,14 ----
* (C) Copyright 2003, by Sasa Markovic.
*
+ * Developers: Sasa Markovic (sa...@jr...)
+ * Arne Vandamme (cob...@jr...)
+ *
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
***************
*** 28,31 ****
--- 31,35 ----
import java.util.Locale;
import java.util.GregorianCalendar;
+ import java.io.File;
/**
***************
*** 38,41 ****
--- 42,48 ----
// pattern RRDTool uses to format doubles in XML files
static final String PATTERN = "0.0000000000E00";
+ // directory under $USER_HOME used for demo graphs storing
+ static final String JROBIN_DIR = "jrobin-demo";
+
static final DecimalFormat df;
static {
***************
*** 166,169 ****
--- 173,195 ----
}
return value;
+ }
+
+ private static final File homeDirFile;
+ private static final String homeDirPath;
+
+ static {
+ String delim = System.getProperty("file.separator");
+ homeDirPath = System.getProperty("user.home") + delim + JROBIN_DIR + delim;
+ homeDirFile = new File(homeDirPath);
+ }
+
+ /**
+ * Returns path to directory used for placement of JRobin demo graphs. and creates it
+ * if necessary.
+ * @return Path to demo directory (defaults to $HOME/jrobin/) if directory exists or
+ * was successfully created. Null if such directory could not be created.
+ */
+ public static String getJRobinDemoDirectory() {
+ return (homeDirFile.exists() || homeDirFile.mkdirs())? homeDirPath: null;
}
Index: XmlReader.java
===================================================================
RCS file: /cvsroot/jrobin/src/jrobin/core/XmlReader.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** XmlReader.java 29 Sep 2003 13:27:53 -0000 1.3
--- XmlReader.java 6 Nov 2003 15:52:52 -0000 1.4
***************
*** 8,11 ****
--- 8,14 ----
* (C) Copyright 2003, by Sasa Markovic.
*
+ * Developers: Sasa Markovic (sa...@jr...)
+ * Arne Vandamme (cob...@jr...)
+ *
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
Index: XmlWriter.java
===================================================================
RCS file: /cvsroot/jrobin/src/jrobin/core/XmlWriter.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** XmlWriter.java 16 Oct 2003 09:26:30 -0000 1.4
--- XmlWriter.java 6 Nov 2003 15:52:52 -0000 1.5
***************
*** 8,11 ****
--- 8,14 ----
* (C) Copyright 2003, by Sasa Markovic.
*
+ * Developers: Sasa Markovic (sa...@jr...)
+ * Arne Vandamme (cob...@jr...)
+ *
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
|