|
GridSim v3.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractCollection
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() |
Machine |
getMachineWithFreePE(int numPE)
Gets a Machine with a specified number of free PE |
int |
GetNoOfPEs()
Deprecated. As of GridSim 2.1, replaced by getNumPE() |
int |
getNumBusyPE()
Gets the total number of BUSY PEs for all Machines |
int |
getNumFreePE()
Gets the total number of FREE or non-busy PEs for all Machines |
int |
getNumPE()
Gets the total number of PEs for all Machines |
boolean |
setStatusPE(boolean status,
int machineID,
int peID)
Sets the particular PE status on a Machine |
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 int getNumFreePE()
public int getNumBusyPE()
public Machine GetMachineWithFreePE()
getMachineWithFreePE()
public Machine getMachineWithFreePE()
public Machine getMachineWithFreePE(int numPE)
numPE
- number of free PE
public boolean setStatusPE(boolean status, int machineID, int peID)
status
- PE status, either PE.FREE or PE.BUSYmachineID
- Machine IDpeID
- PE id
public int ByteSize()
getByteSize()
public int getByteSize()
|
GridSim v3.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |