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

クラス Vote

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

public class Vote extends Object
投票情報です。
いつ(何日に)誰が誰に投票したかを情報として持ちます。
Information of vote.
It has information about day, agent,and target.
作成者:
tori
  • コンストラクタの概要

    コンストラクタ
    コンストラクタ
    説明
    Vote(int day, Agent agent, Agent target)
    投票情報を構築します。
  • メソッドの概要

    修飾子とタイプ
    メソッド
    説明
    投票するエージェントを返します。
    int
    投票する日を返します。
    投票の対象となるエージェントを返します。
     

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

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • コンストラクタの詳細

    • Vote

      public Vote(int day, Agent agent, Agent target)
      投票情報を構築します。
      Create new vote.
      パラメータ:
      day -
      投票する日
      Day
      agent -
      投票するエージェント
      Agent
      target -
      投票の対象となるエージェント
      Target
  • メソッドの詳細

    • getDay

      public int getDay()
      投票する日を返します。
      Get the day.
      戻り値:
      投票する日
      Day
    • getAgent

      public Agent getAgent()
      投票するエージェントを返します。
      Get the agent.
      戻り値:
      投票するエージェント
      Agent
    • getTarget

      public Agent getTarget()
      投票の対象となるエージェントを返します。
      Get the target.
      戻り値:
      投票の対象となるエージェント
      Target
    • toString

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