abstract class Shape extends AnyRef
A Shape describes the inlets and outlets of a Graph. In keeping with the philosophy that a Graph is a freely reusable blueprint, everything that matters from the outside are the connections that can be made with it, otherwise it is just a black box.
- Source
- Shape.scala
- Alphabetic
- By Inheritance
- Shape
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Shape()
Abstract Value Members
-
abstract
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.
-
abstract
def
deepCopy(): Shape
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.
-
abstract
def
inlets: Seq[Inlet[_]]
Scala API: get a list of all input ports
-
abstract
def
outlets: Seq[Outlet[_]]
Scala API: get a list of all output ports
Concrete Value Members
-
def
getInlets: List[Inlet[_]]
Java API: get a list of all input ports
-
def
getOutlets: List[Outlet[_]]
Java API: get a list of all output ports
-
def
hasSamePortsAndShapeAs(s: Shape): Boolean
Compare this to another shape and determine whether the arrangement of ports is the same (including their ordering).
-
def
hasSamePortsAs(s: Shape): Boolean
Compare this to another shape and determine whether the set of ports is the same (ignoring their ordering).
-
def
requireSamePortsAndShapeAs(s: Shape): Unit
Asserting version of #hasSamePortsAndShapeAs.
-
def
requireSamePortsAs(s: Shape): Unit
Asserting version of #hasSamePortsAs.