Interface ILsaNode

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

    
    public interface ILsaNode
     implements Node<T>
                        

    Interface for an LSA Node. Avoids the crappy casts.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void setConcentration(ILsaMolecule inst) Adds an instance of ILsaMolecule in the node's LsaSpace.
      abstract boolean removeConcentration(ILsaMolecule matchedInstance) Deletes an ILsaMolecule from the Node LsaSpace Warning: the method removes only the first matched ILsaMolecule.
      abstract List<ILsaMolecule> getLsaSpace()
      abstract List<ILsaMolecule> getConcentration(Molecule mol)
      • Methods inherited from class it.unibo.alchemist.model.Node

        addProperty, addReaction, asProperty, asPropertyOrNull, cloneNode, contains, equals, getContents, getId, getMoleculeCount, getProperties, getReactions, hashCode, removeConcentration, removeReaction, setConcentration
      • Methods inherited from class java.lang.Iterable

        forEach, iterator, spliterator
      • Methods inherited from class java.lang.Comparable

        compareTo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • setConcentration

         abstract void setConcentration(ILsaMolecule inst)

        Adds an instance of ILsaMolecule in the node's LsaSpace.

        Parameters:
        inst - the molecule you want to add
      • removeConcentration

         abstract boolean removeConcentration(ILsaMolecule matchedInstance)

        Deletes an ILsaMolecule from the Node LsaSpace Warning: the method removes only the first matched ILsaMolecule.

        Parameters:
        matchedInstance - the molecule you want to remove
        Returns:

        true if the remove operation finish correctly, false otherwise.

      • getLsaSpace

         abstract List<ILsaMolecule> getLsaSpace()
        Returns:

        lsaMolecules in the node. This backs the internal LsaSpace: USE READ ONLY.