feat: Implement Zustand stores for machine, simulation, storage unit, vehicle, and visualization management
- Added `useMachineStore` for managing machine statuses, including actions for adding, removing, and updating machines.
- Introduced `useSimulationStore` to handle product and event management with actions for adding, removing, and updating products and events.
- Created `useStorageUnitStore` for managing storage unit statuses, including load tracking and state updates.
- Developed `useVehicleStore` for vehicle management, including load and state updates.
- Implemented `useChartStore` for managing measurement data and visualization settings.
- Added `useDroppedObjectsStore` for handling dropped objects in visualization zones, including object manipulation actions.
- Created `useZone3DWidgetStore` for managing 3D widget data in zones, including position and rotation updates.
- Introduced `useZoneStore` for managing selected zone states and widget configurations.
2025-04-22 14:28:29 +05:30
|
|
|
import React, { useEffect } from 'react';
|
|
|
|
|
import { useEventsStore } from '../../store/simulation/useEventsStore';
|
2025-04-22 14:44:09 +05:30
|
|
|
import { useProductStore } from '../../store/simulation/useProductStore';
|
2025-04-22 17:24:30 +05:30
|
|
|
import Vehicles from './vehicle/vehicles';
|
2025-04-22 19:02:44 +05:30
|
|
|
import Points from './events/points/points';
|
2025-04-23 15:29:51 +05:30
|
|
|
import Conveyor from './conveyor/conveyor';
|
|
|
|
|
import RoboticArm from './roboticArm/roboticArm';
|
2025-04-23 18:13:32 +05:30
|
|
|
import Materials from './materials/materials';
|
|
|
|
|
import Machine from './machine/machine';
|
|
|
|
|
import StorageUnit from './storageUnit/storageUnit';
|
2025-04-23 18:25:49 +05:30
|
|
|
import Simulator from './simulator/simulator';
|
2025-04-15 18:34:43 +05:30
|
|
|
|
2025-03-25 17:34:20 +05:30
|
|
|
function Simulation() {
|
feat: Implement Zustand stores for machine, simulation, storage unit, vehicle, and visualization management
- Added `useMachineStore` for managing machine statuses, including actions for adding, removing, and updating machines.
- Introduced `useSimulationStore` to handle product and event management with actions for adding, removing, and updating products and events.
- Created `useStorageUnitStore` for managing storage unit statuses, including load tracking and state updates.
- Developed `useVehicleStore` for vehicle management, including load and state updates.
- Implemented `useChartStore` for managing measurement data and visualization settings.
- Added `useDroppedObjectsStore` for handling dropped objects in visualization zones, including object manipulation actions.
- Created `useZone3DWidgetStore` for managing 3D widget data in zones, including position and rotation updates.
- Introduced `useZoneStore` for managing selected zone states and widget configurations.
2025-04-22 14:28:29 +05:30
|
|
|
const { events } = useEventsStore();
|
|
|
|
|
const { products } = useProductStore();
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
2025-04-23 18:25:49 +05:30
|
|
|
console.log('events: ', events);
|
feat: Implement Zustand stores for machine, simulation, storage unit, vehicle, and visualization management
- Added `useMachineStore` for managing machine statuses, including actions for adding, removing, and updating machines.
- Introduced `useSimulationStore` to handle product and event management with actions for adding, removing, and updating products and events.
- Created `useStorageUnitStore` for managing storage unit statuses, including load tracking and state updates.
- Developed `useVehicleStore` for vehicle management, including load and state updates.
- Implemented `useChartStore` for managing measurement data and visualization settings.
- Added `useDroppedObjectsStore` for handling dropped objects in visualization zones, including object manipulation actions.
- Created `useZone3DWidgetStore` for managing 3D widget data in zones, including position and rotation updates.
- Introduced `useZoneStore` for managing selected zone states and widget configurations.
2025-04-22 14:28:29 +05:30
|
|
|
}, [events])
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
2025-04-22 19:02:44 +05:30
|
|
|
// console.log('products: ', products);
|
feat: Implement Zustand stores for machine, simulation, storage unit, vehicle, and visualization management
- Added `useMachineStore` for managing machine statuses, including actions for adding, removing, and updating machines.
- Introduced `useSimulationStore` to handle product and event management with actions for adding, removing, and updating products and events.
- Created `useStorageUnitStore` for managing storage unit statuses, including load tracking and state updates.
- Developed `useVehicleStore` for vehicle management, including load and state updates.
- Implemented `useChartStore` for managing measurement data and visualization settings.
- Added `useDroppedObjectsStore` for handling dropped objects in visualization zones, including object manipulation actions.
- Created `useZone3DWidgetStore` for managing 3D widget data in zones, including position and rotation updates.
- Introduced `useZoneStore` for managing selected zone states and widget configurations.
2025-04-22 14:28:29 +05:30
|
|
|
}, [products])
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<>
|
2025-04-22 19:02:44 +05:30
|
|
|
|
|
|
|
|
<Points />
|
|
|
|
|
|
2025-04-23 18:13:32 +05:30
|
|
|
<Materials />
|
|
|
|
|
|
|
|
|
|
<Conveyor />
|
|
|
|
|
|
2025-04-22 17:24:30 +05:30
|
|
|
<Vehicles />
|
2025-04-22 19:02:44 +05:30
|
|
|
|
2025-04-23 15:29:51 +05:30
|
|
|
<RoboticArm />
|
|
|
|
|
|
2025-04-23 18:13:32 +05:30
|
|
|
<Machine />
|
|
|
|
|
|
|
|
|
|
<StorageUnit />
|
2025-04-23 15:29:51 +05:30
|
|
|
|
2025-04-23 18:25:49 +05:30
|
|
|
<Simulator />
|
|
|
|
|
|
feat: Implement Zustand stores for machine, simulation, storage unit, vehicle, and visualization management
- Added `useMachineStore` for managing machine statuses, including actions for adding, removing, and updating machines.
- Introduced `useSimulationStore` to handle product and event management with actions for adding, removing, and updating products and events.
- Created `useStorageUnitStore` for managing storage unit statuses, including load tracking and state updates.
- Developed `useVehicleStore` for vehicle management, including load and state updates.
- Implemented `useChartStore` for managing measurement data and visualization settings.
- Added `useDroppedObjectsStore` for handling dropped objects in visualization zones, including object manipulation actions.
- Created `useZone3DWidgetStore` for managing 3D widget data in zones, including position and rotation updates.
- Introduced `useZoneStore` for managing selected zone states and widget configurations.
2025-04-22 14:28:29 +05:30
|
|
|
</>
|
|
|
|
|
)
|
2025-03-25 17:34:20 +05:30
|
|
|
}
|
|
|
|
|
|
2025-04-21 11:53:42 +05:30
|
|
|
export default Simulation
|