Skip to content

Commit

Permalink
add jar packaging in pom.xml file and optimize the query of the sources
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaye-Awa Ba committed Sep 1, 2015
1 parent 33e9c16 commit 6e13c1c
Show file tree
Hide file tree
Showing 6 changed files with 1,346 additions and 10 deletions.
1 change: 0 additions & 1 deletion BasecolDAOTest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
<dependency>
<groupId>org.apache.cayenne</groupId>
<artifactId>cayenne-server</artifactId>
<!-- Here specify the version of Cayenne you are actually using -->
<version>3.1</version>
</dependency>
<dependency>
Expand Down
1 change: 1 addition & 0 deletions TAP-PLUG-BASECOL2012/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.vamdc.tap.plugin</groupId>
<artifactId>TAP-BASECOL2012</artifactId>
<packaging>jar</packaging>
<name>Basecol node plugin</name>
<description>Basecol plugin for VAMDC-TAP Java node software</description>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class AtomicTypeBuilder {
public static void addAtom(EnergyTables myetable, RequestInterface myrequest){
if (!myrequest.checkBranch(Requestable.Atoms))
return;
String atomID = IDs.getSpecieID(myetable.getToElements()./*getElementRel()*/getIdElement().intValue());
String atomID = IDs.getSpecieID(myetable.getToElements().getIdElement().intValue());
if (myrequest.getXsamsManager().getElement(atomID)==null)
{//build atom description only in case we don't have it yet, in other case just add states
AtomType myatom = new Atom(myetable);
Expand Down Expand Up @@ -64,7 +64,7 @@ public static void addAtom(EnergyTables myetable, RequestInterface myrequest){
}
//Add states to XSAMS tree
myrequest.getXsamsManager().addStates(
IDs.getSpecieID(myetable.getToElements()/*getElementRel()*/.getIdElement().intValue()),
IDs.getSpecieID(myetable.getToElements().getIdElement().intValue()),
mystates);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import java.util.List;
import java.util.Map;

import org.apache.cayenne.access.DataContext;
import org.vamdc.BasecolTest.dao.Collisions;
import org.vamdc.BasecolTest.dao.LevelGroups;
import org.vamdc.BasecolTest.dao.RefsGroups;
Expand All @@ -28,11 +27,6 @@ public Collision(
List<RefsGroups> allRefs,List<RefsGroups> methodRefs){

this.setId(IDs.getID('P',"C"+data.getIdCollision()+levelmap.get(rates.getLevelGroupID()).getID()));

//List<RefsGroups> allRefs = data.getToRefsGroups();
/*allRefs.addAll(data.getToRefsMethod());
allRefs.addAll(data.getToRefsPES());
allRefs.addAll(data.getToRefsReduMass());*/

this.addSources(Source.getSources(allRefs,document,true));

Expand All @@ -42,7 +36,7 @@ public Collision(

int targetETable = data.getToEnergyTarget().getIdEnergyTable().intValue();
int colliderETable = data.getToEnergyCollider().getIdEnergyTable().intValue();
//LevelSet levels = rates.getMylevels();

LevelGroups lg=levelmap.get(rates.getLevelGroupID());

this.getReactants().add(
Expand Down
Loading

0 comments on commit 6e13c1c

Please sign in to comment.