|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--AbstractCollection | +--AbstractList | +--AbstractSequentialList | +--LinkedList | +--gridsim.MachineList
GridSim MachineList simulates a collection of machines. It is up to the GridSim users to define the connectivity among the machines in a collection. Therefore, this class can be instantiated to model a simple LAN to cluster to WAN.
Field Summary |
Fields inherited from class AbstractList |
modCount |
Constructor Summary | |
MachineList()
Allocates a new MachineList object |
Method Summary | |
int |
ByteSize()
Deprecated. As of GridSim 2.1, replaced by getByteSize() |
int |
getByteSize()
Gets the byte size of this class |
Machine |
getMachine(int id)
Gets the Machine object for a particular ID |
Machine |
GetMachine(int id)
Deprecated. As of GridSim 2.1, replaced by getMachine(int) |
Machine |
getMachineWithFreePE()
Gets a Machine with free PE |
Machine |
GetMachineWithFreePE()
Deprecated. As of GridSim 2.1, replaced by getMachineWithFreePE() |
int |
GetNoOfPEs()
Deprecated. As of GridSim 2.1, replaced by getNumPE() |
int |
getNumPE()
Gets the total number of PEs for all Machines |
Methods inherited from class LinkedList |
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, remove, remove, removeFirst, removeLast, set, size, toArray, toArray |
Methods inherited from class AbstractSequentialList |
iterator |
Methods inherited from class AbstractList |
equals, hashCode, listIterator, removeRange, subList |
Methods inherited from class AbstractCollection |
containsAll, isEmpty, removeAll, retainAll, toString |
Methods inherited from class Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface List |
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList |
Constructor Detail |
public MachineList()
Method Detail |
public Machine GetMachine(int id)
getMachine(int)
id
- the machine ID
Machine
public Machine getMachine(int id)
id
- the machine ID
Machine
public int GetNoOfPEs()
getNumPE()
public int getNumPE()
public Machine GetMachineWithFreePE()
getMachineWithFreePE()
public Machine getMachineWithFreePE()
public int ByteSize()
getByteSize()
public int getByteSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |