Class SubnetDetail
- java.lang.Object
-
- com.neotropic.kuwaiba.modules.commercial.ipam.engine.SubnetDetail
-
public class SubnetDetail extends Object
Represents an IPv4 or IPv6 subnet it also used to holds the subnet details after subneting calculation with the ipam engine, details like range, number of hosts, etc- Author:
- Adrian Martinez Molina <adrian.martinez@kuwaiba.org>
-
-
Constructor Summary
Constructors Constructor Description SubnetDetail(String cidr)
SubnetDetail(String subnetId, String cidr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<List<String>>
getBinaryMask()
String
getBroadCastIpAddr()
String
getCidr()
String
getIpAddress()
int
getIpAddrV()
String
getMask()
int
getMaskBits()
String
getNetworkIpAddr()
int
getNumberOfHosts()
String
getRange()
String
getSubnetId()
void
setBinaryMask(List<List<String>> binaryMask)
void
setBroadCastIpAddr(String broadCastIpAddr)
void
setCidr(String cidr)
void
setIpAddress(String ipAddress)
void
setIpAddrV(int ipAddrV)
void
setMask(List<String> mask)
void
setMaskBits(int maskBits)
void
setNetworkIpAddr(String networkIpAddr)
void
setNumberOfHosts(int numberOfHosts)
void
setSubnetId(String subnetId)
-
-
-
Method Detail
-
getSubnetId
public String getSubnetId()
-
setSubnetId
public void setSubnetId(String subnetId)
-
getCidr
public String getCidr()
-
setCidr
public void setCidr(String cidr)
-
getIpAddress
public String getIpAddress()
-
setIpAddress
public void setIpAddress(String ipAddress)
-
getMaskBits
public int getMaskBits()
-
setMaskBits
public void setMaskBits(int maskBits)
-
getNumberOfHosts
public int getNumberOfHosts()
-
setNumberOfHosts
public void setNumberOfHosts(int numberOfHosts)
-
getNetworkIpAddr
public String getNetworkIpAddr()
-
setNetworkIpAddr
public void setNetworkIpAddr(String networkIpAddr)
-
getBroadCastIpAddr
public String getBroadCastIpAddr()
-
setBroadCastIpAddr
public void setBroadCastIpAddr(String broadCastIpAddr)
-
getRange
public String getRange()
-
getIpAddrV
public int getIpAddrV()
-
setIpAddrV
public void setIpAddrV(int ipAddrV)
-
getMask
public String getMask()
-
-