public static class PositionRelation.LessThan extends PositionRelation
PositionRelation.Equals, PositionRelation.GreaterThan, PositionRelation.LessThanRelation.Any, Relation.Builder, Relation.RelationFactory| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE |
fromSlot, toSlotAFTER, ANY, BEFORE, BEGIN_EQUALS, BEGIN_TO_END_EQUALS, CONTAINED_IN, CONTAINS, END_EQUALS, END_TO_BEGIN_EQUALS, EQUALS, follow, optional, OVERLAPS, relationRegistry| Constructor and Description |
|---|
LessThan() |
LessThan(int fromSlot,
int toSlot,
boolean orEquals) |
LessThan(int fromSlot,
int toSlot,
boolean orEquals,
boolean optional,
boolean follow,
int maxLength) |
| 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. |
Relation |
setOptionalAndFollow(boolean optional,
boolean follow) |
boolean |
test(Position a,
Position b) |
String |
toString() |
void |
write(DataOutput out)
Serialize the fields of this object to
out. |
compareTo, getActivations, linksOutputs, mapSlots, registerRequiredSlots, testaddRelation, convertible, getRelationsMap, isFollow, isOptional, read, registerRelationpublic LessThan()
public LessThan(int fromSlot,
int toSlot,
boolean orEquals)
public LessThan(int fromSlot,
int toSlot,
boolean orEquals,
boolean optional,
boolean follow,
int maxLength)
public Relation setOptionalAndFollow(boolean optional, boolean follow)
setOptionalAndFollow in class Relationpublic 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.