Package ai.thinkingrobots.trade
Class TRADEServiceConstraints
java.lang.Object
ai.thinkingrobots.trade.TRADEServiceConstraints
This class contains constraints that can be used in various TRADE calls.
Example usage:
public static void main(String args[]) {
String[][] oldConstraints = new String[][]{{"local"},{"group", "calculator"}, {"group", "math"}, {"not", "group", "degrees"}, {"or"}, {"not", "local"}};
System.out.println("Old style constraints: " + Arrays.deepToString(oldConstraints));
TRADEServiceConstraints newConstraints = new TRADEServiceConstraints().onLocalhost().inGroups("calculator", "math").notInGroups("degrees").provides("add", "subtract").or().notOnLocalhost().provides("add", "subtract");
System.out.println("New style constraints: " + Arrays.deepToString(newConstraints.generateConstraints()));
}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]
notInGroups
(String... groupNames) returnType
(Class<?> serviceReturnType) toString()