case class AmorphousShape(inlets: Seq[Inlet[_]], outlets: Seq[Outlet[_]]) extends Shape with Product with Serializable
This type of Shape can express any number of inputs and outputs at the expense of forgetting about their specific types. It is used mainly in the implementation of the Graph builders and typically replaced by a more meaningful type of Shape when the building is finished.
- Source
- Shape.scala
- Alphabetic
- By Inheritance
- AmorphousShape
- Serializable
- Serializable
- Product
- Equals
- Shape
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Value Members
-
def
copyFromPorts(inlets: Seq[Inlet[_]], outlets: Seq[Outlet[_]]): Shape
Create a copy of this Shape object, returning the same type as the original but containing the ports given within the passed-in Shape.
Create a copy of this Shape object, returning the same type as the original but containing the ports given within the passed-in Shape.
- Definition Classes
- AmorphousShape → Shape
-
def
deepCopy(): AmorphousShape
Create a copy of this Shape object, returning the same type as the original; this constraint can unfortunately not be expressed in the type system.
Create a copy of this Shape object, returning the same type as the original; this constraint can unfortunately not be expressed in the type system.
- Definition Classes
- AmorphousShape → Shape
-
def
getInlets: List[Inlet[_]]
Java API: get a list of all input ports
Java API: get a list of all input ports
- Definition Classes
- Shape
-
def
getOutlets: List[Outlet[_]]
Java API: get a list of all output ports
Java API: get a list of all output ports
- Definition Classes
- Shape
-
def
hasSamePortsAndShapeAs(s: Shape): Boolean
Compare this to another shape and determine whether the arrangement of ports is the same (including their ordering).
Compare this to another shape and determine whether the arrangement of ports is the same (including their ordering).
- Definition Classes
- Shape
-
def
hasSamePortsAs(s: Shape): Boolean
Compare this to another shape and determine whether the set of ports is the same (ignoring their ordering).
Compare this to another shape and determine whether the set of ports is the same (ignoring their ordering).
- Definition Classes
- Shape
-
val
inlets: Seq[Inlet[_]]
- Definition Classes
- AmorphousShape → Shape
-
val
outlets: Seq[Outlet[_]]
- Definition Classes
- AmorphousShape → Shape
-
def
requireSamePortsAndShapeAs(s: Shape): Unit
Asserting version of #hasSamePortsAndShapeAs.
Asserting version of #hasSamePortsAndShapeAs.
- Definition Classes
- Shape
-
def
requireSamePortsAs(s: Shape): Unit
Asserting version of #hasSamePortsAs.
Asserting version of #hasSamePortsAs.
- Definition Classes
- Shape