ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/owl/branches/aglappe-jung/proteinstructure/AIGEdge.java
Revision: 438
Committed: Wed Nov 28 15:44:57 2007 UTC (16 years, 10 months ago) by filippis
File size: 546 byte(s)
Log Message:
AAInfo
-isValidContactType, isValidSingleAtomContactType, isValidMultipleAtomContactType takes into account the directionality, the overlapping atoms and the "+"
-isOverlapping method has been added

AIGEdge
-copy method added

AIGNode
-equals and copy methods has been added

AIGraph
-getRIGraph now takes argument directed and directionality doesn't depend anymore on isCrossed
-distances are now set for RIGNodes in getRIGraph
-for undirected, crossed graphs we take care not to add parallel RIGedges in getRIGraph
-we set now the secondaryStructure object of RIGraph in getRIGraph
-addGraph has been added

Box
-we throw away wrong check in getDistancesWithinBox - read the comment

DbRIGraph
-constructors now take argument directed and directionality doesn't depend anymore on isCrossed
-distances are read also from db and set for RIGEdges

Pdb
-get_graph now takes as argument directed and directionality doesn't depend anymore on isCrossed
-there is check for forbidden cts in get_graph
-cts with + are taken into account in get_graph

RIGEdge
-setAtomWeight and setDistance methods have been added

RIGNode
-equals method has been added

RIGraph
-getObsLength has been deleted
-we take care now of the new cts (+,undirected crossed), of null secondary structure case and of distances in write_graph_to_db and write_graph_to_db_fast

genDbGraph
-argument for directionality is now added


Line User Rev File contents
1 duarte 420 package proteinstructure;
2    
3     public class AIGEdge {
4    
5     private static final double DEFAULT_WEIGHT = 1;
6     private double weight;
7     private double distance;
8    
9     public AIGEdge(double distance) {
10     this.weight= DEFAULT_WEIGHT;
11     this.distance = distance;
12     }
13    
14     public AIGEdge(double weight, double distance) {
15     this.weight = weight;
16     this.distance = distance;
17     }
18    
19     public double getWeight() {
20     return this.weight;
21     }
22    
23     public double getDistance() {
24     return this.distance;
25     }
26    
27 filippis 438 public AIGEdge copy() {
28     return (new AIGEdge(weight, distance));
29     }
30 duarte 420 }