libretto-examples
libretto-examples
libretto.examples
CoffeeMachine
ShotCount
Size
Flavor
Beverage
CoffeeMachine
DiningPhilosophers
Forks
Philosopher
Echo
Fibonacci
HelloWorld
PingPong
PingPongN
PoolingMicroscopes
Microscopes
Name
BorrowedMicroscope
Supermarket
money
baskets
goods
supermarket
libretto.examples.coffeemachine
CoffeeMachine
CoffeeMachineClient
CoffeeMachineProvider
Protocol
ShotCount
Size
Flavor
Beverage
libretto-examples
/
libretto.examples.coffeemachine
/
Protocol
Protocol
object
Protocol
Graph
Supertypes
class
Object
trait
Matchable
class
Any
Type members
Type members
Classlikes
case
class
Beverage
(description:
String
)
enum
Flavor
enum
ShotCount
enum
Size
Types
type
CoffeeMachine
=
Rec
[[CoffeeMachine] =>>
EspressoMenu
|*|
CoffeeMachine
|&|
LatteMenu
|*|
CoffeeMachine
|&|
Done
]
type
EspressoMenu
=
ShotCountChoice
|*|
Val
[
Beverage
]
type
FlavorChoice
=
Neg
[
Option
[
Flavor
]]
type
LatteMenu
=
LatteOptions
|*|
Val
[
Beverage
]
type
LatteOptions
=
SizeChoice
|*|
ShotCountChoice
|*|
FlavorChoice
type
LatteParams
= (
Size
,
ShotCount
,
Option
[
Flavor
])
type
ShotCountChoice
=
Neg
[
ShotCount
]
type
SizeChoice
=
Neg
[
Size
]