2014-01-24 11:41:56 +01:00
|
|
|
|
package org.hwo.pulscounter;
|
|
|
|
|
|
|
|
|
|
import org.hwo.models.TableMapper.TableColumn;
|
|
|
|
|
|
|
|
|
|
public class CounterChannel {
|
2014-10-20 21:32:52 +02:00
|
|
|
|
|
2014-01-24 11:41:56 +01:00
|
|
|
|
@TableColumn(label="Kanal",firstColumn=true)
|
|
|
|
|
private Integer channel;
|
2014-08-26 14:23:09 +02:00
|
|
|
|
|
|
|
|
|
@TableColumn(label="Bezeichnung",after="Kanal")
|
|
|
|
|
private String bezeichnung;
|
|
|
|
|
|
|
|
|
|
@TableColumn(label="Z<>hlerstand",after="Bezeichnung")
|
2014-02-03 10:52:19 +01:00
|
|
|
|
private Integer value;
|
2014-01-24 11:41:56 +01:00
|
|
|
|
@TableColumn(label="Korrekturwert",after="Z<>hlerstand")
|
2014-02-03 10:52:19 +01:00
|
|
|
|
private Integer correct;
|
2014-01-24 11:41:56 +01:00
|
|
|
|
|
|
|
|
|
@TableColumn(label="Ergebnis",after="Korrekturwert")
|
2014-02-03 10:52:19 +01:00
|
|
|
|
public Integer correctedValue()
|
2014-01-24 11:41:56 +01:00
|
|
|
|
{
|
|
|
|
|
return value + correct;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public CounterChannel(int ch)
|
|
|
|
|
{
|
|
|
|
|
channel = ch;
|
|
|
|
|
value = 0;
|
|
|
|
|
correct = 0;
|
2014-08-26 14:23:09 +02:00
|
|
|
|
bezeichnung = "";
|
2014-01-24 11:41:56 +01:00
|
|
|
|
}
|
2014-02-03 10:52:19 +01:00
|
|
|
|
|
|
|
|
|
public Integer getChannel() {
|
|
|
|
|
return channel;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Integer getValue() {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setValue(Integer value) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Integer getCorrect() {
|
|
|
|
|
return correct;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setCorrect(Integer correct) {
|
|
|
|
|
this.correct = correct;
|
|
|
|
|
}
|
|
|
|
|
|
2014-08-26 14:23:09 +02:00
|
|
|
|
public String getBezeichnung() {
|
|
|
|
|
return bezeichnung;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setBezeichnung(String bezeichnung) {
|
|
|
|
|
this.bezeichnung = bezeichnung;
|
|
|
|
|
}
|
|
|
|
|
|
2014-01-24 11:41:56 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|