List<Move> moveList = new ArrayList<Move>();
for (ListIterator<CloudProcess> leftIt = cloudProcessList.listIterator(); leftIt.hasNext();) {
CloudProcess leftCloudProcess = leftIt.next();
for (ListIterator<CloudProcess> rightIt = cloudProcessList.listIterator(leftIt.nextIndex()); rightIt.hasNext();) {
CloudProcess rightCloudProcess = rightIt.next();
moveList.add(new CloudProcessSwapMove(leftCloudProcess, rightCloudProcess));
}
}
return moveList;
}