TrailEdgeParameter
- class compas_cem.optimization.TrailEdgeParameter(key=None, bound_low=None, bound_up=None)[source]
Bases:
compas_cem.optimization.parameters.edge.EdgeParameter
Sets the length of a trail edge as an optimization parameter.
Methods
bound_low
(topology)bound_up
(topology)copy
([cls])Make an independent copy of the data object.
datatype
()Get the data type of this COMPAS object.
from_data
(data)Creates a serializable object from structured data.
from_json
(filepath)Construct a serializable object from structured data contained in a json file.
from_jsonstring
(string)Construct an object from serialized data contained in a JSON string.
key
()object_cls_from_dtype
(dtype)start_value
(topology)to_data
()Returns a dictionary of structured data representing a serializable object.
to_json
(filepath[, pretty])Serialize this object to a structured json.
to_jsonstring
([pretty])Serialize the data representation of an object to a JSON string.
Validate the data of this object against its data schema (self.DATASCHEMA).
Validate the data loaded from a JSON representation of the data of this object against its data schema (self.DATASCHEMA).