org.lucci.madhoc.network.net
Class NetworkingTechnology

java.lang.Object
  extended by org.lucci.madhoc.network.net.NetworkingTechnology
All Implemented Interfaces:
Configurable

public class NetworkingTechnology
extends java.lang.Object
implements Configurable

Author:
luc.hogie

Constructor Summary
NetworkingTechnology()
           
 
Method Summary
 void charge(Station station, int numberOfBytes)
           
 void configure()
           
 java.awt.Color getColor()
           
 double getMaximumBandwith()
           
 double getMaximumCoverageRadius()
           
 int getMaximumNumberOfConnectionsPossible()
           
 double getMinimumCoverageRadius()
           
 java.lang.String getName()
           
 Network getNetwork()
           
 int getPacketSize()
           
 java.util.Map<Station,Cost> getTransferHistory()
           
 boolean isAutomatic()
           
 boolean isCompliantWith(NetworkingTechnology otherType)
           
 boolean isInterferesWith(NetworkingTechnology otherType)
           
 void setColor(java.awt.Color color)
           
 void setCoverageRadiusInterval(double min, double max)
           
 void setMaximumBandwith(double maximumBandwith)
           
 void setMaximumNumberOfConnectionsPossible(int maximumNumberOfConnectionsPossible)
           
 void setName(java.lang.String name)
           
 void setNetwork(Network network)
           
 void setPacketSize(int packetSize)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetworkingTechnology

public NetworkingTechnology()
Method Detail

configure

public void configure()
               throws java.lang.Throwable
Specified by:
configure in interface Configurable
Throws:
java.lang.Throwable

isAutomatic

public boolean isAutomatic()

charge

public void charge(Station station,
                   int numberOfBytes)

isCompliantWith

public boolean isCompliantWith(NetworkingTechnology otherType)

isInterferesWith

public boolean isInterferesWith(NetworkingTechnology otherType)

getMaximumBandwith

public double getMaximumBandwith()
Returns:
Returns the maximumBandwith.

setMaximumBandwith

public void setMaximumBandwith(double maximumBandwith)
Parameters:
maximumBandwith - The maximumBandwith to set.

getPacketSize

public int getPacketSize()

getMaximumNumberOfConnectionsPossible

public int getMaximumNumberOfConnectionsPossible()

setMaximumNumberOfConnectionsPossible

public void setMaximumNumberOfConnectionsPossible(int maximumNumberOfConnectionsPossible)

getNetwork

public Network getNetwork()

setNetwork

public void setNetwork(Network network)

getMaximumCoverageRadius

public double getMaximumCoverageRadius()

getMinimumCoverageRadius

public double getMinimumCoverageRadius()

setCoverageRadiusInterval

public void setCoverageRadiusInterval(double min,
                                      double max)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

setPacketSize

public void setPacketSize(int packetSize)

getColor

public java.awt.Color getColor()

setColor

public void setColor(java.awt.Color color)

getTransferHistory

public java.util.Map<Station,Cost> getTransferHistory()