Class LsaNode

  • All Implemented Interfaces:
    it.unibo.alchemist.model.interfaces.ILsaNode , it.unibo.alchemist.model.interfaces.Node , java.io.Serializable , java.lang.Comparable , java.lang.Iterable , kotlin.jvm.internal.markers.KMappedMarker

    
    public final class LsaNode
    extends GenericNode<T> implements ILsaNode
                        

    This class realizes a node with LSA concentration.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      boolean contains(@Nonnull() Molecule molecule)
      int getMoleculeCount()
      List<ILsaMolecule> getConcentration(@Nonnull() Molecule m)
      Map<Molecule, List<ILsaMolecule>> getContents()
      List<ILsaMolecule> getLsaSpace()
      boolean removeConcentration(ILsaMolecule matchedInstance) Deletes an ILsaMolecule from the Node LsaSpace Warning: the method removes only the first matched ILsaMolecule.
      void setConcentration(ILsaMolecule inst) Adds an instance of ILsaMolecule in the node's LsaSpace.
      void setConcentration(@Nonnull() Molecule molecule, List<ILsaMolecule> c)
      String toString()
      • Methods inherited from class it.unibo.alchemist.model.implementations.nodes.GenericNode

        addProperty, addReaction, cloneNode, compareTo, equals, forEach, getContents, getEnvironment, getId, getIncarnation, getMolecules, getProperties, getReactions, hashCode, iterator, removeConcentration, removeReaction, spliterator
      • Methods inherited from class it.unibo.alchemist.model.interfaces.Node

        asProperty, asPropertyOrNull
      • Methods inherited from class java.lang.Iterable

        iterator, spliterator
      • Methods inherited from class java.lang.Object

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