org.hwo.pulscounter/src/org/hwo/pulscounter/CounterChannel.java

50 lines
840 B
Java

package org.hwo.pulscounter;
import org.hwo.models.TableMapper.TableColumn;
public class CounterChannel {
@TableColumn(label="Kanal",firstColumn=true)
private Integer channel;
@TableColumn(label="ZŠhlerstand",after="Kanal")
private Integer value;
@TableColumn(label="Korrekturwert",after="ZŠhlerstand")
private Integer correct;
@TableColumn(label="Ergebnis",after="Korrekturwert")
public Integer correctedValue()
{
return value + correct;
}
public CounterChannel(int ch)
{
channel = ch;
value = 0;
correct = 0;
}
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;
}
}