Class Player

  • All Implemented Interfaces:
    jaca.ToProlog, java.io.Serializable, java.lang.Comparable<Player>

    public class Player
    extends java.lang.Object
    implements jaca.ToProlog, java.io.Serializable, java.lang.Comparable<Player>
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String ag  
      private java.lang.String rm  
    • Constructor Summary

      Constructors 
      Constructor Description
      Player​(java.lang.String ag, java.lang.String t)  
    • Method Summary

      Modifier and Type Method Description
      int compareTo​(Player o)  
      boolean equals​(java.lang.Object obj)  
      java.lang.String getAg()  
      java.lang.String getAsPrologStr()  
      java.lang.String getTarget()  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • ag

        private java.lang.String ag
      • rm

        private java.lang.String rm
    • Constructor Detail

      • Player

        public Player​(java.lang.String ag,
                      java.lang.String t)
    • Method Detail

      • getAg

        public java.lang.String getAg()
      • getTarget

        public java.lang.String getTarget()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • compareTo

        public int compareTo​(Player o)
        Specified by:
        compareTo in interface java.lang.Comparable<Player>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getAsPrologStr

        public java.lang.String getAsPrologStr()
        Specified by:
        getAsPrologStr in interface jaca.ToProlog