| Instance {bdpar} | R Documentation |
Abstract super class that handles the management of the Instances
Description
Provides the required methods to successfully handle each
Instance class.
Methods
Public methods
Method new()
Creates a Instance object.
Usage
Instance$new(path)
Arguments
pathA
charactervalue. Path of the file.
Method obtainDate()
Abstract function responsible for obtaining the date of the
Instance.
Usage
Instance$obtainDate()
Method obtainSource()
Abstract function responsible for determining the source of
the Instance.
Usage
Instance$obtainSource()
Method getDate()
Gets the date.
Usage
Instance$getDate()
Returns
Value of date.
Method getSource()
Gets the source.
Usage
Instance$getSource()
Returns
Value of source.
Method getPath()
Gets the path.
Usage
Instance$getPath()
Returns
Value of path.
Method getData()
Gets the data.
Usage
Instance$getData()
Returns
Value of data.
Method getProperties()
Gets the properties
Usage
Instance$getProperties()
Returns
Value of properties.
Method setSource()
Modifies the source value.
Usage
Instance$setSource(source)
Arguments
sourceA
charactervalue. The new value of source.
Method setData()
Modifies the data value.
Usage
Instance$setData(data)
Arguments
dataA
charactervalue. The new value of data.
Method setDate()
Modifies the date value.
Usage
Instance$setDate(date)
Arguments
dateA
charactervalue. The new value of date.
Method setProperties()
Modifies the properties value.
Usage
Instance$setProperties(properties)
Arguments
propertiesA
listvalue. The new list of properties.
Method addProperties()
Adds a property to the list of the properties.
Usage
Instance$addProperties(propertyValue, propertyName)
Arguments
propertyValueA
Objectvalue. The value of the new property.propertyNameA
charactervalue. The name of the new property.
Method getSpecificProperty()
Obtains a specific property.
Usage
Instance$getSpecificProperty(propertyName)
Arguments
propertyNameA
charactervalue. The name of the property to obtain.
Returns
The value of the specific property.
Method isSpecificProperty()
Checks for the existence of an specific property.
Usage
Instance$isSpecificProperty(propertyName)
Arguments
propertyNameA
charactervalue. The name of the property to check.
Returns
A logical results according to the existence of the specific property in the list of properties.
Method setSpecificProperty()
Modifies the value of the one property.
Usage
Instance$setSpecificProperty(propertyName, propertyValue)
Arguments
propertyNameA
charactervalue. The name of the property.propertyValueA
Objectvalue. The new value of the property.
Method getNamesOfProperties()
Gets of the names of all properties.
Usage
Instance$getNamesOfProperties()
Returns
The names of properties.
Method isInstanceValid()
Checks if the Instance is valid.
Usage
Instance$isInstanceValid()
Returns
Value of isValid flag.
Method invalidate()
Forces the invalidation of an specific Instance.
Usage
Instance$invalidate()
Method getFlowPipes()
Gets the list of the flow of GenericPipe.
Usage
Instance$getFlowPipes()
Returns
Names of the GenericPipe used.
Method addFlowPipes()
Gets the list of the flow of GenericPipe.
Usage
Instance$addFlowPipes(namePipe)
Arguments
namePipeA
charactervalue. Name of the newGenericPipeto be added in theGenericPipeline.
Method getBanPipes()
Gets an array with containing all the ban
GenericPipe.
Usage
Instance$getBanPipes()
Returns
Value of ban GenericPipe array.
Method addBanPipes()
Added the name of the Pipe to the array that keeps the track
of GenericPipes having running after restrictions.
Usage
Instance$addBanPipes(namePipe)
Arguments
namePipeA
charactervalue.GenericPipename to be introduced into the ban array.
Method checkCompatibility()
Check compatibility between GenericPipes.
Usage
Instance$checkCompatibility(namePipe, alwaysBefore)
Arguments
namePipeA
charactervalue. The name of theGenericPipename to check the compatibility.alwaysBeforeA
listvalue.GenericPipesthat theInstancehad to go through.
Method toString()
Returns a character representing the instance
Usage
Instance$toString()
Returns
Instance character representation
Method clone()
The objects of this class are cloneable with this method.
Usage
Instance$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
See Also
ExtractorEml, ExtractorSms,
ExtractorYtbid