Skip to content

socr.view interface

selvam1991 edited this page Feb 6, 2013 · 11 revisions

This is the view object where all the UI rendering takes place. socr.view object uses the singleton pattern just like the model and controller.

Private Variables

_ currentVariable

_ currentValues

Private Methods

_ _create(start,size) _

This method populates the sampleList on the right hand side. This methods calls for the data from the model object. start is the random sample number from where to start the list that will be displayed. Size tells the number of random samples in a single page (its set to 500 samples/page).

_createPagination(x,y)

Creates interactive pagination for the sample List. x is the random sample number from where to start and y contains the number of random samples in a single page (its set to 500 samples/page).

Public Methods

toggleInputHandle()

toggleControllerHandle()

disableButtons()

enableButtons()

reset()

Clears all canvas and div. Resetting the view of the whole App.

createDatasetPlot()

createList(start,end)

*@param :start- start sample number *@param : end - stop sample number *@description: It generates all the samples in the List

updateCounter()

updateSlider()

createShowSlider()

createControllerView()

animate()

createDotPlot(setting)

Dot plot tab in the accordion is populated by this call. call invoked when "infer" button pressed in the controller tile. sestting is the object which contains the variable type and other details.

updateSimulationInfo()

Called when the 'step button' or 'run button' is pressed in the controller tile. Call is made in appController.js to the simulation info the last tab of the accordion.

CoverPage()

Called from the index.html page for the welcome black page view. Called whenever the window is resized!

loadInputSheet()

temporarily disabled. Purpose of this method was to load the simulation based generated data to be loaded onto the excel sheet for the user to choose the data to use for the analysis.

handleResponse(content,type,id)

Clone this wiki locally