/**
 * Copyright 2017 - 2019  The Hyve B.V.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */ import { Concept } from '../../models/constraint-models/concept' ; import { Subject } from 'rxjs' ; import { TreeNode } from 'primeng/api' ; import { VariablesViewMode } from '../../models/variables-view-mode' ; import { Constraint } from '../../models/constraint-models/constraint' ; import { TrueConstraint } from '../../models/constraint-models/true-constraint' ; import { GbTreeNode } from '../../models/tree-node-models/gb-tree-node' ; export class VariableServiceMock { private _variables : Concept [ ] = [ ] ; private _categorizedVariablesTree : GbTreeNode [ ] = [ ] ; private _variablesUpdated : Subject < Concept [ ] > = new Subject < Concept [ ] > ( ) ; private _selectedVariablesTreeUpdated : Subject < Concept [ ] > = new Subject < Concept [ ] > ( ) ; private _isUpdatingVariables = false ; private _variablesTree : TreeNode [ ] = [ ] ; private _selectedVariablesTree : TreeNode [ ] = [ ] ; private _draggedVariable : Concept = null ; public variablesDragDropScope = 'PrimeNGVariablesDragDropContext' ; private _variablesViewMode : VariablesViewMode ; public updateVariables ( ) { } public importVariablesByNames ( names ) { } public importVariablesByPaths ( paths ) { } public variableConstraint ( ) { return new TrueConstraint ( ) ; } public setVariableSelection ( b ) { } public identifyDraggedElement ( ) { return new Concept ( ) ; } get combination ( ) : Constraint { return new TrueConstraint ( ) ; } get isTreeNodesLoading ( ) : boolean { return false ; } get variables ( ) : Concept [ ] { return this . _variables ; } set variables ( value ) { this . _variables = value ; } get variablesUpdated ( ) : Subject < Concept [ ] > { return this . _variablesUpdated ; } set variablesUpdated ( value ) { this . _variablesUpdated = value ; } get categorizedVariables ( ) : Array < GbTreeNode > { return this . _categorizedVariablesTree ; } set categorizedVariablesTree ( value ) { this . _categorizedVariablesTree = value ; } get isUpdatingVariables ( ) : boolean { return this . _isUpdatingVariables ; } set isUpdatingVariables ( value ) { this . _isUpdatingVariables = value ; } get draggedVariable ( ) : Concept { return this . _draggedVariable ; } set draggedVariable ( value ) { this . _draggedVariable = value ; } get variablesViewMode ( ) : VariablesViewMode { return this . _variablesViewMode ; } set variablesViewMode ( value ) { this . _variablesViewMode = value ; } get selectedVariablesTreeUpdated ( ) : Subject < Concept [ ] > { return this . _selectedVariablesTreeUpdated ; } set selectedVariablesTreeUpdated ( value ) { this . _selectedVariablesTreeUpdated = value ; } get variablesTree ( ) : TreeNode [ ] { return this . _variablesTree ; } set variablesTree ( value ) { this . _variablesTree = value ; } get selectedVariablesTree ( ) : TreeNode [ ] { return this . _selectedVariablesTree ; } set selectedVariablesTree ( value ) { this . _selectedVariablesTree = value ; } }