Reference Source

js/topology/define/topology_define_view.js

// NPM IMPORTS
// import assert from 'assert'

// COMMON IMPORTS
import TopologyDefineItem from './topology_define_item'


let context = 'common/topology/define/topology_define_view'



/**
 * @file View class: describe a View topology item.
 * 
 * @author Luc BORIES
 * 
 * @license Apache-2.0
 */
export default class TopologyDefineView extends TopologyDefineItem
{
	/**
	 * Create a TopologyDefineView instance.
	 * @class TopologyDefineView
	 * @extends TopologyDefineItem
	 * 
	 * @param {string} arg_name - instance name.
	 * @param {object} arg_settings - instance settings map.
	 * @param {string} arg_log_context - trace context string.
	 * 
	 * @returns {nothing}
	 */
	constructor(arg_name, arg_settings, arg_log_context)
	{
		const log_context = arg_log_context ? arg_log_context : context
		super(arg_name, arg_settings, 'TopologyDefineView', log_context)
		
		this.is_topology_define_view = true

		this.topology_type = 'views'
		
		this.info('View is created')
	}
}