public class transmition {
public int RTSNodes;
public int CTSNodes;
private int NumberOfNodes;
public void selectNumOfNodes(){
int i = 0;
int n = i;
for(i=2; i<13;i++){
//even
if(NumberOfNodes==2*n){
RTSNodes = n/2; CTSNodes = n/2;
return;}
else if(NumberOfNodes==(2*n-1)){
RTSNodes= (2*n/2 + 1);
CTSNodes = (n- RTSNodes);
}
return;
}
}
in my project we have 12 nodes and the user will be able to enter the number of nodes, of course each node has a special ID so i want to know how to write the method that can help me to select the nodes that the user enter and to make some of them as sender and the other as reciver. Also, while the transmiting only two nodes will be active and the other will wait while the transmiting finish.

New Topic/Question
Reply




MultiQuote




|