|
GridSim 5.0 beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectAbstractCollection<E>
AbstractList<E>
AbstractSequentialList<E>
LinkedList<Machine>
MachineList
public class 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()
|
|
| Method Summary | |
|---|---|
int |
getByteSize()
Gets the byte size of this class |
Machine |
getMachine(int id)
Gets the Machine object for a particular ID |
Machine |
getMachineInPos(int index)
Gets the machine in a given position in the list. |
Machine |
getMachineWithFreePE()
Gets a Machine with free PE |
Machine |
getMachineWithFreePE(int numPE)
Gets a Machine with a specified number of free PE |
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, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, 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 |
| Methods inherited from interface Deque |
|---|
iterator |
| Constructor Detail |
|---|
public MachineList()
| Method Detail |
|---|
public Machine getMachine(int id)
id - the machine ID
Machinepublic int getNumPE()
public int getNumFreePE()
public int getNumBusyPE()
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 getByteSize()
public Machine getMachineInPos(int index)
index - a position index in the list
|
GridSim 5.0 beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||