public class InstanceRelation extends Relation
| Modifier and Type | Class and Description |
|---|---|
static class |
InstanceRelation.Type |
| Modifier and Type | Field and Description |
|---|---|
InstanceRelation.Type |
type |
| Constructor and Description |
|---|
InstanceRelation(InstanceRelation.Type type) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Relation rel) |
Collection<Activation> |
getActivations(INeuron n,
Activation linkedAct) |
Relation |
invert() |
boolean |
isExact() |
static InstanceRelation |
read(DataInput in,
Model m) |
void |
readFields(DataInput in,
Model m)
Deserialize the fields of this object from
in. |
boolean |
test(Activation act,
Activation linkedAct) |
void |
write(DataOutput out)
Serialize the fields of this object to
out. |
public InstanceRelation.Type type
public InstanceRelation(InstanceRelation.Type type)
public Collection<Activation> getActivations(INeuron n, Activation linkedAct)
getActivations in class Relationpublic boolean test(Activation act, Activation linkedAct)
public void write(DataOutput out) throws IOException
Writableout.out - DataOuput to serialize this object into.IOExceptionpublic void readFields(DataInput in, Model m) throws IOException
Writablein.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
in - DataInput to deseriablize this object from.IOExceptionpublic static InstanceRelation read(DataInput in, Model m) throws IOException
IOExceptionpublic int compareTo(Relation rel)
Copyright © 2018. All rights reserved.