001package com.pi4j.system;
002
003/*
004 * #%L
005 * **********************************************************************
006 * ORGANIZATION  :  Pi4J
007 * PROJECT       :  Pi4J :: Java Library (Core)
008 * FILENAME      :  NetworkInterface.java  
009 * 
010 * This file is part of the Pi4J project. More information about 
011 * this project can be found here:  http://www.pi4j.com/
012 * **********************************************************************
013 * %%
014 * Copyright (C) 2012 - 2013 Pi4J
015 * %%
016 * Licensed under the Apache License, Version 2.0 (the "License");
017 * you may not use this file except in compliance with the License.
018 * You may obtain a copy of the License at
019 * 
020 *      http://www.apache.org/licenses/LICENSE-2.0
021 * 
022 * Unless required by applicable law or agreed to in writing, software
023 * distributed under the License is distributed on an "AS IS" BASIS,
024 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
025 * See the License for the specific language governing permissions and
026 * limitations under the License.
027 * #L%
028 */
029
030
031public class NetworkInterface {
032
033    private final String linkEncap;
034    private final String ipAddress;
035    private final String macAddress;
036    private final String broadcastAddress;
037    private final String subnetMask;
038    private final String mtu;
039    private final String metric;
040    
041    public NetworkInterface(String linkEncap,String macAddress,String ipAddress,String broadcastAddress,String subnetMask,String mtu,String metric) {
042        this.linkEncap = linkEncap;
043        this.ipAddress = ipAddress;
044        this.macAddress = macAddress;
045        this.broadcastAddress = broadcastAddress;
046        this.subnetMask = subnetMask;
047        this.mtu = mtu;
048        this.metric = metric;        
049    }
050    
051    public String getLinkEncap() {
052        return linkEncap;
053    }
054 
055    public String getIPAddress() {
056        return ipAddress;
057    }
058
059    public String getMACAddress() {
060        return macAddress;
061    }
062    
063    public String getBroadcastAddress() {
064        return broadcastAddress;
065    }
066    
067    public String getSubnetMask() {
068        return subnetMask;
069    }
070    
071    public String getMTU() {
072        return mtu;
073    }
074    
075    public String getMetric() {
076        return metric;
077    }
078}