blob: ed2bbebf6f36658d0f8cfd95df20db3be50d146d [file] [log] [blame]
Meki Cherkaouif441d3a2012-04-22 15:17:52 -07001/*
2 * @author: ucla-cs
3 * This class represents Exclude Component OBjects
4 */
5
6var ExcludeComponent = function ExcludeComponent(_Body) {
7
8 //TODO Check BODY is an Array of componenets.
9
10 this.Body = _Body
11};
12
13ExcludeComponent.prototype.decode = function( decoder) {
14 body = decoder.readBinaryElement(this.getElementLabel());
15};
16
17ExcludeComponent.prototype.encode = function(encoder) {
18 encoder.writeElement(this.getElementLabel(), body);
19};
20
21ExcludeComponent.prototype.getElementLabel = function() { return CCNProtocolDTags.Component; };
22