import json

import weblab.core.coordinator.coordinator as Coordinator
import weblab.experiment.level as level

from weblab.experiment.experiment import Experiment

class StorageExperiment(Experiment):
    def __init__(self, coord_address, locator, config, *args, **kwargs):
        super(StorageExperiment, self).__init__(*args, **kwargs)
        self.commands = []

    def do_start_experiment(self, client_initial_data, server_initial_data):
        return "{}"

    def do_get_api(self):
        return level.level_2

    def do_send_command_to_device(self, command):
        self.commands.append(command)
        print command
        return command

    def clear(self):
        self.commands = []

    def do_dispose(self):
        return json.dumps({ Coordinator.FINISH_FINISHED_MESSAGE : True, Coordinator.FINISH_DATA_MESSAGE : ""})


Add dummy experiment for testing
Add dummy experiment for testing
