File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ def myProgram(using context: ExchangeCalculus & ExchangeLanguage): Int =
122122
123123### Distance Gradient
124124
125- A classic aggregate programming example—computing distance from a source:
125+ A classic aggregate programming example—computing hop count distance from a source:
126126
127127``` scala
128128import it .unibo .scafi .libraries .All .*
@@ -142,7 +142,7 @@ Control information flow with domain branching:
142142``` scala
143143import it .unibo .scafi .libraries .All .*
144144
145- def conditionalBehavior (using context : ExchangeCalculus & ExchangeLanguage { type DeviceId = Int }): String =
145+ def conditionalBehavior (gradient : Double )( using context : ExchangeCalculus & ExchangeLanguage { type DeviceId = Int }): String =
146146 val distanceFromSource = gradient
147147
148148 // Split the network into two independent computational domains
You can’t perform that action at this time.
0 commit comments