com.sentilla.platform.cmote
Class SenderDriver

java.lang.Object
  extended by com.sentilla.system.DriverAdapter
      extended by com.sentilla.net.SenderDriver
          extended by com.sentilla.platform.cmote.SenderDriver
All Implemented Interfaces:
Driver

public class SenderDriver
extends SenderDriver

Driver class to creating a platform independent Sender object.

See Also:
Sender

Field Summary
 
Fields inherited from class com.sentilla.system.DriverAdapter
m_nextDriver
 
Constructor Summary
SenderDriver()
           
 
Method Summary
 String getDriverName(int n)
          Returns the valid name(s) for each driver.
 Sender newSender(Addressable addr, String name)
          Returns a sender for protocol "name" and address "addr".
 
Methods inherited from class com.sentilla.net.SenderDriver
create, create, create
 
Methods inherited from class com.sentilla.system.DriverAdapter
getNextDriver, setNextDriver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SenderDriver

public SenderDriver()
Method Detail

newSender

public Sender newSender(Addressable addr,
                        String name)
Returns a sender for protocol "name" and address "addr".

Specified by:
newSender in class SenderDriver
Parameters:
addr - address to send messages to
name - name of protocol to use
Returns:
new sender for protocol "name"
Throws:
ProtocolNotFoundException - if the protocol specified is not found (or supported) on this platform
UnsupportedAddressException - if the address type is not supported by protocol "name"
See Also:
Sender, Addressable, ProtocolNotFoundException, UnsupportedAddressException

getDriverName

public String getDriverName(int n)
Description copied from class: DriverAdapter
Returns the valid name(s) for each driver. If a driver has N-names, then getDriverName returns a string for n=0 to n=N-1, and returns null for all other values of n.

A driver may return multiple names because it provides the default implementation for a specific name, such as associating "flash" by default to the external flash, or "extflash" if an application specifically asserts it requires the external flash resources. Some drivers may return only a single valid name, such as "intflash" for the internal flash.

Specified by:
getDriverName in interface Driver
Specified by:
getDriverName in class DriverAdapter


Copyright © 2007 Sentilla Corporation. All Rights Reserved.