Package network.aika
Class AbstractNode<P extends Provider<? extends AbstractNode>>
- java.lang.Object
-
- network.aika.AbstractNode<P>
-
-
Field Summary
Fields Modifier and Type Field Description intlastUsedDocumentIdbooleanmodifiedprotected Pprovider
-
Constructor Summary
Constructors Constructor Description AbstractNode()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddModelLabel(String modelLabel)abstract voiddelete(Set<String> modelLabels)StringgetLabel()Set<String>getModelLabels()PgetProvider()abstract booleanisNeuron()voidreactivate()static <P extends Provider>
AbstractNoderead(DataInput in, P p)voidreadFields(DataInput in, Model m)Deserialize the fields of this object fromin.voidsetModified()voidsuspend()voidwrite(DataOutput out)Serialize the fields of this object toout.
-
-
-
Field Detail
-
lastUsedDocumentId
public volatile int lastUsedDocumentId
-
modified
public volatile boolean modified
-
provider
protected P extends Provider<? extends AbstractNode> provider
-
-
Method Detail
-
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:WritableSerialize the fields of this object toout.- Specified by:
writein interfaceWritable- Parameters:
out-DataOuputto serialize this object into.- Throws:
IOException
-
readFields
public void readFields(DataInput in, Model m) throws IOException
Description copied from interface:WritableDeserialize the fields of this object fromin.For efficiency, implementations should attempt to re-use storage in the existing object where possible.
- Specified by:
readFieldsin interfaceWritable- Parameters:
in-DataInputto deseriablize this object from.- Throws:
IOException
-
read
public static <P extends Provider> AbstractNode read(DataInput in, P p) throws IOException
- Throws:
IOException
-
isNeuron
public abstract boolean isNeuron()
-
-