public class FieldOfMultiple extends Field
Field.Operation
Modifier and Type | Field and Description |
---|---|
protected MappedConst |
con1
Generative constraint for first group of generated elements, to use on first mapped element.
|
protected MappedConst |
con2
Generative constraint for second group of generated elements, to use on second mapped
element.
|
EMPTY, USE_SECOND_ARG
blacklist, size
Constructor and Description |
---|
FieldOfMultiple(MappedConst con,
String accessorString,
Field.Operation oper,
Object value)
Constructor with accessor string for the field value of the element and the desired value.
|
FieldOfMultiple(MappedConst con1,
String accessorString1,
MappedConst con2,
String accessorString2,
Field.Operation oper)
Constructor with accessor strings for the field value of the element and the desired value
that will be reached from the second element.
|
Modifier and Type | Method and Description |
---|---|
int |
getVariableSize()
Size of this constraint is one less than con1 if con2 is null, otherwise it is two less than
the total of size of con1 and con2.
|
boolean |
satisfies(Match match,
int... ind)
Checks if the generated elements from the first mapped element has either the desired value,
or has some value in common with the elements generated from second mapped element.
|
assertIndLength, canGenerate, convertStepDirection, findDirectionInCatalysis, findDirectionInPathways, generate, getCatalysisDirection, getControlChain, getConvParticipants, getDirection, getDirection, getDirection, getDirection, setSize
protected MappedConst con1
protected MappedConst con2
public FieldOfMultiple(MappedConst con, String accessorString, Field.Operation oper, Object value)
con
- the generative constraint of size 2 whose generated values will be checkedaccessorString
- accessor string for the elementoper
- operationvalue
- desired valuepublic FieldOfMultiple(MappedConst con1, String accessorString1, MappedConst con2, String accessorString2, Field.Operation oper)
con1
- the generative constraint of size 2 for the first group of elementsaccessorString1
- accessor string for the first elementcon2
- the generative constraint of size 2 for the second group of elementsaccessorString2
- accessor string for the second elementoper
- operationpublic int getVariableSize()
getVariableSize
in interface Constraint
getVariableSize
in class ConstraintAdapter
public boolean satisfies(Match match, int... ind)
satisfies
in interface Constraint
satisfies
in class Field
match
- current pattern matchind
- mapped indicesCopyright © 2015 BioPAX. All rights reserved.