00001 00009 package org.rosmultimedia.player.samsung; 00010 00011 import org.ros.node.ConnectedNode; 00012 import org.rosbuilding.common.NodeConfig; 00013 00019 public class SamsungConfig extends NodeConfig { 00020 00021 public static final String RATE = "rate"; 00022 00023 private String mac; 00024 private String host; 00025 private int port; 00026 private String user; 00027 private String password; 00028 00029 public SamsungConfig(ConnectedNode connectedNode) { 00030 super(connectedNode, "samsung_salon", "fixed_frame", 1); 00031 } 00032 00033 @Override 00034 protected void loadParameters() { 00035 super.loadParameters(); 00036 00037 this.mac = this.connectedNode.getParameterTree() 00038 .getString("~mac", "00:00:00:00:00:00"); 00039 this.host = this.connectedNode.getParameterTree() 00040 .getString("~ip", "192.168.0.40"); 00041 this.port = this.connectedNode.getParameterTree() 00042 .getInteger("~port", 55000); 00043 this.user = this.connectedNode.getParameterTree() 00044 .getString("~user", "admin"); 00045 this.password = this.connectedNode.getParameterTree() 00046 .getString("~password", "admin"); 00047 } 00048 00049 public String getMac() { 00050 return this.mac; 00051 } 00052 00053 public String getHost() { 00054 return this.host; 00055 } 00056 00057 public int getPort() { 00058 return this.port; 00059 } 00060 00061 public String getUser() { 00062 return this.user; 00063 } 00064 00065 public String getPassword() { 00066 return this.password; 00067 } 00068 }