Class GGraine

java.lang.Object
fr.formiko.usual.structures.listes.Liste<Graine>
fr.formiko.formiko.GGraine
All Implemented Interfaces:
Serializable, Iterable<Graine>, Collection<Graine>, List<Graine>

public class GGraine extends fr.formiko.usual.structures.listes.Liste<Graine> implements Serializable
List of seeds. lastEditedVersion 2.23
Author:
Hydrolien
See Also:
  • Field Summary

    Fields inherited from class fr.formiko.usual.structures.listes.Liste

    head, tail
  • Constructor Summary

    Constructors
    Constructor
    Description
    Main constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    make a copy.
    Return the seed that have the most givenFood.
    Return the first oppen seed.
    getGrainePlusDeGivenFood(int hardnessMax)
    Return the seed that have the most givenFood & with hardness > hardnessMax.
    Return the seed that have the most givenFood & with hardness > ant max hardness.
    private static GGraine
    toGg(fr.formiko.usual.structures.listes.Liste<Graine> l)
    Return a list with all this class functions.
    void
    Apply tour() over every seed.

    Methods inherited from class fr.formiko.usual.structures.listes.Liste

    add, add, add, addAll, addAll, addHead, addList, addSorted, addTail, clear, contains, containsAll, equals, filter, get, getFirst, getHead, getItem, getLast, getMost, getTail, indexOf, isEmpty, iterator, lastIndexOf, length, listIterator, listIterator, pop, push, push, remove, remove, removeAll, removeDuplicateItem, removeItem, retainAll, set, setHead, setTail, size, sort, subList, toArray, toArray, toGString, toString, toStringLong, updateTail

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.util.Collection

    parallelStream, removeIf, stream, toArray

    Methods inherited from interface java.lang.Iterable

    forEach

    Methods inherited from interface java.util.List

    hashCode, replaceAll, spliterator
  • Constructor Details

    • GGraine

      public GGraine()
      Main constructor.
  • Method Details

    • getBetterSeed

      public Graine getBetterSeed()
      Return the seed that have the most givenFood. lastEditedVersion 2.23
    • getGrainePlusDeGivenFood

      public Graine getGrainePlusDeGivenFood(int hardnessMax)
      Return the seed that have the most givenFood & with hardness > hardnessMax. lastEditedVersion 2.23
    • getGrainePlusDeGivenFood

      public Graine getGrainePlusDeGivenFood(Fourmi f)
      Return the seed that have the most givenFood & with hardness > ant max hardness. lastEditedVersion 2.23
    • getGraineOuverte

      public Graine getGraineOuverte()
      Return the first oppen seed. lastEditedVersion 2.23
    • toGg

      private static GGraine toGg(fr.formiko.usual.structures.listes.Liste<Graine> l)
      Return a list with all this class functions.
    • copierGGraine

      public GGraine copierGGraine()
      make a copy. lastEditedVersion 2.23
    • tour

      public void tour()
      Apply tour() over every seed. lastEditedVersion 2.23