Class TrackResultImpl
- java.lang.Object
-
- cern.accsoft.steering.jmad.domain.result.track.TrackResultImpl
-
- All Implemented Interfaces:
Result,TrackResult
public class TrackResultImpl extends java.lang.Object implements TrackResult
Standard implementation of TrackResult
-
-
Constructor Summary
Constructors Constructor Description TrackResultImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(MadxTrackVariable variable, java.lang.Integer particleNumber, java.lang.Double value)Store the value associated to a variable for a particlevoidclear()clear the resultjava.util.List<java.lang.Double>get(MadxTrackVariable variable, java.lang.Integer particleIndex)java.lang.IntegergetParticleCount()ResultTypegetResultType()
-
-
-
Method Detail
-
getResultType
public ResultType getResultType()
- Specified by:
getResultTypein interfaceResult
-
getParticleCount
public java.lang.Integer getParticleCount()
- Specified by:
getParticleCountin interfaceTrackResult- Returns:
- number of particle tracked
-
add
public void add(MadxTrackVariable variable, java.lang.Integer particleNumber, java.lang.Double value)
Description copied from interface:TrackResultStore the value associated to a variable for a particle- Specified by:
addin interfaceTrackResultparticleNumber- integer associated to the tracked particle
-
get
public java.util.List<java.lang.Double> get(MadxTrackVariable variable, java.lang.Integer particleIndex)
- Specified by:
getin interfaceTrackResultparticleIndex- integer associated to the tracked particle from 0 to getParticleCount()- Returns:
- values associated to a variable for a particle
-
clear
public void clear()
Description copied from interface:TrackResultclear the result- Specified by:
clearin interfaceTrackResult
-
-