Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.48 KB

File metadata and controls

33 lines (24 loc) · 1.48 KB

ConnectedConstraint

A compound constraint that logically connects two individual constraints via a ConnectionType (AND, OR). For example, a node may require 'skill A AND resource from zone 3', or 'either resource Jack OR resource Jane'.

Properties

Name Type Description Notes
constraint_one Constraint
constraint_two Constraint
connection_type str The logical operator connecting constraintOne and constraintTwo. Defines whether both must be satisfied (AND) or at least one (OR).
type_name str The typeName of the object [default to 'ConnectedConstraint']

Example

from touroptimizer_py_client.models.connected_constraint import ConnectedConstraint

# TODO update the JSON string below
json = "{}"
# create an instance of ConnectedConstraint from a JSON string
connected_constraint_instance = ConnectedConstraint.from_json(json)
# print the JSON string representation of the object
print(ConnectedConstraint.to_json())

# convert the object into a dict
connected_constraint_dict = connected_constraint_instance.to_dict()
# create an instance of ConnectedConstraint from a dict
connected_constraint_from_dict = ConnectedConstraint.from_dict(connected_constraint_dict)

[Back to Model list] [Back to API list] [Back to README]