![help anylogic tutorial stopdelay help anylogic tutorial stopdelay](https://anylogistix.help/tutorial/images/customers-on-map.png)
In the next post we'll discuss the advanced features of the library. We have covered all of the blocks of Fluid Library. They act like a fuel source, so their Exit block is connected to Enter blocks at Main, which forwards fuel from tanker to Tank with the respective fuel type. The same feature is used for the simulation of arriving tankers. In the model, the On dispense completed action disconnects the dispenser Exit, and the car leaves the station. There are also blocks for routing, merging, and diverging the flow. The library includes blocks such as Tank, Pipeline, Valve, FluidSource, and FluidDispose. Both opening and closing events are scheduled, so the modeler can perform actions here. The Fluid Library allows you to model storage and transfer of fluids, bulk matter, or large amounts of discrete items, which you do not want to model as separate objects. The Valve block dispenses a certain amount of fuel and then closes itself. This feature is used in the model when an incoming car connects its Enter block with the Exit block of the dispenser and opens the valve. A modeler can switch the Enter block at model run, allowing it to disconnect an Exit block from one Enter and connect it to another Enter (or remain nonconnected). The Exit block forwards the flow to a specified Enter block (like a connector). The embedded Split4 block ensures that each dispenser get its portion of fuel, splitting the flow among four pipelines equally. Each dispenser has an Exit for fuel type respectively, and shares one tank per fuel type. It has three Enter blocks and twelve embedded Exit blocks. ALLCONNECTED the message will be delivered to all connected agents. mode specifies the message sending mode, one of the following: ALL the message will be delivered to all agents in the environment. So, the main fluid flowchart represents the gas station. Sends a message to an agent or a group of agents, as specified by the mode parameter. We have three different fluid flowcharts and two process flowcharts that manage fluid flowcharts from an action code. Sometimes the gasoline tanker arrives to refill the tanks.
![help anylogic tutorial stopdelay help anylogic tutorial stopdelay](https://i.stack.imgur.com/xGyJe.png)
The gas station serves cars, which have three fuel types. The gas station example model illustrates this concept. These charts showcased metrics like backlog, orders processed by value ($) and volume, aging buckets, team utilization, cost of operations, etc.The Fluid Library allows advanced routing with Enter and Exit blocks, similar to the Process Modeling Library. This view was used to display the impact of an AI engine on the process without shooting too many numbers at the viewer. Then we surrounded the high-level process view images with panes containing charts to provide an excellent visual interface. Then, we created motion paths to let the orders move over the images of sub-processes to give them a progressive motion feel. We then saved these slides as images to be used in the model. We created slides of as-is and to-be scenarios, each containing only the essential sub-processes. We again used this logic to hide and unhide in creating a high-level overview of the overall process. E.g., When the model starts, one will see the toggle button image in the off state, but when you click on the image, the off-state image is set to invisible, and the on-state image will become visible and vice versa. We used programming to hide and unhide the images.
![help anylogic tutorial stopdelay help anylogic tutorial stopdelay](https://i1.rgstatic.net/publication/315865062_AnyLogic-Based_Discrete_Event_Simulation_Model_of_Railway_Junction/links/59dcc9ca0f7e9b146004b51e/largepreview.png)
Instead, we used images of the two states of a toggle button, i.e., on and off.
![help anylogic tutorial stopdelay help anylogic tutorial stopdelay](https://i.stack.imgur.com/wj7EK.png)
While creating the switch, we didn’t use a button control as it looked very basic. At this juncture, the work we did to make the switch to toggle between as-is and to-be scenarios and view areas, that I learned in the AnyLogic in 3 days book, was to become the base of our presentation layer. We took a step back and decided to create a separate presentation layer over what we had built.