public class FileReader extends AbstractRule
Argument Keyword | Datatype | Default | Description |
---|---|---|---|
FileName | String | - | The name of the iso_evg input file (*.iso), which should be parsed. (optional, mandatory in case of implementation) |
FileNameAttributeName | String | - | The name attribute in the dataset with the iso_evg input file (*.iso), which should be parsed. (optional, mandatory in case of FROM-Rule) |
ReferenceName | String | - | The name of the context reference for saving the object. (mandatory) |
BinPath | String | - | The path of the binary data. (mandatory) |
InformationToReturn | String | - | The kind of information which can be get.Can be Measurement or Channel, (optional, mandatory in case of FROM-Rule) |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
binPath |
protected java.lang.String |
inFileAttributeName |
protected java.lang.String |
inFileName |
protected ISOEVGParser |
isoParser |
protected java.util.logging.Logger |
messenger |
protected java.lang.String |
returnInfo |
protected java.io.File |
tdmsFile |
protected java.lang.String |
timezone |
loggerName, postMethods, preMethods, sessionRef
arguments, ctx, descriptor, NEW_LINE
Constructor and Description |
---|
FileReader() |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Parse the ISO file.
|
NameValueUnit[][] |
getValue()
The getValue method, read the attribute values from the diadem header file.
|
void |
init()
Initialization
|
void |
setValue(NameValueUnit[][] nvu)
The setValue, read the ISO filename from the input data set and parse the file.
|
execute, executePostMethods, executePreMethods, getAoSessionFromContextWithSessionRef, getId, getOdsCache, getPointTo, getSessionRef, getType, isPedantic, setGathermode, setId, setPointTo, setPostMethods, setPreMethods, setSessionRef, setType, terminate, toString, toString, toString
addAttributesToNameValueUnitArray, addAttributeToNameValueUnitArray, addStringValueToNameValueUnitArray, checkDirectoy, checkDirectoy, checkDirectoy, checkFile, checkFile, checkFile, checkIntValue, checkStringValue, compressNvuArray, createMessageFromPropertyFile, createMessageFromPropertyFile, createMessageFromPropertyFile, createTsUnionFromObject, deleteRowWithAttributes, getArguments, getContext, getDescriptor, getListFromProperty, getMandatoryProperty, getMandatoryProperty, getMandatoryPropertyAsInt, getMandatoryPropertyAsList, getMandatoryPropertyWithRuleException, getNvuArrayFromMap, getNvuArrayFromMap, getNvuObjectWithName, getNvuObjectWithName, getNvuObjectWithName, getOdsCacheFromProperty, getOptioanlPropertyAsInt, getOptionalProperty, getOptionalProperty, getOptionalProperty, getOptionalProperty, getOptionalPropertyAsBoolean, getOptionalPropertyAsBoolean, getOptionalPropertyAsBoolean, getOptionalPropertyAsList, makeUpperCaseKeyword, removeAttributeFromNameValueUnitArray, removeAttributeFromNameValueUnitArray, setArguments, setContext, setDescriptor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getContext, getDescriptor, setArguments, setContext, setDescriptor
protected java.util.logging.Logger messenger
protected java.lang.String inFileName
protected java.lang.String inFileAttributeName
protected java.io.File tdmsFile
protected java.lang.String returnInfo
protected java.lang.String timezone
protected ISOEVGParser isoParser
protected java.lang.String binPath
public void init() throws InitializationFailedException
init
in interface ImplementationIF
init
in class AbstractImplementation
InitializationFailedException
- if the initialization fails.public NameValueUnit[][] getValue() throws RuleException
TDMSParserException
RuleException
RuleIF.setValue(NameValueUnit[][] nvu)
public void setValue(NameValueUnit[][] nvu) throws RuleException
nvu
- The name value of the rule.RuleException
public void execute() throws ExecutableException
execute
in interface ExecutableIF
execute
in class AbstractRule
ExecutableException
- in case something is wrong with parsing the file.