blob: ce71ac443bca47d61222e713d8bae1b53696794e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
/*******************************************************************************
* Copyright (c) 2013 Boeing.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
package org.eclipse.osee.orcs.core.internal.graph;
import org.eclipse.osee.framework.core.data.IOseeBranch;
import org.eclipse.osee.framework.core.exception.OseeCoreException;
import org.eclipse.osee.orcs.data.HasBranch;
import org.eclipse.osee.orcs.data.HasLocalId;
import org.eclipse.osee.orcs.data.HasTransaction;
/**
* @author Roberto E. Escobar
*/
public interface GraphData extends HasBranch, HasTransaction {
@Override
IOseeBranch getBranch();
<T extends GraphNode> T getNode(HasLocalId data);
<T extends GraphNode> T getNode(int id);
void addNode(GraphNode node) throws OseeCoreException;
<T extends GraphNode> T removeNode(HasLocalId node);
<T extends GraphNode> T removeNode(int id);
<T extends GraphAdjacencies> T getAdjacencies(HasLocalId node);
<T extends GraphAdjacencies> T getAdjacencies(int id);
void addAdjacencies(HasLocalId node, GraphAdjacencies adjacencies);
void addAdjacencies(int id, GraphAdjacencies adjacencies);
<T extends GraphAdjacencies> T removeAdjacencies(HasLocalId node);
<T extends GraphAdjacencies> T removeAdjacencies(int id);
}
|