|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectsimulation.ModelData
| Field Summary | |
private static java.util.LinkedList |
C2CList
|
private static java.util.LinkedList |
ComponentList
|
private static java.util.LinkedList |
H2HLinkList
|
private static java.util.LinkedList |
HostList
|
| Constructor Summary | |
ModelData()
|
|
| Method Summary | |
static void |
cleanModel()
|
static java.util.LinkedList |
getC2CList()
|
static java.util.LinkedList |
getComponentList()
|
static java.util.LinkedList |
getH2HLinkList()
|
static java.util.LinkedList |
getHostList()
|
static boolean |
linkBetweenHosts(int host1_id,
int host2_id)
This is an expensive (n^2!) algorithm for determining wether or not there are components on the given hosts that communicate with each other. |
static int |
searchC2CLink(int componentId1,
int componentId2)
One of two functions that checks to see if a components are linked. |
static int |
searchC2CLink1(int componentId1)
One of two functions that checks to see if a components are linked. |
static ComponentFigure |
searchComponentList(int componentId)
Returns the component from the ComponentList with the given component ID number. |
static int |
searchH2HLink(int HostId1,
int HostId2)
This method checks to see if there is a link between two hosts. |
static HostFigure |
searchHostList(int hostId)
This function returns the HostFigure with the given host ID. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static java.util.LinkedList HostList
private static java.util.LinkedList H2HLinkList
private static java.util.LinkedList ComponentList
private static java.util.LinkedList C2CList
| Constructor Detail |
public ModelData()
| Method Detail |
public static HostFigure searchHostList(int hostId)
hostId - The ID of the host you want to find.
public static int searchH2HLink(int HostId1,
int HostId2)
HostId1 - The ID of the first Host.HostId2 - The ID of the second Host.
public static ComponentFigure searchComponentList(int componentId)
componentId - The ID of the component that you want.
public static int searchC2CLink1(int componentId1)
componentId1 -
public static int searchC2CLink(int componentId1,
int componentId2)
componentId1 - componentId2 -
public static boolean linkBetweenHosts(int host1_id,
int host2_id)
host1_id - The ID of the first host.host2_id - The ID of the seccond host.
public static java.util.LinkedList getHostList()
public static java.util.LinkedList getH2HLinkList()
public static java.util.LinkedList getComponentList()
public static java.util.LinkedList getC2CList()
public static void cleanModel()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||