Skip to content

Commit ff8703c

Browse files
fixes
1 parent 1ebb071 commit ff8703c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/main/java/network/aika/neuron/relation/Relation.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,18 @@ public abstract class Relation implements Comparable<Relation>, Writable {
5252

5353
public static Relation ANY = new Any();
5454

55-
5655
protected boolean optional;
5756
protected boolean follow = true;
5857

58+
59+
public boolean isOptional() {
60+
return optional;
61+
}
62+
63+
public boolean isFollow() {
64+
return follow;
65+
}
66+
5967
@Override
6068
public int compareTo(Relation rel) {
6169
return Integer.compare(getType(), rel.getType());

0 commit comments

Comments
 (0)