SG++-Doxygen-Documentation
Loading...
Searching...
No Matches
python.data.DataSpecification.DataSpecification Class Reference

The class encapsulates the description of the data set, like names of dimensions and source file. More...

Inheritance diagram for python.data.DataSpecification.DataSpecification:

Public Member Functions

 __init__ (self)
 Constructor.
 
 addAttribute (self, attributeName, attributeValue)
 Adds an attribute to the attribute collection.
 
 cleanAttributes (self)
 Deletes all data from attributes collection.
 
 createNumericAttributes (self, dim)
 Fills data specification with a number of numeric attributes with names x0, x1, x2...

 
 generateFilename (self)
 Generates a new random file name.
 
 getAttributes (self)
 Returns the collection of attributes stored in the specification.
 
 getFilename (self)
 Returns the file name.
 
 isSaved (self)
 Checks if the data set was already saved as a file.
 
 setFilename (self, filename)
 Sets the file name.
 
 setSaved (self)
 Marks the data set as saved.
 
 toString (self)
 Returns a string that represents the object.
 

Static Public Attributes

 attributes = None
 Dictionary of attributes.
 
 filename = None
 The file name.
 

Detailed Description

The class encapsulates the description of the data set, like names of dimensions and source file.

Constructor & Destructor Documentation

◆ __init__()

Member Function Documentation

◆ addAttribute()

python.data.DataSpecification.DataSpecification.addAttribute (   self,
  attributeName,
  attributeValue 
)

Adds an attribute to the attribute collection.

Parameters
attributeNameattribute name
attributeValueattribute value

References json::DictNode.attributes, and python.data.DataSpecification.DataSpecification.attributes.

Referenced by python.data.DataSpecification.DataSpecification.createNumericAttributes().

◆ cleanAttributes()

python.data.DataSpecification.DataSpecification.cleanAttributes (   self)

◆ createNumericAttributes()

python.data.DataSpecification.DataSpecification.createNumericAttributes (   self,
  dim 
)

Fills data specification with a number of numeric attributes with names x0, x1, x2...

Parameters
dimthe number of attributes

References json::Node.addAttribute(), json::DictNode.addAttribute(), python.data.DataSpecification.DataSpecification.addAttribute(), and python.data.DataSpecification.DataSpecification.cleanAttributes().

◆ generateFilename()

python.data.DataSpecification.DataSpecification.generateFilename (   self)

Generates a new random file name.

Returns
: new random file name

Referenced by python.data.DataSpecification.DataSpecification.getFilename().

◆ getAttributes()

python.data.DataSpecification.DataSpecification.getAttributes (   self)

Returns the collection of attributes stored in the specification.

Returns
: collection of attributes

References json::DictNode.attributes, and python.data.DataSpecification.DataSpecification.attributes.

Referenced by python.data.DataSpecification.DataSpecification.toString().

◆ getFilename()

◆ isSaved()

python.data.DataSpecification.DataSpecification.isSaved (   self)

Checks if the data set was already saved as a file.

Returns
: True, if data set was saved, otherwise: False

References python.data.DataSpecification.DataSpecification.__isSaved.

◆ setFilename()

◆ setSaved()

python.data.DataSpecification.DataSpecification.setSaved (   self)

Marks the data set as saved.

References python.data.DataSpecification.DataSpecification.__isSaved.

◆ toString()

Member Data Documentation

◆ attributes

◆ filename


The documentation for this class was generated from the following file: