public interface Topology
Modifier and Type | Method and Description |
---|---|
void |
addNeighbour(int neighindex1,
int neighindex2)
Specifies that module neighindex2 is a neighbour of module neighindex1,
but not the other way around.
|
boolean |
areNeighbours(int neighindex1,
int neighindex2)
Method determining whether one module in neighbour of another in the
defined Topology
|
int[] |
getNeighbourIndices(int index) |
int |
getNumberInstances() |
int |
getNumberNeighbours(int index) |
boolean |
hasNeighbours(int index) |
void |
removeNeighbour(int neighindex1,
int neighindex2) |
int getNumberInstances()
void addNeighbour(int neighindex1, int neighindex2)
neighindex1
- indicates the index of the first moduleneighindex2
- indicates the index of the second modulevoid removeNeighbour(int neighindex1, int neighindex2)
neighindex1
- indicates the index of the first moduleneighindex2
- indicates the index of the second moduleboolean areNeighbours(int neighindex1, int neighindex2)
neighindex1
- Index of first module (starting in 0)neighindex2
- Index of second module (starting in 0)boolean hasNeighbours(int index)
index
- A module indexint getNumberNeighbours(int index)
index
- A module indexint[] getNeighbourIndices(int index)
Copyright © 2005–2020. All rights reserved.