conf_reader
Module for observable reader abstract class
- class MDMC.readers.configurations.conf_reader.ConfigurationReader(file_name)[source]
Abstract class (as it does not implement
Reader.parse
) that defines properties common to all readers for configurationsA
ConfigurationReader
is created usingConfigurationReaderFactory
- abstract property atoms
All subclasses must implement atoms, which returns a list of
Atom
objects from the data read from the file
- abstract property extension
staticmethod(function) -> method
Convert a function to be a static method.
A static method does not receive an implicit first argument. To declare a static method, use this idiom:
- class C:
@staticmethod def f(arg1, arg2, …):
…
It can be called either on the class (e.g. C.f()) or on an instance (e.g. C().f()). Both the class and the instance are ignored, and neither is passed implicitly as the first argument to the method.
Static methods in Python are similar to those found in Java or C++. For a more advanced concept, see the classmethod builtin.