//EXECUTION protected override void InternalExecution() { IDualStation station = FactoryDualChannel.generateStation(); IStationController controller = new ExplorerStation(FrameworkTesterRepository.Instance.BaseWindow); controller.Explore(station, "Controller Exploration Description"); IClassicalState ClStateReceived = FactoryClassicalState.generateState(FactoryClassicalBasis.UsualBasis.CountElements); IClassicalState ClStateTransmissed = FactoryClassicalState.generateState(FactoryClassicalBasis.UsualBasis.CountElements); station.ClassicalReceive(ClStateReceived); station.ClassicalTransmitSynchronous(ClStateTransmissed); IQuantumState QuStateReceived = FactoryQuantumState.generateStateSimple(FactoryQuantumBasis.UsualBasis.CountElements); IQuantumState QuStateTransmissed = FactoryQuantumState.generateStateSimple(FactoryQuantumBasis.UsualBasis.CountElements); station.QuantumReceive(QuStateReceived); station.QuantumTransmitSynchronous(QuStateTransmissed); }
//EXECUTION protected override void InternalExecution() { IClassicalChannel classicalChannel = FactoryClassicalChannel.generateP2PChannel(); IQuantumChannel quantumChannel = FactoryQuantumChannel.generateP2PChannel(); IDualStation stationA = FactoryDualChannel.generateStation(classicalChannel, quantumChannel); IDualStation stationB = FactoryDualChannel.generateStation(classicalChannel, quantumChannel); IStationController controllerA = new ExplorerStation(FrameworkTesterRepository.Instance.BaseWindow); IStationController controllerB = new ExplorerStation(FrameworkTesterRepository.Instance.BaseWindow); controllerA.Explore(stationA, "Controller A Exploration Description"); controllerB.Explore(stationB, "Controller B Exploration Description"); IClassicalState ClStateA = FactoryClassicalState.generateState(FactoryClassicalBasis.UsualBasis.CountElements); stationA.ClassicalTransmitSynchronous(ClStateA); IQuantumState QuStateA = FactoryQuantumState.generateStateSimple(FactoryQuantumBasis.UsualBasis.CountElements); stationA.QuantumTransmitSynchronous(QuStateA); IClassicalState ClStateB = FactoryClassicalState.generateState(FactoryClassicalBasis.UsualBasis.CountElements); stationB.ClassicalTransmitSynchronous(ClStateB); IQuantumState QuStateB = FactoryQuantumState.generateStateSimple(FactoryQuantumBasis.UsualBasis.CountElements); stationB.QuantumTransmitSynchronous(QuStateB); }