fr.cnes.sitools.project.graph.model
Class Graph

java.lang.Object
  extended by fr.cnes.sitools.project.graph.model.Graph
All Implemented Interfaces:
IResource

public final class Graph
extends java.lang.Object
implements IResource

Class for definition of a research graph on a dataset

Author:
m.gond (AKKA Technologies)

Constructor Summary
Graph()
           
 
Method Summary
 java.util.List<GraphNodeComplete> deleteDatasetChildren(java.util.List<GraphNodeComplete> nodes, java.lang.String datasetId)
          Delete all children corresponding to the datasetId
 java.util.List<GraphNodeComplete> getAllDatasets(java.util.List<GraphNodeComplete> nodes)
          Gett All datasets under a specified list of nodes
 java.lang.String getDescription()
          Gets the description value
 java.lang.String getId()
          Gets the id value
 java.lang.String getName()
          Gets the name value
 java.util.List<GraphNodeComplete> getNodeList()
          Gets the nodeList value
 java.lang.String getParent()
          Gets the parent value
 void setDescription(java.lang.String description)
          Sets the value of description
 void setId(java.lang.String id)
          Sets the value of id
 void setName(java.lang.String name)
          Sets the value of name
 void setNodeList(java.util.List<GraphNodeComplete> nodeList)
          Sets the value of nodeList
 void setParent(java.lang.String parent)
          Sets the value of parent
 java.util.List<GraphNodeComplete> updateDatasetChildren(java.util.List<GraphNodeComplete> nodes, DataSet ds)
          Updates all children corresponding to the dataset param
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Graph

public Graph()
Method Detail

getId

public java.lang.String getId()
Gets the id value

Specified by:
getId in interface IResource
Returns:
the id

setId

public void setId(java.lang.String id)
Sets the value of id

Specified by:
setId in interface IResource
Parameters:
id - the id to set

getName

public java.lang.String getName()
Gets the name value

Specified by:
getName in interface IResource
Returns:
the name

setName

public void setName(java.lang.String name)
Sets the value of name

Parameters:
name - the name to set

getDescription

public java.lang.String getDescription()
Gets the description value

Specified by:
getDescription in interface IResource
Returns:
the description

setDescription

public void setDescription(java.lang.String description)
Sets the value of description

Parameters:
description - the description to set

getNodeList

public java.util.List<GraphNodeComplete> getNodeList()
Gets the nodeList value

Returns:
the nodeList

setNodeList

public void setNodeList(java.util.List<GraphNodeComplete> nodeList)
Sets the value of nodeList

Parameters:
nodeList - the nodeList to set

setParent

public void setParent(java.lang.String parent)
Sets the value of parent

Parameters:
parent - the parent to set

getParent

public java.lang.String getParent()
Gets the parent value

Returns:
the parent

getAllDatasets

public java.util.List<GraphNodeComplete> getAllDatasets(java.util.List<GraphNodeComplete> nodes)
Gett All datasets under a specified list of nodes

Parameters:
nodes - the nodes
Returns:
tje list of datasets as graphNodeComplete

updateDatasetChildren

public java.util.List<GraphNodeComplete> updateDatasetChildren(java.util.List<GraphNodeComplete> nodes,
                                                               DataSet ds)
Updates all children corresponding to the dataset param

Parameters:
nodes - : a nodeList
ds - : the dataset to update
Returns:
the list of children updated

deleteDatasetChildren

public java.util.List<GraphNodeComplete> deleteDatasetChildren(java.util.List<GraphNodeComplete> nodes,
                                                               java.lang.String datasetId)
Delete all children corresponding to the datasetId

Parameters:
nodes - : a nodeList
datasetId - : the id of the dataset to delete
Returns:
the list of children without the deleted dataset


Copyright © 2010-2013 CNES. All Rights Reserved.