java.lang.Object
simpa.core.api.track.TrajectoryObserver
- All Implemented Interfaces:
- TrackingObserver
Object that can be added as an observer to a 
ParticleTrackerTask. It
 writes the coordinates of the particle every steps to a file.- 
Nested Class SummaryNested classes/interfaces inherited from interface simpa.core.api.track.TrackingObserverTrackingObserver.ObserverBehaviour
- 
Constructor SummaryConstructorsConstructorDescriptionTrajectoryObserver(TrackingObserver.ObserverBehaviour behaviour, boolean debugFields) Constructor.
- 
Method SummaryModifier and TypeMethodDescriptionvoidFinishes the tracking of the given particle.booleanbooleanGets the printStepNumbers boolean.voidObserve the particle using this observer.voidsetPrintStepNumbers(boolean printStepNumbers) Sets the boolean whether step numbers should be printed to the console.
- 
Constructor Details- 
TrajectoryObserverConstructor. Writes the trajectory of the particle to a file.- Parameters:
- behaviour- Determines how the observer behaves.
- debugFields- If true, the magnetic and electric field values are also written to the file.
 
 
- 
- 
Method Details- 
observeDescription copied from interface:TrackingObserverObserve the particle using this observer.- Specified by:
- observein interface- TrackingObserver
- Parameters:
- p- - Particle to observe
 
- 
finishDescription copied from interface:TrackingObserverFinishes the tracking of the given particle.- Specified by:
- finishin interface- TrackingObserver
- Parameters:
- p- the particle to stop tracking
 
- 
isPrintStepNumberspublic boolean isPrintStepNumbers()Gets the printStepNumbers boolean.- Returns:
- The printStepNumbers boolean
 
- 
setPrintStepNumberspublic void setPrintStepNumbers(boolean printStepNumbers) Sets the boolean whether step numbers should be printed to the console.- Parameters:
- printStepNumbers- if step numbers should be printed, set this to true.
 
- 
isDebugFieldspublic boolean isDebugFields()- Returns:
- True if the debug fields option is enabled.
 
- 
getTrajectoryDatas- Returns:
- List of the trajectory steps.
 
 
-