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 void
add(MadxTrackVariable variable, java.lang.Integer particleNumber, java.lang.Double value)
Store the value associated to a variable for a particlevoid
clear()
clear the resultjava.util.List<java.lang.Double>
get(MadxTrackVariable variable, java.lang.Integer particleIndex)
java.lang.Integer
getParticleCount()
ResultType
getResultType()
-
-
-
Method Detail
-
getResultType
public ResultType getResultType()
- Specified by:
getResultType
in interfaceResult
-
getParticleCount
public java.lang.Integer getParticleCount()
- Specified by:
getParticleCount
in interfaceTrackResult
- Returns:
- number of particle tracked
-
add
public void add(MadxTrackVariable variable, java.lang.Integer particleNumber, java.lang.Double value)
Description copied from interface:TrackResult
Store the value associated to a variable for a particle- Specified by:
add
in interfaceTrackResult
particleNumber
- integer associated to the tracked particle
-
get
public java.util.List<java.lang.Double> get(MadxTrackVariable variable, java.lang.Integer particleIndex)
- Specified by:
get
in interfaceTrackResult
particleIndex
- 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:TrackResult
clear the result- Specified by:
clear
in interfaceTrackResult
-
-