public class WaveformDataWriter
extends java.lang.Object
implements java.io.Closeable, java.io.Flushable
This class create a new set of dataset files.
| コンストラクタと説明 |
|---|
WaveformDataWriter(java.nio.file.Path idPath,
java.nio.file.Path dataPath,
java.util.Set<Station> stationSet,
java.util.Set<GlobalCMTID> globalCMTIDSet,
double[][] periodRanges)
This constructor is only for BasicID.
|
WaveformDataWriter(java.nio.file.Path idPath,
java.nio.file.Path dataPath,
java.util.Set<Station> stationSet,
java.util.Set<GlobalCMTID> globalCMTIDSet,
double[][] periodRanges,
java.util.Set<Location> perturbationPoints)
This constructor is only for PartialID.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
addBasicID(BasicID basicID) |
void |
addPartialID(PartialID partialID) |
void |
close() |
void |
flush() |
java.nio.file.Path |
getDataPath() |
java.nio.file.Path |
getIDPath() |
public WaveformDataWriter(java.nio.file.Path idPath,
java.nio.file.Path dataPath,
java.util.Set<Station> stationSet,
java.util.Set<GlobalCMTID> globalCMTIDSet,
double[][] periodRanges)
throws java.io.IOException
idPath - Path for ID file (must not exist)dataPath - Path for data file (must not exist)stationSet - must contain all information of the IDs to writeglobalCMTIDSet - must contain all information of the IDs to writeperiodRanges - must contain all information of the IDs to write. If you want
to use ranges [10, 30] and [50,100] then the periodRanges
should be new double[][]{{10,30},{50,100}}java.io.IOException - if an error occurspublic WaveformDataWriter(java.nio.file.Path idPath,
java.nio.file.Path dataPath,
java.util.Set<Station> stationSet,
java.util.Set<GlobalCMTID> globalCMTIDSet,
double[][] periodRanges,
java.util.Set<Location> perturbationPoints)
throws java.io.IOException
idPath - Path for ID file (must not exist)dataPath - Path for data file (must not exist)stationSet - must contain all information of the IDs to writeglobalCMTIDSet - must contain all information of the IDs to writeperiodRanges - must contain all information of the IDs to write. If you want
to use ranges [10, 30] and [50,100] then the periodRanges
should be new double[][]{{10,30},{50,100}}perturbationPoints - must contain all information of the IDs to writejava.io.IOException - if an error occurspublic java.nio.file.Path getIDPath()
public java.nio.file.Path getDataPath()
public void close()
throws java.io.IOException
close インタフェース内 java.io.Closeableclose インタフェース内 java.lang.AutoCloseablejava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush インタフェース内 java.io.Flushablejava.io.IOExceptionpublic void addBasicID(BasicID basicID) throws java.io.IOException
basicID - StartByte will be ignored and set properly in the write file.java.io.IOException - if an I/O error occurs