case class ChanMap(map: Map[Chan, PiObject] = Map()) extends Product with Serializable
An instantion map of channels (Chan) to PiObject.
They are used for substitution (especially in continuations) and to instantiate patterns.
A ChanMap is a wrapper around a regular, immutable map.
- Alphabetic
- By Inheritance
- ChanMap
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(c: Chan, v: PiObject): ChanMap
Adds an insantiation to the mapping.
Adds an insantiation to the mapping.
- c
Channel to instantiate.
- v
Value to use in the instantiation.
- returns
The updated ChanMap.
-
def
++(l: Seq[(Chan, PiObject)]): ChanMap
Add a sequence of channel instantiations.
-
def
++(m: Map[Chan, PiObject]): ChanMap
Add a map of channel instantations.
-
def
++(m: ChanMap): ChanMap
Append another ChanMap.
-
def
-(c: Chan): ChanMap
Removes a channel instanation from the mapping.
Removes a channel instanation from the mapping.
- c
The channel whose instantiation to remove.
- returns
The updated ChanMap.
-
def
--(l: Chan*): ChanMap
Removes the instantiations of a list of channels from the mapping.
Removes the instantiations of a list of channels from the mapping.
- l
The list of channels whose instantiations to remove.
- returns
The updated ChanMap.
- def ->[B](y: B): (ChanMap, B)
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def ensuring(cond: (ChanMap) ⇒ Boolean, msg: ⇒ Any): ChanMap
- def ensuring(cond: (ChanMap) ⇒ Boolean): ChanMap
- def ensuring(cond: Boolean, msg: ⇒ Any): ChanMap
- def ensuring(cond: Boolean): ChanMap
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val map: Map[Chan, PiObject]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
obtain(c: Chan): PiObject
Returns the PiObject at the end of a chain of channel mappings.
-
def
resolve(c: Chan): Chan
Follows a chain of channel instantiations to produce the final channel.
Follows a chain of channel instantiations to produce the final channel.
Sometimes chains of channel-to-channel mappings occur through pi-calculus communication.
e.g. X --> Y and Y --> Z
In that case,
resolve(Chan("X"))
returns the last channelZ
in the chain.It ignores any non-channel PiObject that may come after that.
- c
The channel to be used as a starting point.
- returns
The last channel in the chain, or
c
if no chain is found.
-
def
sub(o: PiObject): PiObject
Applies the channel mapping as a substitution on a PiObject.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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
- @throws( ... ) @native()
- def →[B](y: B): (ChanMap, B)
Shadowed Implicit Value Members
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from ChanMap to any2stringadd[ChanMap] performed by method any2stringadd in scala.Predef.
- 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:(chanMap: any2stringadd[ChanMap]).+(other)
- Definition Classes
- any2stringadd