Exemplo n.º 1
0
 /// <summary>
 /// Insert new Experiment graph to DB
 /// </summary>
 /// <returns>ID assigned to graph</returns>
 public int InsertExperimentGraph(string graph_xml)
 {
     return(AccessLayer.InsertExperimentGraph(graph_xml));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Insert the actions the Participant performed to the DB
 /// </summary>
 public bool InsertIntoExperimentActions(int ExperimentID, int PersonID, string VertexID, string Color, DateTime EventTime)
 {
     return(AccessLayer.InsertIntoExperimentActions(ExperimentID, PersonID, VertexID, Color, EventTime));
 }
Exemplo n.º 3
0
        /// <summary>
        /// Add a new particepant to the DB
        /// </summary>
        /// <returns>ID assigned to participant</returns>
        public int AddParticipant(Object turkID)
        {
            string id = turkID as string;

            return(AccessLayer.AddParticipant(id));
        }
Exemplo n.º 4
0
 /// <summary>
 /// Checks if this experiment is defined to show a solution window for the experiment marked as "Current"
 /// </summary>
 /// <returns>Time before show solution</returns>
 public string GetUseSolutionGraph()
 {
     return(AccessLayer.GetUseSolutionGraph());
 }
Exemplo n.º 5
0
 /// <summary>
 /// Get the Id of the experiment marked as "Current"
 /// </summary>
 /// <returns>Experiment ID</returns>
 public int GetCurrentExperimentID()
 {
     return(AccessLayer.GetCurrentExperimentID());
 }
Exemplo n.º 6
0
 /// <summary>
 /// Get Solution Graph of the experiment marked as "Current"
 /// </summary>
 /// <returns>Current Solution Graph</returns>
 public byte[] GetSolutionGraph()
 {
     return(AccessLayer.GetSolutionGraph());
 }
Exemplo n.º 7
0
 /// <summary>
 /// Get the XML Graph of the experiment marked as "Current"
 /// </summary>
 /// <returns>Current Experiment Graph</returns>
 public string GetExperimentGraph()
 {
     return(AccessLayer.GetExperimentGraph());
 }
Exemplo n.º 8
0
 public bool PerformBulkCopy()
 {
     return(AccessLayer.PerformBulkCopy());
 }
Exemplo n.º 9
0
 /// <summary>
 /// Inserts partial Experiment Results
 /// </summary>
 public bool SolutionAcceptancePartial(int ParticipantID, int ExperimentID, DateTime Date, bool AcceptedSolution)
 {
     return(AccessLayer.SolutionAcceptancePartial(ParticipantID, ExperimentID, Date, AcceptedSolution));
 }
Exemplo n.º 10
0
 /// <summary>
 /// Update Experiment Results for the experiment marked as "Current" with the participant's response
 /// </summary>
 public bool SolvedProblemGraph(int ParticipantID, bool Solved, DateTime SolvedTime)
 {
     return(AccessLayer.SolvedProblemGraph(ParticipantID, Solved, SolvedTime));
 }