All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class key.Site

java.lang.Object
   |
   +----key.Atom
           |
           +----key.Site

public class Site
extends Atom
implements Subnet
It's too hard to give sites a unique name, but its useful to store them in a container to save us writing custom load/save routines. It also means if you *do* know a sites 'number' on the program, you have a chance ;)


Constructor Index

 o Site()
 o Site(int[])
You can construct a Site with any IP, but only the relevant IP's will be stored.

Method Index

 o connectionsAllowed()
 o connectionStatistics()
 o evalReadOnlyProperty(ReadOnlyProperty)
override to return the correct value for the supplied property make sure you call super.evalReadOnlyProperty if you don't understand it before returning null
 o fullResolve()
 o getMask()
 o getTrailer()
 o loadFrom(DataInput)
 o newbiesAllowed()
 o registerSite(String)
Some sites will have dns entries for certain IP's within them, and not have entries for others.
 o resetTrailer(String)
The passed in string MUST be lowercase
 o setBan(String, Player, DateTime, DateTime, String)
 o toString()
 o writeTo(DataOutput)

Constructors

 o Site
 public Site()
 o Site
 public Site(int ip[])
You can construct a Site with any IP, but only the relevant IP's will be stored.

Methods

 o evalReadOnlyProperty
 public Object evalReadOnlyProperty(ReadOnlyProperty p)
override to return the correct value for the supplied property make sure you call super.evalReadOnlyProperty if you don't understand it before returning null

Overrides:
evalReadOnlyProperty in class Atom
 o newbiesAllowed
 public final boolean newbiesAllowed()
 o connectionsAllowed
 public final boolean connectionsAllowed()
 o connectionStatistics
 public final TimeStatistics connectionStatistics()
 o resetTrailer
 protected void resetTrailer(String newT)
The passed in string MUST be lowercase

 o writeTo
 public void writeTo(DataOutput to) throws IOException
Overrides:
writeTo in class Atom
 o loadFrom
 public void loadFrom(DataInput from) throws IOException
Overrides:
loadFrom in class Atom
 o getMask
 public int[] getMask()
 o getTrailer
 public String getTrailer()
 o registerSite
 public void registerSite(String dns)
Some sites will have dns entries for certain IP's within them, and not have entries for others. We also need this code to find the 'lowest common denominator' in the site alpha.

 o toString
 public String toString()
Overrides:
toString in class Atom
 o fullResolve
 public void fullResolve()
Overrides:
fullResolve in class Atom
 o setBan
 public final void setBan(String banType,
                          Player p,
                          DateTime now,
                          DateTime until,
                          String reason)

All Packages  Class Hierarchy  This Package  Previous  Next  Index