パッケージ org.aiwolf.common.data

クラス Talk

java.lang.Object
org.aiwolf.common.data.Talk

public class Talk extends Object
人狼知能における会話です。
AI Wolf Talk.
作成者:
tori and otsuki
  • フィールドの概要

    フィールド
    修飾子とタイプ
    フィールド
    説明
    static final String
    OVERは「今日はもう話すことはない」を意味します。
    static final String
    SKIPは「もう少し周りの様子を見たい」を意味します。
  • コンストラクタの概要

    コンストラクタ
    コンストラクタ
    説明
    Talk(int idx, int day, int turn, Agent agent, String text)
    会話を構築します。
  • メソッドの概要

    修飾子とタイプ
    メソッド
    説明
    話したエージェントを返します。
    int
    話した日を返します。
    int
    発言のインデックス番号を返します。
    発話内容テキストを返します。
    int
    話した時間を返します。
    boolean
    発言がOVERならtrue、そうでない場合はfalseを返します。
    boolean
    発言がSKIPならtrue、そうでない場合はfalseを返します。
     

    クラスから継承されたメソッド java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • フィールド詳細

    • OVER

      public static final String OVER
      OVERは「今日はもう話すことはない」を意味します。
      OVER means "Today, I don't speak".
      関連項目:
    • SKIP

      public static final String SKIP
      SKIPは「もう少し周りの様子を見たい」を意味します。
      SKIP means "I still want to hear the conversation".
      関連項目:
  • コンストラクタの詳細

    • Talk

      public Talk(int idx, int day, int turn, Agent agent, String text)
      会話を構築します。
      Create new talk.
      パラメータ:
      idx -
      発言のインデックス番号
      Index number of sentence
      day -
      話した日
      Tald day
      turn -
      発言のターン
      Turn of talk
      agent -
      話したエージェント
      Agent
      text -
      発話内容テキスト
      Uttered text of talk
  • メソッドの詳細

    • getIdx

      public int getIdx()
      発言のインデックス番号を返します。
      Get the index number of sentence.
      戻り値:
      発言のインデックス番号
      Index number of sentence
    • getDay

      public int getDay()
      話した日を返します。
      Get the told day.
      戻り値:
      話した日
      Tald day
    • getTurn

      public int getTurn()
      話した時間を返します。
      Get the told time.
      戻り値:
      話した時間
      Tald time
    • getAgent

      public Agent getAgent()
      話したエージェントを返します。
      Get the agent.
      戻り値:
      話したエージェント
      Agent
    • getText

      public String getText()
      発話内容テキストを返します。
      Get the uttered text of talk.
      戻り値:
      発話内容テキスト
      Uttered text of talk
    • isSkip

      public boolean isSkip()
      発言がSKIPならtrue、そうでない場合はfalseを返します。
      Returns true if utterance is "SKIP".
      戻り値:
      発言がSKIPならtrue、そうでない場合はfalse
      True if utterance is "SKIP".
    • isOver

      public boolean isOver()
      発言がOVERならtrue、そうでない場合はfalseを返します。
      Returns true if utterance is "OVER".
      戻り値:
      発言がOVERならtrue、そうでない場合はfalse
      True if utterance is "OVER"
    • toString

      public String toString()
      オーバーライド:
      toString クラス内 Object