NTT DOCOMO and Hitachi Kokusai Electric Know-how & Confidential

com.docomo_um.module.net
クラス ModemController

java.lang.Object
  上位を拡張 com.docomo_um.module.net.ModemController
直系の既知のサブクラス:
PacketController, VoiceController

public abstract class ModemController
extends java.lang.Object

音声またはパケットの通信制御を表す抽象クラスです。


フィールドの概要
static int CS_VOICE
          CS(回線交換)の機能の一つとして、音声発信を表します。
static int OTHER_CALL_WAITING
          その他の機能の一つとして、キャッチホンサービスを表します。
static int OTHER_CBS
          その他の機能の一つとして、緊急地震速報(CBS)を表します。
static int OTHER_ETWS
          その他の機能の一つとして、緊急地震速報(ETWS)を表します。
static int OTHER_SMS
          その他の機能の一つとして、SMSを表します。
static int OTHER_USSD
          その他の機能の一つとして、USSDを表します。
static int PS_IP
          PS(パケット交換)の機能の一つとして、PDPタイプのIPを表します。
static int PS_PPP
          PS(パケット交換)の機能の一つとして、PDPタイプのPPPを表します。
static int TYPE_CS
          通信制御の一つとして、CS(回線交換)を表します。
static int TYPE_OTHER
          通信制御の一つとして、その他を表します。
static int TYPE_PS
          通信制御の一つとして、PS(パケット交換)を表します。
 
メソッドの概要
abstract  Session createSession(java.lang.String destination)
          音声通話またはパケット通信の接続を表すインスタンスを生成します。
abstract  Session getConnectedSession()
          現在接続中のSessionを取得します。
static int[] getSupportedFunction(int type)
          通信制御がサポートする機能を取得します。
abstract  void setModemControllerListener(ModemControllerListener listener)
          リスナを登録します。
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
 

フィールドの詳細

TYPE_CS

public static final int TYPE_CS
通信制御の一つとして、CS(回線交換)を表します。

関連項目:
定数フィールド値

TYPE_PS

public static final int TYPE_PS
通信制御の一つとして、PS(パケット交換)を表します。

関連項目:
定数フィールド値

TYPE_OTHER

public static final int TYPE_OTHER
通信制御の一つとして、その他を表します。

関連項目:
定数フィールド値

CS_VOICE

public static final int CS_VOICE
CS(回線交換)の機能の一つとして、音声発信を表します。

関連項目:
TYPE_CS, 定数フィールド値

PS_PPP

public static final int PS_PPP
PS(パケット交換)の機能の一つとして、PDPタイプのPPPを表します。

関連項目:
TYPE_PS, 定数フィールド値

PS_IP

public static final int PS_IP
PS(パケット交換)の機能の一つとして、PDPタイプのIPを表します。

関連項目:
TYPE_PS, 定数フィールド値

OTHER_CBS

public static final int OTHER_CBS
その他の機能の一つとして、緊急地震速報(CBS)を表します。

関連項目:
TYPE_OTHER, 定数フィールド値

OTHER_ETWS

public static final int OTHER_ETWS
その他の機能の一つとして、緊急地震速報(ETWS)を表します。

関連項目:
TYPE_OTHER, 定数フィールド値

OTHER_SMS

public static final int OTHER_SMS
その他の機能の一つとして、SMSを表します。

関連項目:
TYPE_OTHER, 定数フィールド値

OTHER_USSD

public static final int OTHER_USSD
その他の機能の一つとして、USSDを表します。

関連項目:
TYPE_OTHER, 定数フィールド値

OTHER_CALL_WAITING

public static final int OTHER_CALL_WAITING
その他の機能の一つとして、キャッチホンサービスを表します。

関連項目:
定数フィールド値
メソッドの詳細

getSupportedFunction

public static int[] getSupportedFunction(int type)
通信制御がサポートする機能を取得します。

指定した種別において、サポートする機能の一覧を返します。サポートする機能がない場合には null を返します。

パラメータ:
type - 通信制御の種別(TYPE_CSTYPE_PSTYPE_OTHER)を指定します。
戻り値:
サポートする機能の一覧を返します。
例外:
java.lang.IllegalArgumentException - 通信制御種別として定義していない値を指定した場合に発生します。

createSession

public abstract Session createSession(java.lang.String destination)
                               throws SessionException
音声通話またはパケット通信の接続を表すインスタンスを生成します。

パラメータ:
destination - 接続先を指定します。
例外:
java.lang.NullPointerException - destinationにnullが指定された場合に発生します。
java.lang.IllegalArgumentException - destinationが不正な場合に発生します。
SessionException - destinationが電話発信対象外の番号の場合に発生します。

setModemControllerListener

public abstract void setModemControllerListener(ModemControllerListener listener)
リスナを登録します。

パラメータ:
listener - 登録するリスナを指定します。

getConnectedSession

public abstract Session getConnectedSession()
現在接続中のSessionを取得します。

戻り値:
現在接続中のSessionを返します。接続中のSessionが無い場合はnullを返します。

Copyright © 2013 NTT DOCOMO, INC. and Hitachi Kokusai Electric Inc. All Rights Reserved.