class NoneConstraint[N, E[X] <: EdgeLikeIn[X]] extends Constraint[N, E]
The empty constraint treating any addition or subtraction as valid.
- Alphabetic
- By Inheritance
- NoneConstraint
- Constraint
- ConstraintHandlerMethods
- ConstraintMethods
- AnyRef
- Any
- by anyToNode
- by CollectionsHaveToParArray
- by EdgeAssoc
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
&&(that: Constraint[N, E]): ConstraintBinaryOp[N, E]
Creates a new constraint of the type
ConstraintBinaryOp
with pre- and post-check methods each of which returningtrue
if boththis
' andthat
's corresponding pre- and post-checks returntrue
.Creates a new constraint of the type
ConstraintBinaryOp
with pre- and post-check methods each of which returningtrue
if boththis
' andthat
's corresponding pre- and post-checks returntrue
.- Definition Classes
- Constraint
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from NoneConstraint[N, E] to any2stringadd[NoneConstraint[N, E]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (NoneConstraint[N, E], B)
- Implicit
- This member is added by an implicit conversion from NoneConstraint[N, E] to ArrowAssoc[NoneConstraint[N, E]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
allNodes(passedNodes: Traversable[N], passedEdges: Traversable[E[N]]): Set[N]
Consolidates all outer nodes of the arguments by adding the edge ends of
passedEdges
topassedNodes
.Consolidates all outer nodes of the arguments by adding the edge ends of
passedEdges
topassedNodes
.- Attributes
- protected
- Definition Classes
- ConstraintMethods
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
ensuring(cond: (NoneConstraint[N, E]) ⇒ Boolean, msg: ⇒ Any): NoneConstraint[N, E]
- Implicit
- This member is added by an implicit conversion from NoneConstraint[N, E] to Ensuring[NoneConstraint[N, E]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (NoneConstraint[N, E]) ⇒ Boolean): NoneConstraint[N, E]
- Implicit
- This member is added by an implicit conversion from NoneConstraint[N, E] to Ensuring[NoneConstraint[N, E]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): NoneConstraint[N, E]
- Implicit
- This member is added by an implicit conversion from NoneConstraint[N, E] to Ensuring[NoneConstraint[N, E]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): NoneConstraint[N, E]
- Implicit
- This member is added by an implicit conversion from NoneConstraint[N, E] to Ensuring[NoneConstraint[N, E]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from NoneConstraint[N, E] to StringFormat[NoneConstraint[N, E]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
isDefined: Boolean
- Implicit
- This member is added by an implicit conversion from NoneConstraint[N, E] to OuterNode[NoneConstraint[N, E]] performed by method anyToNode in scalax.collection.GraphPredef.
- Definition Classes
- Param
-
final
def
isEdge: Boolean
- Implicit
- This member is added by an implicit conversion from NoneConstraint[N, E] to OuterNode[NoneConstraint[N, E]] performed by method anyToNode in scalax.collection.GraphPredef.
- Definition Classes
- Param
-
def
isIn: Boolean
- Implicit
- This member is added by an implicit conversion from NoneConstraint[N, E] to OuterNode[NoneConstraint[N, E]] performed by method anyToNode in scalax.collection.GraphPredef.
- Definition Classes
- InParam → Param
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isNode: Boolean
- Implicit
- This member is added by an implicit conversion from NoneConstraint[N, E] to OuterNode[NoneConstraint[N, E]] performed by method anyToNode in scalax.collection.GraphPredef.
- Definition Classes
- NodeParam
-
final
def
isOut: Boolean
- Implicit
- This member is added by an implicit conversion from NoneConstraint[N, E] to OuterNode[NoneConstraint[N, E]] performed by method anyToNode in scalax.collection.GraphPredef.
- Definition Classes
- Param
-
val
n1: NoneConstraint[N, E]
- Implicit
- This member is added by an implicit conversion from NoneConstraint[N, E] to EdgeAssoc[NoneConstraint[N, E]] performed by method EdgeAssoc in scalax.collection.GraphPredef.
- Definition Classes
- EdgeAssoc
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
nodesToAdd(passedNodes: Traversable[N], passedEdges: Traversable[E[N]]): Set[N]
- Attributes
- protected
- Definition Classes
- ConstraintMethods
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
onAdditionRefused(refusedNodes: Traversable[N], refusedEdges: Traversable[E[N]], graph: Graph[N, E]): Boolean
This handler is called whenever an addition violates the constraints.
This handler is called whenever an addition violates the constraints. The provided default implementation is empty.
- refusedNodes
the nodes passed to
preAdd
.- refusedEdges
the edges passed to
preAdd
.- returns
must be true if the handler has been overridden but it doesn't throw an exception.
- Definition Classes
- ConstraintHandlerMethods
-
def
onSubtractionRefused(refusedNodes: Traversable[Graph.NodeT], refusedEdges: Traversable[Graph.EdgeT], graph: Graph[N, E]): Boolean
This handler is called whenever a subtraction violates the constraints.
This handler is called whenever a subtraction violates the constraints. The provided default implementation is empty.
- refusedNodes
the nodes passed to
preSubtract
.- refusedEdges
the edges passed to
preSubtract
.- returns
must be true if the handler has been overridden but it doesn't throw an exception.
- Definition Classes
- ConstraintHandlerMethods
-
def
postAdd(newGraph: Graph[N, E], passedNodes: Traversable[N], passedEdges: Traversable[E[N]], preCheck: PreCheckResult): Boolean
This post-check must return whether
newGraph
should be committed or the add operation is to be rolled back.This post-check must return whether
newGraph
should be committed or the add operation is to be rolled back. Useself
to access the associated graph. For immutable graphs,self
maintains the state before the addition but for mutable graphs, it is already mutated to the required state.- newGraph
the after-addition would-be graph waiting for commit.
- passedNodes
nodes passed to the running add operation
- passedEdges
edges passed to the running add operation
- preCheck
The results of the pre-check containing the follow-up activity and possibly any intermediate computation result to be used during the post-check. To add computation results
PreCheckResult
must be extended.
- Definition Classes
- ConstraintMethods
-
def
postSubtract(newGraph: Graph[N, E], passedNodes: Traversable[N], passedEdges: Traversable[E[N]], preCheck: PreCheckResult): Boolean
This post-check must return whether
newGraph
should be committed or the subtraction is to be rolled back.This post-check must return whether
newGraph
should be committed or the subtraction is to be rolled back. Useself
to access the associated graph. For immutable graphs,self
maintains the state before the addition but for mutable graphs, it is already mutated to the required state.- newGraph
the after-subtraction would-be graph waiting for commit.
- preCheck
The results of the pre-check containing the follow-up activity and possibly any intermediate computation result to be used during the post-check. To add computation results
PreCheckResult
must be extended.
- Definition Classes
- ConstraintMethods
-
def
preAdd(edge: E[N]): PreCheckResult
This pre-check must return
Abort
if the addition is to be canceled,PostCheck
ifpostAdd
is to be called to decide orComplete
if the outeredge
is allowed to be added.This pre-check must return
Abort
if the addition is to be canceled,PostCheck
ifpostAdd
is to be called to decide orComplete
if the outeredge
is allowed to be added. IfpostAdd
has been implemented, this method may always returnPostCheck
. This pre-check may be omitted by letting it always returnpostCheck
and overriding the corresponding post-checkcommit*
method. Useself
to access the associated graph.- edge
to be added.
- returns
The results of the pre-check containing the follow-up activity and possibly any intermediate computation result to be used during the post-check. To add computation results
PreCheckResult
must be extended.
- Definition Classes
- NoneConstraint → ConstraintMethods
-
def
preAdd(node: N): PreCheckResult
This pre-check must return
Abort
if the addition is to be canceled,PostCheck
ifpostAdd
is to be called to decide orComplete
if the outernode
is allowed to be added.This pre-check must return
Abort
if the addition is to be canceled,PostCheck
ifpostAdd
is to be called to decide orComplete
if the outernode
is allowed to be added. IfpostAdd
has been implemented, this method may always returnPostCheck
. This pre-check may be omitted by letting it always returnpostCheck
and overriding the corresponding post-checkcommit*
method. Useself
to access the associated graph.- node
to be added
- returns
The results of the pre-check containing the follow-up activity and possibly any intermediate computation result to be used during the post-check. To add computation results
PreCheckResult
must be extended.
- Definition Classes
- NoneConstraint → ConstraintMethods
-
def
preAdd(elems: InParam[N, E]*): PreCheckResult
This pre-check must return
Abort
if the addition of the outer nodes and/or edges inelems
is to be canceled,PostCheck
ifpostAdd
is to be called to decide orComplete
if the the outer nodes and/or edges are allowed to be added.This pre-check must return
Abort
if the addition of the outer nodes and/or edges inelems
is to be canceled,PostCheck
ifpostAdd
is to be called to decide orComplete
if the the outer nodes and/or edges are allowed to be added. IfpostAdd
has been implemented, this method may always returnPostCheck
. The default implementation callspreAdd(node)
/preAdd(edge)
element-wise. As for most cases this won't be satisfactory a domain-specific implementation should be provided. Useself
to access the associated graph.- elems
nodes and/or edges to be added possibly containing duplicates.
- returns
The results of the pre-check containing the follow-up activity and possibly any intermediate computation result to be used during the post-check. To add computation results
PreCheckResult
must be extended.
- Definition Classes
- ConstraintMethods
-
def
preCreate(nodes: Traversable[N], edges: Traversable[E[N]]): PreCheckResult
This pre-check is called on constructing a graph through its companion object.
This pre-check is called on constructing a graph through its companion object. It must return whether the graph is allowed to be populated with
nodes
andedges
. The default implementation callspreAdd
for each node and edge.Note that nodes and edges coming from node/edge input streams are not checked. So when utilizing streams the post check
postAdd
must be served.- nodes
the outer nodes the graph is to be populated with; nodes being edge ends may but need not be contained in
nodes
.- edges
the outer edges the graph is to be populated with.
- returns
The results of the pre-check containing the follow-up activity and possibly any intermediate computation result to be used during the post-check. To add computation results
PreCheckResult
must be extended.
- Definition Classes
- ConstraintMethods
-
def
preSubtract(edge: Graph.EdgeT, forced: Boolean): PreCheckResult
This pre-check must return
Abort
if the subtraction ofedge
is to be canceled,PostCheck
ifpostSubtract
is to be called to decide orComplete
if the theedge
is allowed to be subtracted.This pre-check must return
Abort
if the subtraction ofedge
is to be canceled,PostCheck
ifpostSubtract
is to be called to decide orComplete
if the theedge
is allowed to be subtracted. This pre-check may be omitted by letting it always returnpostCheck
and overriding the corresponding post-checkcommit*
method. Useself
to access the associated graph.- edge
the inner edge to be subtracted.
- returns
The results of the pre-check containing the follow-up activity and possibly any intermediate computation result to be used during the post-check. To add computation results
PreCheckResult
must be extended.
- Definition Classes
- NoneConstraint → ConstraintMethods
-
def
preSubtract(node: Graph.NodeT, forced: Boolean): PreCheckResult
This pre-check must return
Abort
if the subtraction ofnode
is to be canceled,PostCheck
ifpostSubtract
is to be called to decide orComplete
if the thenode
is allowed to be subtracted.This pre-check must return
Abort
if the subtraction ofnode
is to be canceled,PostCheck
ifpostSubtract
is to be called to decide orComplete
if the thenode
is allowed to be subtracted. This pre-check may be omitted by letting it always returnpostCheck
and overriding the corresponding post-checkcommit*
method. Useself
to access the associated graph.- node
the inner to be subtracted.
- forced
true
for standard (ripple by-
),false
for gentle (by-?
) removal.- returns
The results of the pre-check containing the follow-up activity and possibly any intermediate computation result to be used during the post-check. To add computation results
PreCheckResult
must be extended.
- Definition Classes
- NoneConstraint → ConstraintMethods
-
def
preSubtract(nodes: ⇒ Set[Graph.NodeT], edges: ⇒ Set[Graph.EdgeT], simple: Boolean): PreCheckResult
This pre-check must return
Abort
if the subtraction ofnodes
and/oredges
is to be canceled,PostCheck
ifpostSubtract
is to be called to decide orComplete
ifnodes
and/oredges
are allowed to be subtracted.This pre-check must return
Abort
if the subtraction ofnodes
and/oredges
is to be canceled,PostCheck
ifpostSubtract
is to be called to decide orComplete
ifnodes
and/oredges
are allowed to be subtracted. It is typically triggered by the--
operation. The default implementation element-wise callspreSubtract(node, simple)
orpreSubtract(edge, simple)
, respectively. As for most cases this won't be satisfactory a domain-specific implementation should be provided. Useself
to access the associated graph.- nodes
the inner nodes to be subtracted not necessarily including the ends of edges to be subtracted. Call allNodes to get the complete set of nodes to be subtracted.
- edges
the inner edges to be subtracted.
- simple
true
for standard (edge-only by-
),false
for ripple (by-!
) removal.- returns
The results of the pre-check containing the follow-up activity and possibly any intermediate computation result to be used during the post-check. To add computation results
PreCheckResult
must be extended.
- Definition Classes
- ConstraintMethods
-
val
self: Graph[N, E]
When extending
Constraint
,self
will denote the attached constrained graph.When extending
Constraint
,self
will denote the attached constrained graph. The factory methods of the companion objectscalax.collection.constrained.Graph
initializeself
to the correct graph instance. When extendingConstrained
,self
will denotethis
graph.- Definition Classes
- NoneConstraint → Constraint → ConstraintMethods
-
def
stringPrefix: String
- Implicit
- This member is added by an implicit conversion from NoneConstraint[N, E] to OuterNode[NoneConstraint[N, E]] performed by method anyToNode in scalax.collection.GraphPredef.
- Definition Classes
- NodeParam
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toParArray: ParArray[T]
- Implicit
- This member is added by an implicit conversion from NoneConstraint[N, E] to CollectionsHaveToParArray[NoneConstraint[N, E], T] performed by method CollectionsHaveToParArray in scala.collection.parallel. This conversion will take place only if an implicit value of type (NoneConstraint[N, E]) ⇒ GenTraversableOnce[T] is in scope.
- Definition Classes
- CollectionsHaveToParArray
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
val
value: NoneConstraint[N, E]
- Implicit
- This member is added by an implicit conversion from NoneConstraint[N, E] to OuterNode[NoneConstraint[N, E]] performed by method anyToNode in scalax.collection.GraphPredef.
- Definition Classes
- OuterNode → NodeParam
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
||(that: Constraint[N, E]): ConstraintBinaryOp[N, E]
Creates a new constraint of the type
ConstraintBinaryOp
with pre- and post-check methods each of which returningtrue
if eitherthis
' orother
's corresponding pre- and post-checks returnstrue
.Creates a new constraint of the type
ConstraintBinaryOp
with pre- and post-check methods each of which returningtrue
if eitherthis
' orother
's corresponding pre- and post-checks returnstrue
.- Definition Classes
- Constraint
-
def
~[N >: N1](n2: N): UnDiEdge[N]
- Implicit
- This member is added by an implicit conversion from NoneConstraint[N, E] to EdgeAssoc[NoneConstraint[N, E]] performed by method EdgeAssoc in scalax.collection.GraphPredef.
- Definition Classes
- EdgeAssoc
- Annotations
- @inline()
-
def
~>[N >: N1](n2: N): DiEdge[N]
- Implicit
- This member is added by an implicit conversion from NoneConstraint[N, E] to EdgeAssoc[NoneConstraint[N, E]] performed by method EdgeAssoc in scalax.collection.GraphPredef.
- Definition Classes
- EdgeAssoc
- Annotations
- @inline()
-
def
→[B](y: B): (NoneConstraint[N, E], B)
- Implicit
- This member is added by an implicit conversion from NoneConstraint[N, E] to ArrowAssoc[NoneConstraint[N, E]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
Shadowed Implicit Value Members
-
def
toString(): String
- Implicit
- This member is added by an implicit conversion from NoneConstraint[N, E] to OuterNode[NoneConstraint[N, E]] performed by method anyToNode in scalax.collection.GraphPredef.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(noneConstraint: OuterNode[NoneConstraint[N, E]]).toString()
- Definition Classes
- NodeParam → AnyRef → Any