casymda
Advanced tools
+1
-1
| Metadata-Version: 2.1 | ||
| Name: casymda | ||
| Version: 0.2.22 | ||
| Version: 0.2.23 | ||
| Summary: A simple DES modeling and simulation environment based on simpy, camunda modeler, and tkinter / pixi.js; | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/fladdimir/casymda |
+0
-0
@@ -0,0 +0,0 @@ [egg_info] |
+1
-1
@@ -5,3 +5,3 @@ """setuptools setup""" | ||
| VERSION = "0.2.22" | ||
| VERSION = "0.2.23" | ||
@@ -8,0 +8,0 @@ try: |
| Metadata-Version: 2.1 | ||
| Name: casymda | ||
| Version: 0.2.22 | ||
| Version: 0.2.23 | ||
| Summary: A simple DES modeling and simulation environment based on simpy, camunda modeler, and tkinter / pixi.js; | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/fladdimir/casymda |
@@ -1,1 +0,1 @@ | ||
| __version__ = "0.2.22" | ||
| __version__ = "0.2.23" |
@@ -0,0 +0,0 @@ """convenience import for easier access""" |
@@ -0,0 +0,0 @@ """convenience import""" |
@@ -31,4 +31,2 @@ """ block """ | ||
| """on_enter""" | ||
| entity.time_of_last_arrival = self.env.now | ||
| self.overall_count_in += 1 | ||
| for method in self.do_on_enter_list: | ||
@@ -47,3 +45,10 @@ method(entity, None, self) | ||
| """main entry point for entities coming from predecessors""" | ||
| entity.time_of_last_arrival = self.env.now | ||
| self.on_enter(entity) | ||
| self.overall_count_in += 1 | ||
| yield self.env.process(self._process_entity(entity)) | ||
| def _process_entity(self, entity: Entity): | ||
| """internal entry point for start of entity processing without calling on_enter or setting entity.time_of_last_arrival. | ||
| useful e.g. for wip init""" | ||
| self.entities.append(entity) | ||
@@ -50,0 +55,0 @@ self.on_block_change() |
@@ -0,0 +0,0 @@ """ state management for blocks |
@@ -0,0 +0,0 @@ """ visualizable block """ |
@@ -0,0 +0,0 @@ """interface for base block visualizer""" |
@@ -0,0 +0,0 @@ """ process """ |
@@ -0,0 +0,0 @@ """ entity """ |
@@ -0,0 +0,0 @@ """named resource""" |
@@ -13,3 +13,8 @@ """resource release""" | ||
| def __init__( | ||
| self, env, name, xy=None, ways=None, resource: Resource = None, | ||
| self, | ||
| env, | ||
| name, | ||
| xy=None, | ||
| ways=None, | ||
| resource: Resource = None, | ||
| ): | ||
@@ -16,0 +21,0 @@ super().__init__(env, name, xy=xy, ways=ways) |
@@ -0,0 +0,0 @@ """seize resource""" |
@@ -0,0 +0,0 @@ """gateway""" |
@@ -0,0 +0,0 @@ """seize process release""" |
@@ -14,3 +14,5 @@ """sink""" | ||
| entity.time_of_last_arrival = self.env.now | ||
| self.on_enter(entity) | ||
| self.overall_count_in += 1 | ||
| self.entities.append(entity) | ||
@@ -17,0 +19,0 @@ self.block_resource.release(entity.block_resource_request) |
@@ -0,0 +0,0 @@ """source""" |
@@ -0,0 +0,0 @@ """Manages info about shortest paths between certain locations from a given csv tilemap""" |
@@ -0,0 +0,0 @@ from typing import Tuple |
@@ -0,0 +0,0 @@ """ |
@@ -0,0 +0,0 @@ """calculates and caches information on shortest paths between locations on a tilemap""" |
@@ -0,0 +0,0 @@ """wait for interrupt""" |
@@ -0,0 +0,0 @@ """bpmn parser""" |
@@ -48,4 +48,4 @@ from ctypes import c_bool | ||
| ): | ||
| """ factor can be obtained via 'get_factor_instance' classmethod. | ||
| also works when factor is """ | ||
| """factor can be obtained via 'get_factor_instance' classmethod. | ||
| also works when factor is""" | ||
| self.factor: SyncedFloat = factor | ||
@@ -52,0 +52,0 @@ self.should_run: Value = should_run |
@@ -0,0 +0,0 @@ """canvas""" |
@@ -0,0 +0,0 @@ """canvas based on tkinter""" |
@@ -0,0 +0,0 @@ """json-serializable flat dictionary canvas""" |
@@ -0,0 +0,0 @@ """ visualizes entities on a canvas """ |
@@ -15,6 +15,5 @@ """process visualizer""" | ||
| class ProcessVisualizer(EntityVisualizer, BlockVisualizer): | ||
| """ visualizes block processes at a given canvas. | ||
| extends EntityVisualizer by BlockVisualizer animation behavior """ | ||
| """visualizes block processes at a given canvas. | ||
| extends EntityVisualizer by BlockVisualizer animation behavior""" | ||
| def __init__( | ||
@@ -167,3 +166,8 @@ self, | ||
| content_list = self.canvas.create_text( | ||
| x_coord, y_coord, font="Helvetica 10", fill="black", anchor="nw", text="", | ||
| x_coord, | ||
| y_coord, | ||
| font="Helvetica 10", | ||
| fill="black", | ||
| anchor="nw", | ||
| text="", | ||
| ) | ||
@@ -170,0 +174,0 @@ |
@@ -0,0 +0,0 @@ """the location of this module corresponds to |
@@ -0,0 +0,0 @@ from casymda.blocks.entity import Entity |
@@ -0,0 +0,0 @@ """ |
@@ -0,0 +0,0 @@ console.log("animation_client.js loaded"); |
@@ -0,0 +0,0 @@ <!DOCTYPE html> |
@@ -0,0 +0,0 @@ """provides control endpoints and serves visual state of a simulation model""" |
@@ -0,0 +0,0 @@ console.log("pixijs_canvas_animation.js loaded") |
@@ -45,3 +45,7 @@ """runs simulation model in its own process""" | ||
| target=self.simulation.simulate, | ||
| args=(self.shared_state, self.should_run, self.factor,), | ||
| args=( | ||
| self.shared_state, | ||
| self.should_run, | ||
| self.factor, | ||
| ), | ||
| ) | ||
@@ -48,0 +52,0 @@ |
Sorry, the diff of this file is not supported yet
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
106650
3.16%1904
1.06%