/*jslint plusplus: true, white: true, indent: 2, maxlen: 90 */
/*global $wk$ */
/**
* @author Wolfgang Kowarschick
* @copyright 2012-2013, Wolfgang Kowarschick
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted under the terms of the
* Creative Commons License Attribution-NonCommercial-ShareAlike 3.0 Unported
* (CC BY-NC-SA 3.0: http://creativecommons.org/licenses/by-nc-sa/3.0/).
*/
////////////////////////////////////////////////////////////////////////////////
// Class "$wk$.vclsd.logic.WKcLogic"
////////////////////////////////////////////////////////////////////////////////
$wk$("$wk$.WKcClass",
function($)
{ "use strict";
/**
* <code>WKcLogic</code> objects can be used listen on data changes,
* to modify data and to invoke services that read data from and send
* data to external servers/services.
*
* @class
* @name $wk$.vclsd.logic.WKcLogic
* @returns {Object} A new logic object.
*/
var WKcLogic =
new $.WKcClass
({fullName: "$wk$.vclsd.logic.WKcLogic",
private:
{ v_data: null,
v_service: null,
},
methods:
{ /**
* Sets the data object that can be accessed by the logic object.
*
* @method
* @name $wk$.vclsd.logic.WKcLogic#data
* @writeonly
*
* @param {$wk$.vclsd.data.WKcData} p_data A data object.
*/
set data(p_data) { this.v_data = p_data; },
/**
* Sets the service object that can be accessed by the logic object.
*
* @method
* @name $wk$.vclsd.logic.WKcLogic#service
* @writeonly
*
* @param {$wk$.vclsd.service.WKcService} p_service A service object.
*/
set service(p_service) { this.v_service = p_service; },
}
});
$.moduleAdd({ name: "$wk$.vclsd.logic.WKcLogic",
module: { WKcLogic: WKcLogic }
});
});
////////////////////////////////////////////////////////////////////////////////
// End of Class "$wk$.ldvcs.logic.WKcLogic"
////////////////////////////////////////////////////////////////////////////////