Skip to content

Lab3 - #3

Open
vselezneva-git wants to merge 3 commits into
mainfrom
lab3
Open

Lab3#3
vselezneva-git wants to merge 3 commits into
mainfrom
lab3

Conversation

@vselezneva-git

Copy link
Copy Markdown
Owner

No description provided.

@vselezneva-git
vselezneva-git requested a review from danillo19 June 3, 2025 20:50
Comment thread lab3/factory/Worker.java

carStorage.put(car);

System.out.println("Worker created car: +" + car.getId());

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logger

Comment on lines +63 to +79
for (int i = 0; i < config.getInt("BodySuppliers"); i++) {
Supplier<Body> supplier = new Supplier<>(DetailType.BODY, bodyStorage, 1000);
bodySuppliers.add(supplier);
new Thread(supplier).start();
}

for (int i = 0; i < config.getInt("MotorSuppliers"); i++) {
Supplier<Motor> supplier = new Supplier<>(DetailType.MOTOR, motorStorage, 1000);
motorSuppliers.add(supplier);
new Thread(supplier).start();
}

for (int i = 0; i < config.getInt("AccessorySuppliers"); i++) {
Supplier<Accessory> supplier = new Supplier<>(DetailType.ACCESSORY, accessoryStorage, 1000);
accessorySuppliers.add(supplier);
new Thread(supplier).start();
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

в один метод

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants