Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SWE_de.bsvrz.sys.funclib.bitctrl.dua
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ERZ
SWE_de.bsvrz.sys.funclib.bitctrl.dua
Commits
6caf1406
Commit
6caf1406
authored
Aug 19, 2016
by
Uwe Peuker
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release/1.7.0'
parents
68158d8f
9c44ab78
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
57 additions
and
62 deletions
+57
-62
.project
.project
+0
-12
README.md
README.md
+5
-0
pom.xml
pom.xml
+4
-1
src/main/java/de/bsvrz/sys/funclib/bitctrl/dua/ufd/UmfeldDatenSensorWert.java
...rz/sys/funclib/bitctrl/dua/ufd/UmfeldDatenSensorWert.java
+1
-22
src/main/java/de/bsvrz/sys/funclib/bitctrl/dua/ufd/typen/UmfeldDatenArt.java
...vrz/sys/funclib/bitctrl/dua/ufd/typen/UmfeldDatenArt.java
+47
-27
No files found.
.project
View file @
6caf1406
...
...
@@ -10,16 +10,6 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>
edu.umd.cs.findbugs.plugin.eclipse.findbugsBuilder
</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>
net.sf.eclipsecs.core.CheckstyleBuilder
</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>
org.eclipse.m2e.core.maven2Builder
</name>
<arguments>
...
...
@@ -29,7 +19,5 @@
<natures>
<nature>
org.eclipse.m2e.core.maven2Nature
</nature>
<nature>
org.eclipse.jdt.core.javanature
</nature>
<nature>
edu.umd.cs.findbugs.plugin.eclipse.findbugsNature
</nature>
<nature>
net.sf.eclipsecs.core.CheckstyleNature
</nature>
</natures>
</projectDescription>
README.md
View file @
6caf1406
...
...
@@ -17,6 +17,11 @@ genutzt werden oder potentiell genutzt werden können.
Versionsgeschichte
==================
1.
7.0
=====
Zusätzliche Datenarten "ZeitreserveEisglätte" und "ZeitreserveReifglätte" ergänzt
1.
6.1
=====
...
...
pom.xml
View file @
6caf1406
...
...
@@ -5,7 +5,7 @@
<groupId>
de.bsvrz.sys
</groupId>
<artifactId>
de.bsvrz.sys.funclib.bitctrl.dua
</artifactId>
<version>
1.
6.1
</version>
<version>
1.
7.0
</version>
<name>
Datenverteilerfunktionsbibliothek BitCtrl
</name>
...
...
@@ -123,6 +123,9 @@
<url>
http://dl.bintray.com/datenverteiler/maven
</url>
</pluginRepository>
</pluginRepositories>
</profile>
<profile>
<id>
bintray-deploy
</id>
<distributionManagement>
<repository>
<id>
bintray-bitctrl-maven
</id>
...
...
src/main/java/de/bsvrz/sys/funclib/bitctrl/dua/ufd/UmfeldDatenSensorWert.java
View file @
6caf1406
...
...
@@ -112,28 +112,7 @@ public class UmfeldDatenSensorWert implements Comparable<UmfeldDatenSensorWert>
* @return der Offset
*/
private
long
getWertStatusOffset
()
{
long
offset
=
0
;
if
(
datenArt
.
equals
(
UmfeldDatenArt
.
fbf
)
||
datenArt
.
equals
(
UmfeldDatenArt
.
hk
)
||
datenArt
.
equals
(
UmfeldDatenArt
.
ns
)
||
datenArt
.
equals
(
UmfeldDatenArt
.
ni
)
||
datenArt
.
equals
(
UmfeldDatenArt
.
nm
)
||
datenArt
.
equals
(
UmfeldDatenArt
.
rlf
)
||
datenArt
.
equals
(
UmfeldDatenArt
.
sh
)
||
datenArt
.
equals
(
UmfeldDatenArt
.
sw
)
||
datenArt
.
equals
(
UmfeldDatenArt
.
wfd
)
||
datenArt
.
equals
(
UmfeldDatenArt
.
wr
)
||
datenArt
.
equals
(
UmfeldDatenArt
.
fbz
)
||
datenArt
.
equals
(
UmfeldDatenArt
.
ld
)
||
datenArt
.
equals
(
UmfeldDatenArt
.
rs
)
||
datenArt
.
equals
(
UmfeldDatenArt
.
wgm
)
||
datenArt
.
equals
(
UmfeldDatenArt
.
fbg
)
||
datenArt
.
equals
(
UmfeldDatenArt
.
tsq
)
||
datenArt
.
equals
(
UmfeldDatenArt
.
zg
)
||
datenArt
.
equals
(
UmfeldDatenArt
.
wgs
))
{
offset
=
0
;
}
else
if
(
datenArt
.
equals
(
UmfeldDatenArt
.
tt1
)
||
datenArt
.
equals
(
UmfeldDatenArt
.
tt2
)
||
datenArt
.
equals
(
UmfeldDatenArt
.
tt3
)
||
datenArt
.
equals
(
UmfeldDatenArt
.
tpt
)
||
datenArt
.
equals
(
UmfeldDatenArt
.
lt
)
||
datenArt
.
equals
(
UmfeldDatenArt
.
gt
)
||
datenArt
.
equals
(
UmfeldDatenArt
.
fbt
))
{
offset
=
-
1000
;
}
else
{
throw
new
RuntimeException
(
"Das Umfelddatum "
+
datenArt
+
" kann nicht identifiziert werden"
);
}
return
offset
;
return
datenArt
.
getStatusOffset
();
}
/**
...
...
src/main/java/de/bsvrz/sys/funclib/bitctrl/dua/ufd/typen/UmfeldDatenArt.java
View file @
6caf1406
...
...
@@ -54,79 +54,85 @@ import de.bsvrz.sys.funclib.debug.Debug;
public
enum
UmfeldDatenArt
{
/** Umfelddatenart Fahrbahnfeuchte. */
fbf
(
"typ.ufdsFahrBahnFeuchte"
,
"FBF"
),
fbf
(
"typ.ufdsFahrBahnFeuchte"
,
"FBF"
,
0
),
/** Umfelddatenart Fahrbahnglätte. */
fbg
(
"typ.ufdsFahrBahnGlätte"
,
"FBG"
),
fbg
(
"typ.ufdsFahrBahnGlätte"
,
"FBG"
,
0
),
/** Umfelddatenart Fahrbahnoberflächentemperatur. */
fbt
(
"typ.ufdsFahrBahnOberFlächenTemperatur"
,
"FBT"
),
fbt
(
"typ.ufdsFahrBahnOberFlächenTemperatur"
,
"FBT"
,
-
1000
),
/** Umfelddatenart Gefriertemperatur. */
gt
(
"typ.ufdsGefrierTemperatur"
,
"GT"
),
gt
(
"typ.ufdsGefrierTemperatur"
,
"GT"
,
-
1000
),
/** Umfelddatenart Helligkeit. */
hk
(
"typ.ufdsHelligkeit"
,
"HK"
),
hk
(
"typ.ufdsHelligkeit"
,
"HK"
,
0
),
/** Umfelddatenart Lufttemperatur. */
lt
(
"typ.ufdsLuftTemperatur"
,
"LT"
),
lt
(
"typ.ufdsLuftTemperatur"
,
"LT"
,
-
1000
),
/** Umfelddatenart Niederaschalgsart. */
ns
(
"typ.ufdsNiederschlagsArt"
,
"NS"
),
ns
(
"typ.ufdsNiederschlagsArt"
,
"NS"
,
0
),
/** Umfelddatenart Niederschlagsintensität. */
ni
(
"typ.ufdsNiederschlagsIntensität"
,
"NI"
),
ni
(
"typ.ufdsNiederschlagsIntensität"
,
"NI"
,
0
),
/** Umfelddatenart Niederschlagsmenge. */
nm
(
"typ.ufdsNiederschlagsMenge"
,
"NM"
),
nm
(
"typ.ufdsNiederschlagsMenge"
,
"NM"
,
0
),
/** Umfelddatenart Relative Luftfeuchte. */
rlf
(
"typ.ufdsRelativeLuftFeuchte"
,
"RLF"
),
rlf
(
"typ.ufdsRelativeLuftFeuchte"
,
"RLF"
,
0
),
/** Umfelddatenart Schneehöhe. */
sh
(
"typ.ufdsSchneeHöhe"
,
"SH"
),
sh
(
"typ.ufdsSchneeHöhe"
,
"SH"
,
0
),
/** Umfelddatenart Sichtweite. */
sw
(
"typ.ufdsSichtWeite"
,
"SW"
),
sw
(
"typ.ufdsSichtWeite"
,
"SW"
,
0
),
/** Umfelddatenart Taupunkttemperatur. */
tpt
(
"typ.ufdsTaupunktTemperatur"
,
"TPT"
),
tpt
(
"typ.ufdsTaupunktTemperatur"
,
"TPT"
,
-
1000
),
/** Umfelddatenart Temperatur in Tiefe 1. */
tt1
(
"typ.ufdsTemperaturInTiefe1"
,
"TT1"
),
tt1
(
"typ.ufdsTemperaturInTiefe1"
,
"TT1"
,
-
1000
),
/** Umfelddatenart Temperatur in Tiefe 2. */
tt2
(
"typ.ufdsTemperaturInTiefe2"
,
"TT2"
),
tt2
(
"typ.ufdsTemperaturInTiefe2"
,
"TT2"
,
-
1000
),
/** Umfelddatenart Temoeratur in Tiefe 3. */
tt3
(
"typ.ufdsTemperaturInTiefe3"
,
"TT3"
),
tt3
(
"typ.ufdsTemperaturInTiefe3"
,
"TT3"
,
-
1000
),
/** Umfelddatenart Wasserfilmdicke. */
wfd
(
"typ.ufdsWasserFilmDicke"
,
"WFD"
),
wfd
(
"typ.ufdsWasserFilmDicke"
,
"WFD"
,
0
),
/** Umfelddatenart Windrichtung. */
wr
(
"typ.ufdsWindRichtung"
,
"WR"
),
wr
(
"typ.ufdsWindRichtung"
,
"WR"
,
0
),
/** Umfelddatenart Fahrbahnoberflächenzustand. */
fbz
(
"typ.ufdsFahrBahnOberFlächenZustand"
,
"FBZ"
),
fbz
(
"typ.ufdsFahrBahnOberFlächenZustand"
,
"FBZ"
,
0
),
/** Umfelddatenart Luftdruck. */
ld
(
"typ.ufdsLuftDruck"
,
"LD"
),
ld
(
"typ.ufdsLuftDruck"
,
"LD"
,
0
),
/** Umfelddatenart Restsalz. */
rs
(
"typ.ufdsRestSalz"
,
"RS"
),
rs
(
"typ.ufdsRestSalz"
,
"RS"
,
0
),
/** Umfelddatenart Taustoffmenge. */
tsq
(
"typ.ufdsTaustoffmenge"
,
"TSQ"
),
tsq
(
"typ.ufdsTaustoffmenge"
,
"TSQ"
,
0
),
/** Umfelddatenart Windgeschwindigkeit (Mittelwert). */
wgm
(
"typ.ufdsWindGeschwindigkeitMittelWert"
,
"WGM"
),
wgm
(
"typ.ufdsWindGeschwindigkeitMittelWert"
,
"WGM"
,
0
),
/** Umfelddatenart Windgeschwindigkeit (Spitzenwert). */
wgs
(
"typ.ufdsWindGeschwindigkeitSpitzenWert"
,
"WGS"
),
wgs
(
"typ.ufdsWindGeschwindigkeitSpitzenWert"
,
"WGS"
,
0
),
/** Umfelddatenart Zeitreserve Eisglätte. */
zrge
(
"typ.ufdsZeitReserveEisGlätte"
,
"ZRGe"
,
0
),
/** Umfelddatenart Zeitreserve Reifglätte. */
zrgr
(
"typ.ufdsZeitReserveReifGlätte"
,
"ZRGr"
,
0
),
/** Umfelddatenart Zeitreserve Glätte Vaisala. */
zg
(
"typ.ufdsZeitreserveGlätteVaisala"
,
"ZG"
);
zg
(
"typ.ufdsZeitreserveGlätteVaisala"
,
"ZG"
,
0
);
/**
* Mapt den Systemobjekttyp eines Umfelddatensensors auf die Informationen
...
...
@@ -159,6 +165,12 @@ public enum UmfeldDatenArt {
*/
private
double
skalierung
=
1.0
;
/**
* Offset für die Statuswerte fehlerhaft, nicht ermittelbar und
* fehlerhaft/nicht ermittelbar.
*/
private
long
statusOffset
;
/**
* Erfragt die Umfelddatenart eines Systemobjekts.
*
...
...
@@ -237,11 +249,15 @@ public enum UmfeldDatenArt {
* die PID des Systemobjekttyps der Umfelddatenart
* @param abkuerzung
* die Abkürzung der Umfelddatenart
*/
UmfeldDatenArt
(
final
String
typPid
,
final
String
abkuerzung
)
{
* @param statusOffset
* Offset für die Statuswerte fehlerhaft, nicht ermittelbar und
* fehlerhaft/nicht ermittelbar.
**/
UmfeldDatenArt
(
final
String
typPid
,
final
String
abkuerzung
,
long
statusOffset
)
{
this
.
typPid
=
typPid
;
this
.
abkuerzung
=
abkuerzung
;
this
.
statusOffset
=
statusOffset
;
name
=
typPid
.
substring
(
"typ.ufds"
.
length
());
}
...
...
@@ -299,4 +315,8 @@ public enum UmfeldDatenArt {
return
name
+
" ("
+
abkuerzung
+
")"
;
}
public
long
getStatusOffset
()
{
return
statusOffset
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment