edu.cmu.emulator.world
Class EmuNIC

java.lang.Object
  extended by edu.cmu.emulator.world.EmuNIC

public class EmuNIC
extends Object

Stores information about antennas attached to the node, and the IP addresses associated with them. Emulates a physical wireless NIC attached to the node.


Field Summary
protected  Antenna[] antennas
           
protected  EmuNode emuNode
           
protected  byte[] ip
           
 
Constructor Summary
EmuNIC(EmuNode emuNode, byte[] ip)
           
 
Method Summary
 Antenna getAntenna(int index)
           
 byte[] getIP()
           
 String getIPString()
           
 EmuNode getNode()
           
 int getNumAntennas()
           
 void setAntennas(Antenna[] antennas)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

emuNode

protected EmuNode emuNode

antennas

protected Antenna[] antennas

ip

protected byte[] ip
Constructor Detail

EmuNIC

public EmuNIC(EmuNode emuNode,
              byte[] ip)
Method Detail

getNode

public EmuNode getNode()

getIP

public byte[] getIP()

getIPString

public String getIPString()

setAntennas

public void setAntennas(Antenna[] antennas)

getNumAntennas

public int getNumAntennas()

getAntenna

public Antenna getAntenna(int index)


Copyright © 2013. All Rights Reserved.