/** * Creates a {@link Binary} computation directory for this instance - i.e. this intended producer. * Contains only protocol suite native operations such as XOR and AND. Basic operations which can * be created from XOR, AND and NOT (such as XNOR, NAND) are found using {@link #advancedBinary}. * * @return The binary computation directory. */ public Binary binary() { if (this.binaryBuilder == null) { this.binaryBuilder = this.factory.createBinary(this); } return this.binaryBuilder; }
@Override public Binary createBinary(ProtocolBuilderBinary builder) { BinaryLoggingDecorator binaryLogger = new BinaryLoggingDecorator(delegateFactory.createBinary(builder)); aggregate.add(binaryLogger); return binaryLogger; }