relentless.model.Area#
- class relentless.model.Area#
Two-dimensional region of space.
An Area can be any 2d region of space; typically, it is a simulation “box.” Any deriving class must implement the volume method that computes the scalar area of the region. Additionally, methods to serialize and deserialize a Area must be specified so that the object can be saved to disk.
Methods
from_json(data)Deserialize from a dictionary.
to_json()Serialize as a dictionary.
Attributes
Extent of the region.
- abstract classmethod from_json(data)#
Deserialize from a dictionary.
- Returns:
The object reconstructed from the
data.- Return type: