ucr.graphgen
Class Node

java.lang.Object
  extended byucr.graphgen.Node
All Implemented Interfaces:
java.io.Serializable

public class Node
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
 java.util.Vector Connected_TO
           
private  java.util.Vector Connected_TO_COUNTRY_IP
           
private  java.util.Vector Connected_TO_COUNTRY_PORT
           
private  java.util.Vector Connected_TO_ID
           
private  int free_slot
           
private  int id
           
private  java.lang.String IP
           
 java.util.Vector My_Data_Sources
           
private  java.lang.String name
           
 int occupied_slot
           
private  int PORT
           
 
Constructor Summary
Node(int sid, java.lang.String sname, int sfree_slot)
           
 
Method Summary
 void add_CT_COUNTRY_IP(java.lang.String sIP)
           
 void add_CT_COUNTRY_PORT(int sPORT)
           
 void addDataSource(int source)
           
 void Country(int sid, java.lang.String sname, int sfree_slot)
           
 java.lang.String get_Connected_At(int i)
           
 java.lang.String get_Connected_COUNTRY_IP_At(int i)
           
 int get_Connected_COUNTRY_PORT_At(int i)
           
 int get_Connected_ID_At(int i)
           
 int get_Connected_size()
           
 int get_free_slots()
           
 int get_id()
           
 java.lang.String get_IP()
           
 java.lang.String get_name()
           
 void get_NEW_slot(java.lang.String countryname, int country_id)
           
 int get_PORT()
           
 boolean get_slot(java.lang.String countryname, int country_id)
           
 java.lang.String getDataSources()
           
 java.util.Vector getDataSourcesVector()
           
 void readObject(java.io.ObjectInputStream in)
           
 void set_Address(java.lang.String sIP, int sPORT)
           
 void setAll(int sid, java.lang.String sname, int sfree_slot)
           
 void writeObject(java.io.ObjectOutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

private int id

name

private java.lang.String name

free_slot

private int free_slot

Connected_TO

public java.util.Vector Connected_TO

Connected_TO_ID

private java.util.Vector Connected_TO_ID

Connected_TO_COUNTRY_IP

private java.util.Vector Connected_TO_COUNTRY_IP

Connected_TO_COUNTRY_PORT

private java.util.Vector Connected_TO_COUNTRY_PORT

My_Data_Sources

public java.util.Vector My_Data_Sources

IP

private java.lang.String IP

PORT

private int PORT

occupied_slot

public int occupied_slot
Constructor Detail

Node

public Node(int sid,
            java.lang.String sname,
            int sfree_slot)
Method Detail

writeObject

public void writeObject(java.io.ObjectOutputStream out)
                 throws java.io.IOException
Throws:
java.io.IOException

readObject

public void readObject(java.io.ObjectInputStream in)
                throws java.lang.ClassNotFoundException,
                       java.io.IOException
Throws:
java.lang.ClassNotFoundException
java.io.IOException

Country

public void Country(int sid,
                    java.lang.String sname,
                    int sfree_slot)

setAll

public void setAll(int sid,
                   java.lang.String sname,
                   int sfree_slot)

set_Address

public void set_Address(java.lang.String sIP,
                        int sPORT)

get_IP

public java.lang.String get_IP()

get_PORT

public int get_PORT()

get_id

public int get_id()

get_name

public java.lang.String get_name()

get_free_slots

public int get_free_slots()

get_Connected_size

public int get_Connected_size()

get_Connected_At

public java.lang.String get_Connected_At(int i)

get_Connected_ID_At

public int get_Connected_ID_At(int i)

get_Connected_COUNTRY_IP_At

public java.lang.String get_Connected_COUNTRY_IP_At(int i)

get_Connected_COUNTRY_PORT_At

public int get_Connected_COUNTRY_PORT_At(int i)

add_CT_COUNTRY_IP

public void add_CT_COUNTRY_IP(java.lang.String sIP)

add_CT_COUNTRY_PORT

public void add_CT_COUNTRY_PORT(int sPORT)

get_slot

public boolean get_slot(java.lang.String countryname,
                        int country_id)

get_NEW_slot

public void get_NEW_slot(java.lang.String countryname,
                         int country_id)

addDataSource

public void addDataSource(int source)

getDataSources

public java.lang.String getDataSources()

getDataSourcesVector

public java.util.Vector getDataSourcesVector()