Package network.aika

Class AbstractNode<P extends Provider<? extends AbstractNode>>

  • All Implemented Interfaces:
    Writable
    Direct Known Subclasses:
    INeuron, Node

    public abstract class AbstractNode<P extends Provider<? extends AbstractNode>>
    extends Object
    implements Writable
    Author:
    Lukas Molzberger
    • Field Detail

      • lastUsedDocumentId

        public volatile int lastUsedDocumentId
      • modified

        public volatile boolean modified
    • Constructor Detail

      • AbstractNode

        public AbstractNode()
    • Method Detail

      • getModelLabels

        public Set<String> getModelLabels()
      • addModelLabel

        public void addModelLabel​(String modelLabel)
      • getProvider

        public P getProvider()
      • setModified

        public void setModified()
      • suspend

        public void suspend()
      • reactivate

        public void reactivate()
      • getLabel

        public String getLabel()
      • write

        public void write​(DataOutput out)
                   throws IOException
        Description copied from interface: Writable
        Serialize the fields of this object to out.
        Specified by:
        write in interface Writable
        Parameters:
        out - DataOuput to serialize this object into.
        Throws:
        IOException
      • readFields

        public void readFields​(DataInput in,
                               Model m)
                        throws IOException
        Description copied from interface: Writable
        Deserialize the fields of this object from in.

        For efficiency, implementations should attempt to re-use storage in the existing object where possible.

        Specified by:
        readFields in interface Writable
        Parameters:
        in - DataInput to deseriablize this object from.
        Throws:
        IOException
      • delete

        public abstract void delete​(Set<String> modelLabels)
      • isNeuron

        public abstract boolean isNeuron()