public class Machine extends Object
Constructor and Description |
---|
Machine()
Creates a new machine configuration
|
Machine(String name)
Creates a new machine configuration with the given name.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener) |
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener) |
boolean |
equals(Object obj) |
String |
getComment()
Returns the comment
|
String |
getEthernetAddress()
Returns the machines ethernet address
|
String |
getHost()
Returns the host the magic packet will be sent to.
|
String |
getName()
Returns this configurations name.
|
int |
getPort()
returns the port the magic packet will be send to.
|
void |
removePropertyChangeListener(PropertyChangeListener listener) |
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener listener) |
void |
setComment(String comment)
Sets the comment.
|
void |
setEthernetAddress(String ethernetAddress)
Sets the ethernet address.
|
void |
setHost(String host)
Sets the host the magic packet will be sent to.
|
void |
setName(String name)
Sets the name.
|
void |
setPort(int port)
Sets the port.
|
String |
toString() |
public Machine()
public Machine(String name)
name
- the name of this configurationpublic String getHost()
public String getEthernetAddress()
public String getName()
public int getPort()
public void setHost(String host)
host
- the host. Tis can be an IP addres or the name of the machinepublic void setEthernetAddress(String ethernetAddress)
ethernetAddress
- the ethernet addresspublic void setName(String name)
name
- the namepublic void setPort(int port)
port
- the port. The port must be between 0 and 0xFFFFIllegalArgumentException
- if the port is not between the valid rangepublic String getComment()
public void setComment(String comment)
comment
- the commentpublic void addPropertyChangeListener(PropertyChangeListener listener)
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)