jp.go.nict.langrid.servicecontainer.executor.axis
クラス AxisSimilarityCalculationServiceExecutor

java.lang.Object
  上位を拡張 jp.go.nict.langrid.servicecontainer.service.component.AbstractServiceExecutor
      上位を拡張 jp.go.nict.langrid.servicecontainer.executor.axis.AbstractAxisServiceExecutor
          上位を拡張 jp.go.nict.langrid.servicecontainer.executor.axis.AxisSimilarityCalculationServiceExecutor
すべての実装されたインタフェース:
SimilarityCalculationService

public class AxisSimilarityCalculationServiceExecutor
extends AbstractAxisServiceExecutor
implements SimilarityCalculationService

SOAP 用 外部翻訳サービス呼び出しクラス


コンストラクタの概要
AxisSimilarityCalculationServiceExecutor(String invocationName, long iid, Endpoint endpoint)
           
 
メソッドの概要
 double calculate(String language, String text1, String text2)
          テキストの類似度計算を行います。
 
クラス jp.go.nict.langrid.servicecontainer.executor.axis.AbstractAxisServiceExecutor から継承されたメソッド
convert, postprocessSoap, preprocessSoap
 
クラス jp.go.nict.langrid.servicecontainer.service.component.AbstractServiceExecutor から継承されたメソッド
getInvocationName, postprocess, preprocess
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

AxisSimilarityCalculationServiceExecutor

public AxisSimilarityCalculationServiceExecutor(String invocationName,
                                                long iid,
                                                Endpoint endpoint)
メソッドの詳細

calculate

public double calculate(String language,
                        String text1,
                        String text2)
                 throws AccessLimitExceededException,
                        InvalidParameterException,
                        LanguageNotUniquelyDecidedException,
                        NoAccessPermissionException,
                        NoValidEndpointsException,
                        ProcessFailedException,
                        ServerBusyException,
                        ServiceNotActiveException,
                        ServiceNotFoundException,
                        UnsupportedLanguageException
インタフェース SimilarityCalculationService の記述:
テキストの類似度計算を行います。

定義:
インタフェース SimilarityCalculationService 内の calculate
パラメータ:
language - テキストの言語(RFC3066準拠)
text1 - 比較元テキスト(必須)
text2 - 比較先テキスト(必須)
戻り値:
計算結果
例外:
AccessLimitExceededException - アクセス制限に違反した
InvalidParameterException - text1,text2,languageのいずれかがnull.languageがRFC3066に準拠していない
LanguageNotUniquelyDecidedException - 対応言語候補が一意に求まらない(例:languageにzhを指定したときに,対応言語にzh-Hansとzh-Hantが存在した場合)
UnsupportedLanguageException - 指定された言語はサポートされていない
NoAccessPermissionException - 呼び出しを行ったユーザに実行権限が無い
NoValidEndpointsException - 有効なエンドポイントが無い
ProcessFailedException - 計算処理に失敗した
ServerBusyException - サーバが混雑していて処理が実行できない
ServiceNotActiveException - サービスはアクティブではない
ServiceNotFoundException - 指定されたサービスが見つからない