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

クラス Vote


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

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

      すべてのメソッド インスタンス・メソッド concreteメソッド 
      修飾子とタイプ メソッド 説明
      Agent getAgent()
      投票するエージェントを返します。
      int getDay()
      投票する日を返します。
      Agent getTarget()
      投票の対象となるエージェントを返します。
      java.lang.String toString()  
      • クラスから継承されたメソッド 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 java.lang.String toString()
        オーバーライド:
        toString クラス内 java.lang.Object