edu.swri.swiftvis.sources
Class DiscardData
java.lang.Object
edu.swri.swiftvis.sources.AbstractSource
edu.swri.swiftvis.sources.DiscardData
- All Implemented Interfaces:
- DataSource, GraphElement, FileSourceInter, java.io.Serializable
public class DiscardData
- extends AbstractSource
- implements FileSourceInter
This source represents the contents of a SWIFT discard file. The discard file stores all
of the particles that were discarded during the last timestep and the information on them.
We load that into multiple elements. Each particle gets an element with a time, id, status,
x, y, z, vx, vy, vz. If the user selects to output the planets in addition to the test particles,
they also have a mass and radius as additional values. If you want to use those values in
formulas, you must pass the discard information through a filter that will take out all of
the test particles or you will get errors trying to read the mass or radius of the test particles.
Doing a selection filter with id<0 will work nicely. The id is p[0].
- Author:
- Mark Lewis
- See Also:
- Serialized Form
Methods inherited from class edu.swri.swiftvis.sources.AbstractSource |
abstractRedo2, abstractRedoAllElements, addOutput, clearData, drawNode, getBounds, getElement, getNumElements, getNumOutputs, getOutput, getOutputInfoPanel, getPaint, getPropertiesPanel, notifySinks, redo, relink, removeOutput, toString, translate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DiscardData
public DiscardData()
main
public static void main(java.lang.String[] args)
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interface GraphElement
getTypeDescription
public static java.lang.String getTypeDescription()
setupSpecificPanelProperties
protected void setupSpecificPanelProperties()
- Specified by:
setupSpecificPanelProperties
in class AbstractSource
getParameterDescription
public java.lang.String getParameterDescription(int which)
- Tells you what a particular parameter is used for.
- Specified by:
getParameterDescription
in interface DataSource
getValueDescription
public java.lang.String getValueDescription(int which)
- Tells you what a particular value is used for.
- Specified by:
getValueDescription
in interface DataSource
getNumParameters
public int getNumParameters()
- Specified by:
getNumParameters
in interface DataSource
getNumValues
public int getNumValues()
- Specified by:
getNumValues
in interface DataSource
copy
public DiscardData copy(java.util.List<GraphElement> l)
- Specified by:
copy
in interface GraphElement
getFiles
public java.io.File[] getFiles()
- Specified by:
getFiles
in interface FileSourceInter
setFile
public void setFile(int which,
java.io.File f)
- Specified by:
setFile
in interface FileSourceInter
rereadFiles
public void rereadFiles()
- Specified by:
rereadFiles
in interface FileSourceInter
redoAllElements
protected void redoAllElements()
- Specified by:
redoAllElements
in class AbstractSource