{"size": 1752, "ext": "js", "max_stars_repo_path": "src/core/ModConf.js", "max_stars_repo_name": "mofron/mofron", "max_stars_repo_stars_event_min_datetime": "2017-12-09T18:30:49.000Z", "max_stars_repo_stars_event_max_datetime": "2021-04-06T13:59:04.000Z", "max_issues_repo_path": "src/core/ModConf.js", "max_issues_repo_name": "mofron/mofron", "max_issues_repo_issues_event_min_datetime": "2017-08-03T09:12:43.000Z", "max_issues_repo_issues_event_max_datetime": "2019-03-24T03:22:46.000Z", "max_forks_repo_path": "src/core/ModConf.js", "max_forks_repo_name": "mofron/mofron", "max_forks_repo_forks_event_min_datetime": "2019-03-23T01:28:24.000Z", "max_forks_repo_forks_event_max_datetime": "2019-03-23T01:28:24.000Z"}
{"max_stars_count": 6, "max_issues_count": 2, "max_forks_count": 1, "avg_line_length": 21.9, "max_line_length": 76, "alphanum_fraction": 0.4628995434}
/**
 * @file ModConf.js
 * @brief module config interface for mofron component
 * @author simpart
 */
const Base = require("./Base.js");

module.exports = class extends Base {
    
    constructor (po) {
        try {
            super(po);
            this.modname('ModConf');
	    /* init config */
	    this.confmng().add("component", { type: "Component" });
	    this.confmng().add("tag", { type: "string" });
            this.confmng().add("isInited", { type: "boolean", init: false })
            this.confmng().add("suspend", { type: "boolean", init: false });
            this.confmng().add("innerTgt", { type: "boolean", init: true });
        } catch (e) {
            console.error(e.stack);
            throw e;
        }
    }
    
    component (prm) {
        try {
	    return this.confmng("component", prm);
	} catch (e) {
            console.error(e.stack);
            throw e;
        }
    }
    
    execute () {
        console.warn('not implement');
    }
    
    contents (p1) {
        console.warn('not implement');
    }
    
    tag (prm) {
        try {
	    return this.confmng("tag", prm);
	} catch (e) {
            console.error(e.stack);
            throw e;
        }
    }
    
    isInited (prm) {
        try {
	    return this.confmng("isInited", prm);
	} catch (e) {
            console.error(e.stack);
            throw e;
        }
    }
    
    suspend (prm) {
        try {
	    return this.confmng("suspend", prm);
	} catch (e) {
            console.error(e.stack);
            throw e;
        }
    }

    innerTgt (prm) {
        try {
            return this.confmng("innerTgt", prm);
        } catch (e) {
            console.error(e.stack);
            throw e;
        }
    }
}
/* end of file */
