added a parameters class to avoid code duplication

provides:
setParameter, getParameter, virtual onNetworkParametersChanged and setNetworkParameters