universe.client.database
Class SystemView

java.lang.Object
  |
  +--universe.client.database.DatabaseObjectView
        |
        +--universe.client.database.SystemView
All Implemented Interfaces:
java.io.Serializable

public class SystemView
extends DatabaseObjectView

Version:
$Id: SystemView.java,v 1.7 2003/04/04 00:52:07 sstarkey Exp $ This class represents a client's view of a system.
Author:
Sean Starkey
See Also:
Serialized Form

Field Summary
private  Coord coord_location
           
private  GalaxyID GID
           
private  java.util.Vector myStars
           
private  java.lang.String name
           
private  java.util.Vector planets
           
private  SimpleAccrete.StarMakeup starMakeup
           
 
Fields inherited from class universe.client.database.DatabaseObjectView
index
 
Constructor Summary
SystemView(Index index, GalaxyID GID, java.lang.String name, Coord coord, java.util.Vector planets, SimpleAccrete.StarMakeup sm, java.util.Vector stars)
           
 
Method Summary
 Coord getCoords()
          Returns the three-space coordinates of the system instance within the galaxy to which it belongs.
 GalaxyID getGalaxyID()
           
 Location getLocation()
           
 java.lang.String getName()
           
 java.util.Enumeration getPlanets()
           
 SimpleAccrete.StarMakeup getStarMakeup()
          Returns the stellar make-up of the primary star in the receiving system instance.
 Star starAtIndex(int index)
           
 
Methods inherited from class universe.client.database.DatabaseObjectView
getIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private java.lang.String name

coord_location

private Coord coord_location

GID

private GalaxyID GID

planets

private java.util.Vector planets

starMakeup

private SimpleAccrete.StarMakeup starMakeup

myStars

private java.util.Vector myStars
Constructor Detail

SystemView

public SystemView(Index index,
                  GalaxyID GID,
                  java.lang.String name,
                  Coord coord,
                  java.util.Vector planets,
                  SimpleAccrete.StarMakeup sm,
                  java.util.Vector stars)
Method Detail

getGalaxyID

public GalaxyID getGalaxyID()

getName

public java.lang.String getName()

getCoords

public Coord getCoords()
Returns the three-space coordinates of the system instance within the galaxy to which it belongs.


getPlanets

public java.util.Enumeration getPlanets()

getLocation

public Location getLocation()

getStarMakeup

public SimpleAccrete.StarMakeup getStarMakeup()
Returns the stellar make-up of the primary star in the receiving system instance.


starAtIndex

public Star starAtIndex(int index)


Copyright © 2001 Universe Dev Team All Rights Reserved.