-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.Node,java.io.Serializable,java.lang.Comparable,java.lang.Iterable
public interface ILsaNode implements Node<List<ILsaMolecule>>
Interface for an LSA Node. Avoids the crappy casts.
-
-
Method Summary
Modifier and Type Method Description abstract voidsetConcentration(ILsaMolecule inst)Adds an instance of ILsaMolecule in the node's LsaSpace. abstract booleanremoveConcentration(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.interfaces.Node
addReaction, cloneNode, contains, getContents, getId, getMoleculeCount, 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
-
-
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
-
getLsaSpace
abstract List<ILsaMolecule> getLsaSpace()
-
getConcentration
abstract List<ILsaMolecule> getConcentration(Molecule mol)
-
-
-
-