40 #ifndef DOXYGEN_SHOULD_SKIP_THIS 56 }
catch (
const Exception&) {
return true; }
72 }
catch (
const Exception&) {
return true; }
77 const ArcAddition& change) {}
81 const ArcDeletion& change) {}
85 const ArcReversal& change) {}
89 const GraphChange& change) {}
93 const GraphChange& change)
const {
94 switch (change.type()) {
99 }
catch (
const Exception&) {
return false; }
107 }
catch (
const Exception&) {
return false; }
111 "edge modifications are not " 112 "supported by SliceOrder constraints");
118 const ArcAddition& change)
const {
124 const ArcDeletion& change)
const {
130 const ArcReversal& change)
const {
136 const GraphChange& change)
const {
137 switch (change.type()) {
149 "edge modifications are not " 150 "supported by StructuralConstraintSliceOrder");
156 const NodeProperty< NodeId >& order) {
174 INLINE
const NodeProperty< NodeId >&
180 # define GUM_CONSTRAINT_CLASS_NAME StructuralConstraintSliceOrder 182 # undef GUM_CONSTRAINT_CLASS_NAME bool checkArcAdditionAlone(NodeId x, NodeId y) const
checks whether the constraints enable to add arc (x,y)
bool checkArcReversalAlone(NodeId x, NodeId y) const
checks whether the constraints enable to reverse arc (x,y)
bool checkArcDeletionAlone(NodeId x, NodeId y) const
checks whether the constraints enable to remove arc (x,y)
void setGraphAlone(const DiGraph &graph)
sets a new graph from which we will perform checkings
void setDefaultSlice(NodeId slice)
assign a given slice to all the nodes specified in the partial order
NodeProperty< NodeId > _SliceOrder__order
slices to which belong the nodes
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
bool checkModificationAlone(const ArcAddition &change) const
checks whether the constraints enable to add an arc
void setSliceOrder(const NodeProperty< NodeId > &slice)
sets the time slices of all the nodes in the property
const NodeProperty< NodeId > & sliceOrder() const
returns the current slice order
bool isAlwaysInvalidAlone(const GraphChange &change) const
indicates whether a change will always violate the constraint
void modifyGraphAlone(const ArcAddition &change)
notify the constraint of a modification of the graph
Size NodeId
Type for node ids.
void addNode(NodeId node, NodeId slice)
adds a new node in the slice order
#define GUM_ERROR(type, msg)