org.gersteinlab.tyna.webapp.data
Class Network

java.lang.Object
  extended by org.gersteinlab.tyna.webapp.data.Network
All Implemented Interfaces:
java.io.Serializable

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

        This class contains the information of a network.
        

Version:
1.0 (October 1, 2005) Change History: 1.0 - Initial version
Author:
Kevin Yuk-Lap Yip
See Also:
Serialized Form

Field Summary
protected  java.sql.Timestamp created
          Time of network creation.
protected  java.lang.Integer creatorId
          ID of the network creator.
protected  java.lang.String creatorName
          Name of the network creator.
protected  java.lang.String description
          Network description.
protected  java.lang.Integer formatId
          Id of network format.
protected  java.lang.String formatName
          Name of network format.
protected  java.lang.Integer id
          Network ID.
protected  java.lang.Boolean isDirected
          Is the network directed.
protected  java.lang.Boolean isMultigraph
          Is the network a multigraph.
protected  java.lang.Boolean isPublic
          Is the network public.
protected  java.lang.String name
          Network name.
protected  java.lang.Integer type
          Network type
 
Constructor Summary
Network()
          Default constructor: creates an empty object.
Network(java.lang.Integer id, java.lang.String name, java.lang.String description, java.lang.Integer formatId, java.lang.String formatName, java.lang.Boolean isDirected, java.lang.Boolean isMultigraph, java.lang.Integer creatorId, java.lang.String creatorName, java.sql.Timestamp created, java.lang.Boolean isPublic, java.lang.Integer type)
          Creates a new object that stores the supplied information.
 
Method Summary
 java.sql.Timestamp getCreated()
          Get the time of network creation.
 java.lang.Integer getCreatorId()
          Get the ID of the network creator.
 java.lang.String getCreatorName()
          Get the name of the network creator.
 java.lang.String getDescription()
          Get the network description.
 java.lang.Integer getFormatId()
          Get the ID of the network format.
 java.lang.String getFormatName()
          Get the name of the network format.
 java.lang.Integer getId()
          Get the network ID.
 java.lang.Boolean getIsDirected()
          Check if the network is directed.
 java.lang.Boolean getIsMultigraph()
          Check if the network is a multigraph.
 java.lang.Boolean getIsPublic()
          Check if the network is public.
 java.lang.String getName()
          Get the network name.
 java.lang.Integer getType()
          Get the network type.
 void setCreated(java.sql.Timestamp created)
          Set the time of network creation.
 void setCreatorId(java.lang.Integer creatorId)
          Set the ID of th network creator.
 void setCreatorName(java.lang.String creatorName)
          Set the name of th network creator.
 void setDescription(java.lang.String description)
          Set the network description.
 void setFormatId(java.lang.Integer formatId)
          Set the ID of the network format.
 void setFormatName(java.lang.String formatName)
          Set the name of the network format.
 void setId(java.lang.Integer id)
          Set the network ID.
 void setIsDirected(java.lang.Boolean isDirected)
          Set if the network is directed.
 void setIsMultigraph(java.lang.Boolean isMultigraph)
          Set if the network is a multigraph.
 void setIsPublic(java.lang.Boolean isPublic)
          Set if the network is public.
 void setName(java.lang.String name)
          Set the network name.
 void setType(java.lang.Integer type)
          Set the network type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected java.lang.Integer id
Network ID.


name

protected java.lang.String name
Network name.


description

protected java.lang.String description
Network description.


formatId

protected java.lang.Integer formatId
Id of network format.


formatName

protected java.lang.String formatName
Name of network format.


isDirected

protected java.lang.Boolean isDirected
Is the network directed.


isMultigraph

protected java.lang.Boolean isMultigraph
Is the network a multigraph.


creatorId

protected java.lang.Integer creatorId
ID of the network creator.


creatorName

protected java.lang.String creatorName
Name of the network creator.


created

protected java.sql.Timestamp created
Time of network creation.


isPublic

protected java.lang.Boolean isPublic
Is the network public.


type

protected java.lang.Integer type
Network type

Constructor Detail

Network

public Network()
Default constructor: creates an empty object.


Network

public Network(java.lang.Integer id,
               java.lang.String name,
               java.lang.String description,
               java.lang.Integer formatId,
               java.lang.String formatName,
               java.lang.Boolean isDirected,
               java.lang.Boolean isMultigraph,
               java.lang.Integer creatorId,
               java.lang.String creatorName,
               java.sql.Timestamp created,
               java.lang.Boolean isPublic,
               java.lang.Integer type)
Creates a new object that stores the supplied information.

Parameters:
id - Network ID
name - Network name
description - Network description
formatId - ID of network format
formatName - Name of network format
isDirected - Is the network directed
isMultigraph - Is the network a multigraph
creatorId - ID of the network creator
creatorName - Name of the network creator
created - Time of network creation
isPublic - Is the network public
type - Network type
Method Detail

getId

public java.lang.Integer getId()
Get the network ID.

Returns:
The network ID.

setId

public void setId(java.lang.Integer id)
Set the network ID.

Parameters:
id - The network ID.

getName

public java.lang.String getName()
Get the network name.

Returns:
The network name.

setName

public void setName(java.lang.String name)
Set the network name.

Parameters:
name - The network name.

getDescription

public java.lang.String getDescription()
Get the network description.

Returns:
The network description.

setDescription

public void setDescription(java.lang.String description)
Set the network description.

Parameters:
description - The network description.

getFormatId

public java.lang.Integer getFormatId()
Get the ID of the network format.

Returns:
The ID of the network format.

setFormatId

public void setFormatId(java.lang.Integer formatId)
Set the ID of the network format.

Parameters:
formatId - The ID of the network format.

getFormatName

public java.lang.String getFormatName()
Get the name of the network format.

Returns:
The name of the network format.

setFormatName

public void setFormatName(java.lang.String formatName)
Set the name of the network format.

Parameters:
formatName - The name of the network format.

getIsDirected

public java.lang.Boolean getIsDirected()
Check if the network is directed.

Returns:
Is the network directed.

setIsDirected

public void setIsDirected(java.lang.Boolean isDirected)
Set if the network is directed.

Parameters:
isDirected - Is the network directed.

getIsMultigraph

public java.lang.Boolean getIsMultigraph()
Check if the network is a multigraph.

Returns:
Is the network a multigraph.

setIsMultigraph

public void setIsMultigraph(java.lang.Boolean isMultigraph)
Set if the network is a multigraph.

Parameters:
isMultigraph - Is the network a multigraph.

getCreatorId

public java.lang.Integer getCreatorId()
Get the ID of the network creator.

Returns:
The ID of the network creator.

setCreatorId

public void setCreatorId(java.lang.Integer creatorId)
Set the ID of th network creator.

Parameters:
creatorId - The ID of the network creator.

getCreatorName

public java.lang.String getCreatorName()
Get the name of the network creator.

Returns:
The name of the network creator.

setCreatorName

public void setCreatorName(java.lang.String creatorName)
Set the name of th network creator.

Parameters:
creatorName - The name of the network creator.

getCreated

public java.sql.Timestamp getCreated()
Get the time of network creation.

Returns:
The time of network creation.

setCreated

public void setCreated(java.sql.Timestamp created)
Set the time of network creation.

Parameters:
created - The time of network creation.

getIsPublic

public java.lang.Boolean getIsPublic()
Check if the network is public.

Returns:
Is the network public.

setIsPublic

public void setIsPublic(java.lang.Boolean isPublic)
Set if the network is public.

Parameters:
isPublic - Is the network public.

getType

public java.lang.Integer getType()
Get the network type.

Returns:
The network type.

setType

public void setType(java.lang.Integer type)
Set the network type.

Parameters:
type - The network type.