Global

Members

array_ContextInformations

Created by juliushofler on 06.04.15.
Source:

global_currentInputUnitName

Created by Julius Höfler on 30.03.15.
Source:

global_ScenarioCounter

Created by Julius Höfler on 17.03.15.
Source:

myAuthorSystem

-- JSON Structure for the personal author system data -- myAuthorSystem = [scenario1, scenario2, ..., scenarioN, options] scenario = {name:name, units:[unit1, unit2, ...], connections:[connect1, connect2, ...]} unit = {name:name, description:text, contextInformations:[contextInformation1, contextInformation2, ...], sat:choice, metaData:[metaData1, metaData2, ...], posX:number, posY:number } contextInformation = {name:name, operator:name, value:value, input1:value, input2:value, inputString:value, parameter1:value, parameter2:value, icon:path } metaData = {name:name, icon:path} options = {option1:text, option2:text, ...}
Source:

Methods

activateFunctionalities(newState)

Function add event listeners after learning unit creation.
Parameters:
Name Type Description
newState Object Contains new created learning unit.
Source:

changeColorMultiContextInfos()

Function changes colors of all selected options in multi selection bar context information.
Source:

checkInformation(missing_content, current_unit) → {Array}

Function checks whether all visible selections and input fields are not empty
Parameters:
Name Type Description
missing_content String Contains an empty string.
current_unit Object Contains the current selected unit.
Source:
Returns:
Returns and array which includes the string with the missing content and which an object with selected infos.
Type
Array

cleanSection(s)

Function cleans a selection bar.
Parameters:
Name Type Description
s String Contains a selection bar id.
Source:

configureInputContextValueForFloatInt(ci)

Function shows an input field an set minimum, maximum and default values if needed.
Parameters:
Name Type Description
ci Object Contains current context information.
Source:

deleteScenarios()

Function deletes selected scenarios from menu bar. All corresponding learning units on the work place were deleted was well.
Source:

deleteScenariosConfirm()

Function shows the confirmation of scenario deletion modal window
Source:

deleteScenariosNot()

Function shows delete scenarios modal window again after canceling the confirmation.
Source:

deleteUnit()

Function deletes selected unit from the working place.
Source:

deleteUnits()

Function deletes a learning unit from the working place. Triggered in the modal window "confirm unit deletion".
Source:

deleteUnitsNot()

Function shows delete units modal window after canceling deletion in confirmation.
Source:

fillInputField(ci)

Function gets the seletect context information and decides which input field has to be set on GUI.
Parameters:
Name Type Description
ci Object Contains current context information.
Source:

fillParameterSelection(cp)

Function show all needed input fields and selection bar for the selected context information.
Parameters:
Name Type Description
cp Object Contains all existing context parameter.
Source:

fillSelectionContextInformation()

Function adds all context information and context classes into the selection bar context information.
Source:

formatContextInfos(item) → {String}

Function sets format for the context information in the selection bar (icon + text).
Parameters:
Name Type Description
item Object Context information which was selected in selection bar
Source:
Returns:
Concatenation of an img (icon) and span (text) DOM, if no icon available return text only
Type
String

formatMetaData(item) → {String}

Function
Parameters:
Name Type Description
item Object Contains the selected option from meta data selection bar.
Source:
Returns:
Returns DOM string which contains a meta data specific glyph and the corresponding text.
Type
String

formatMultiContextInfos(item) → {String}

Function sets format for the context information in the multi selection bar (icon only).
Parameters:
Name Type Description
item Object Context information which was selected
Source:
Returns:
img DOM if icon available, else text only
Type
String

formatMultiMetaData(item) → {String}

Function
Parameters:
Name Type Description
item Object Contains the selected option from meta data selection bar.
Source:
Returns:
Returns DOM string which contains a meta data specific glyph.
Type
String

formatUnitIcons(item, optgroup, ccID) → {String}

Function sets format for the context information in the learning units (icon only).
Parameters:
Name Type Description
item Object Context information which was selected
optgroup String Contains the context class of the selected context information
ccID String Contains the id from the context information
Source:
Returns:
specific img DOM if icon available, else context class icon
Type
String

getColor(cc) → {String}

Function finds specific color of a context class.
Parameters:
Name Type Description
cc String Contains a context class.
Source:
Returns:
Returns the specific color.
Type
String

getContentContact()

Function reads out the input fields in the contact modal window after clicking the send button.
Source:

getInputContextValue(val)

Function evaluate the input value and sets too big values to maximum and too small values to minimum.
Parameters:
Name Type Description
val Object Contains the current value of the context value input field.
Source:

getParameterInput(val, num)

Function evaluate the input value of the context parameter. Resets values if they are too high (maximum) or too small (minimum). Set marker on Google Maps if two input fields and the map are available.
Parameters:
Name Type Description
val Object Contains current input field content.
num int Contains the specific input id number.
Source:

loadScenario(data)

Function loads a scenario which contains all units, connections und functions.
Parameters:
Name Type Description
data Object Contains all data from a scenario
Source:

loadUnit(unit, j, inst) → {Object}

Function loads Hint: The website will be new loaded.
Parameters:
Name Type Description
unit Object Contains all information about the unit
j String Contains the running ID number
inst Object Contains the jsPlumb
Source:
Returns:
Contains the unit DOM element
Type
Object

parsingFinished()

Function sets a event listener for selection bar context information after parsing is finished. In this listener all selections and input fields were filled. Furthermore the meta data selection bar is also filled with information.
Source:

replaceMarker2(location)

Function deletes old and set new google maps marker.
Parameters:
Name Type Description
location Object Contains location of a google maps marker.
Source:

resizeMap()

Function resize map if it becomes visible.
Source:

saveCloseSzenario()

Function creates a new scenario. It adds the name in the menu bar and in the header above the working place. Is Triggered after clicking save button in modal window scenario creation.
Source:

setLabelBtnScenarioDeletion()

Function get the number of scenarios which should be deleted and set the label of deletion button with this number.
Source:

setMinMax(values, inputField)

Function set minimum and maximum values for an input field.
Parameters:
Name Type Description
values Array Contains minimum and maximum values.
inputField Object Contains an input field.
Source:

showContact()

Function shows the contact modal window.
Source:

showDeleteSzenario()

Function shows the delete scenario modal window.
Source:

showDeleteUnitConfirm()

Function shows delete unit confirmation modal window. Triggered in tab properties after clicking the unit delete button
Source:

showDeleteUnits()

Function shows the delete unit modal window. Sets event listeners to the selection and multi selection bar.
Source:

showDeleteUnitsConfirm()

Function shows the confirmation of unit deletion modal window.
Source:

showDetailContextInfo()

Function gets information into the selection bar and input fields. Furthermore hide main part in tab and show details of context information.
Source:

showHelp()

Function shows help modal window
Source:

showLoadSzenario()

Function shows the load scenario modal window.
Source:

showLogin()

Function shows the login modal window.
Source:

showMainContextInfo()

Function changes view of context information tab from detail view to main view.
Source:

showNewSzenario()

Function shows the new scenario modal window.
Source:

showProfil()

Function shows the user profile modal window and sets focus to the first input field.
Source:

showPW()

Function makes input fields for password change visible/invisible (toggle).
Source:

showSaveScenario()

Function saves current open scenario as a JSON file.
Source:

translate_contextClass(cc)

Functions translate context class into german.
Parameters:
Name Type Description
cc String Contains a context class return translated context class
Source:

translate_contextInformation(ci)

Functions translate context information into german.
Parameters:
Name Type Description
ci String Contains a context information return translated context information
Source:

translate_contextParameter(cp)

Functions translate context parameter into german.
Parameters:
Name Type Description
cp String Contains a context parameter return translated context parameter
Source:

translate_operator(op)

Functions translate operator into german.
Parameters:
Name Type Description
op String Contains a operator return translated operator
Source:

translate_parameter(p)

Functions translate parameter into german.
Parameters:
Name Type Description
p String Contains a parameter return translated parameter
Source:

translate_parameterValues(pv)

Functions translate parameter values into german.
Parameters:
Name Type Description
pv String Contains a parameter value return translated parameter value
Source:

updateScenario(name)

Function
Parameters:
Name Type Description
name String Name of the new Scenario
Source: