Go to the documentation of this file.00001
00009 package org.rosmultimedia.player.onkyo;
00010
00011 import org.ros.node.ConnectedNode;
00012 import org.rosbuilding.common.NodeConfig;
00013
00019 public class OnkyoConfig extends NodeConfig {
00020
00021 public static final String RATE = "rate";
00022
00023 private String mac;
00024 private String host;
00025 private int port;
00026
00027 public OnkyoConfig(ConnectedNode connectedNode) {
00028 super(connectedNode, "onkyo_salon", "fixed_frame", 1);
00029 }
00030
00031 @Override
00032 protected void loadParameters() {
00033 super.loadParameters();
00034
00035 this.mac = this.connectedNode.getParameterTree()
00036 .getString("~mac", "00:00:00:00:00:00");
00037 this.host = this.connectedNode.getParameterTree()
00038 .getString("~ip", "192.168.0.12");
00039 this.port = this.connectedNode.getParameterTree()
00040 .getInteger("~port", 60128);
00041 }
00042
00043 public String getMac() {
00044 return this.mac;
00045 }
00046
00047 public String getHost() {
00048 return this.host;
00049 }
00050
00051 public int getPort() {
00052 return this.port;
00053 }
00054 }