org.lucci.madhoc.network.net
Class NetworkingTechnology
java.lang.Object
org.lucci.madhoc.network.net.NetworkingTechnology
- All Implemented Interfaces:
- Configurable
public class NetworkingTechnology
- extends java.lang.Object
- implements Configurable
- Author:
- luc.hogie
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NetworkingTechnology
public NetworkingTechnology()
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()