// JavaScript Document
function oClew(objName) {
	this.name = objName;
	this.aNodes = [];
	
};

// JavaScript Document

function ClewNode( cid,name, singleClew,manyClew) {
	this.cid = cid;
	this.name = name;
	this.singleClew = singleClew;
	this.manyClew = manyClew;
};
oClew.prototype.add = function( cid,name, singleClew,manyClew)  {
	this.aNodes[this.aNodes.length] = new ClewNode( cid,name, singleClew,manyClew) ;
};
//取得通道ID对应的通道
oClew.prototype.getClew = function(cid){
	var nodes;
	for(var i=0;i<this.aNodes.length;i++){
		if(this.aNodes[i].cid==cid){
			nodes=this.aNodes[i];
		}
	}
	return nodes;
}

