com.alarexgroup.m2mplf.adapters.io
Class Port

java.lang.Object
  extended by com.alarexgroup.m2mplf.adapters.io.Port
public class Port
extends java.lang.Object

Object Port for port management.Ports can be created from module's GPIO.
Ports are created with the help of methods PortAdapter.createInputPort(int[], boolean) and PortAdapter.createOutputPort(int[])

Method Summary
 int getDirection()
          Returns the type of the port - input or output
 java.lang.String getId()
          Returns the port identification
 boolean isPooling()
          Whether the port is included in monitoring state (POOLING)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDirection

public int getDirection()
Returns the type of the port - input or output

Returns:
OUTPUT or INPUT

isPooling

public boolean isPooling()
Whether the port is included in monitoring state (POOLING)

Returns:
true/false

getId

public java.lang.String getId()
Returns the port identification

Returns:
id