Rbs (Lab1)

Class Rbs

java.lang.Object
  |
  +--Rbs
All Implemented Interfaces:
Enumeration

public class Rbs
extends Object
implements Enumeration

Radio Base Station

Version:
1.0 (2002)
Author:
CPwJ

Constructor Summary
Rbs()
          Rbs Constructor
Rbs(String id)
           
Rbs(String id, Cell servicecell)
           
 
Method Summary
 void addNeighbor(Rbs neighbor)
          Regiters all neighboring Rbs
 Cell getCell()
          Get the Cell assigned to this Rbs
 String getID()
          Read the Rbs Identification String
 boolean hasMoreElements()
          Check if there are more neighbor Rbs element in the enumerated list
 Object nextElement()
          Get the next neighbor Rbs element in the enumerated list
 void resetElements()
          Reset the pointer of neighbor Rbs element enumeration
 void setCell(Cell servicecell)
          Change the Rbs Cell assignment
 void setID(String id)
          Change the Rbs Identification string
 String toString()
          Represent the Rbs content information
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Rbs

public Rbs()
Rbs Constructor


Rbs

public Rbs(String id)

Rbs

public Rbs(String id,
           Cell servicecell)
Method Detail

addNeighbor

public void addNeighbor(Rbs neighbor)
Regiters all neighboring Rbs


getCell

public Cell getCell()
Get the Cell assigned to this Rbs

Returns:
The Cell served by this Rbs

getID

public String getID()
Read the Rbs Identification String

Returns:
String ID, Rbs Identification

hasMoreElements

public boolean hasMoreElements()
Check if there are more neighbor Rbs element in the enumerated list

Specified by:
hasMoreElements in interface Enumeration
Returns:
True if the RBS has been registered as neighbor

nextElement

public Object nextElement()
Get the next neighbor Rbs element in the enumerated list

Specified by:
nextElement in interface Enumeration
Returns:
Rbs reference of the next registered neighbor

resetElements

public void resetElements()
Reset the pointer of neighbor Rbs element enumeration


setCell

public void setCell(Cell servicecell)
Change the Rbs Cell assignment

Parameters:
servicecell - The Cell assigned to the Rbs

setID

public void setID(String id)
Change the Rbs Identification string


toString

public String toString()
Represent the Rbs content information

Overrides:
toString in class Object
Returns:
String RBS Information


Generated by BlueJ