SFA-5.28 Specification for Low Alloy Steel Electrodes and Rods for Gas Shielded Arc Welding
Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the...
Transcript of Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the...
![Page 1: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/1.jpg)
Chapter 5: MACHINATIONS
Hamzah Asyrani Sulaiman
![Page 2: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/2.jpg)
Machinations is more than just a visual language for creating diagrams, however.
Dormans has built an online tool for drawing the diagrams and simulating them
in real time. With it, you can construct and save Machinations diagrams easily, andyou can also study the behavior of your
internal economy.
You can find the tool atwww.jorisdormans.nl/machinations.
![Page 3: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/3.jpg)
The Machinations Framework
![Page 4: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/4.jpg)
![Page 5: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/5.jpg)
Machinations Diagram Basic Elements
![Page 6: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/6.jpg)
Pools and Resources
The most basic node type in a Machinations diagram is the pool. A pool is a location in the diagram where resources gather.
Pools are represented as open circles, while the resources that are stored in a pool are represented as smaller, colored circles that stack on them (Figure 5.2).
![Page 7: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/7.jpg)
Resource Connections
Individual resources can move from node to node through a Machinations diagram along resource connections that are represented as solid arrows connecting the nodesof the diagram (Figure 5.3).
![Page 8: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/8.jpg)
INPUTS, OUTPUTS, SOURCES, AND TARGETS
![Page 9: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/9.jpg)
Activation Modes
• A node can fire automatically, which means it simply fires every iteration. All automatic nodes fire simultaneously.
• A node can be interactive, which means it represents a player action and fires in response to that action. In a digital version of a Machinations diagram, interactive nodes fire after the user clicks them.
• A node can be a starting action, which means that it fires only once, before the first iteration. In the Machinations Tool, starting actions fire immediately after the user clicks the run button.
• A node can be passive, which means it can fire only in response to a trigger generated by another element (we discuss triggers shortly).
![Page 10: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/10.jpg)
Activation Modes
![Page 11: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/11.jpg)
Pulling and Pushing Resources
When a pool fires, it will try to pull resources through any inputs connected to it.
The number of resources it pulls is determined by the rate of the individual input resource connection—the number beside the line. Alternatively, a pool can be set in push mode. In this mode, when the pool fires, it pushes resources along its output connections.
![Page 12: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/12.jpg)
Pulling and Pushing Resources
![Page 13: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/13.jpg)
![Page 14: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/14.jpg)
Time Modes
Games can handle time in different ways. Board games are often turn-based, while in many video games the game is active even if the player doesn’t do anything. Torepresent different types of games, a Machinations diagram can operate in one of three different time modes:
![Page 15: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/15.jpg)
Time Modes
Games can handle time in different ways. Board games are often turn-based, while in many video games the game is active even if the player doesn’t do anything. Torepresent different types of games, a Machinations diagram can operate in one of three different time modes:
![Page 16: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/16.jpg)
Time Modes
Games can handle time in different ways. Board games are often turn-based, while in many video games the game is active even if the player doesn’t do anything. Torepresent different types of games, a Machinations diagram can operate in one of three different time modes:
![Page 17: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/17.jpg)
![Page 18: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/18.jpg)
State ChangesLABEL MODIFIERS
![Page 19: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/19.jpg)
State ChangesNODE MODIFIERS
![Page 20: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/20.jpg)
State ChangesNODE MODIFIERS
![Page 21: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/21.jpg)
State ChangesTRIGGERS
![Page 22: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/22.jpg)
State ChangesACTIVATORS
For example, in the board game Caylus, players place their laborers (a resource) at particular buildings on the board to enable them to execute special actions associated with that building. For example, a player might place a laborer at a gold mine to collect gold (Figure 5.15).
![Page 23: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/23.jpg)
Advanced Node Types
![Page 24: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/24.jpg)
Gates
In contrast to a pool, a gate does not collect resources. Instead, it immediately redistributes them. Gates are represented as diamond shapes that often have multipleoutputs (Figure 5.16).
![Page 25: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/25.jpg)
Gates
In contrast to a pool, a gate does not collect resources. Instead, it immediately redistributes them. Gates are represented as diamond shapes that often have multipleoutputs (Figure 5.16).
![Page 26: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/26.jpg)
![Page 27: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/27.jpg)
Sources
Sources are nodes that create resources. They are represented as a triangle pointing upward (Figure 5.18). Any node in a Machinations diagram can be automatic (thedefault), interactive, or passive, or it can activate once before a diagram starts.
![Page 28: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/28.jpg)
Sources
![Page 29: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/29.jpg)
Drains
Drains are nodes that consume resources; a resource that goes into a drain disappears permanently. The Machinations framework includes a special drain noderepresented as a triangle pointing downward (Figure 5.19).
![Page 30: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/30.jpg)
ConvertersConverters convert one resource into another. They are represented as a triangle pointing to the right with a vertical line through it (Figure 5.20).
Converters are designed to model things like factories that turn raw materials into finished products. A windmill, for example, turns wheat into flour. Converters act exactly as adrain that triggers a source, consuming one resource to produce another.
![Page 31: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/31.jpg)
ConvertersConverters convert one resource into another. They are represented as a triangle pointing to the right with a vertical line through it (Figure 5.20).
Converters are designed to model things like factories that turn raw materials into finished products. A windmill, for example, turns wheat into flour. Converters act exactly as adrain that triggers a source, consuming one resource to produce another.
![Page 32: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/32.jpg)
Traders
Traders are nodes that cause resources to change ownership when fired: Two players could use a trader to exchange resources. Machinations diagrams represent a trader as a vertical line over two triangles that point left and right (Figure 5.22).
![Page 33: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/33.jpg)
End Conditions
Games end when certain conditions are fulfilled. Sometimes they end when a player reaches a certain goal or when time runs out or when all players but oneare eliminated. Machinations diagrams use end conditions to specify end states.
![Page 34: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/34.jpg)
Modeling Pac-Man
![Page 35: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/35.jpg)
Resources
Dots Power Pills Fruits
Lives Ghosts Threat
POints
![Page 36: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/36.jpg)
Dots
![Page 37: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/37.jpg)
The Fruit Mechanism
![Page 38: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/38.jpg)
Ghosts Produce Threat
![Page 39: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/39.jpg)
Capture and loss of life
![Page 40: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/40.jpg)
Power Pills
The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28 adds this mechanism (lightblue) to the diagram and represents the full game. Power pills start as a limited supply.
The player can choose to use them by clicking the Eat Power Pill converter to convert a power pill into power-up time, an abstract resource that is automaticallydrained.
![Page 41: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/41.jpg)
The Complete Diagram
![Page 42: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/42.jpg)
Summary
• In this chapter, we described the Machinations framework in some detail.
• Machinations diagrams consist of nodes that perform functions on resources.
• The most basic type of node is the pool, which stores resources. Nodes are joined to each other by arrows called resource connections, which govern where, when, and how many resources travel from one node to another.
• State connections, shown as a dotted arrow, permit the operation of the mechanics to change the behavior of resource connections and the number of items in a pool and to trigger (or inhibit) events.
![Page 43: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/43.jpg)
Exercises
![Page 44: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/44.jpg)
Exercises
![Page 45: Chapter 5: MACHINATIONS - WordPress.com · The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28](https://reader030.fdocuments.net/reader030/viewer/2022040901/5e70bd782701704c49759cb3/html5/thumbnails/45.jpg)
Exercises