Package com.io7m.waxmill.machines
Class WXMVirtualMachineSets
java.lang.Object
com.io7m.waxmill.machines.WXMVirtualMachineSets
public final class WXMVirtualMachineSets
extends java.lang.Object
Functions over sets of virtual machines.
-
Method Summary
Modifier and Type Method Description static WXMVirtualMachineSetmerge(WXMMachineMessages messages, java.util.Collection<WXMVirtualMachineSet> machineSets)Create a set consisting of the union of all of the given sets.static WXMVirtualMachineSetone(WXMVirtualMachine machine)Create a set consisting of a single machine.
-
Method Details
-
one
Create a set consisting of a single machine.- Parameters:
machine- The machine- Returns:
- A single-machine set
-
merge
public static WXMVirtualMachineSet merge(WXMMachineMessages messages, java.util.Collection<WXMVirtualMachineSet> machineSets) throws WXMExceptionCreate a set consisting of the union of all of the given sets.- Parameters:
messages- The machine messagesmachineSets- The sets of machines- Returns:
- A set consisting of all of the machines in all sets
- Throws:
WXMException- If two machines have the same ID
-