hp.opencall.mp.switching
Interface TerminationPoint


public interface TerminationPoint


Method Summary
 void connect(TerminationPoint sink)
          connect this TP as source to another TP acting as sink (ie this TP Tx side from other TP Rx side) to establish a full duplex cross connection between A and B you have to do A.connect(B) and B.connect(A) (if both TPs are full duplex)
 void disconnect(TerminationPoint sink)
          disconnect this TP acting as source from other TP acting as sink (ie this TP Tx side from other TP Rx side) to dismantle a full duplex cross connection between A and B you have to do A.disconnect(B) and B.disconnect(A)
 boolean hasRxSide()
          Can this TP act as a sink in a cross connection
 boolean hasTxSide()
          Can this TP act as a source int a cross connection
 boolean isConnectable(TerminationPoint sink)
          may we connect current TP with sink ?
 boolean isFullDuplex()
          Can this TP act as a source and as a sink simultaneously
 

Method Detail

hasRxSide

public boolean hasRxSide()
Can this TP act as a sink in a cross connection


hasTxSide

public boolean hasTxSide()
Can this TP act as a source int a cross connection


isFullDuplex

public boolean isFullDuplex()
Can this TP act as a source and as a sink simultaneously


connect

public void connect(TerminationPoint sink)
             throws hp.opencall.mp.switching.exceptions.SwitchingException
connect this TP as source to another TP acting as sink (ie this TP Tx side from other TP Rx side) to establish a full duplex cross connection between A and B you have to do A.connect(B) and B.connect(A) (if both TPs are full duplex)

Parameters:
sink - the sink TP in the cross connection
Returns:
void
Throws:
hp.opencall.mp.switching.exceptions.InvalidToTPException - when sink param references an invalid TerminationPoint
hp.opencall.mp.switching.exceptions.InvalidFromTPException - when current TP has become invalid
hp.opencall.mp.switching.exceptions.DriverErrorException - when the driver returned an error
hp.opencall.mp.switching.exceptions.SwitchingException - in all other cases

disconnect

public void disconnect(TerminationPoint sink)
                throws hp.opencall.mp.switching.exceptions.SwitchingException
disconnect this TP acting as source from other TP acting as sink (ie this TP Tx side from other TP Rx side) to dismantle a full duplex cross connection between A and B you have to do A.disconnect(B) and B.disconnect(A)

Parameters:
sink - the sink TP in the cross connection
Returns:
void
Throws:
hp.opencall.mp.switching.exceptions.InvalidToTPException - when sink param references an invalid TerminationPoint
hp.opencall.mp.switching.exceptions.InvalidFromTPException - when current TP has become invalid
hp.opencall.mp.switching.exceptions.DriverErrorException - when the driver returned an error
hp.opencall.mp.switching.exceptions.SwitchingException - in all other cases

isConnectable

public boolean isConnectable(TerminationPoint sink)
                      throws hp.opencall.mp.switching.exceptions.SwitchingException
may we connect current TP with sink ?

Parameters:
sink - the sink TP in the cross connection
Returns:
a boolean indicating if a connect may be requested with this sink
Throws:
hp.opencall.mp.switching.exceptions.InvalidToTPException - when sink param references an invalid TerminationPoint
hp.opencall.mp.switching.exceptions.InvalidFromTPException - when current TP has become invalid
hp.opencall.mp.switching.exceptions.SwitchingException - in all other cases