aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gtnhlanth/common/beamline/BeamInformation.java
blob: 3d2ff841c46fb6758d2d1194992e88a0e2a901ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package gtnhlanth.common.beamline;

public class BeamInformation {

    private float energy; // in keV
    private int rate;

    private Particle particle;
    private int particleId;

    private float focus;

    public BeamInformation(float energy, int rate, int particleId, float focus) {
        this.energy = energy;
        this.rate = rate;
        this.particleId = particleId;
        this.particle = Particle.values()[particleId];
        this.focus = focus;
    }

    public float getEnergy() {
        return this.energy;
    }

    public int getRate() {
        return this.rate;
    }

    public Particle getParticle() {
        return this.particle;
    }

    public int getParticleId() {
        return this.particleId;
    }

    public float getFocus() {
        return this.focus;
    }

    @Override
    public String toString() {
        return "Energy=" + this.getEnergy()
            + ",Rate="
            + this.getRate()
            + ",Particle="
            + this.getParticleId()
            + ",Focus="
            + this.getFocus();
    }
}