Example #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));
 }
Example #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));
 }
Example #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));
        }
Example #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());
 }
Example #5
0
 /// <summary>
 /// Get the Id of the experiment marked as "Current"
 /// </summary>
 /// <returns>Experiment ID</returns>
 public int GetCurrentExperimentID()
 {
     return(AccessLayer.GetCurrentExperimentID());
 }
Example #6
0
 /// <summary>
 /// Get Solution Graph of the experiment marked as "Current"
 /// </summary>
 /// <returns>Current Solution Graph</returns>
 public byte[] GetSolutionGraph()
 {
     return(AccessLayer.GetSolutionGraph());
 }
Example #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());
 }
Example #8
0
 public bool PerformBulkCopy()
 {
     return(AccessLayer.PerformBulkCopy());
 }
Example #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));
 }
Example #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));
 }