Python LMF library
 All Classes Namespaces Files Functions Variables
material.py
Go to the documentation of this file.
1 #! /usr/bin/env python
2 
3 """! @package resources
4 """
5 
6 from resource import Resource
7 
8 class Material(Resource):
9  """! Material is a Resource subclass. Material is an abstract class representing an audiovisual resource: an audio recording, a picture or a video. The Material class allows subclasses.
10  """
11  def __init__(self):
12  """! @brief As Material is an abstract class, constructor raises an error.
13  """
14  raise NotImplementedError
15 
16  def __del__(self):
17  """! @brief As Material is an abstract class, desctructor raises an error.
18  """
19  raise NotImplementedError
20 
21  def __new__(self):
22  """! @brief Private initialization called from Material subclasses.
23  Material subinstances are owned by FormRepresentation.
24  """
25  self.mediaType = None
26  self.fileName = None
27  self.author = None
def __new__
Private initialization called from Material subclasses.
Definition: material.py:21
Material is a Resource subclass.
Definition: material.py:8
def __del__
As Material is an abstract class, desctructor raises an error.
Definition: material.py:16
def __init__
As Material is an abstract class, constructor raises an error.
Definition: material.py:11