Class Pheromone

java.lang.Object
fr.formiko.formiko.Pheromone
All Implemented Interfaces:
Serializable

public class Pheromone extends Object implements Serializable
See Also:
  • Field Details

    • r

      private byte r
    • v

      private byte v
    • b

      private byte b
  • Constructor Details

    • Pheromone

      public Pheromone(byte r, byte v, byte b)
    • Pheromone

      public Pheromone(int r, int v, int b)
    • Pheromone

      public Pheromone(Pheromone fo, byte x)
    • Pheromone

      public Pheromone(Pheromone fo)
    • Pheromone

      public Pheromone(String s)
    • Pheromone

      public Pheromone()
  • Method Details

    • getR

      public byte getR()
    • getG

      public byte getG()
    • getB

      public byte getB()
    • setR

      public void setR(byte x)
    • setG

      public void setG(byte x)
    • setB

      public void setB(byte x)
    • getRc

      public byte getRc()
    • getVc

      public byte getVc()
    • getBc

      public byte getBc()
    • getColor

      public Color getColor()
    • toString

      public String toString()
      Return a string that describe this.
      Overrides:
      toString in class Object
    • toHex

      public String toHex()
      Return the hexadecimal code that describe this.
    • toHex

      private String toHex(int x)
      Return the hexadecimal code of an int.
    • afficheToi

      public void afficheToi()
    • equals

      public boolean equals(Object o)
      Standard equals function. Null & other class type proof.
      Overrides:
      equals in class Object
      Parameters:
      o - o is the Object to test. It can be null or something else than this class.
    • hashCode

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

      public boolean equals(Pheromone ph, int ndifferenceTollere)
      special equals function.
    • getXFromS

      public static int getXFromS(String s)
    • phToS

      public String phToS()
    • phToColor

      public Color phToColor()
    • colorToPh

      public static Pheromone colorToPh(Color col)
    • b10ToB16

      public static String b10ToB16(int x)
    • nbrToChiffre

      public static String nbrToChiffre(int x)
    • b16ToB10

      public static int b16ToB10(char c)
    • sToPh

      public static Pheromone sToPh(String s)