37 #ifndef DOXYGEN_SHOULD_SKIP_THIS 53 }
catch (
const Exception&) {
return true; }
69 }
catch (
const Exception&) {
return true; }
74 const ArcAddition& change) {}
78 const ArcDeletion& change) {}
82 const ArcReversal& change) {}
86 const GraphChange& change) {}
90 const GraphChange& change)
const {
91 switch (change.type()) {
96 }
catch (
const Exception&) {
return false; }
104 }
catch (
const Exception&) {
return false; }
108 "edge modifications are not " 109 "supported by SliceOrder constraints");
115 const ArcAddition& change)
const {
121 const ArcDeletion& change)
const {
127 const ArcReversal& change)
const {
133 const GraphChange& change)
const {
134 switch (change.type()) {
146 "edge modifications are not " 147 "supported by StructuralConstraintSliceOrder");
153 const NodeProperty< NodeId >& order) {
171 INLINE
const NodeProperty< NodeId >&
177 # define GUM_CONSTRAINT_CLASS_NAME StructuralConstraintSliceOrder 179 # 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
gum is the global namespace for all aGrUM entities
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)