Exemplo n.º 1
0
 def getConnection(self, method):
     if method == c.SIGNAL:
         return ConnectionPostOfficeEnd.PlotConnection(Plot.NotSumSignal)
     elif method == c.POWER:
         return ConnectionPostOfficeEnd.PlotConnection(Plot.NotSumPower)
     elif method == c.AVG_SIGNAL:
         return ConnectionPostOfficeEnd.PlotConnection(Plot.NotSumAvgSignal)
     elif method == c.AVG_POWER:
         return ConnectionPostOfficeEnd.PlotConnection(Plot.NotSumAvgPower)
     else:
         raise ValueError("Illegal argument in getConnection: " +
                          str(method))
Exemplo n.º 2
0
 def __init__(self):
     AbstractMasterConnection.__init__(
         self, {
             c.CONNECTION_EMOTIV:
             ConnectionPostOfficeEnd.EmotivConnection(),
             c.CONNECTION_PSYCHOPY:
             ConnectionPostOfficeEnd.PsychopyConnection(),
             c.CONNECTION_PLOT:
             PlotConnection.PlotTabConnection(),
             c.CONNECTION_EXTRACTION:
             ExtractionConnection.ExtractionTabConnection(),
             c.CONNECTION_ROBOT:
             ConnectionPostOfficeEnd.RobotConnection()
         }, {
             c.CONNECTION_EMOTIV: c.DATA_EMOTIV,
             c.CONNECTION_PSYCHOPY: c.DATA_BACKGROUND,
             c.CONNECTION_PLOT: c.DATA_PLOTS,
             c.CONNECTION_EXTRACTION: c.DATA_EXTRACTION,
             c.CONNECTION_ROBOT: c.DATA_ROBOT
         })
Exemplo n.º 3
0
 def getCca(self):
     return ConnectionPostOfficeEnd.ExtractionConnection(Extraction.Cca)
Exemplo n.º 4
0
 def getSumPsda(self):
     return ConnectionPostOfficeEnd.ExtractionConnection(Extraction.SumPsda)
Exemplo n.º 5
0
from connections.postoffice import MasterConnection, ConnectionPostOfficeEnd
import Recording
import BCI
import PostOffice

if __name__ == "__main__":
    main_connection = ConnectionPostOfficeEnd.MainConnection()
    connections = MasterConnection.MasterConnection()
    recording = Recording.Recording()
    bci_controller = BCI.BCI(connections, main_connection, recording)
    PostOffice.PostOffice(main_connection, connections, bci_controller)
Exemplo n.º 6
0
from connections.postoffice import MasterConnection, ConnectionPostOfficeEnd
import Recording
import Training
import PostOffice

if __name__ == "__main__":
    main_connection = ConnectionPostOfficeEnd.TrainingConnection()
    connections = MasterConnection.TrainingMasterConnection()
    recording = Recording.Recording()
    bci_controller = Training.Training(connections, main_connection, recording)
    PostOffice.PostOffice(main_connection, connections, bci_controller)