Skip to content

Commit 56b1a9a

Browse files
committed
add notes about plan -> actor change and a few other late changes
1 parent 09f2f0b commit 56b1a9a

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

honeydew/examples/client_server.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ type db_info = Struct[{db_name => String, db_host => String}]
66
77
class three_tier_application($db_name) {
88
9-
plan db_server_plan(String db_name, String host) {
9+
actor db_server_actor(String db_name, String host) {
1010
output Db_info db_info
1111
action produce_information {
1212
new Db_info {
@@ -26,14 +26,14 @@ class three_tier_application($db_name) {
2626
}
2727
2828
define db($db_name, $db_schema) {
29-
# run the plan
30-
three_tier_application::db_server_plan { $title:
29+
# run the actor
30+
three_tier_application::db_server_actor { $title:
3131
db_name => $db_name:
3232
schema => $db_schema
3333
}
3434
}
3535
36-
plan db_client {
36+
actor db_client {
3737
input Db_info db_info
3838
}
3939
}
@@ -81,7 +81,7 @@ Notify[b] -> Notify[c]
8181
~~~
8282
Can be expressed as the honeydew program:
8383
~~~
84-
plan catalog inherits resource_catalog {
84+
actor catalog inherits resource_catalog {
8585
resources {
8686
notify { 'a': }
8787
notify { 'a2':}
@@ -100,7 +100,7 @@ plan catalog inherits resource_catalog {
100100
}
101101
}
102102
103-
plan standard_resource {
103+
actor standard_resource {
104104
queue Resource desired_state
105105
output Resource actual_state
106106
output ResourceDiff resource_diff
@@ -124,12 +124,12 @@ plan standard_resource {
124124
125125
}
126126
127-
plan notify::a inherits standard_resource {
127+
actor notify::a inherits standard_resource {
128128
the_resource = new Notify { title => 'a' }
129129
queue desired { entries => the_resource}
130130
}
131131
// resource a2 is the same
132-
plan notify::b inherits standard_resource {
132+
actor notify::b inherits standard_resource {
133133
134134
action apply {
135135
!! <- notify::a.applied
@@ -139,7 +139,7 @@ plan notify::b inherits standard_resource {
139139
140140
=====
141141
142-
plan top_resource {
142+
actor top_resource {
143143
Resource r
144144
Provider p
145145
@@ -149,12 +149,12 @@ plan top_resource {
149149
}
150150
}
151151
152-
plan notify_a {
152+
actor notify_a {
153153
r = Resource.new { type => Notify, title = 'a'}
154154
p = provider(r)
155155
156156
157-
plan resource_catalog {
157+
actor resource_catalog {
158158
input Resource ready
159159
input Provider ready_to_run
160160

honeydew/honeydew-explore.md

+3
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ manifests, the terminology from Petri net theory has been changed as follows:
5757
| transition | Action |
5858
| - | Process |
5959

60+
The term `Plan` was later changed to `Actor` - this document has not been updated with that change
61+
in terminology. Also changed in later examples is a more puppet like syntax where all variables use a $prefix.
62+
6063
The two main concepts are `Plan` and `Process`. A `Plan` corresponds to an executable computer
6164
program, and a `Process` corresponds to an instance of an executing `Plan`.
6265

0 commit comments

Comments
 (0)