Package export.RExport
Class RDataUnitExport<T extends PamDataUnit<?,?>>
java.lang.Object
export.RExport.RDataUnitExport<T>
- Type Parameters:
T
- - the data unit type.
- Direct Known Subclasses:
RRawExport
,RWhistleExport
Exports a data unit to a List in R. Specific data units should subclass this.
- Author:
- Jamie Macaulay
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract org.renjin.sexp.ListVector.NamedBuilder
addDetectionSpecificFields
(org.renjin.sexp.ListVector.NamedBuilder rData, T dataUnit, int index) Add detection specific fields to a structure.org.renjin.sexp.ListVector.NamedBuilder
detectionToStruct
(T dataUnit, int index) Create a MATLAB structure which contains all information for a data unit.abstract String
getName()
Get the name of the structureabstract Class<?>
Get the unit class
-
Constructor Details
-
RDataUnitExport
public RDataUnitExport()
-
-
Method Details
-
detectionToStruct
Create a MATLAB structure which contains all information for a data unit.- Parameters:
dataUnit
- - the data unit to convert to a MATLAB structure- Returns:
- detection data MATLAB structure ready to be exported to a .mat file or added to a ArrayList
.
-
addDetectionSpecificFields
public abstract org.renjin.sexp.ListVector.NamedBuilder addDetectionSpecificFields(org.renjin.sexp.ListVector.NamedBuilder rData, T dataUnit, int index) Add detection specific fields to a structure.- Parameters:
structure
- containing all generic info from PamDataUnitthe
- data unit.
-
getUnitClass
Get the unit class- Returns:
-
getName
Get the name of the structure- Returns:
-