risiko.server.valueobjects
Class KontinentImpl
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
risiko.server.valueobjects.KontinentImpl
- All Implemented Interfaces:
- java.io.Serializable, java.rmi.Remote, Kontinent
public class KontinentImpl
- extends java.rmi.server.UnicastRemoteObject
- implements java.io.Serializable, Kontinent
mit der Kontinent-Klasse kann ein Kontinent-Objekt erzeugt werden, dem ein Name, eine Punktewert und Laender zugewiesen wird.
- Version:
- 2009-05-25
- Author:
- hhollstein
- See Also:
- Serialized Form
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
getRef, hashCode, toStub |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
KontinentImpl
public KontinentImpl(java.lang.String n,
int p)
throws java.rmi.RemoteException
- Parameters:
n
- Name des Kontinentenp
- Punktzahl
- Throws:
java.rmi.RemoteException
setName
public void setName(java.lang.String name)
- Specified by:
setName
in interface Kontinent
- Parameters:
name
- the name to set
getName
public java.lang.String getName()
- Specified by:
getName
in interface Kontinent
- Returns:
- the name
setPunkt
public void setPunkt(int punkt)
- Specified by:
setPunkt
in interface Kontinent
- Parameters:
punkt
- the punkt to set
getPunkt
public int getPunkt()
- Specified by:
getPunkt
in interface Kontinent
- Returns:
- the punkt
setLaenderListe
public void setLaenderListe(java.util.Vector<Land> laenderListe)
- Specified by:
setLaenderListe
in interface Kontinent
- Parameters:
laenderListe
- the laenderListe to set
getLaenderListe
public java.util.Vector<Land> getLaenderListe()
- Specified by:
getLaenderListe
in interface Kontinent
- Returns:
- the laenderListe
setErobert
public void setErobert(boolean erobert)
- Specified by:
setErobert
in interface Kontinent
- Parameters:
erobert
- the erobert to set
isErobert
public boolean isErobert()
- Specified by:
isErobert
in interface Kontinent
- Returns:
- the erobert
toString
public java.lang.String toString()
- Overrides:
toString
in class java.rmi.server.RemoteObject
equals
public boolean equals(java.lang.Object vergleich)
- Overrides:
equals
in class java.rmi.server.RemoteObject