パッケージ org.aiwolf.client.lib
クラス Content
java.lang.Object
org.aiwolf.client.lib.Content
- すべての実装されたインタフェース:
Cloneable
発話内容クラス。ContentBuilderあるいは発話テキストから生成
Class for the content of a utterance. Constructed by giving a ContentBuilder or the uttered text.
-
フィールドの概要
フィールド -
コンストラクタの概要
コンストラクタコンストラクタ説明発話テキストによりContentを構築する Constructs a Content from the uttered text.Content
(ContentBuilder builder) 指定したContentBuilderによりContentを構築する Constructs a Content by the given ContentBuilder. -
メソッドの概要
修飾子とタイプメソッド説明clone()
boolean
発話内容が複文・重文の場合,節のリストを返す Returns the list of clauses in case of complex or compound sentence.int
getDay()
発話の日付を返す Returns the date of content.発話内容の演算子を返す Returns the operator of this content.発話内容中で言及されている判定結果を返す。getRole()
発話内容中で言及されている役職を返す。発話内容の主語を返す Returns the subject of this content.int
発話内容中で言及されている発言の日を返す。int
発話内容中で言及されている発言のIDを返す。発話内容中で言及されている発言のタイプを返す。発話内容中の目的エージェントを返す。getText()
発話テキストを返す Returns the uttered text.getTopic()
発話内容のトピックを返す Returns the topic of this content.static String
stripSubject
(String input) 発話文字列からsubjectの部分を除いた文字列を返す Strips subject off the given string and returns it.toString()
static boolean
発話テキストが有効かどうかを返す. Returns whether or not the uttered text is valid.
-
フィールド詳細
-
SKIP
SKIPを表す定数Constant representing SKIP. -
OVER
OVERを表す定数Constant representing OVER. -
ANY
不特定のエージェントを表す定数Constant representing an arbitrary agent. -
UNSPEC
エージェント未特定であることを表す定数Constant representing an unspecified agent.
-
-
コンストラクタの詳細
-
Content
指定したContentBuilderによりContentを構築するConstructs a Content by the given ContentBuilder.- パラメータ:
builder
-発話内容に応じたContentBuilderContentBuilder for the content.
-
Content
発話テキストによりContentを構築するConstructs a Content from the uttered text.- パラメータ:
input
-発話テキストThe uttered text.
-
-
メソッドの詳細
-
getText
発話テキストを返すReturns the uttered text.- 戻り値:
- 発話テキストThe uttered text.
-
getOperator
発話内容の演算子を返すReturns the operator of this content.- 戻り値:
- 演算子。単文の場合は
null
The operator, ornull
when it is a simple sentence.
-
getSubject
発話内容の主語を返すReturns the subject of this content.- 戻り値:
- 主語The subject.
-
getTopic
発話内容のトピックを返すReturns the topic of this content.- 戻り値:
- トピックThe topic.
-
getTarget
発話内容中の目的エージェントを返す。発話が単文で,かつTopicが(DIS)AGREE以外で有効Returns the objective agent of this content. Valid when it is a simple sentence and the topic is other than (DIS)AGREE.- 戻り値:
- 目的エージェント。無効の場合は
null
The objective agent, ornull
when it is invalid.
-
getRole
発話内容中で言及されている役職を返す。発話が単文で,かつTopicがCOMINGOUTとESTIMATEのとき有効Returns the role referred in this content. Valid when it is a simple sentence and the topic is COMINGOUT or ESTIMATE.- 戻り値:
- 言及されている役職。無効の場合は
null
The referred role, ornull
when it is invalid.
-
getResult
発話内容中で言及されている判定結果を返す。発話が単文で,かつTopicがDIVINEDとINQUESTEDのとき有効Returns the result of the judgment referred in this content. Valid when it is a simple sentence and the topic is DIVINED or INQUESTED.- 戻り値:
- 言及されている判定結果。無効の場合は
null
The referred result, ornull
when it is invalid.
-
getTalkType
発話内容中で言及されている発言のタイプを返す。発話が単文で,かつTopicが(DIS)AGREEのとき有効Returns the type of the utterance referred in this content. Valid when it is a simple sentence and the topic is (DIS)AGREE.- 戻り値:
- 言及されている発言のタイプ。無効の場合は
null
The type of utterance, ornull
when it is invalid.
-
getTalkDay
public int getTalkDay()発話内容中で言及されている発言の日を返す。発話が単文で,かつTopicが(DIS)AGREEのとき有効Returns the day of the utterance referred in this content. Valid when it is a simple sentence and the topic is (DIS)AGREE.- 戻り値:
- 言及されている発言の日。無効の場合は-1The day of the referred utterance, or -1 when it is invalid.
-
getTalkID
public int getTalkID()発話内容中で言及されている発言のIDを返す。発話が単文で,かつTopicが(DIS)AGREEのとき有効Returns the ID of the utterance referred in this content. Valid when it is a simple sentence and the topic is (DIS)AGREE.- 戻り値:
- 言及されている発言のID。無効の場合は-1The ID of the referred utterance, or -1 when it is invalid.
-
getContentList
発話内容が複文・重文の場合,節のリストを返すReturns the list of clauses in case of complex or compound sentence.- 戻り値:
- 節のリスト。単文の場合は
null
The list of clauses, ornull
in case of simple sentence.
-
getDay
public int getDay()発話の日付を返すReturns the date of content.- 戻り値:
- 日付Date.
-
validate
発話テキストが有効かどうかを返す.Returns whether or not the uttered text is valid.- パラメータ:
input
-被チェックテキストThe text to be checked.- 戻り値:
- 有効である場合
true
,そうでなければfalse
true
if the text is valid, otherwisefalse
.
-
clone
-
equals
-
stripSubject
発話文字列からsubjectの部分を除いた文字列を返すStrips subject off the given string and returns it.- パラメータ:
input
-入力文字列Input string.- 戻り値:
- 発話文字列からsubjectの部分を除いた文字列String with no subject prefix.
-
toString
-