net.clackrouter.component.simplerouter
Class InterfaceOut

java.lang.Object
  extended by net.clackrouter.component.base.ClackComponent
      extended by net.clackrouter.component.base.Interface
          extended by net.clackrouter.component.simplerouter.InterfaceOut
All Implemented Interfaces:
Alarm

public class InterfaceOut
extends Interface

Represents an output Interface, a ToDevice(ethX) component, in a ClackRouter


Nested Class Summary
 
Nested classes/interfaces inherited from class net.clackrouter.component.base.ClackComponent
ClackComponent.Waiter
 
Field Summary
protected static int NUM_PORTS
           
static int PORT_FROM_EXTERNAL
           
 
Fields inherited from class net.clackrouter.component.base.Interface
device_name, ETH_BCAST_ADDR, IP_ADDRESS, IP_NETMASK, m_eth_addr, m_ip_addr, m_ip_subnet
 
Fields inherited from class net.clackrouter.component.base.ClackComponent
componentCell, m_has_error, m_log, m_name, m_num_ports, m_packetcount_in, m_packetcount_out, m_ports, mListeners, mRouter, pendingError, SIGNAL_ERROR_LEN_MSEC, UNIQUE_COUNT, view
 
Constructor Summary
InterfaceOut(java.lang.String name, Router router, TopologyModel.Interface entry)
           
InterfaceOut(java.lang.String name, Router router, VNSHWInfo.InterfaceEntry entry)
           
 
Method Summary
 javax.swing.JPanel getPropertiesView()
          Method for getting the properties view associated with this component Property views are used to display more detailed information about internal component state.
 void poll()
          When polled, this component takes any packet received and hands it off to the router to be sent within the network.
protected  void setupPorts(int numports)
          Allocates an array of ClackPort objects to be used by this component
 
Methods inherited from class net.clackrouter.component.base.Interface
getColor, getDeviceName, getIPAddress, getIPSubnet, getMACAddress, getMACAddressString, getSerializableProperties, getTypeName, initializeProperties, setIPAddress, setIPSubnet
 
Methods inherited from class net.clackrouter.component.base.ClackComponent
acceptPacket, createCopy, createInputPullPort, createInputPushPort, createOutputPullPort, createOutputPushPort, error, fireListeners, getComponentCell, getHierarchicalView, getLog, getName, getNumPorts, getPacketCountIn, getPacketCountOut, getPendingError, getPort, getRouter, getTime, getUniqueCount, getView, handlePullRequest, hasError, isHierarchical, isModifying, log, notifyAlarm, registerListener, sendOutPort, setAlarm, setComponentCell, setName, setPendingError, setView, showErrorDialog, signalError, try_repaint, unregisterListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PORT_FROM_EXTERNAL

public static int PORT_FROM_EXTERNAL

NUM_PORTS

protected static int NUM_PORTS
Constructor Detail

InterfaceOut

public InterfaceOut(java.lang.String name,
                    Router router,
                    VNSHWInfo.InterfaceEntry entry)

InterfaceOut

public InterfaceOut(java.lang.String name,
                    Router router,
                    TopologyModel.Interface entry)
Method Detail

setupPorts

protected void setupPorts(int numports)
Description copied from class: ClackComponent
Allocates an array of ClackPort objects to be used by this component

Overrides:
setupPorts in class ClackComponent
Parameters:
numports - the number of ports to create

getPropertiesView

public javax.swing.JPanel getPropertiesView()
Description copied from class: ClackComponent
Method for getting the properties view associated with this component Property views are used to display more detailed information about internal component state. This method creates a default property view, and can be overriden to provide custom properties views

Overrides:
getPropertiesView in class ClackComponent
Returns:
this component's property view

poll

public void poll()
When polled, this component takes any packet received and hands it off to the router to be sent within the network.

Overrides:
poll in class ClackComponent