public class TwoGeeLoader
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TwoGeeLoader.Protocol
A measurement protocol.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.lang.String> |
messages |
protected java.util.List<TreatmentStep> |
treatmentSteps |
Constructor and Description |
---|
TwoGeeLoader(java.io.File file,
TwoGeeLoader.Protocol protocol,
Vec3 sensorLengths,
boolean usePolarMoment)
Creates a new 2G loader using the supplied parameters.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addMessage(java.lang.String message,
java.lang.Object... args) |
protected void |
addTreatmentStep(TreatmentStep step) |
java.util.List<java.lang.String> |
getExtraLines()
Returns any lines in the file which were not handled by the loader.
|
java.util.List<java.lang.String> |
getMessages()
Returns any messages produced during the loading process.
|
java.util.List<TreatmentStep> |
getTreatmentSteps()
Returns the treatment steps read from the file.
|
protected java.util.List<java.lang.String> messages
protected java.util.List<TreatmentStep> treatmentSteps
public TwoGeeLoader(java.io.File file, TwoGeeLoader.Protocol protocol, Vec3 sensorLengths, boolean usePolarMoment)
file
- the file to readprotocol
- the measurement protocol which was used to create the
filesensorLengths
- the effective sensor lengths (only used for long
core data)usePolarMoment
- read magnetic moment from dec/inc/intensity, not
x/y/zprotected void addMessage(java.lang.String message, java.lang.Object... args)
protected void addTreatmentStep(TreatmentStep step)
public java.util.List<TreatmentStep> getTreatmentSteps()
FileLoader
getTreatmentSteps
in interface FileLoader
public java.util.List<java.lang.String> getExtraLines()
FileLoader
getExtraLines
in interface FileLoader
public java.util.List<java.lang.String> getMessages()
FileLoader
getMessages
in interface FileLoader