|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfi.helsinki.dacopan.model.Host
public class Host
A host present in a scenario.
Field Summary | |
---|---|
protected java.lang.String |
hostname
hostname |
protected long |
id
unique id of the host |
protected java.lang.String |
ip
ip address |
protected java.util.List |
staticVariables
list of static variables associated with this host |
Constructor Summary | |
---|---|
Host(long id,
java.lang.String ip,
java.lang.String hostname)
Creates a host with the given id, ip (required) and hostname. |
|
Host(long id,
java.lang.String ip,
java.lang.String hostname,
java.util.List staticVariables)
Creates a host with the given values and static variables. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getHostname()
Returns the hostname of the host (may be null). |
long |
getId()
Returns the unique identifier of this object. |
java.lang.String |
getIp()
Returns the ip address of the host (guaranteed to be non-null). |
java.util.List |
getStaticVariables()
Returns a List of ALL StaticVariables the host has in the scenario. |
int |
hashCode()
|
void |
setStaticVariables(java.util.List staticVariables)
Sets the static variables for this host. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected long id
protected java.lang.String ip
protected java.lang.String hostname
protected java.util.List staticVariables
Constructor Detail |
---|
public Host(long id, java.lang.String ip, java.lang.String hostname)
public Host(long id, java.lang.String ip, java.lang.String hostname, java.util.List staticVariables)
Method Detail |
---|
public long getId()
Identifiable
getId
in interface Identifiable
public java.lang.String getHostname()
public java.lang.String getIp()
public java.util.List getStaticVariables()
public void setStaticVariables(java.util.List staticVariables)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |