mtkFeature-class: The 'mtkFeature' class

Description Class Hierarchy Constructor Slots Methods Author(s) Examples

Description

The mtkFeature class is a class used to manage the features associated with a factor.

Class Hierarchy

Parent classes :

mtkValue

Direct Known Subclasses :

Constructor

mtkFeature

signature(name='unknown', type='logical', val=NULL)

make.mtkFeatureList

signature(x=list())

Slots

name:

(character) the name of the feature.

type:

(character) the type of value managed by the feature.

val:

(ANY) the value of the feature in the right type.

Methods

getName

signature( this = "mtkFeature"): Returns the value of the slot "name".

getValue

signature( this = "mtkFeature"): Returns the value of the slot "val".

getType

signature(this = "mtkFeature"): Returns the value of the slot "type".

setName

signature( this = "mtkFeature", name = "character"): Gives a new value to the slot "name".

setType

signature( this = "mtkFeature", type = "character"): Gives a new value to the slot "type".

setValue

signature(this = "mtkFeature", val = "ANY"): Gives a new value to the slot "val".

show

signature( object = "mtkFeature"): Prints a report of the data managed by the underlying object.

print

signature(x = "mtkFeature"): Prints the information managed by the underlying object.

Author(s)

Juhui WANG, MIA-jouy, INRA

Examples

1
2
3
4
5
6
7
8
# Create an object of the 'mtkFeature' class.

f <- mtkFeature(name="x", type="double", val=0.0)

# We usually use the make.mtkFeatureList function to define a list of mtkFeature
# instead of the constructor of the mtkFeature class

	flist <- make.mtkFeatureList(list(min=-1,max=+1,shape="hello"))

mtk documentation built on May 2, 2019, 4:15 a.m.