Skip to content

Update to the placement, allocation and provisioning API changes - #40

Merged
manoelcampos merged 1 commit into
masterfrom
588-608-api-changes
Oct 25, 2026
Merged

manoelcampos merged 1 commit into
masterfrom
588-608-api-changes

Conversation

@manoelcampos

Copy link
Copy Markdown
Contributor

Updates this project to the CloudSim Plus API changes from cloudsimplus/cloudsimplus#606 (issue cloudsimplus/cloudsimplus#588) and cloudsimplus/cloudsimplus#608.

Changes

  1. Renames from Use placement, allocation, provisioning and utilization consistently (#588) cloudsimplus#606:
    • allocationpolicies → placementpolicies, VmAllocationPolicy* → VmPlacementPolicy*.
    • provisioners → allocators, ResourceProvisioner* → ResourceAllocator*, setRam/BwProvisioner → setRam/BwAllocator.
    • HostAllocation/HostDeallocation listeners → HostPlacement/HostRemoval.
    • Resource methods: getAllocatedResource → getOccupied, getPercentUtilization → getPercentOccupied, and so on.
    • Comments use the new terms (VMs are placed into Hosts; allocators allocate RAM and BW).
  2. Changes from Make the Host interface smaller and lazily create its state history cloudsimplus#608:
    • Host.getTotalMipsCapacity() → Processor.totalMips(host) (static import).
    • Host.getStateHistory() returns a HostStateHistory, so the examples use getEntries().
    • VerticalVmScaling.getOccupiedResource().
  3. Example files renamed: RandomVmPlacementPolicyExample, VmPlacementPolicyRoundRobinExample, DynamicVmPlacementPolicyBestFitExample.

All examples compile. The examples changed by hand run without errors.

Engineering principles

Principle How it applies
Ubiquitous Language The code and comments use the same terms as the framework: placement, allocation, provisioning and utilization.

🤖 Generated with Claude Code

Updates the project to cloudsimplus/cloudsimplus#606 (#588) and cloudsimplus/cloudsimplus#608.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@manoelcampos manoelcampos self-assigned this Oct 25, 2026
@manoelcampos
manoelcampos merged commit 50356fd into master Oct 25, 2026
1 check passed
@manoelcampos
manoelcampos deleted the 588-608-api-changes branch October 25, 2026 17:40
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.

1 participant