base.network
Class Workstation
java.lang.Object
base.network.Workstation
- All Implemented Interfaces:
- IXMLSaveable
public class Workstation
- extends java.lang.Object
- implements IXMLSaveable
Constructor Summary |
protected |
Workstation(int id)
|
protected |
Workstation(int id,
java.lang.String name,
java.lang.String type,
java.lang.String description,
java.net.InetAddress address,
boolean inUse)
|
protected |
Workstation(int id,
java.lang.String name,
java.lang.String type,
java.lang.String description,
java.net.InetAddress address,
int port,
boolean inUse)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Workstation
protected Workstation(int id)
Workstation
protected Workstation(int id,
java.lang.String name,
java.lang.String type,
java.lang.String description,
java.net.InetAddress address,
boolean inUse)
Workstation
protected Workstation(int id,
java.lang.String name,
java.lang.String type,
java.lang.String description,
java.net.InetAddress address,
int port,
boolean inUse)
getAddress
public java.net.InetAddress getAddress()
- Returns:
- Returns the address.
setAddress
public void setAddress(java.net.InetAddress address)
- Parameters:
address
- The address to set.
getDescription
public java.lang.String getDescription()
- Returns:
- Returns the description.
setDescription
public void setDescription(java.lang.String description)
- Parameters:
description
- The description to set.
isInUse
public boolean isInUse()
- Returns:
- Returns the inUse.
setInUse
public void setInUse(boolean inUse)
- Parameters:
inUse
- The inUse to set.
getName
public java.lang.String getName()
- Returns:
- Returns the name.
setName
public void setName(java.lang.String name)
- Parameters:
name
- The name to set.
getType
public java.lang.String getType()
- Returns:
- Returns the type.
setType
public void setType(java.lang.String type)
- Parameters:
type
- The type to set.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getId
public int getId()
- Returns:
- Returns the id.
isServer
public boolean isServer()
- Returns:
- Returns true if this workstation is a server, false otherwise.
getPort
public int getPort()
- Returns:
- Returns the port.
setPort
public void setPort(int port)
- Parameters:
port
- The port to set.
getLocation
public java.lang.String getLocation()
- Returns:
- Returns the location.
setLocation
public void setLocation(java.lang.String location)
- Parameters:
location
- The location to set.
toXml
public org.w3c.dom.Node toXml(org.w3c.dom.Document document)
- Specified by:
toXml
in interface IXMLSaveable
Copyright © 2006 SF.net. All Rights Reserved.