public static class PositionRelation.GreaterThan extends PositionRelation
PositionRelation.Equals, PositionRelation.GreaterThan, PositionRelation.LessThanRelation.Builder, Relation.None, Relation.RelationFactory| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE |
fromSlot, toSlotAFTER, BEFORE, BEGIN_EQUALS, BEGIN_TO_END_EQUALS, CONTAINED_IN, CONTAINS, END_EQUALS, END_TO_BEGIN_EQUALS, EQUALS, NONE, OVERLAPS, relationRegistry| Constructor and Description |
|---|
GreaterThan() |
GreaterThan(int fromSlot,
int toSlot,
boolean orEquals) |
| Modifier and Type | Method and Description |
|---|---|
Stream<Activation> |
getActivations(INeuron.ThreadState th,
Position pos) |
int |
getType() |
Relation |
invert() |
boolean |
isExact() |
void |
readFields(DataInput in,
Model m)
Deserialize the fields of this object from
in. |
boolean |
test(Position a,
Position b) |
String |
toString() |
void |
write(DataOutput out)
Serialize the fields of this object to
out. |
compareTo, getActivations, linksOutputs, mapRange, registerRequiredSlots, testaddRelation, follow, getRelationsMap, read, registerRelationpublic GreaterThan()
public GreaterThan(int fromSlot,
int toSlot,
boolean orEquals)
public boolean test(Position a, Position b)
test in class PositionRelationpublic Stream<Activation> getActivations(INeuron.ThreadState th, Position pos)
getActivations in class PositionRelationpublic void write(DataOutput out) throws IOException
Writableout.write in interface Writablewrite in class PositionRelationout - 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.
readFields in interface WritablereadFields in class PositionRelationin - DataInput to deseriablize this object from.IOExceptionCopyright © 2018. All rights reserved.