You can subscribe to this list here.
| 2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(39) |
Jun
(81) |
Jul
(128) |
Aug
(40) |
Sep
(32) |
Oct
(50) |
Nov
(1) |
Dec
(9) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2007 |
Jan
(10) |
Feb
(37) |
Mar
(32) |
Apr
(3) |
May
(79) |
Jun
(63) |
Jul
(67) |
Aug
(83) |
Sep
(17) |
Oct
(42) |
Nov
(24) |
Dec
(6) |
| 2008 |
Jan
(4) |
Feb
(8) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(23) |
Nov
|
Dec
|
|
From: <das...@us...> - 2008-10-31 19:39:13
|
Revision: 1198
http://vlab.svn.sourceforge.net/vlab/?rev=1198&view=rev
Author: dasil014
Date: 2008-10-31 19:39:03 +0000 (Fri, 31 Oct 2008)
Log Message:
-----------
Backup
Modified Paths:
--------------
trunk/vlab/portal/deploy-all-webapps/pom.xml
trunk/vlab/portal/functional-tests/pom.xml
trunk/vlab/portal/portal-dependent-project/pom.xml
trunk/vlab/portal/pseudo-webapp/pom.xml
trunk/vlab/portal/pseudo-webapp/src/main/webapp/WEB-INF/web.xml
Modified: trunk/vlab/portal/deploy-all-webapps/pom.xml
===================================================================
--- trunk/vlab/portal/deploy-all-webapps/pom.xml 2008-10-31 18:43:30 UTC (rev 1197)
+++ trunk/vlab/portal/deploy-all-webapps/pom.xml 2008-10-31 19:39:03 UTC (rev 1198)
@@ -1,85 +1,88 @@
-<?xml version="1.0"?><project>
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <artifactId>portal-parent</artifactId>
- <groupId>edu.umn.msi.vlab</groupId>
- <version>1.0-SNAPSHOT</version>
- </parent>
+<?xml version="1.0"?>
+<project>
+ <modelVersion>4.0.0</modelVersion>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>deploy-all-webapps</artifactId>
- <packaging>pom</packaging>
- <version>1.0-SNAPSHOT</version>
-
- <name>Deploy all web applications</name>
- <description>A pom that deploys all web applications (using the cargo plugin)</description>
+ <parent>
+ <artifactId>portal-parent</artifactId>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.cargo</groupId>
- <artifactId>cargo-maven2-plugin</artifactId>
- <configuration>
- <deployer>
- <type>remote</type>
- <deployables>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>deploy-all-webapps</artifactId>
+ <packaging>pom</packaging>
+ <version>1.0-SNAPSHOT</version>
- <deployable>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>pseudo-webapp</artifactId>
- <type>war</type>
- <properties>
- <context>pseudo-repository</context>
- </properties>
- </deployable>
+ <name>Deploy all web applications</name>
+ <description>
+ A pom that deploys all web applications (using the cargo plugin)
+ </description>
- <deployable>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>input-portlet</artifactId>
- <type>war</type>
- <properties>
- <context>input-portlet</context>
- </properties>
- </deployable>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.cargo</groupId>
+ <artifactId>cargo-maven2-plugin</artifactId>
+ <configuration>
+ <deployer>
+ <type>remote</type>
+ <deployables>
- <deployable>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>vlab-portlets</artifactId>
- <type>war</type>
- <properties>
- <context>vlabportlets</context>
- </properties>
- </deployable>
+ <deployable>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>pseudo-webapp</artifactId>
+ <type>war</type>
+ <properties>
+ <context>pseudo-repository</context>
+ </properties>
+ </deployable>
- </deployables>
- </deployer>
- </configuration>
- </plugin>
- </plugins>
- </build>
+ <deployable>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>input-portlet</artifactId>
+ <type>war</type>
+ <properties>
+ <context>input-portlet</context>
+ </properties>
+ </deployable>
- <dependencies>
- <dependency>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>pseudo-webapp</artifactId>
- <version>1.0-SNAPSHOT</version>
- <type>war</type>
- </dependency>
+ <deployable>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>vlab-portlets</artifactId>
+ <type>war</type>
+ <properties>
+ <context>vlabportlets</context>
+ </properties>
+ </deployable>
- <dependency>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>input-portlet</artifactId>
- <version>1.0-SNAPSHOT</version>
- <type>war</type>
- </dependency>
+ </deployables>
+ </deployer>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
- <dependency>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>vlab-portlets</artifactId>
- <version>1.0-SNAPSHOT</version>
- <type>war</type>
- </dependency>
- </dependencies>
+ <dependencies>
+ <dependency>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>pseudo-webapp</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <type>war</type>
+ </dependency>
+ <dependency>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>input-portlet</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <type>war</type>
+ </dependency>
+
+ <dependency>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>vlab-portlets</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <type>war</type>
+ </dependency>
+ </dependencies>
+
</project>
Modified: trunk/vlab/portal/functional-tests/pom.xml
===================================================================
--- trunk/vlab/portal/functional-tests/pom.xml 2008-10-31 18:43:30 UTC (rev 1197)
+++ trunk/vlab/portal/functional-tests/pom.xml 2008-10-31 19:39:03 UTC (rev 1198)
@@ -1,191 +1,201 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <artifactId>portal-parent</artifactId>
- <groupId>edu.umn.msi.vlab</groupId>
- <version>1.0-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>functional-tests</artifactId>
- <name>functional-tests</name>
- <version>1.0-SNAPSHOT</version>
- <url>http://maven.apache.org</url>
- <build>
- <testSourceDirectory>src/it/java</testSourceDirectory>
- <testResources>
- <testResource>
- <filtering>true</filtering>
- <directory>src/it/resources</directory>
- </testResource>
- </testResources>
- <plugins>
- <plugin>
- <artifactId>maven-compiler-plugin</artifactId>
- </plugin>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <executions>
- <execution>
- <phase>integration-test</phase>
- <goals>
- <goal>test</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <excludes>
- <exclude>**/BaseGridsphereTestCase.java</exclude>
- </excludes>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.codehaus.cargo</groupId>
- <artifactId>cargo-maven2-plugin</artifactId>
- <configuration>
- <wait>false</wait>
- <container>
- <containerId>tomcat5x</containerId>
- <home>${tomcat.path}</home>
- <type>installed</type>
- </container>
- <configuration>
- <type>existing</type>
- <home>${tomcat.path}</home>
- <properties>
- <cargo.servlet.port>8280</cargo.servlet.port>
- </properties>
- <deployables>
- <deployable>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>pseudo-webapp</artifactId>
- <type>war</type>
- <properties>
- <context>pseudo-repository</context>
- </properties>
- </deployable>
- <deployable>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>input-portlet</artifactId>
- <type>war</type>
- <properties>
- <context>input-portlet</context>
- </properties>
- </deployable>
- <deployable>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>vlab-portlets</artifactId>
- <type>war</type>
- <properties>
- <context>vlabportlets</context>
- </properties>
- </deployable>
- </deployables>
- </configuration>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>htmlunit</groupId>
- <artifactId>htmlunit</artifactId>
- <version>1.11</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>vlab-common</artifactId>
- <version>1.0-SNAPSHOT</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>vlab-db</artifactId>
- <version>1.0-SNAPSHOT</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>test-utils</artifactId>
- <version>1.0-SNAPSHOT</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>pseudo-potential-repository</artifactId>
- <version>1.0-SNAPSHOT</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>pwscf-input-beans</artifactId>
- <version>1.0-SNAPSHOT</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>pseudo-webapp</artifactId>
- <version>1.0-SNAPSHOT</version>
- <type>war</type>
- </dependency>
- <dependency>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>input-portlet</artifactId>
- <version>1.0-SNAPSHOT</version>
- <type>war</type>
- </dependency>
- <dependency>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>vlab-portlets</artifactId>
- <version>1.0-SNAPSHOT</version>
- <type>war</type>
- </dependency>
- <dependency>
- <groupId>net.sourceforge.jwebunit</groupId>
- <artifactId>jwebunit-core</artifactId>
- <version>1.4.1</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>net.sourceforge.jwebunit</groupId>
- <artifactId>jwebunit-htmlunit-plugin</artifactId>
- <version>1.4.1</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>commons-collections</groupId>
- <artifactId>commons-collections</artifactId>
- <version>3.2</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
- <reporting>
- <plugins>
- <plugin>
- <artifactId>maven-javadoc-plugin</artifactId>
- <configuration>
- <show>private</show>
- <sourcepath>${basedir}/src/it/java</sourcepath>
- <doclet>gr.spinellis.umlgraph.doclet.UmlGraphDoc</doclet>
- <docletArtifact>
- <groupId>gr.spinellis</groupId>
- <artifactId>UmlGraph</artifactId>
- <version>4.8</version>
- </docletArtifact>
- <additionalparam>-inferrel -inferdep -quiet -hide java.* -collpackages java.util.* -qualify
- -postfixpackage -nodefontsize 9
- -nodefontpackagesize 7
- -operations</additionalparam>
- </configuration>
- </plugin>
- </plugins>
- </reporting>
-</project>
-
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <artifactId>portal-parent</artifactId>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>functional-tests</artifactId>
+ <name>functional-tests</name>
+ <version>1.0-SNAPSHOT</version>
+ <url>http://maven.apache.org</url>
+ <build>
+ <testSourceDirectory>src/it/java</testSourceDirectory>
+ <testResources>
+ <testResource>
+ <filtering>true</filtering>
+ <directory>src/it/resources</directory>
+ </testResource>
+ </testResources>
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>integration-test</phase>
+ <goals>
+ <goal>test</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <excludes>
+ <exclude>
+ **/BaseGridsphereTestCase.java
+ </exclude>
+ </excludes>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.cargo</groupId>
+ <artifactId>cargo-maven2-plugin</artifactId>
+ <configuration>
+ <wait>false</wait>
+ <container>
+ <containerId>tomcat5x</containerId>
+ <home>${tomcat.path}</home>
+ <type>installed</type>
+ </container>
+ <configuration>
+ <type>existing</type>
+ <home>${tomcat.path}</home>
+ <properties>
+ <cargo.servlet.port>
+ 8280
+ </cargo.servlet.port>
+ </properties>
+ <deployables>
+ <deployable>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>pseudo-webapp</artifactId>
+ <type>war</type>
+ <properties>
+ <context>pseudo-repository</context>
+ </properties>
+ </deployable>
+ <deployable>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>input-portlet</artifactId>
+ <type>war</type>
+ <properties>
+ <context>input-portlet</context>
+ </properties>
+ </deployable>
+ <deployable>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>vlab-portlets</artifactId>
+ <type>war</type>
+ <properties>
+ <context>vlabportlets</context>
+ </properties>
+ </deployable>
+ </deployables>
+ </configuration>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>htmlunit</groupId>
+ <artifactId>htmlunit</artifactId>
+ <version>1.11</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>vlab-common</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>vlab-db</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>test-utils</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>pseudo-potential-repository</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>pwscf-input-beans</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>pseudo-webapp</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <type>war</type>
+ </dependency>
+ <dependency>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>input-portlet</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <type>war</type>
+ </dependency>
+ <dependency>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>vlab-portlets</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <type>war</type>
+ </dependency>
+ <dependency>
+ <groupId>net.sourceforge.jwebunit</groupId>
+ <artifactId>jwebunit-core</artifactId>
+ <version>1.4.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>net.sourceforge.jwebunit</groupId>
+ <artifactId>jwebunit-htmlunit-plugin</artifactId>
+ <version>1.4.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>commons-collections</groupId>
+ <artifactId>commons-collections</artifactId>
+ <version>3.2</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ <reporting>
+ <plugins>
+ <plugin>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <configuration>
+ <show>private</show>
+ <sourcepath>${basedir}/src/it/java</sourcepath>
+ <doclet>
+ gr.spinellis.umlgraph.doclet.UmlGraphDoc
+ </doclet>
+ <docletArtifact>
+ <groupId>gr.spinellis</groupId>
+ <artifactId>UmlGraph</artifactId>
+ <version>4.8</version>
+ </docletArtifact>
+ <additionalparam>
+ -inferrel -inferdep -quiet -hide java.*
+ -collpackages java.util.* -qualify
+ -postfixpackage -nodefontsize 9
+ -nodefontpackagesize 7 -operations
+ </additionalparam>
+ </configuration>
+ </plugin>
+ </plugins>
+ </reporting>
+</project>
+
Modified: trunk/vlab/portal/portal-dependent-project/pom.xml
===================================================================
--- trunk/vlab/portal/portal-dependent-project/pom.xml 2008-10-31 18:43:30 UTC (rev 1197)
+++ trunk/vlab/portal/portal-dependent-project/pom.xml 2008-10-31 19:39:03 UTC (rev 1198)
@@ -1,155 +1,184 @@
-<?xml version="1.0"?><project>
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <artifactId>portal-parent</artifactId>
- <groupId>edu.umn.msi.vlab</groupId>
- <version>1.0-SNAPSHOT</version>
- </parent>
+<?xml version="1.0"?>
+<project>
+ <modelVersion>4.0.0</modelVersion>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>portal-dependent-project</artifactId>
- <packaging>pom</packaging>
- <version>1.0-SNAPSHOT</version>
-
- <name>Portal shared/lib dependencies</name>
- <description>This pom should be extended by any portlet project that requires any of this pom's dependencies</description>
+ <parent>
+ <artifactId>portal-parent</artifactId>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
- <build>
- <plugins>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>portal-dependent-project</artifactId>
+ <packaging>pom</packaging>
+ <version>1.0-SNAPSHOT</version>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-enforcer-plugin</artifactId>
- <executions>
- <execution>
- <id>enforce-property</id>
- <goals>
- <goal>enforce</goal>
- </goals>
- <phase>validate</phase>
- <inherited>false</inherited>
- <configuration>
- <rules>
- <requireProperty>
- <property>portal.tomcat.path</property>
- <message>Dependencies shared by multiple portlets need to be copied to your /apache-tomcat-path/shared/lib.
+ <name>Portal shared/lib dependencies</name>
+ <description>
+ This pom should be extended by any portlet project that requires
+ any of this pom's dependencies
+ </description>
- Please define portal.tomcat.path either in the pom.xml or (VERY) preferrably in settings.xml
-
- If you
- do not have a settings.xml, see the vlab/README_ON_PROFILES for a quick start.
+ <build>
+ <plugins>
- already have a settings.xml, add the following property to an active profile:
- <portal.tomcat.path>/enter-your-tomcat-path-here/</portal.tomcat.path>
-
- </message>
- </requireProperty>
- </rules>
- <fail>true</fail>
- </configuration>
- </execution>
- </executions>
- </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>enforce-property</id>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <phase>validate</phase>
+ <inherited>false</inherited>
+ <configuration>
+ <rules>
+ <requireProperty>
+ <property>
+ portal.tomcat.path
+ </property>
+ <message>
+ Dependencies shared by multiple
+ portlets need to be copied to
+ your
+ /apache-tomcat-path/shared/lib.
- <plugin>
- <artifactId>maven-antrun-plugin</artifactId>
- <executions>
- <execution>
- <id>check-tomcat-path</id>
- <phase>validate</phase>
- <configuration>
- <tasks>
- <available property="tomcat-found" file="${portal.tomcat.path}" type="dir"/>
- <fail message="portal.tomcat.path, '${portal.tomcat.path}', does not point to an existing directory. Please fix this where you define portal.tomcat.path (pom.xml, profiles.xml, or hopefully, ~/.m2/settings.xml)">
- <condition>
- <isfalse value="${tomcat-found}" />
- </condition>
- </fail>
- </tasks>
- </configuration>
- <goals>
- <goal>run</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
+ Please define portal.tomcat.path
+ either in the pom.xml or (VERY)
+ preferrably in settings.xml
- <plugin>
- <artifactId>maven-dependency-plugin</artifactId>
- <executions>
- <execution>
- <id>copyToSharedLib</id>
- <phase>package</phase>
- <goals>
- <goal>copy</goal>
- </goals>
- <configuration>
- <artifactItems>
- <artifactItem>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>vlab-common</artifactId>
- <version>1.0-SNAPSHOT</version>
- <type>jar</type>
- </artifactItem>
- <artifactItem>
- <groupId>cgl</groupId>
- <artifactId>crossHash</artifactId>
- <version>0.1</version>
- <type>jar</type>
- </artifactItem>
- <artifactItem>
- <groupId>postgresql</groupId>
- <artifactId>postgresql</artifactId>
- <version>8.1-404.jdbc3</version>
- <type>jar</type>
- </artifactItem>
- <artifactItem>
- <groupId>log4j</groupId>
- <artifactId>log4j</artifactId>
- <version>1.2.8</version>
- <type>jar</type>
- </artifactItem>
- <artifactItem>
- <groupId>commons-dbcp</groupId>
- <artifactId>commons-dbcp</artifactId>
- <version>1.2.1</version>
- <type>jar</type>
- </artifactItem>
- <artifactItem>
- <groupId>commons-pool</groupId>
- <artifactId>commons-pool</artifactId>
- <version>1.2</version>
- <type>jar</type>
- </artifactItem>
- </artifactItems>
- <outputDirectory>${portal.tomcat.path}/shared/lib</outputDirectory>
- <overWriteIfNewer>true</overWriteIfNewer>
- <overWriteSnapshots>true</overWriteSnapshots>
- </configuration>
- </execution>
- <execution>
- <id>copyToCommonLib</id>
- <phase>package</phase>
- <goals>
- <goal>copy</goal>
- </goals>
- <configuration>
- <artifactItems>
- <artifactItem>
- <groupId>postgresql</groupId>
- <artifactId>postgresql</artifactId>
- <version>8.1-404.jdbc3</version>
- <type>jar</type>
- </artifactItem>
- </artifactItems>
- <outputDirectory>${portal.tomcat.path}/common/lib</outputDirectory>
- <overWriteIfNewer>true</overWriteIfNewer>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
+ If you do not have a
+ settings.xml, see the
+ vlab/README_ON_PROFILES for a
+ quick start.
+ already have a settings.xml, add
+ the following property to an
+ active profile:
+ <portal.tomcat.path>/enter-your-tomcat-path-here/</portal.tomcat.path>
+
+ </message>
+ </requireProperty>
+ </rules>
+ <fail>true</fail>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>check-tomcat-path</id>
+ <phase>validate</phase>
+ <configuration>
+ <tasks>
+ <available property="tomcat-found"
+ file="${portal.tomcat.path}" type="dir" />
+ <fail
+ message="portal.tomcat.path, '${portal.tomcat.path}', does not point to an existing directory. Please fix this where you define portal.tomcat.path (pom.xml, profiles.xml, or hopefully, ~/.m2/settings.xml)">
+ <condition>
+ <isfalse
+ value="${tomcat-found}" />
+ </condition>
+ </fail>
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>copyToSharedLib</id>
+ <phase>package</phase>
+ <goals>
+ <goal>copy</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>vlab-common</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <type>jar</type>
+ </artifactItem>
+ <artifactItem>
+ <groupId>cgl</groupId>
+ <artifactId>crossHash</artifactId>
+ <version>0.1</version>
+ <type>jar</type>
+ </artifactItem>
+ <artifactItem>
+ <groupId>postgresql</groupId>
+ <artifactId>postgresql</artifactId>
+ <version>8.1-404.jdbc3</version>
+ <type>jar</type>
+ </artifactItem>
+ <artifactItem>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>1.2.8</version>
+ <type>jar</type>
+ </artifactItem>
+ <artifactItem>
+ <groupId>commons-dbcp</groupId>
+ <artifactId>
+ commons-dbcp
+ </artifactId>
+ <version>1.2.1</version>
+ <type>jar</type>
+ </artifactItem>
+ <artifactItem>
+ <groupId>commons-pool</groupId>
+ <artifactId>
+ commons-pool
+ </artifactId>
+ <version>1.2</version>
+ <type>jar</type>
+ </artifactItem>
+ </artifactItems>
+ <outputDirectory>
+ ${portal.tomcat.path}/shared/lib
+ </outputDirectory>
+ <overWriteIfNewer>true</overWriteIfNewer>
+ <overWriteSnapshots>
+ true
+ </overWriteSnapshots>
+ </configuration>
+ </execution>
+ <execution>
+ <id>copyToCommonLib</id>
+ <phase>package</phase>
+ <goals>
+ <goal>copy</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>postgresql</groupId>
+ <artifactId>postgresql</artifactId>
+ <version>8.1-404.jdbc3</version>
+ <type>jar</type>
+ </artifactItem>
+ </artifactItems>
+ <outputDirectory>
+ ${portal.tomcat.path}/common/lib
+ </outputDirectory>
+ <overWriteIfNewer>true</overWriteIfNewer>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
</project>
Modified: trunk/vlab/portal/pseudo-webapp/pom.xml
===================================================================
--- trunk/vlab/portal/pseudo-webapp/pom.xml 2008-10-31 18:43:30 UTC (rev 1197)
+++ trunk/vlab/portal/pseudo-webapp/pom.xml 2008-10-31 19:39:03 UTC (rev 1198)
@@ -1,106 +1,117 @@
-<?xml version="1.0" encoding="UTF-8"?><project>
- <parent>
- <artifactId>portal-parent</artifactId>
- <groupId>edu.umn.msi.vlab</groupId>
- <version>1.0-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>pseudo-webapp</artifactId>
- <version>1.0-SNAPSHOT</version>
- <packaging>war</packaging>
-
- <name>pseudopotential web application</name>
- <description>Web application for browsing/searching pseudo-potentials</description>
- <url>http://vlab.msi.umn.edu</url>
-
- <build>
- <finalName>pseudo-repository</finalName>
- <plugins>
- <plugin>
- <groupId>org.codehaus.cargo</groupId>
- <artifactId>cargo-maven2-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>netbeans-freeform-maven-plugin</artifactId>
- <configuration>
- <additionalFolders>src/main/webapp</additionalFolders>
- <additionalGoals>source:war</additionalGoals>
- <additionalGoals>clean install</additionalGoals>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
- <repositories>
- <repository>
- <id>bollig-repo</id>
- <name>Evan Bollig's Personal Maven2 Repo (bo...@ms...
- for support)</name>
- <url>http://www.scs.fsu.edu/~bollig/maven/repository</url>
- </repository>
- <repository>
- <id>extreme.indiana</id>
- <name>Indiana University Extreme Lab Maven 1 Repository</name>
- <url>http://www.extreme.indiana.edu/dist/java-repository/</url>
- </repository>
- </repositories>
-
-
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>pseudo-potential-repository</artifactId>
- <version>1.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>vlab-base</artifactId>
- <version>1.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>vlab-db</artifactId>
- <version>1.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>vlab-common</artifactId>
- <version>1.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>cgl</groupId>
- <artifactId>crossHash</artifactId>
- <version>0.1</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>commons-logging</groupId>
- <artifactId>commons-logging</artifactId>
- <version>1.0.4</version>
- </dependency>
- <dependency>
- <groupId>log4j</groupId>
- <artifactId>log4j</artifactId>
- <version>1.2.11</version>
- </dependency>
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>servlet-api</artifactId>
- <version>2.4</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>commons-fileupload</groupId>
- <artifactId>commons-fileupload</artifactId>
- <version>1.1.1</version>
- </dependency>
- </dependencies>
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+ <parent>
+ <artifactId>portal-parent</artifactId>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>pseudo-webapp</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>war</packaging>
+
+ <name>pseudopotential web application</name>
+ <description>
+ Web application for browsing/searching pseudo-potentials
+ </description>
+ <url>http://vlab.msi.umn.edu</url>
+
+ <build>
+ <finalName>pseudo-repository</finalName>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.cargo</groupId>
+ <artifactId>cargo-maven2-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>netbeans-freeform-maven-plugin</artifactId>
+ <configuration>
+ <additionalFolders>
+ src/main/webapp
+ </additionalFolders>
+ <additionalGoals>source:war</additionalGoals>
+ <additionalGoals>clean install</additionalGoals>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <repositories>
+ <repository>
+ <id>bollig-repo</id>
+ <name>
+ Evan Bollig's Personal Maven2 Repo (bo...@ms...
+ for support)
+ </name>
+ <url>http://www.scs.fsu.edu/~bollig/maven/repository</url>
+ </repository>
+ <repository>
+ <id>extreme.indiana</id>
+ <name>
+ Indiana University Extreme Lab Maven 1 Repository
+ </name>
+ <url>
+ http://www.extreme.indiana.edu/dist/java-repository/
+ </url>
+ </repository>
+ </repositories>
+
+
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>pseudo-potential-repository</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>vlab-base</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>vlab-db</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>vlab-common</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>cgl</groupId>
+ <artifactId>crossHash</artifactId>
+ <version>0.1</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ <version>1.0.4</version>
+ </dependency>
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>1.2.11</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.4</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>commons-fileupload</groupId>
+ <artifactId>commons-fileupload</artifactId>
+ <version>1.1.1</version>
+ </dependency>
+ </dependencies>
</project>
Modified: trunk/vlab/portal/pseudo-webapp/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/vlab/portal/pseudo-webapp/src/main/webapp/WEB-INF/web.xml 2008-10-31 18:43:30 UTC (rev 1197)
+++ trunk/vlab/portal/pseudo-webapp/src/main/webapp/WEB-INF/web.xml 2008-10-31 19:39:03 UTC (rev 1198)
@@ -13,42 +13,46 @@
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
- <filter>
- <filter-name>HibernateFilter</filter-name>
- <filter-class>org.vlab.pseudo.web.HibernateSessionRequestFilter</filter-class>
- </filter>
+ <filter>
+ <filter-name>HibernateFilter</filter-name>
+ <filter-class>
+ org.vlab.pseudo.web.HibernateSessionRequestFilter
+ </filter-class>
+ </filter>
- <filter-mapping>
- <filter-name>HibernateFilter</filter-name>
- <!-- consider /*.jsp instead of /*, to avoid starting session for HTML pages. -->
- <url-pattern>/*</url-pattern>
- </filter-mapping>
+ <filter-mapping>
+ <filter-name>HibernateFilter</filter-name>
+ <!-- consider /*.jsp instead of /*, to avoid starting session for HTML pages. -->
+ <url-pattern>/*</url-pattern>
+ </filter-mapping>
<servlet>
<servlet-name>PseudoServlet</servlet-name>
<servlet-class>org.vlab.pseudo.web.PseudoServlet</servlet-class>
-
+
<load-on-startup>1</load-on-startup>
-
-
+
+
</servlet>
-
+
<servlet>
<servlet-name>PseudoAdminServlet</servlet-name>
- <servlet-class>org.vlab.pseudo.web.PseudoAdminServlet</servlet-class>
+ <servlet-class>
+ org.vlab.pseudo.web.PseudoAdminServlet
+ </servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
-
+
<servlet-mapping>
<servlet-name>PseudoServlet</servlet-name>
<url-pattern>/pseudoServlet</url-pattern>
</servlet-mapping>
-
+
<servlet-mapping>
<servlet-name>PseudoAdminServlet</servlet-name>
<url-pattern>/adminServlet</url-pattern>
</servlet-mapping>
-
+
<session-config>
<session-timeout>30</session-timeout>
</session-config>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <das...@us...> - 2008-10-31 18:43:41
|
Revision: 1197
http://vlab.svn.sourceforge.net/vlab/?rev=1197&view=rev
Author: dasil014
Date: 2008-10-31 18:43:30 +0000 (Fri, 31 Oct 2008)
Log Message:
-----------
Backup of the new code
Modified Paths:
--------------
trunk/vlab/commons/pwscf-input-beans/src/main/java/org/vlab/AtomicSpecies.java
trunk/vlab/commons/pwscf-input-beans/src/main/java/org/vlab/ElasPwscfBean.java
trunk/vlab/commons/pwscf-input-beans/src/main/java/org/vlab/PwscfBean.java
trunk/vlab/commons/service-stubs/project-executor-stub/src/main/resources/ProjectExecutorManager.wsdl
trunk/vlab/commons/service-stubs/pwscf-input-splitter-stub/src/main/resources/PwscfInputSplitter.wsdl
trunk/vlab/commons/service-stubs/task-executor-stub/src/main/resources/TaskExecutor.wsdl
trunk/vlab/commons/vlab-base/src/main/java/org/vlab/HighTemp/HighTemp.java
trunk/vlab/commons/vlab-base/src/main/java/org/vlab/MonitorInterface/Monitor.java
trunk/vlab/commons/vlab-base/src/main/java/org/vlab/ProjectManager/Manager.java
trunk/vlab/commons/vlab-base/src/main/resources/resource.properties
trunk/vlab/commons/vlab-db/src/main/resources/dbresource.properties
Added Paths:
-----------
trunk/vlab/commons/vlab-base/src/main/java/org/vlab/PlotView/
trunk/vlab/commons/vlab-base/src/main/java/org/vlab/PlotView/MyPlot.java
trunk/vlab/commons/vlab-base/src/main/java/org/vlab/PlotView/PlotData.java
trunk/vlab/commons/vlab-base/src/main/java/org/vlab/PlotView/PreparePlot.java
trunk/vlab/commons/vlab-common/src/main/java/org/vlab/services/GenericSample.java
trunk/vlab/commons/vlab-common/src/main/java/org/vlab/services/Param1.java
trunk/vlab/commons/vlab-common/src/main/java/org/vlab/services/ParamVal.java
trunk/vlab/commons/vlab-common/src/main/java/org/vlab/services/ProjectInput.java
trunk/vlab/commons/vlab-common/src/main/java/org/vlab/services/PwCard.java
trunk/vlab/commons/vlab-common/src/main/java/org/vlab/services/PwNameList.java
trunk/vlab/commons/vlab-common/src/main/java/org/vlab/services/VectType.java
Modified: trunk/vlab/commons/pwscf-input-beans/src/main/java/org/vlab/AtomicSpecies.java
===================================================================
--- trunk/vlab/commons/pwscf-input-beans/src/main/java/org/vlab/AtomicSpecies.java 2008-10-30 22:30:16 UTC (rev 1196)
+++ trunk/vlab/commons/pwscf-input-beans/src/main/java/org/vlab/AtomicSpecies.java 2008-10-31 18:43:30 UTC (rev 1197)
@@ -7,9 +7,11 @@
public class AtomicSpecies implements java.io.Serializable {
// Data members
- private String symbol;
- private Double mass;
- private String pseudoPotential;
+ private String symbol;
+ private Double mass;
+ private String pseudoPotential;
+ private String magnetization;
+ private Boolean ldau;
//private UploadedFile file;
// Default Constructor
@@ -23,9 +25,11 @@
}
// Getters
- public String getSymbol() { return symbol; }
- public Double getMass() { return mass; }
- public String getPseudoPotential() { return pseudoPotential; }
+ public String getSymbol() { return symbol; }
+ public Double getMass() { return mass; }
+ public String getPseudoPotential() { return pseudoPotential; }
+ public String getMagnetization() { return magnetization; }
+ public Boolean getLdau() { return ldau; }
/*
public UploadedFile getFile() {
System.out.println( "getting File" );
@@ -51,6 +55,12 @@
public void setPseudoPotential( String newPseudoPotential ) {
pseudoPotential = newPseudoPotential;
}
+ public void setMagnetization(String newMagnetization){
+ magnetization = newMagnetization;
+ }
+ public void setLdau(Boolean newLdau){
+ ldau = newLdau;
+ }
/*
public void setFile( UploadedFile newFile ) {
System.out.println( "setting file" );
Modified: trunk/vlab/commons/pwscf-input-beans/src/main/java/org/vlab/ElasPwscfBean.java
===================================================================
--- trunk/vlab/commons/pwscf-input-beans/src/main/java/org/vlab/ElasPwscfBean.java 2008-10-30 22:30:16 UTC (rev 1196)
+++ trunk/vlab/commons/pwscf-input-beans/src/main/java/org/vlab/ElasPwscfBean.java 2008-10-31 18:43:30 UTC (rev 1197)
@@ -60,8 +60,8 @@
private String hubbardU0;
private String hubbarddU;
private String magnetizationSpecies;
- private Boolean nspin;
- private Boolean ldaPlusU;
+ //private Boolean nspin;
+ //private Boolean ldaPlusU;
// K Points
private String KPoints;
@@ -119,6 +119,7 @@
private Double y2z3;
private Boolean strain;
+ private Boolean spinpolarized;
// Electrons
private String convThr; // adv
@@ -152,6 +153,8 @@
setXy1(new Integer(0));
//setXy2(new Double(0.01));
+ //setSpinpolarized(new Boolean(false));
+
setHtX(4);
setHtY(4);
setHtZ(4);
@@ -214,11 +217,13 @@
setMeshY(new Integer(6));
setMeshZ(new Integer(6));
- setNspin( new Boolean(false));
- setLdaPlusU(new Boolean(false));
+ //setNspin( new Boolean(false));
+ //setLdaPlusU(new Boolean(false));
//setNspin(new Boolean(true));
//setLdaPlusU(new Boolean(true));
-
+ //setSpinpolarized(new Boolean(false));
+
+
setMagnetizationSpecies(new String("0.535"));
//setHubbardU0(new String("5.5963"));
//setHubbarddU(new String("-0.001"));
@@ -295,10 +300,11 @@
}
//Getters
- public Boolean getNspin() { return nspin; }
+ //public Boolean getNspin() { return nspin; }
- public Boolean getLdaPlusU(){ return ldaPlusU; }
-
+ //public Boolean getLdaPlusU(){ return ldaPlusU; }
+ public Boolean getSpinpolarized(){ return spinpolarized; }
+
public Boolean getStrain(){ return strain; }
public Integer getXx1(){ return xx1; }
@@ -701,9 +707,11 @@
public void setStartcount(int newStartcount){ this.startcount=newStartcount; }
- public void setLdaPlusU(Boolean newLdaPlusU){ this.ldaPlusU=newLdaPlusU; }
+ public void setSpinpolarized(Boolean newSpinpolarized) { this.spinpolarized = newSpinpolarized; }
+
+ //public void setLdaPlusU(Boolean newLdaPlusU){ this.ldaPlusU=newLdaPlusU; }
- public void setNspin( Boolean newNspin) { this.nspin = newNspin; }
+ //public void setNspin( Boolean newNspin) { this.nspin = newNspin; }
public void setStrain(Boolean newStrain){ this.strain=newStrain; }
Modified: trunk/vlab/commons/pwscf-input-beans/src/main/java/org/vlab/PwscfBean.java
===================================================================
--- trunk/vlab/commons/pwscf-input-beans/src/main/java/org/vlab/PwscfBean.java 2008-10-30 22:30:16 UTC (rev 1196)
+++ trunk/vlab/commons/pwscf-input-beans/src/main/java/org/vlab/PwscfBean.java 2008-10-31 18:43:30 UTC (rev 1197)
@@ -58,6 +58,7 @@
private boolean ldaPlusU;
private Integer ldaSpecies;
private List hubbard;
+ private boolean spinpolarized;
// Electrons
private String convThr; // adv
@@ -287,6 +288,7 @@
public String getInput() { return input; }
public String getUniqueStamp() { return uniqueStamp; }
public List getHubbard() { return hubbard; }
+ public Boolean getSpinpolarized() { return spinpolarized; }
public Integer getMagnetizationSpecies() { return magnetizationSpecies; }
public List getStartingMagnetization() { return startingMagnetization; }
@@ -326,6 +328,7 @@
public void setLdaPlusU ( Boolean newLdaPlusU ) { ldaPlusU = newLdaPlusU; }
public void setLdaSpecies ( Integer newLdaSpecies ) { ldaSpecies = newLdaSpecies; }
public void setHubbard ( List newHubbard ) { hubbard = newHubbard; }
+ public void setSpinpolarized ( Boolean newSpinpolarized ) { spinpolarized = newSpinpolarized; }
// Electrons
public void setConvThr ( String newConvThr ) { convThr = newConvThr; }
public void setDiagonalization( String newDiagonalization) { diagonalization = newDiagonalization; }
Modified: trunk/vlab/commons/service-stubs/project-executor-stub/src/main/resources/ProjectExecutorManager.wsdl
===================================================================
--- trunk/vlab/commons/service-stubs/project-executor-stub/src/main/resources/ProjectExecutorManager.wsdl 2008-10-30 22:30:16 UTC (rev 1196)
+++ trunk/vlab/commons/service-stubs/project-executor-stub/src/main/resources/ProjectExecutorManager.wsdl 2008-10-31 18:43:30 UTC (rev 1197)
@@ -83,10 +83,6 @@
</wsdl:message>
- <wsdl:message name="preparedListUrlResponse">
-
- </wsdl:message>
-
<wsdl:message name="setProjectTypeResponse">
</wsdl:message>
@@ -107,11 +103,11 @@
</wsdl:message>
- <wsdl:message name="convertToVisualizationResponse">
+ <wsdl:message name="getProjectTypeRequest">
</wsdl:message>
- <wsdl:message name="getProjectTypeRequest">
+ <wsdl:message name="getMemorySizeRequest">
</wsdl:message>
@@ -119,10 +115,6 @@
</wsdl:message>
- <wsdl:message name="getMemorySizeRequest">
-
- </wsdl:message>
-
<wsdl:message name="setNewInputEditedRequest">
<wsdl:part name="newNewInputEdited" type="xsd:string"/>
@@ -223,7 +215,7 @@
</wsdl:message>
- <wsdl:message name="copyToDownloadResponse">
+ <wsdl:message name="saveNewInputEditedRequest">
</wsdl:message>
@@ -231,10 +223,6 @@
</wsdl:message>
- <wsdl:message name="saveNewInputEditedRequest">
-
- </wsdl:message>
-
<wsdl:message name="setProjectNameRequest">
<wsdl:part name="newProjectName" type="xsd:string"/>
@@ -267,26 +255,22 @@
</wsdl:message>
- <wsdl:message name="convertToVisualizationRequest">
-
- </wsdl:message>
-
<wsdl:message name="getFiletodbResponse">
<wsdl:part name="getFiletodbReturn" type="xsd:string"/>
</wsdl:message>
- <wsdl:message name="loadPropertiesRequest">
-
- </wsdl:message>
-
<wsdl:message name="getStringResultFitResponse">
<wsdl:part name="getStringResultFitReturn" type="xsd:string"/>
</wsdl:message>
+ <wsdl:message name="loadPropertiesRequest">
+
+ </wsdl:message>
+
<wsdl:message name="getStringResultFitRequest">
</wsdl:message>
@@ -341,10 +325,6 @@
</wsdl:message>
- <wsdl:message name="copyToDownloadRequest">
-
- </wsdl:message>
-
<wsdl:message name="getUrlListofFilesRequest">
</wsdl:message>
@@ -389,16 +369,16 @@
</wsdl:message>
+ <wsdl:message name="setProjectUserNameResponse">
+
+ </wsdl:message>
+
<wsdl:message name="setProjectIdRequest">
<wsdl:part name="newProjectId" type="xsd:string"/>
</wsdl:message>
- <wsdl:message name="setProjectUserNameResponse">
-
- </wsdl:message>
-
<wsdl:message name="setFullpathprojectRequest">
<wsdl:part name="newFullpathproject" type="xsd:string"/>
@@ -423,10 +403,6 @@
</wsdl:message>
- <wsdl:message name="preparedListUrlRequest">
-
- </wsdl:message>
-
<wsdl:message name="getCompoundRequest">
</wsdl:message>
@@ -463,6 +439,22 @@
<wsdl:portType name="ProjectExecutorManager">
+ <wsdl:operation name="execute">
+
+ <wsdl:input message="impl:executeRequest" name="executeRequest"/>
+
+ <wsdl:output message="impl:executeResponse" name="executeResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="loadProperties">
+
+ <wsdl:input message="impl:loadPropertiesRequest" name="loadPropertiesRequest"/>
+
+ <wsdl:output message="impl:loadPropertiesResponse" name="loadPropertiesResponse"/>
+
+ </wsdl:operation>
+
<wsdl:operation name="setProjectName" parameterOrder="newProjectName">
<wsdl:input message="impl:setProjectNameRequest" name="setProjectNameRequest"/>
@@ -791,68 +783,64 @@
</wsdl:operation>
- <wsdl:operation name="copyToDownload">
+ <wsdl:operation name="createZipFile">
- <wsdl:input message="impl:copyToDownloadRequest" name="copyToDownloadRequest"/>
+ <wsdl:input message="impl:createZipFileRequest" name="createZipFileRequest"/>
- <wsdl:output message="impl:copyToDownloadResponse" name="copyToDownloadResponse"/>
+ <wsdl:output message="impl:createZipFileResponse" name="createZipFileResponse"/>
</wsdl:operation>
- <wsdl:operation name="convertToVisualization">
+ <wsdl:operation name="getDownloadFile">
- <wsdl:input message="impl:convertToVisualizationRequest" name="convertToVisualizationRequest"/>
+ <wsdl:input message="impl:getDownloadFileRequest" name="getDownloadFileRequest"/>
- <wsdl:output message="impl:convertToVisualizationResponse" name="convertToVisualizationResponse"/>
+ <wsdl:output message="impl:getDownloadFileResponse" name="getDownloadFileResponse"/>
</wsdl:operation>
- <wsdl:operation name="preparedListUrl">
+ </wsdl:portType>
- <wsdl:input message="impl:preparedListUrlRequest" name="preparedListUrlRequest"/>
+ <wsdl:binding name="ProjectExecutorManagerSoapBinding" type="impl:ProjectExecutorManager">
- <wsdl:output message="impl:preparedListUrlResponse" name="preparedListUrlResponse"/>
+ <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
- </wsdl:operation>
+ <wsdl:operation name="execute">
- <wsdl:operation name="createZipFile">
+ <wsdlsoap:operation soapAction=""/>
- <wsdl:input message="impl:createZipFileRequest" name="createZipFileRequest"/>
+ <wsdl:input name="executeRequest">
- <wsdl:output message="impl:createZipFileResponse" name="createZipFileResponse"/>
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.vlab.org" use="encoded"/>
- </wsdl:operation>
+ </wsdl:input>
- <wsdl:operation name="getDownloadFile">
+ <wsdl:output name="executeResponse">
- <wsdl:input message="impl:getDownloadFileRequest" name="getDownloadFileRequest"/>
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.vlab.org" use="encoded"/>
- <wsdl:output message="impl:getDownloadFileResponse" name="getDownloadFileResponse"/>
+ </wsdl:output>
</wsdl:operation>
<wsdl:operation name="loadProperties">
- <wsdl:input message="impl:loadPropertiesRequest" name="loadPropertiesRequest"/>
+ <wsdlsoap:operation soapAction=""/>
- <wsdl:output message="impl:loadPropertiesResponse" name="loadPropertiesResponse"/>
+ <wsdl:input name="loadPropertiesRequest">
- </wsdl:operation>
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.vlab.org" use="encoded"/>
- <wsdl:operation name="execute">
+ </wsdl:input>
- <wsdl:input message="impl:executeRequest" name="executeRequest"/>
+ <wsdl:output name="loadPropertiesResponse">
- <wsdl:output message="impl:executeResponse" name="executeResponse"/>
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.vlab.org" use="encoded"/>
+ </wsdl:output>
+
</wsdl:operation>
- </wsdl:portType>
-
- <wsdl:binding name="ProjectExecutorManagerSoapBinding" type="impl:ProjectExecutorManager">
-
- <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
-
<wsdl:operation name="setProjectName">
<wsdlsoap:operation soapAction=""/>
@@ -1591,60 +1579,6 @@
</wsdl:operation>
- <wsdl:operation name="copyToDownload">
-
- <wsdlsoap:operation soapAction=""/>
-
- <wsdl:input name="copyToDownloadRequest">
-
- <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.vlab.org" use="encoded"/>
-
- </wsdl:input>
-
- <wsdl:output name="copyToDownloadResponse">
-
- <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.vlab.org" use="encoded"/>
-
- </wsdl:output>
-
- </wsdl:operation>
-
- <wsdl:operation name="convertToVisualization">
-
- <wsdlsoap:operation soapAction=""/>
-
- <wsdl:input name="convertToVisualizationRequest">
-
- <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.vlab.org" use="encoded"/>
-
- </wsdl:input>
-
- <wsdl:output name="convertToVisualizationResponse">
-
- <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.vlab.org" use="encoded"/>
-
- </wsdl:output>
-
- </wsdl:operation>
-
- <wsdl:operation name="preparedListUrl">
-
- <wsdlsoap:operation soapAction=""/>
-
- <wsdl:input name="preparedListUrlRequest">
-
- <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.vlab.org" use="encoded"/>
-
- </wsdl:input>
-
- <wsdl:output name="preparedListUrlResponse">
-
- <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.vlab.org" use="encoded"/>
-
- </wsdl:output>
-
- </wsdl:operation>
-
<wsdl:operation name="createZipFile">
<wsdlsoap:operation soapAction=""/>
@@ -1681,49 +1615,13 @@
</wsdl:operation>
- <wsdl:operation name="loadProperties">
-
- <wsdlsoap:operation soapAction=""/>
-
- <wsdl:input name="loadPropertiesRequest">
-
- <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.vlab.org" use="encoded"/>
-
- </wsdl:input>
-
- <wsdl:output name="loadPropertiesResponse">
-
- <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.vlab.org" use="encoded"/>
-
- </wsdl:output>
-
- </wsdl:operation>
-
- <wsdl:operation name="execute">
-
- <wsdlsoap:operation soapAction=""/>
-
- <wsdl:input name="executeRequest">
-
- <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.vlab.org" use="encoded"/>
-
- </wsdl:input>
-
- <wsdl:output name="executeResponse">
-
- <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.vlab.org" use="encoded"/>
-
- </wsdl:output>
-
- </wsdl:operation>
-
</wsdl:binding>
<wsdl:service name="ProjectExecutorManagerService">
<wsdl:port binding="impl:ProjectExecutorManagerSoapBinding" name="ProjectExecutorManager">
- <wsdlsoap:address location="http://localhost:8180/project-executor/services/ProjectExecutorManager"/>
+ <wsdlsoap:address location="http://dasilveira.msi.umn.edu:8180/project-executor/services/ProjectExecutorManager"/>
</wsdl:port>
Modified: trunk/vlab/commons/service-stubs/pwscf-input-splitter-stub/src/main/resources/PwscfInputSplitter.wsdl
===================================================================
--- trunk/vlab/commons/service-stubs/pwscf-input-splitter-stub/src/main/resources/PwscfInputSplitter.wsdl 2008-10-30 22:30:16 UTC (rev 1196)
+++ trunk/vlab/commons/service-stubs/pwscf-input-splitter-stub/src/main/resources/PwscfInputSplitter.wsdl 2008-10-31 18:43:30 UTC (rev 1197)
@@ -22,18 +22,10 @@
</wsdl:message>
- <wsdl:message name="writeInputForBreakRequest">
-
- </wsdl:message>
-
<wsdl:message name="setAproxeqstExecutableResponse">
</wsdl:message>
- <wsdl:message name="CheckArgmentsRequest">
-
- </wsdl:message>
-
<wsdl:message name="getTarBallResponse">
<wsdl:part name="getTarBallReturn" type="xsd:string"/>
@@ -50,146 +42,186 @@
</wsdl:message>
- <wsdl:message name="setBuildFileRequest">
+ <wsdl:message name="CreateDirParentResponse">
- <wsdl:part name="buildXmlLocation" type="xsd:string"/>
+ <wsdl:part name="CreateDirParentReturn" type="xsd:boolean"/>
</wsdl:message>
- <wsdl:message name="generateTimestampResponse">
+ <wsdl:message name="getStatusRequest">
- <wsdl:part name="generateTimestampReturn" type="xsd:string"/>
-
</wsdl:message>
- <wsdl:message name="getTarBallSizeRequest">
+ <wsdl:message name="getTarBallSizeResponse">
+ <wsdl:part name="getTarBallSizeReturn" type="xsd:int"/>
+
</wsdl:message>
- <wsdl:message name="CreateTarBallResponse">
+ <wsdl:message name="stopResponse">
</wsdl:message>
- <wsdl:message name="CreateDirParentResponse">
+ <wsdl:message name="setFilesRequest">
- <wsdl:part name="CreateDirParentReturn" type="xsd:boolean"/>
+ <wsdl:part name="get_path_files" type="xsd:string"/>
</wsdl:message>
- <wsdl:message name="runRequest">
+ <wsdl:message name="getFilesResponse">
+ <wsdl:part name="getFilesReturn" type="tns1:ArrayOf_soapenc_string"/>
+
</wsdl:message>
- <wsdl:message name="setInputFileResponse">
+ <wsdl:message name="CreateDirParentRequest">
+ <wsdl:part name="newdir" type="xsd:string"/>
+
</wsdl:message>
- <wsdl:message name="CheckArgmentsResponse">
+ <wsdl:message name="readFileResponse">
- <wsdl:part name="CheckArgmentsReturn" type="xsd:string"/>
+ <wsdl:part name="readFileReturn" type="xsd:string"/>
</wsdl:message>
- <wsdl:message name="getStatusRequest">
+ <wsdl:message name="getTarBallRequest">
</wsdl:message>
- <wsdl:message name="writeInputForBreakResponse">
+ <wsdl:message name="setDataZipResponse">
- <wsdl:part name="writeInputForBreakReturn" type="xsd:string"/>
+ </wsdl:message>
+ <wsdl:message name="getStatusResponse">
+
+ <wsdl:part name="getStatusReturn" type="xsd:string"/>
+
</wsdl:message>
- <wsdl:message name="getTarBallSizeResponse">
+ <wsdl:message name="CheckArgmentsRequest">
- <wsdl:part name="getTarBallSizeReturn" type="xsd:int"/>
+ </wsdl:message>
+ <wsdl:message name="writeInputForBreakRequest">
+
</wsdl:message>
- <wsdl:message name="setAproxeqstExecutableRequest">
+ <wsdl:message name="setBuildFileRequest">
- <wsdl:part name="aproxeqstLocation" type="xsd:string"/>
+ <wsdl:part name="buildXmlLocation" type="xsd:string"/>
</wsdl:message>
- <wsdl:message name="stopResponse">
+ <wsdl:message name="startReadRequest">
</wsdl:message>
- <wsdl:message name="setInputFileRequest">
+ <wsdl:message name="generateTimestampResponse">
- <wsdl:part name="newInputFile" type="xsd:string"/>
+ <wsdl:part name="generateTimestampReturn" type="xsd:string"/>
</wsdl:message>
- <wsdl:message name="getArgsResponse">
+ <wsdl:message name="byteReadRequest">
- <wsdl:part name="getArgsReturn" type="tns1:ArrayOf_soapenc_string"/>
+ </wsdl:message>
+ <wsdl:message name="getTarBallSizeRequest">
+
</wsdl:message>
- <wsdl:message name="setFilesResponse">
+ <wsdl:message name="CreateTarBallResponse">
</wsdl:message>
- <wsdl:message name="generateTimestampRequest">
+ <wsdl:message name="runRequest">
</wsdl:message>
- <wsdl:message name="setSizeZipFileResponse">
+ <wsdl:message name="CheckArgmentsResponse">
+ <wsdl:part name="CheckArgmentsReturn" type="xsd:string"/>
+
</wsdl:message>
- <wsdl:message name="getCreateBuilXmlFileRequest">
+ <wsdl:message name="setInputFileResponse">
</wsdl:message>
- <wsdl:message name="AddDirToZiPResponse">
+ <wsdl:message name="writeInputForBreakResponse">
+ <wsdl:part name="writeInputForBreakReturn" type="xsd:string"/>
+
</wsdl:message>
- <wsdl:message name="getFilesRequest">
+ <wsdl:message name="setAproxeqstExecutableRequest">
+ <wsdl:part name="aproxeqstLocation" type="xsd:string"/>
+
</wsdl:message>
- <wsdl:message name="setFilesRequest">
+ <wsdl:message name="startReadResponse">
- <wsdl:part name="get_path_files" type="xsd:string"/>
+ </wsdl:message>
+ <wsdl:message name="setFilesResponse">
+
</wsdl:message>
- <wsdl:message name="setArgsRequest">
+ <wsdl:message name="getArgsResponse">
- <wsdl:part name="_args" type="tns1:ArrayOf_soapenc_string"/>
+ <wsdl:part name="getArgsReturn" type="tns1:ArrayOf_soapenc_string"/>
</wsdl:message>
- <wsdl:message name="getFilesResponse">
+ <wsdl:message name="setInputFileRequest">
- <wsdl:part name="getFilesReturn" type="tns1:ArrayOf_soapenc_string"/>
+ <wsdl:part name="newInputFile" type="xsd:string"/>
</wsdl:message>
- <wsdl:message name="CreateDirParentRequest">
+ <wsdl:message name="generateTimestampRequest">
- <wsdl:part name="newdir" type="xsd:string"/>
+ </wsdl:message>
+ <wsdl:message name="setSizeZipFileResponse">
+
</wsdl:message>
- <wsdl:message name="setBuildFileResponse">
+ <wsdl:message name="getFilesRequest">
</wsdl:message>
- <wsdl:message name="setArgsResponse">
+ <wsdl:message name="byteReadResponse">
+ <wsdl:part name="byteReadReturn" type="xsd:int"/>
+
</wsdl:message>
- <wsdl:message name="getCreateBuilXmlFileResponse">
+ <wsdl:message name="AddDirToZiPResponse">
- <wsdl:part name="getCreateBuilXmlFileReturn" type="xsd:string"/>
+ </wsdl:message>
+ <wsdl:message name="getCreateBuilXmlFileRequest">
+
</wsdl:message>
+ <wsdl:message name="setArgsRequest">
+
+ <wsdl:part name="_args" type="tns1:ArrayOf_soapenc_string"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="setBuildFileResponse">
+
+ </wsdl:message>
+
+ <wsdl:message name="setArgsResponse">
+
+ </wsdl:message>
+
<wsdl:message name="AddDirToZiPRequest">
<wsdl:part name="CurrentFileToZip" type="tns1:ArrayOf_soapenc_string"/>
@@ -198,23 +230,25 @@
</wsdl:message>
- <wsdl:message name="getArgsRequest">
+ <wsdl:message name="getCreateBuilXmlFileResponse">
+ <wsdl:part name="getCreateBuilXmlFileReturn" type="xsd:string"/>
+
</wsdl:message>
- <wsdl:message name="runResponse">
+ <wsdl:message name="getArgsRequest">
</wsdl:message>
- <wsdl:message name="stopRequest">
+ <wsdl:message name="readFileRequest">
</wsdl:message>
- <wsdl:message name="getTarBallRequest">
+ <wsdl:message name="runResponse">
</wsdl:message>
- <wsdl:message name="setDataZipResponse">
+ <wsdl:message name="stopRequest">
</wsdl:message>
@@ -224,12 +258,6 @@
</wsdl:message>
- <wsdl:message name="getStatusResponse">
-
- <wsdl:part name="getStatusReturn" type="xsd:string"/>
-
- </wsdl:message>
-
<wsdl:message name="setRefineStyleResponse">
</wsdl:message>
@@ -340,6 +368,30 @@
</wsdl:operation>
+ <wsdl:operation name="startRead">
+
+ <wsdl:input message="impl:startReadRequest" name="startReadRequest"/>
+
+ <wsdl:output message="impl:startReadResponse" name="startReadResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="byteRead">
+
+ <wsdl:input message="impl:byteReadRequest" name="byteReadRequest"/>
+
+ <wsdl:output message="impl:byteReadResponse" name="byteReadResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="readFile">
+
+ <wsdl:input message="impl:readFileRequest" name="readFileRequest"/>
+
+ <wsdl:output message="impl:readFileResponse" name="readFileResponse"/>
+
+ </wsdl:operation>
+
<wsdl:operation name="setInputFile" parameterOrder="newInputFile">
<wsdl:input message="impl:setInputFileRequest" name="setInputFileRequest"/>
@@ -652,6 +704,60 @@
</wsdl:operation>
+ <wsdl:operation name="startRead">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="startReadRequest">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.vlab.org" use="encoded"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="startReadResponse">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.vlab.org" use="encoded"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="byteRead">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="byteReadRequest">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.vlab.org" use="encoded"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="byteReadResponse">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.vlab.org" use="encoded"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="readFile">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="readFileRequest">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.vlab.org" use="encoded"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="readFileResponse">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.vlab.org" use="encoded"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
<wsdl:operation name="setInputFile">
<wsdlsoap:operation soapAction=""/>
@@ -820,7 +926,7 @@
<wsdl:port binding="impl:PwscfInputSplitterSoapBinding" name="PwscfInputSplitter">
- <wsdlsoap:address location="http://localhost:8080/pwscf-input-splitter-service/services/PwscfInputSplitter"/>
+ <wsdlsoap:address location="http://localhost:8480/pwscf-input-splitter-service/services/PwscfInputSplitter"/>
</wsdl:port>
Modified: trunk/vlab/commons/service-stubs/task-executor-stub/src/main/resources/TaskExecutor.wsdl
===================================================================
--- trunk/vlab/commons/service-stubs/task-executor-stub/src/main/resources/TaskExecutor.wsdl 2008-10-30 22:30:16 UTC (rev 1196)
+++ trunk/vlab/commons/service-stubs/task-executor-stub/src/main/resources/TaskExecutor.wsdl 2008-10-31 18:43:30 UTC (rev 1197)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://services.vlab.org" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://services.vlab.org" xmlns:intf="http://services.vlab.org" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
-<!--WSDL created by Apache Axis version: 1.3
-Built on Oct 05, 2005 (05:23:37 EDT)-->
+<!--WSDL created by Apache Axis version: 1.4
+Built on Apr 22, 2006 (06:55:48 PDT)-->
<wsdl:message name="setStringOutPutMatdynRequest">
@@ -15,6 +15,12 @@
</wsdl:message>
+ <wsdl:message name="getTeraGridJobOutputResponse">
+
+ <wsdl:part name="getTeraGridJobOutputReturn" type="xsd:string"/>
+
+ </wsdl:message>
+
<wsdl:message name="getNewInputEditedRequest">
</wsdl:message>
@@ -141,6 +147,14 @@
</wsdl:message>
+ <wsdl:message name="getTeraGridJobOutputRequest">
+
+ <wsdl:part name="clusterId" type="xsd:int"/>
+
+ <wsdl:part name="jobId" type="xsd:int"/>
+
+ </wsdl:message>
+
<wsdl:message name="setFileIndexResponse">
</wsdl:message>
@@ -217,6 +231,12 @@
</wsdl:message>
+ <wsdl:message name="setRunTeraGridResourceResponse">
+
+ <wsdl:part name="setRunTeraGridResourceReturn" type="xsd:string"/>
+
+ </wsdl:message>
+
<wsdl:message name="saveNewInputRequest">
</wsdl:message>
@@ -231,6 +251,12 @@
</wsdl:message>
+ <wsdl:message name="getTeraGridJobStatusResponse">
+
+ <wsdl:part name="getTeraGridJobStatusReturn" type="xsd:string"/>
+
+ </wsdl:message>
+
<wsdl:message name="setFileSentResponse">
</wsdl:message>
@@ -417,6 +443,16 @@
</wsdl:message>
+ <wsdl:message name="setRunTeraGridResourceRequest">
+
+ <wsdl:part name="tgGramHostName" type="xsd:string"/>
+
+ <wsdl:part name="batch_sys" type="xsd:string"/>
+
+ <wsdl:part name="gtVersion" type="xsd:string"/>
+
+ </wsdl:message>
+
<wsdl:message name="getOutputPhononRequest">
</wsdl:message>
@@ -425,6 +461,14 @@
</wsdl:message>
+ <wsdl:message name="getTeraGridJobStatusRequest">
+
+ <wsdl:part name="clusterId" type="xsd:int"/>
+
+ <wsdl:part name="jobId" type="xsd:int"/>
+
+ </wsdl:message>
+
<wsdl:message name="setFullPathPackageResponse">
</wsdl:message>
@@ -1405,6 +1449,30 @@
</wsdl:operation>
+ <wsdl:operation name="setRunTeraGridResource" parameterOrder="tgGramHostName batch_sys gtVersion">
+
+ <wsdl:input message="impl:setRunTeraGridResourceRequest" name="setRunTeraGridResourceRequest"/>
+
+ <wsdl:output message="impl:setRunTeraGridResourceResponse" name="setRunTeraGridResourceResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="getTeraGridJobStatus" parameterOrder="clusterId jobId">
+
+ <wsdl:input message="impl:getTeraGridJobStatusRequest" name="getTeraGridJobStatusRequest"/>
+
+ <wsdl:output message="impl:getTeraGridJobStatusResponse" name="getTeraGridJobStatusResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="getTeraGridJobOutput" parameterOrder="clusterId jobId">
+
+ <wsdl:input message="impl:getTeraGridJobOutputRequest" name="getTeraGridJobOutputRequest"/>
+
+ <wsdl:output message="impl:getTeraGridJobOutputResponse" name="getTeraGridJobOutputResponse"/>
+
+ </wsdl:operation>
+
<wsdl:operation name="readFile">
<wsdl:input message="impl:readFileRequest" name="readFileRequest"/>
@@ -2841,6 +2909,60 @@
</wsdl:operation>
+ <wsdl:operation name="setRunTeraGridResource">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="setRunTeraGridResourceRequest">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.vlab.org" use="encoded"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="setRunTeraGridResourceResponse">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.vlab.org" use="encoded"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="getTeraGridJobStatus">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="getTeraGridJobStatusRequest">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.vlab.org" use="encoded"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="getTeraGridJobStatusResponse">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.vlab.org" use="encoded"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="getTeraGridJobOutput">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="getTeraGridJobOutputRequest">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.vlab.org" use="encoded"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="getTeraGridJobOutputResponse">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.vlab.org" use="encoded"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
<wsdl:operation name="readFile">
<wsdlsoap:operation soapAction=""/>
Modified: trunk/vlab/commons/vlab-base/src/main/java/org/vlab/HighTemp/HighTemp.java
===================================================================
--- trunk/vlab/commons/vlab-base/src/main/java/org/vlab/HighTemp/HighTemp.java 2008-10-30 22:30:16 UTC (rev 1196)
+++ trunk/vlab/commons/vlab-base/src/main/java/org/vlab/HighTemp/HighTemp.java 2008-10-31 18:43:30 UTC (rev 1197)
@@ -8,6 +8,12 @@
import org.vlab.*;
import java.sql.*;
+import java.util.zip.ZipEntry;
+import java.util.zip.ZipFile;
+import java.util.Enumeration;
+import org.apache.axis.encoding.Base64;
+
+
public class HighTemp {
private String projectId;
@@ -19,7 +25,11 @@
private String urlListofFiles;
private String htParmsContent;
private String downlodFileString;
- public String getUrlListofFiles(){
+
+ static final int BUFFER = 1024;
+
+
+ public String getUrlListofFiles(){
return urlListofFiles;
}
@@ -177,9 +187,9 @@
projexecManager.setExtractPhonon();
projexecManager.copyPhonon();
projexecManager.setRunThermo();
- projexecManager.copyToDownload();
- projexecManager.convertToVisualization();
- projexecManager.preparedListUrl();
+ //projexecManager.copyToDownload();
+ //projexecManager.convertToVisualization();
+ //projexecManager.preparedListUrl();
projexecManager.createZipFile();
downlodFileString = projexecManager.getDownloadFile();
@@ -195,21 +205,66 @@
ae.printStackTrace();
}
}
+
+ public void saveData(){
-/*
- private void runScriptExtractPhonon(){
+ byte[] DataToFile = null;
+
+ try{
+ DataToFile = Base64.decode(downlodFileString);
+ int sizeZipFile = (int) DataToFile.length;
+
+ File zipFile = new File("/tmp/vlab/hitempfiles/" + "hightempfile.zip");
+ System.out.println("[ProjectExecutor.java] File Size: " + downlodFileString.length());
+
+ OutputStream srcDest = new FileOutputStream(zipFile);
+ srcDest.write(DataToFile, 0, sizeZipFile);
+ srcDest.close();
+
+ }catch(Exception ae){
+ System.err.println("Error saving the hightempo file"+ae.getMessage());
+ ae.printStackTrace();
+ }
+ }
- System.out.println("Start the executiont to run the script r_filter_direct_final");
-
- try{
- projexecManager.setExtractPhonon();
-
- } catch (Exception ae){
- System.err.println("[HighTemp::setUpData] => Error Preparing the data"+ae.getMessage());
- ae.printStackTrace();
- }
-
- }*/
-
-
+ public String UnCompressHighTempFile(){
+
+ /* Starting the process to UnZip the file */
+ int count;
+ byte data[] = null;
+
+ try {
+ BufferedOutputStream dest = null;
+ BufferedInputStream is = null;
+ ZipEntry entry;
+ ZipFile zipfile = new ZipFile("/tmp/vlab/hitempfiles/" + "hightempfile.zip");
+ Enumeration e = zipfile.entries();
+
+ while(e.hasMoreElements()) {
+ entry = (ZipEntry) e.nextElement();
+ System.out.println("Extracting hightempfile.zip : " + entry);
+ is = new BufferedInputStream (zipfile.getInputStream(entry));
+
+ data = new byte[BUFFER];
+ FileOutputStream fos = new FileOutputStream("/tmp/vlab/hitempfiles/" + entry.getName());
+ dest = new BufferedOutputStream(fos, BUFFER);
+ while ((count = is.read(data, 0, BUFFER)) != -1) {
+ dest.write(data, 0, count);
+ }
+ dest.flush();
+ dest.close();
+ is.close();
+ }
+ } catch(Exception e) {
+ System.err.println("[HighTemp] In UnCompressHighTempFile() " + e.getMessage());
+ e.printStackTrace();
+ //System.exit(-1);
+ }
+ return "sucessfully Uncompress of hightempfile.zip";
+ }
+
+
+
+
+
}
Modified: trunk/vlab/commons/vlab-base/src/main/java/org/vlab/MonitorInterface/Monitor.java
===================================================================
--- trunk/vlab/commons/vlab-base/src/main/java/org/vlab/MonitorInterface/Monitor.java 2008-10-30 22:30:16 UTC (rev 1196)
+++ trunk/vlab/commons/vlab-base/src/main/java/org/vlab/MonitorInterface/Monitor.java 2008-10-31 18:43:30 UTC (rev 1197)
@@ -303,6 +303,8 @@
Connection dbCon = null;
ResultSet rs = null;
Statement s = null;
+
+
int numColumns ;
String queryString =
@@ -404,11 +406,13 @@
List ListContent = null;
Bdata Content = null;
+
+
startTime = new String[ListTask.size()];
serverSide = new String[ListTask.size()];
status = new String[ListTask.size()];
- packageName = new String[ListTask.size()];
+ packageName = new String[ListTask.size()];
endTime = new String[ListTask.size()];
setTaskSize(ListTask.size());
Added: trunk/vlab/commons/vlab-base/src/main/java/org/vlab/PlotView/MyPlot.java
===================================================================
--- trunk/vlab/commons/vlab-base/src/main/java/org/vlab/PlotView/MyPlot.java (rev 0)
+++ trunk/vlab/commons/vlab-base/src/main/java/org/vlab/PlotView/MyPlot.java 2008-10-31 18:43:30 UTC (rev 1197)
@@ -0,0 +1,365 @@
+package org.vlab.PlotView;
+
+
+public class MyPlot{
+
+ //public StringBuffer[] PlotMetaD = new StringBuffer[20];
+ //public StringBuffer[] PlotConnector = new StringBuffer[20];
+ //public StringBuffer[] PlotMetaDValu = new StringBuffer[20];
+ //public StringBuffer PlotColumnLables = new StringBuffer();
+
+ public PlotData[] plotdata;
+
+ public MyPlot() {
+
+ plotdata = new PlotData[19];
+
+ int i;
+ StringBuffer sa = new StringBuffer("");
+ StringBuffer sb = new StringBuffer("-");
+ StringBuffer sc = new StringBuffer("");
+ StringBuffer sd = new StringBuffer("");
+
+ for (i=0;i<plotdata.length;i++) {
+ plotdata[i] = new PlotData();
+ plotdata[i].PlotMetaD = new StringBuffer(sa);
+ plotdata[i].PlotMetaDValu = new StringBuffer(sd);
+ plotdata[i].PlotConnector = new StringBuffer(sb);
+ }
+
+
+ plotdata[0].PlotMetaD.append("Title");
+
+ //Label for X
+ sa = sc;
+ sa.append("Lx");
+ plotdata[1].PlotMetaD = sa;
+
+ //Label for Y
+ sa = new StringBuffer("");
+ sa.append("Ly");
+ plotdata[2].PlotMetaD = sa;
+
+ //X Range
+ sa = new StringBuffer("");
+ sa.append("Range_x");
+ plotdata[3].PlotMetaD = sa;
+
+ //Y Range - Not used yet.
+ sa = new StringBuffer("");
+ sa.append("Range_y");
+ plotdata[4].PlotMetaD = sa;
+
+ sa = new StringBuffer("");
+ sa.append("border_linewidth");
+ plotdata[5].PlotMetaD = sa;
+
+ //Tick of the whole graphic
+ sa = new StringBuffer("");
+ sa.append("Tick_scale");
+ plotdata[6].PlotMetaD = sa;
+
+ //sa = new StringBuffer("");
+ //sa.append("Ticks_y");
+ //plotdata[7].PlotMetaD = sa;
+
+ sa = new StringBuffer("");
+ sa.append("size");
+ plotdata[7].PlotMetaD = sa;
+
+ sa = new StringBuffer("");
+ sa.append("format_file");
+ plotdata[8].PlotMetaD = sa;
+
+ //Font default Times-Roman
+ sa = new StringBuffer("");
+ sa.append("Font");
+ plotdata[9].PlotMetaD = sa;
+
+ sa = new StringBuffer("");
+ sa.append("font_size");
+ plotdata[10].PlotMetaD = sa;
+
+ sa = new StringBuffer("");
+ sa.append("PosLegend");
+ plotdata[11].PlotMetaD = sa;
+
+ sa = new StringBuffer("");
+ sa.append("ncol_nlin");
+ plotdata[12].PlotMetaD = sa;
+
+ sa = new StringBuffer("");
+ sa.append("iabcissa");
+ plotdata[13].PlotMetaD = sa;
+
+ sa = new StringBuffer("");
+ sa.append("output_file");
+ plotdata[14].PlotMetaD = sa;
+
+ sa = new StringBuffer("");
+ sa.append("input_file");
+ plotdata[15].PlotMetaD = sa;
+
+ sa = new StringBuffer("");
+ sa.append("ncplot");
+ plotdata[16].PlotMetaD = sa;
+
+ sa = new StringBuffer("");
+ sa.append("columns_plot");
+ plotdata[17].PlotMetaD = sa;
+
+ sa = new StringBuffer("");
+ sa.append("script_name");
+ plotdata[18].PlotMetaD = sa;
+
+ }
+
+
+ public void setparm (StringBuffer a, StringBuffer b) {
+ int i,n;
+ StringBuffer sa,sb;
+ String sc;
+
+ sc = a.toString();
+
+ for (i=0;i<plotdata.length;i++){
+ sb = plotdata[i].PlotMetaD;
+ n = sb.lastIndexOf(sc);
+
+ if (n>(-1)) {
+
+ System.out.println("I = "+i+"\n");
+ sa = new StringBuffer("=");
+ plotdata[i].PlotConnector = sa;
+ plotdata[i].PlotMetaDValu = b;
+ }
+ }
+ }
+
+ public void setparm (StringBuffer a, int x) {
+ int i,n;
+ StringBuffer sa,sb,se;
+ String sc,sd;
+
+
+ sc = a.toString();
+ sd = " " + Integer.toString(x);
+
+ for (i=0;i<plotdata.length;i++){
+ sb = plotdata[i].PlotMetaD;
+ n = sb.lastIndexOf(sc);
+
+ if (n>(-1)) {
+ sa = new StringBuffer("=");
+ plotdata[i].PlotConnector = sa;
+ se = new StringBuffer("");
+ se.append(sd);
+ plotdata[i].PlotMetaDValu = se;
+ }
+ }
+ }
+
+ public void setparm (StringBuffer a, int x, int y) {
+ int i,n;
+ StringBuffer sa,sb,se;
+ String sc,sd;
+
+ sc = a.toString();
+ sd = " " + Integer.toString(x)+"; "+Integer.toString(y);
+
+ for (i=0;i<plotdata.length;i++){
+ sb = plotdata[i].PlotMetaD;
+ n = sb.lastIndexOf(sc);
+
+ if (n>(-1)) {
+ sa = new StringBuffer("=");
+ plotdata[i].PlotConnector = sa;
+ se = new StringBuffer("");
+ se.append(sd);
+ plotdata[i].PlotMetaDValu = se;
+ }
+ }
+ }
+
+ public void setparm (StringBuffer a, int nnn, int x[]) {
+ int i,n;
+ StringBuffer sa,sb,se;
+ String sc,sd;
+
+
+ sc = a.toString();
+ sd = "";
+ for (i=0;i<nnn;i++) {
+ sd = " " + Integer.toString(x[i]);
+ }
+
+ for (i=0;i<plotdata.length;i++){
+ sb = plotdata[i].PlotMetaD;
+ n = sb.lastIndexOf(sc);
+
+ if (n>(-1)) {
+ sa = new StringBuffer("=");
+ plotdata[i].PlotConnector = sa;
+ se = new StringBuffer("");
+ se.append(sd);
+ plotdata[i].PlotMetaDValu = se;
+ }
+ }
+ }
+
+ public void setparm (StringBuffer a, double x, double y) {
+ int i,n;
+ StringBuffer sa,sb,se;
+ String sc,sd;
+
+
+ sc = a.toString();
+ sd = " " + Double.toString(x)+"; "+Double.toString(y);
+
+ for (i=0;i<plotdata.length;i++){
+ sb = plotdata[i].PlotMetaD;
+ n = sb.lastIndexOf(sc);
+
+ if (n>(-1)) {
+ sa = new StringBuffer("=");
+ plotdata[i].PlotConnector = sa;
+ se = new StringBuffer("");
+ se.append(sd);
+ plotdata[i].PlotMetaDValu = se;
+ }
+ }
+ }
+
+ public void setparm (StringBuffer a, double x, double y, double z) {
+ int i,n;
+ StringBuffer sa,sb,se;
+ String sc,sd;
+
+
+ sc = a.toString();
+ sd = " "+Double.toString(x)+"; "+Double.toString(y)+"; "
+ +Double.toString(z);
+
+ for (i=0;i<plotdata.length;i++){
+ sb = plotdata[i].PlotMetaD;
+ n = sb.lastIndexOf(sc);
+
+ if (n>(-1)) {
+ sa = new StringBuffer("=");
+ plotdata[i].PlotConnector = sa;
+ se = new StringBuffer("");
+ se.append(sd);
+ plotdata[i].PlotMetaDValu = se;
+ }
+ }
+ }
+
+ public void setparm (StringBuffer a, double x, double y, double z, double w) {
+ int i,n;
+ StringBuffer sa,sb,se;
+ String sc,sd;
+
+
+ sc = a.toString();
+ sd = " "+Double.toString(x)+"; "+Double.toString(y)+"; "
+ +Double.toString(z)+"; "+Double.toString(w);
+
+ for (i=0;i<plotdata.length;i++){
+ sb = plotdata[i].PlotMetaD;
+ n = sb.lastIndexOf(sc);
+
+ if (n>(-1)) {
+ sa = new StringBuffer("=");
+ plotdata[i].PlotConnector = sa;
+ se = new StringBuffer("");
+ se.append(sd);
+ plotdata[i].PlotMetaDValu = se;
+ }
+ }
+ }
+
+
+
+ public void pprint () {
+ int i;
+ StringBuffer sa = new StringBuffer("");
+ StringBuffer sb = new StringBuffer("-");
+ StringBuffer sc = new StringBuffer("");
+
+
+ for (i=0;i<plotdata.length;i++) {
+ sa = new StringBuffer("");
+ sa.append(plotdata[i].PlotMetaD);
+ sa.append(plotdata[i].PlotConnector);
+ sa.append(plotdata[i].PlotMetaDValu);
+ System.out.println(sa);
+ }
+ }
+
+
+ public static void main (String[] args) {
+ MyPlot x = new MyPlot();
+ StringBuffer sa, sb;
+ String ss;
+ double xx,yy;
+
+ xx=1.23;
+ yy=2.13;
+
+
+ String firstline = "1; Pressure; C11; C44; C12; K Hill; dK Hill; G Hill; dG Hill; Vol";
+
+ ss = Double.toString(xx) + " " + Double.toString(yy);
+ System.out.println(ss);
+
+
+ sa = new StringBuffer("Lx");
+ sb = new StringBuffer("Pressure");
+
+ x.setparm(sa,sb);
+
+ sa = new StringBuffer("Ly");
+ sb = new StringBuffer("Data");
+
+ sa = new StringBuffer("Title");
+ sb = new StringBuffer("Initial Title");
+
+ x.setparm(sa,sb);
+
+ sa = new StringBuffer("Range_x");
+ x.setparm(sa,5,10);
+
+ sa = new StringBuffer("Range_y");
+ x.setparm(sa, 0, 1600);
+
+ sa = new StringBuffer("border_linewidth");
+ x.setparm(sa, 5);
+
+ sa = new StringBuffer("Tick_scale");
+ x.setparm(sa, 5);
+
+ sa = new StringBuffer("size");
+ x.setparm(sa, 3.0, 3.0);
+
+ sa = new StringBuffer("Font");
+ sb = new StringBuffer("Times-Roman");
+ x.setparm(sa, sb);
+
+ sa = new StringBuffer("format_file");
+ sb = new StringBuffer("eps");
+ x.setparm(sa, sb);
+
+ sa = new StringBuffer("input_file");
+ sb = new StringBuffer("elasticdata");
+ x.setparm(sa, sb);
+
+ sa = new StringBuffer("font_size");
+ x.setparm(sa, 80);
+
+ sa = new StringBuffer("ncplot");
+ sb = new StringBuffer("1; Pressure; C11; C44; C12; K Hill; dK Hill; G Hill; dG Hill; Vol");
+ x.setparm(sa, sb);
+
+ x.pprint();
+ }
+ }
Added: trunk/vlab/commons/vlab-base/src/main/java/org/vlab/PlotView/PlotData.java
===================================================================
--- trunk/vlab/commons/vlab-base/src/main/java/org/vlab/PlotView/PlotData.java (rev 0)
+++ trunk/vlab/commons/vlab-base/src/main/java/org/vlab/PlotView/PlotData.java 2008-10-31 18:43:30 UTC (rev 1197)
@@ -0,0 +1,15 @@
+package org.vlab.PlotView;
+
+public class PlotData {
+
+
+ public StringBuffer PlotMetaD;
+
+ public StringBuffer PlotConnector;
+
+ public StringBuffer PlotMetaDValu;
+
+ public StringBuffer PlotColumnLables;
+
+
+}
Added: trunk/vlab/commons/vlab-base/src/main/java/org/vlab/PlotView/PreparePlot.java
===================================================================
--- trunk/vlab/commons/vlab-base/src/main/java/org/vlab/PlotView/PreparePlot.java (rev 0)
+++ trunk/vlab/commons/vlab-base/src/main/java/org/vlab/PlotView/PreparePlot.java 2008-10-31 18:43:30 UTC (rev 1197)
@@ -0,0 +1,437 @@
+package org.vlab.PlotView;
+
+import java.io.*;
+
+public class PreparePlot {
+
+ public String criteria;
+
+ private MyPlot[] myplot;
+
+ private String tempDir;
+
+ public PreparePlot(){
+ System.out.println("Here I just started");
+ }
+
+ public void setMyPlot(MyPlot[] newMyPlot){
+ this.myplot = newMyPlot;
+ }
+
+ public void setGenerateScriptFiles(){
+
+ tempDir = "/tmp/vlab/cijdata/";
+
+
+ String header1 = "";
+ String columnsAvail = "";
+ String columnstoPlot = "";
+ String input_file_name = "";
+
+ try{
+ for(int i=0; i<myplot.length;i++){
+
+ for(int j=0; j < myplot[i].plotdata.length; j++){
+
+ System.out.println("Here I go in the loop:i"+i+" j:"+j );
+
+ if (myplot[i].plotdata[j].PlotMetaD.toString().equals("Title"))
+ header1 += "set title \""+ myplot[i].plotdata[j].PlotMetaDValu.toString() +"\"\n";
+
+ if (myplot[i].plotdata[j].PlotMetaD.toString().equals("Lx"))
+ header1 += "set xlabel \"" + myplot[i].plotdata[j].PlotMetaDValu.toString() + "\"\n"; //Mudar essa parte do codigo pra ser dinamico
+
+ if (myplot[i].plotdata[j].PlotMetaD.toString().equals("Ly"))
+ header1 += "set ylabel \"" + myplot[i].plotdata[j].PlotMetaDValu.toString() + "\"\n";
+
+ if (myplot[i].plotdata[j].PlotMetaD.toString().equals("Range_x")){
+ String range_x[] = myplot[i].plotdata[j].PlotMetaDValu.toString().split(";");
+ header1 += "set xrange [" + range_x[0].trim() + ":" + range_x[1].trim() + "]\n";
+ }
+
+ if (myplot[i].plotdata[j].PlotMetaD.toString().equals("Range_y")){
+ String range_y[] = myplot[i].plotdata[j].PlotMetaDValu.toString().split(";");
+ header1 += "set yrange [" + range_y[0].trim() + ":" + range_y[1].trim() + "]\n";
+ }
+
+ if (myplot[i].plotdata[j].PlotMetaD.toString().equals("border_linewidth")){
+ header1 += "set border linewidth "+ myplot[i].plotdata[j].PlotMetaDValu.toString().trim() + "\n";
+ }
+
+ if (myplot[i].plotdata[j].PlotMetaD.toString().equals("Tick_scale")){
+ header1 += "set tics scale "+ myplot[i].plotdata[j].PlotMetaDValu.toString() + "\n";
+ }
+
+ if (myplot[i].plotdata[j].PlotMetaD.toString().equals("size")){
+ String size[] = myplot[i].plotdata[j].PlotMetaDValu.toString().split(";");
+ header1 += "set size " + size[0].trim() + "," + size[1].trim() + "\n";
+ }
+
+ if (myplot[i].plotdata[j].PlotMetaD.toString().equals("format_file")){
+ header1 += "set terminal postscript "+ myplot[i].plotdata[j].PlotMetaDValu.toString() + " solid enhanced color";
+ }
+
+ if (myplot[i].plotdata[j].PlotMetaD.toString().equals("Font")){
+ header1 += " \""+ myplot[i].plotdata[j].PlotMetaDValu.toString();
+ }
+
+ if (myplot[i].plotdata[j].PlotMetaD.toString().equals("font_size")){
+ header1 += "\" "+ myplot[i].plotdata[j].PlotMetaDValu.toString() +"\n";
+ }
+
+ if (myplot[i].plotdata[j].PlotMetaD.toString().equals("output_file")){
+ header1 += "set output \""+ myplot[i].plotdata[j].PlotMetaDValu.toString() + ".eps\"\n";
+ }
+
+ if (myplot[i].plotdata[j].PlotMetaD.toString().equals("input_file")){
+ header1 += "plot ";
+ input_file_name = myplot[i].plotdata[j].PlotMetaDValu.toString();
+ }
+
+ if (myplot[i].plotdata[j].PlotMetaD.toString().equals("ncplot")){
+ columnsAvail = myplot[i].plotdata[j].PlotMetaDValu.toString();
+ }
+
+ if (myplot[i].plotdata[j].PlotMetaD.toString().equals("columns_plot")){
+ columnstoPlot = myplot[i].plotdata[j].PlotMetaDValu.toString();
+ header1 += insertColumnsData(columnsAvail, columnstoPlot, input_file_name, 11);
+ }
+
+ if (myplot[i].plotdata[j].PlotMetaD.toString().equals("script_name")){
+ saveScript("/tmp/vlab/cijdata/", header1, myplot[i].plotdata[j].PlotMetaDValu.toString());
+ runScriptGnuPlot( myplot[i].plotdata[j].PlotMetaDValu.toString(), "/tmp/vlab/cijdata/");
+ }
+
+ System.out.println("Header File #"+i +header1);
+
+ }
+
+ header1 = "";
+ }
+ }catch(Exception ae){
+ System.err.println("Error defining the script files: "+ae.getMessage());
+ }
+ //String listofFiles[] = null;
+ //String defaultcontentScriptFile = "";
+ //String header1 = "set title \"expansivity\"\n";
+ //header1 += "set xlabel \"Pressure [GPa]\"\n"; //Mudar essa parte do codigo pra ser dinamico
+ //String header2 = "set ylabel \""; //Mudar essa parte do codigo para ser dinamico
+ //String header3 = "[10^{-5}/K]\"\n set xrange [0:150]\n";
+ //header3 += "set border linewidth 5\n";
+ //header3 += "set tics scale 5\n";
+ //header3 += "set size 3.0, 3.0; set terminal postscript eps solid enhanced color \"Times-Roman\" 80\n";
+ criteria = ".*.dat";
+ //listofFiles = listFiles("/tmp/vlab/hitempfiles/");
+ //for(int i=0; i < listofFiles.length; i++){
+ //defaultcontentScriptFile = header1 + header2 + listofFiles[i].substring(0, listofFiles[i].length()-4) + header3;
+ /*
+ Bs = GPa
+ Bt = GPa
+ Cp =
+ Cv =
+ SSS =
+ alpha =
+ enthalpy =
+ gamma =
+ helmholtz =
+ vol
+ */
+ //defaultcontentScriptFile += "set output \"" + listofFiles[i].substring(0, listofFiles[i].length()-4) + ".eps\"\n";
+ //defaultcontentScriptFile += "plot \"" + listofFiles[i] + "\" using 1:4 title \"T= 300\" linewidth 15 with line, \"" + listofFiles[i];
+ //defaultcontentScriptFile += "\" using 1:11 title \"T=1000\" linewidth 15 with line, \"" + listofFiles[i]+"\" using 1:21 title \"T=2000\" linewidth 15 with line, \"";
+ //defaultcontentScriptFile += listofFiles[i]+"\" using 1:31 title \"T=3000\" linewidth 15 with line";
+
+ //saveScript("/tmp/vlab/cijdata/",defaultcontentScriptFile, listofFiles[i].substring(0, listofFiles[i].length()-4));
+
+
+ //runScriptGnuPlot(listofFiles[i].substring(0, listofFiles[i].length()-4), "/tmp/vlab/cijdata/");
+ //defaultcontentScriptFile = "";
+ //}
+ criteria = ".*.jpg";
+ String[] listofJPgFiles = listFiles("/tmp/vlab/cijdata/");
+
+ if (listofJPgFiles.length > 0){
+
+ for(int i=0; i < listofJPgFiles.length; i++){
+ System.out.println("/tmp/vlab/cijdata/"+listofJPgFiles[i]);
+ }
+
+ }
+ else
+ System.out.println("none jpg file were found");
+
+ deleteold("rmdelete2.sh");
+ copynew();
+ deleteold("rmdelete.sh");
+
+ }
+
+
+ public static String insertColumnsData(String columnsAvail, String columnsToPlot, String input_file_name, int lineamount){
+
+
+ String[] avail = columnsAvail.split(";");
+
+ String scriptAccumulate = "";
+ for(int i=1; i < avail.length; i++){
+
+ //System.out.println(columnsToPlot.substring(i-1, i));
+ if (columnsToPlot.substring(i-1, i).equals("1"))
+ scriptAccumulate += "\""+ input_file_name + "\" using 1:"+ (i+1) + " title \"" + avail[i].trim() + "\" linewidth "+ lineamount + " with line," ;
+
+ }
+
+ scriptAccumulate = scriptAccumulate.substring(0,scriptAccumulate.length()-1);
+ return scriptAccumulate;
+
+ }
+
+ /*
+ public static void main(String[] args){
+
+ PreparePlot prep = new PreparePlot();
+
+ String num1 = "Pressure; C11; C44; C12; K Hill; dK Hill; G Hill; dG Hill; Vol";
+ String num2 = "11011101";
+
+ System.out.println("Result:" + prep.insertColumnsData(num1, num2, "filetoDb", 11));
+
+ }
+ */
+
+ /*For Cij Visualization*/
+ public void setGenerateScriptFilesCij(){
+
+ String listofFiles[] = null;
+ String defaultcontentScriptFile = "set title \"Cij Data\"\n";
+ defaultcontentScriptFile += "set xlabel \"Pressure [GPa]\"\n";
+ defaultcontentScriptFile += "set ylabel \"Cij [GPa]\"\n";
+ defaultcontentScriptFile += "set xrange [-10:150]\n";
+ defaultcontentScriptFile += "set border linewidth 5\n";
+ defaultcontentScriptFile += "set tics scale 5\n";
+ defaultcontentScriptFile += "set size 3.0, 3.0\n";
+ defaultcontentScriptFile += "set terminal postscript eps solid enhanced color \"Times-Roman\" 80\n";
+ defaultcontentScriptFile += "set output \"cubic.eps\"\n";
+ defaultcontentScriptFile += "plot \"elasticdata\" using 1:2 title \"C11\" linewidth 11 with line, \"elasticdata\" using 1:3 title \"C44\" linewidth 11 ";
+ defaultcontentScriptFile += "with line, \"elasticdata\" using 1:4 title \"C12\" linewidth 11 with line, \"elasticdata\" using 1:5 title \"CellVol\" linewidth 11 with line";
+
+ saveScript("/tmp/vlab/cijdata/",defaultcontentScriptFile, "cubic");
+
+ run...
[truncated message content] |
|
From: <das...@us...> - 2008-10-30 22:30:26
|
Revision: 1196
http://vlab.svn.sourceforge.net/vlab/?rev=1196&view=rev
Author: dasil014
Date: 2008-10-30 22:30:16 +0000 (Thu, 30 Oct 2008)
Log Message:
-----------
Added some functionalities to delete project. Update some data information to call high temperatures results.
Modified Paths:
--------------
trunk/vlab/portal/vlab-portlets/pom.xml
trunk/vlab/portal/vlab-portlets/src/main/java/edu/umn/msi/vlabPortlets/OverviewList.java
trunk/vlab/portal/vlab-portlets/src/main/java/edu/umn/msi/vlabPortlets/portlets/HighTempPortlet.java
trunk/vlab/portal/vlab-portlets/src/main/java/edu/umn/msi/vlabPortlets/portlets/OverviewPortlet.java
trunk/vlab/portal/vlab-portlets/src/main/java/edu/umn/msi/vlabPortlets/portlets/ProjectStatusPortlet.java
trunk/vlab/portal/vlab-portlets/src/main/webapp/META-INF/context.xml
trunk/vlab/portal/vlab-portlets/src/main/webapp/WEB-INF/gridsphere-portlet.xml
trunk/vlab/portal/vlab-portlets/src/main/webapp/WEB-INF/group.sample.xml
trunk/vlab/portal/vlab-portlets/src/main/webapp/WEB-INF/group.xml
trunk/vlab/portal/vlab-portlets/src/main/webapp/WEB-INF/layout.xml
trunk/vlab/portal/vlab-portlets/src/main/webapp/WEB-INF/portlet.xml
trunk/vlab/portal/vlab-portlets/src/main/webapp/WEB-INF/web.xml
trunk/vlab/portal/vlab-portlets/src/main/webapp/jsp/hightemp/high_temperature.jsp
trunk/vlab/portal/vlab-portlets/src/main/webapp/jsp/hightemp/high_temperature_results.jsp
trunk/vlab/portal/vlab-portlets/src/main/webapp/jsp/monitor/monitor.jsp
trunk/vlab/portal/vlab-portlets/src/main/webapp/jsp/monitor/viewfit.jsp
trunk/vlab/portal/vlab-portlets/src/main/webapp/jsp/project-status/select-project.jsp
trunk/vlab/portal/vlab-portlets/src/main/webapp/jsp/viewcij/createvisualization.jsp
trunk/vlab/portal/vlab-portlets/src/main/webapp/jsp/viewcij/viewcijoption.jsp
trunk/vlab/portal/vlab-portlets/src/main/webapp/jsp/viewcij/viewtabledata.jsp
Added Paths:
-----------
trunk/vlab/portal/vlab-portlets/src/main/java/edu/umn/msi/vlabPortlets/portlets/DeleteProjectPortlet.java
trunk/vlab/portal/vlab-portlets/src/main/webapp/jsp/gnuplot_visualization/
trunk/vlab/portal/vlab-portlets/src/main/webapp/jsp/gnuplot_visualization/plot.jsp
trunk/vlab/portal/vlab-portlets/src/main/webapp/jsp/gnuplot_visualization/prepareplot.jsp
trunk/vlab/portal/vlab-portlets/src/main/webapp/jsp/project-status/deleteproject.jsp
Modified: trunk/vlab/portal/vlab-portlets/pom.xml
===================================================================
--- trunk/vlab/portal/vlab-portlets/pom.xml 2008-10-29 22:48:09 UTC (rev 1195)
+++ trunk/vlab/portal/vlab-portlets/pom.xml 2008-10-30 22:30:16 UTC (rev 1196)
@@ -1,237 +1,242 @@
<?xml version="1.0" encoding="UTF-8"?>
<project>
- <parent>
- <artifactId>portal-dependent-project</artifactId>
- <relativePath>../portal-dependent-project</relativePath>
- <groupId>edu.umn.msi.vlab</groupId>
- <version>1.0-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>vlab-portlets</artifactId>
- <version>1.0-SNAPSHOT</version>
- <packaging>war</packaging>
-
- <name>The VLab Web Portal</name>
- <description>Central project for portlets that create input, submit jobs, and monitor job output</description>
-
- <build>
- <finalName>vlabportlets</finalName>
-
- <testResources>
- <testResource>
- <directory>src/test/resources</directory>
- <filtering>true</filtering>
- </testResource>
- </testResources>
-
- <!-- Step3: Compile with compiler aware of newly generated source
--->
- <plugins>
- <plugin>
- <groupId>org.codehaus.cargo</groupId>
- <artifactId>cargo-maven2-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>netbeans-freeform-maven-plugin</artifactId>
- <configuration>
- <additionalFolders>src/main/webapp</additionalFolders>
- <additionalGoals>source:war</additionalGoals>
- <additionalGoals>clean install</additionalGoals>
- </configuration>
- </plugin>
- </plugins>
+ <parent>
+ <artifactId>portal-dependent-project</artifactId>
+ <relativePath>../portal-dependent-project</relativePath>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>vlab-portlets</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>war</packaging>
- <resources>
- <resource>
- <directory>src/main/resources</directory>
- <filtering>true</filtering>
- </resource>
- </resources>
- </build>
- <dependencies>
- <dependency>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>pseudo-potential-repository</artifactId>
- <version>1.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>taglibs</groupId>
- <artifactId>standard</artifactId>
- <version>[1.0,)</version>
- </dependency>
- <!--
- <dependency>
- <groupId>commons-collections</groupId>
- <artifactId>commons-collections</artifactId>
- <version>[3.1,)</version>
- </dependency>
- -->
- <dependency>
- <groupId>commons-digester</groupId>
- <artifactId>commons-digester</artifactId>
- <version>1.6</version>
- <exclusions>
- <exclusion>
- <artifactId>xml-apis</artifactId>
- <groupId>xml-apis</groupId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>commons-beanutils</groupId>
- <artifactId>commons-beanutils</artifactId>
- <version>1.7.0</version>
- </dependency>
- <!-- NOTE: commons-fileupload depends on commons-io.
- The commons-fileupload-1.1.pom depends on commons-io-1.1.
- However, commons-fileupload-1.2.pom depends on commons-io-1.3, which is not found.
- Hence, I'm depending on commons-io-1.2 explicitly.
- -->
- <dependency>
- <groupId>commons-io</groupId>
- <artifactId>commons-io</artifactId>
- <version>1.2</version>
- </dependency>
- <dependency>
- <groupId>commons-fileupload</groupId>
- <artifactId>commons-fileupload</artifactId>
- <version>1.2</version>
- </dependency>
- <dependency>
- <groupId>commons-lang</groupId>
- <artifactId>commons-lang</artifactId>
- <version>2.1</version>
- </dependency>
- <dependency>
- <groupId>commons-logging</groupId>
- <artifactId>commons-logging</artifactId>
- <version>1.0.4</version>
- </dependency>
- <dependency>
- <groupId>log4j</groupId>
- <artifactId>log4j</artifactId>
- <version>1.2.8</version>
- <scope>provided</scope>
- </dependency>
- <!--
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>jsp-api</artifactId>
- <version>2.0</version>
- <scope>provided</scope>
- </dependency>
- -->
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>servlet-api</artifactId>
- <version>2.4</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>test-utils</artifactId>
- <version>1.0-SNAPSHOT</version>
- <scope>test</scope>
- </dependency>
- <!--
- <dependency>
- <groupId>gridsphere</groupId>
- <artifactId>gridsphere-provider</artifactId>
- <version>3.0</version>
- </dependency>
- <dependency>
- <groupId>gridsphere</groupId>
- <artifactId>gridsphere-portal</artifactId>
- <version>3.0</version>
- </dependency>
- -->
+ <name>The VLab Web Portal</name>
+ <description>
+ Central project for portlets that create input, submit jobs, and
+ monitor job output
+ </description>
- <dependency>
- <groupId>gridsphere</groupId>
- <artifactId>portlet-jsr-api</artifactId>
- </dependency>
- <dependency>
- <groupId>gridsphere</groupId>
- <artifactId>gridsphere-ui-tags</artifactId>
- </dependency>
- <dependency>
- <groupId>gridsphere</groupId>
- <artifactId>gridsphere-provider</artifactId>
- </dependency>
- <dependency>
- <groupId>gridsphere</groupId>
- <artifactId>portlet-api</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.portals.bridges</groupId>
- <artifactId>portals-bridges-portletfilter</artifactId>
- <version>[1.0.3,)</version>
- </dependency>
+ <build>
+ <finalName>vlabportlets</finalName>
- <dependency>
- <groupId>cgl</groupId>
- <artifactId>crossHash</artifactId>
- <version>0.1</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>vlab-base</artifactId>
- <version>1.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>vlab-db</artifactId>
- <version>1.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>vlab-common</artifactId>
- <version>1.0-SNAPSHOT</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>postgresql</groupId>
- <artifactId>postgresql</artifactId>
- <version>8.1-404.jdbc3</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>jstl</artifactId>
- <version>1.1.2</version>
- </dependency>
-
- <!-- HTML Unit Dependencies -->
- <dependency>
- <groupId>htmlunit</groupId>
- <artifactId>htmlunit</artifactId>
- <version>1.10</version>
- <scope>test</scope>
- </dependency>
+ <testResources>
+ <testResource>
+ <directory>src/test/resources</directory>
+ <filtering>true</filtering>
+ </testResource>
+ </testResources>
-<!--
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>servlet-api</artifactId>
- <version>2.4</version>
- <scope>test</scope>
- </dependency>
- -->
+ <!-- Step3: Compile with compiler aware of newly generated source
+ -->
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.cargo</groupId>
+ <artifactId>cargo-maven2-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>netbeans-freeform-maven-plugin</artifactId>
+ <configuration>
+ <additionalFolders>
+ src/main/webapp
+ </additionalFolders>
+ <additionalGoals>source:war</additionalGoals>
+ <additionalGoals>clean install</additionalGoals>
+ </configuration>
+ </plugin>
+ </plugins>
- <dependency>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>charge-density-service-stub</artifactId>
- <version>1.0-SNAPSHOT</version>
- </dependency>
- </dependencies>
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ <filtering>true</filtering>
+ </resource>
+ </resources>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>pseudo-potential-repository</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>taglibs</groupId>
+ <artifactId>standard</artifactId>
+ <version>[1.0,)</version>
+ </dependency>
+ <!--
+ <dependency>
+ <groupId>commons-collections</groupId>
+ <artifactId>commons-collections</artifactId>
+ <version>[3.1,)</version>
+ </dependency>
+ -->
+ <dependency>
+ <groupId>commons-digester</groupId>
+ <artifactId>commons-digester</artifactId>
+ <version>1.6</version>
+ <exclusions>
+ <exclusion>
+ <artifactId>xml-apis</artifactId>
+ <groupId>xml-apis</groupId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>commons-beanutils</groupId>
+ <artifactId>commons-beanutils</artifactId>
+ <version>1.7.0</version>
+ </dependency>
+ <!-- NOTE: commons-fileupload depends on commons-io.
+ The commons-fileupload-1.1.pom depends on commons-io-1.1.
+ However, commons-fileupload-1.2.pom depends on commons-io-1.3, which is not found.
+ Hence, I'm depending on commons-io-1.2 explicitly.
+ -->
+ <dependency>
+ <groupId>commons-io</groupId>
+ <artifactId>commons-io</artifactId>
+ <version>1.2</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-fileupload</groupId>
+ <artifactId>commons-fileupload</artifactId>
+ <version>1.2</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-lang</groupId>
+ <artifactId>commons-lang</artifactId>
+ <version>2.1</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ <version>1.0.4</version>
+ </dependency>
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>1.2.8</version>
+ <scope>provided</scope>
+ </dependency>
+ <!--
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>jsp-api</artifactId>
+ <version>2.0</version>
+ <scope>provided</scope>
+ </dependency>
+ -->
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.4</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>test-utils</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <scope>test</scope>
+ </dependency>
+ <!--
+ <dependency>
+ <groupId>gridsphere</groupId>
+ <artifactId>gridsphere-provider</artifactId>
+ <version>3.0</version>
+ </dependency>
+ <dependency>
+ <groupId>gridsphere</groupId>
+ <artifactId>gridsphere-portal</artifactId>
+ <version>3.0</version>
+ </dependency>
+ -->
+
+ <dependency>
+ <groupId>gridsphere</groupId>
+ <artifactId>portlet-jsr-api</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>gridsphere</groupId>
+ <artifactId>gridsphere-ui-tags</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>gridsphere</groupId>
+ <artifactId>gridsphere-provider</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>gridsphere</groupId>
+ <artifactId>portlet-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.portals.bridges</groupId>
+ <artifactId>portals-bridges-portletfilter</artifactId>
+ <version>[1.0.3,)</version>
+ </dependency>
+
+ <dependency>
+ <groupId>cgl</groupId>
+ <artifactId>crossHash</artifactId>
+ <version>0.1</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>vlab-base</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>vlab-db</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>vlab-common</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>postgresql</groupId>
+ <artifactId>postgresql</artifactId>
+ <version>8.1-404.jdbc3</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>jstl</artifactId>
+ <version>1.1.2</version>
+ </dependency>
+
+ <!-- HTML Unit Dependencies -->
+ <dependency>
+ <groupId>htmlunit</groupId>
+ <artifactId>htmlunit</artifactId>
+ <version>1.10</version>
+ <scope>test</scope>
+ </dependency>
+
+ <!--
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.4</version>
+ <scope>test</scope>
+ </dependency>
+ -->
+
+ <dependency>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>charge-density-service-stub</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
</project>
Modified: trunk/vlab/portal/vlab-portlets/src/main/java/edu/umn/msi/vlabPortlets/OverviewList.java
===================================================================
--- trunk/vlab/portal/vlab-portlets/src/main/java/edu/umn/msi/vlabPortlets/OverviewList.java 2008-10-29 22:48:09 UTC (rev 1195)
+++ trunk/vlab/portal/vlab-portlets/src/main/java/edu/umn/msi/vlabPortlets/OverviewList.java 2008-10-30 22:30:16 UTC (rev 1196)
@@ -17,6 +17,7 @@
private List<String> incompleteInput;
private List<String> notSubmitted;
private List<String> submitted;
+ private List<String> allprojects;
private OverviewList (String username) { this.forUsername = username; }
@@ -25,6 +26,7 @@
public List<String> getNoInput() { return noInput; }
public List<String> getNotSubmitted() { return notSubmitted; }
public List<String> getSubmitted() { return submitted; }
+ public List<String> getListAllProject() { return allprojects; }
public static OverviewList getOverview(PortletRequest request) throws SQLException {
OverviewList list = new OverviewList(Util.getUsername(request));
@@ -45,24 +47,29 @@
this.incompleteInput = findIncompleteInputProjects();
this.notSubmitted = findNotSubmittedProjects ();
this.submitted = findSubmittedProjects ();
+ this.allprojects = findAllProjects ();
}
private List<String> findNoInputProjects() throws SQLException {
- return findProjects("a.inputinitial IS NULL");
+ return findProjects("and a.inputinitial IS NULL");
}
private List<String> findIncompleteInputProjects() throws SQLException {
- return findProjects("a.inputinitial IS NOT NULL and a.inputready = false");
+ return findProjects("and a.inputinitial IS NOT NULL and a.inputready = false");
}
private List<String> findNotSubmittedProjects() throws SQLException {
- return findProjects("a.inputinitial IS NOT NULL and a.inputready = true and a.submitted = false");
+ return findProjects("and a.inputinitial IS NOT NULL and a.inputready = true and a.submitted = false");
}
private List<String> findSubmittedProjects() throws SQLException {
- return findProjects("a.inputinitial IS NOT NULL and a.inputready = true and a.submitted = true");
+ return findProjects("and a.inputinitial IS NOT NULL and a.inputready = true and a.submitted = true");
}
+ private List<String> findAllProjects() throws SQLException {
+ return findProjects("");
+ }
+
private List<String> findProjects(String queryPart)
throws SQLException {
@@ -74,19 +81,15 @@
try {
// get connection
conn = org.vlab.db.Util.getConnection();
-
// prepare query
String query =
"SELECT a.projectname " +
"FROM tbprojectdescriptor a, tbuservlab b " +
- "WHERE a.iduservlab = b.iduservlab and b.username LIKE ? and " + queryPart;
+ "WHERE a.iduservlab = b.iduservlab and b.username LIKE ? " + queryPart;
statement = conn.prepareStatement(query);
-
statement.setString(1, forUsername);
-
result = statement.executeQuery();
-
while ( result.next() )
list.add(result.getString(1));
Added: trunk/vlab/portal/vlab-portlets/src/main/java/edu/umn/msi/vlabPortlets/portlets/DeleteProjectPortlet.java
===================================================================
--- trunk/vlab/portal/vlab-portlets/src/main/java/edu/umn/msi/vlabPortlets/portlets/DeleteProjectPortlet.java (rev 0)
+++ trunk/vlab/portal/vlab-portlets/src/main/java/edu/umn/msi/vlabPortlets/portlets/DeleteProjectPortlet.java 2008-10-30 22:30:16 UTC (rev 1196)
@@ -0,0 +1,91 @@
+package edu.umn.msi.vlabPortlets.portlets;
+
+import java.io.IOException;
+import java.sql.SQLException;
+
+import javax.portlet.ActionRequest;
+import javax.portlet.ActionResponse;
+import javax.portlet.GenericPortlet;
+import javax.portlet.PortletConfig;
+import javax.portlet.PortletException;
+import javax.portlet.PortletSession;
+import javax.portlet.RenderRequest;
+import javax.portlet.RenderResponse;
+
+import edu.umn.msi.vlabPortlets.OverviewList;
+import edu.umn.msi.vlabPortlets.ProjectSelector;
+
+public class DeleteProjectPortlet extends GenericPortlet {
+ public void init(PortletConfig config) throws PortletException {
+ System.out.println( "========== " + config.getPortletName() + " init(...) " + "==========");
+ super.init(config);
+ }
+
+ public void processAction(ActionRequest request, ActionResponse response)
+ throws PortletException, IOException {
+ System.out.println( "========== " + this.getPortletName() + " processAction(...) " + "==========");
+
+ String action = request.getParameter("action");
+
+ if ( action == null || action.length() == 0 ) {
+ // no action
+ } else if ( action.equals("select") ) {
+ doSelectProject(request);
+ }
+
+ // pass the request parameters
+ response.setRenderParameters( request.getParameterMap() );
+ }
+
+ private void doSelectProject(ActionRequest request) {
+ String projectName = request.getParameter("project");
+ ProjectSelector selector = new ProjectSelector(request);
+ try {
+ selector.loadAndSelect(projectName);
+ } catch (SQLException x) {
+ x.printStackTrace();
+ request.setAttribute("deleteprojectErrorMessage", x.getMessage());
+ }
+ }
+
+ public void doView( RenderRequest request, RenderResponse response )
+ throws PortletException, IOException {
+
+ setViewAttributes(request, response);
+
+ getPortletConfig().getPortletContext().getRequestDispatcher("/jsp/project-status/deleteproject.jsp").include(request, response);
+ }
+
+ /**
+ * @param request
+ * @param response
+ */
+ private void setViewAttributes(RenderRequest request, RenderResponse response) {
+ // Create attribute / parameter variables
+ try {
+ request.setAttribute("overviewList", getList(request));
+ } catch (SQLException x) {
+ x.printStackTrace();
+ request.setAttribute("overviewErrorMessage", "Error occurred: " + x.getMessage());
+ }
+
+
+ // Set attributes / parameters
+ request.setAttribute("actionUrl", response.createActionURL().toString());
+ }
+
+
+ private OverviewList getList(RenderRequest request) throws SQLException {
+// OverviewList list = getListFromSession(request.getPortletSession());
+// if ( list == null ) {
+// list = OverviewList.getOverview(request);
+// setListForSession(request.getPortletSession(), list);
+// }
+//
+// return list;
+
+ return OverviewList.getOverview(request);
+ }
+
+
+}
Modified: trunk/vlab/portal/vlab-portlets/src/main/java/edu/umn/msi/vlabPortlets/portlets/HighTempPortlet.java
===================================================================
--- trunk/vlab/portal/vlab-portlets/src/main/java/edu/umn/msi/vlabPortlets/portlets/HighTempPortlet.java 2008-10-29 22:48:09 UTC (rev 1195)
+++ trunk/vlab/portal/vlab-portlets/src/main/java/edu/umn/msi/vlabPortlets/portlets/HighTempPortlet.java 2008-10-30 22:30:16 UTC (rev 1196)
@@ -81,6 +81,7 @@
page ="/jsp/hightemp/high_temperature_setup_manual_data.jsp";
+
} else if ( action.equals("Download Files") ) {
HighTempOption htOptionBean = parseOptionBean(request);
@@ -107,6 +108,11 @@
setHTOptionBean(request, htOptionBean);
page = defaultPage;
+ } else if (action.equals("Results")){
+
+ System.out.println("I FOUND THE CLASS\n\n\n\n\n\n\n");
+ page = "/jsp/hightemp/high_temperature_plot.jsp";
+
}
cacheCurrentPage(request, page);
@@ -138,6 +144,9 @@
hightemp.setProjectExecutorVar();
hightemp.setHtParmsContent( generateHtParams( htOptionBean ) );
hightemp.setUpData();
+ hightemp.saveData();
+ hightemp.UnCompressHighTempFile();
+ //hightemp.setGenerateScriptFiles();
return hightemp;
}
Modified: trunk/vlab/portal/vlab-portlets/src/main/java/edu/umn/msi/vlabPortlets/portlets/OverviewPortlet.java
===================================================================
--- trunk/vlab/portal/vlab-portlets/src/main/java/edu/umn/msi/vlabPortlets/portlets/OverviewPortlet.java 2008-10-29 22:48:09 UTC (rev 1195)
+++ trunk/vlab/portal/vlab-portlets/src/main/java/edu/umn/msi/vlabPortlets/portlets/OverviewPortlet.java 2008-10-30 22:30:16 UTC (rev 1196)
@@ -80,9 +80,7 @@
// setListForSession(request.getPortletSession(), list);
// }
//
-// return list;
-
+// return list;
return OverviewList.getOverview(request);
}
-
-}
+}
\ No newline at end of file
Modified: trunk/vlab/portal/vlab-portlets/src/main/java/edu/umn/msi/vlabPortlets/portlets/ProjectStatusPortlet.java
===================================================================
--- trunk/vlab/portal/vlab-portlets/src/main/java/edu/umn/msi/vlabPortlets/portlets/ProjectStatusPortlet.java 2008-10-29 22:48:09 UTC (rev 1195)
+++ trunk/vlab/portal/vlab-portlets/src/main/java/edu/umn/msi/vlabPortlets/portlets/ProjectStatusPortlet.java 2008-10-30 22:30:16 UTC (rev 1196)
@@ -65,6 +65,8 @@
} else if ( action.equals("submit-project") ) {
page = defaultPage;
doSubmitProject(request);
+ } else if (action.equals("delete-project")) {
+ page = "/jsp/project-status/deleteproject.jsp";
}
cacheCurrentPage(request, page);
Modified: trunk/vlab/portal/vlab-portlets/src/main/webapp/META-INF/context.xml
===================================================================
--- trunk/vlab/portal/vlab-portlets/src/main/webapp/META-INF/context.xml 2008-10-29 22:48:09 UTC (rev 1195)
+++ trunk/vlab/portal/vlab-portlets/src/main/webapp/META-INF/context.xml 2008-10-30 22:30:16 UTC (rev 1196)
@@ -1,13 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
-<Context path="/vlabportlets" docBase="vlabportlets" crossContext="true">
+<Context path="/vlabportlets" docBase="vlabportlets"
+ crossContext="true">
-<Resource
- name="jdbc/postgres"
- auth="Container"
- type="javax.sql.DataSource"
- driverClassName="org.postgresql.Driver"
- url="jdbc:postgresql://localhost/postgres"
- username="postgres"
- password="Fibonacci"/>
+ <Resource name="jdbc/postgres" auth="Container"
+ type="javax.sql.DataSource" driverClassName="org.postgresql.Driver"
+ url="jdbc:postgresql://localhost/postgres" username="postgres"
+ password="Fibonacci" />
</Context>
Modified: trunk/vlab/portal/vlab-portlets/src/main/webapp/WEB-INF/gridsphere-portlet.xml
===================================================================
--- trunk/vlab/portal/vlab-portlets/src/main/webapp/WEB-INF/gridsphere-portlet.xml 2008-10-29 22:48:09 UTC (rev 1195)
+++ trunk/vlab/portal/vlab-portlets/src/main/webapp/WEB-INF/gridsphere-portlet.xml 2008-10-30 22:30:16 UTC (rev 1196)
@@ -1,26 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<portlet-app-collection>
-<portlet-app-def>
+ <portlet-app-def>
-<portlet-app id="org.gridlab.gridsphere.provider.portlet.jsr.PortletServlet">
- <portlet-name>JSR Portlet Servlet</portlet-name>
- <servlet-name>PortletServlet</servlet-name>
-</portlet-app>
+ <portlet-app
+ id="org.gridlab.gridsphere.provider.portlet.jsr.PortletServlet">
+ <portlet-name>JSR Portlet Servlet</portlet-name>
+ <servlet-name>PortletServlet</servlet-name>
+ </portlet-app>
-<concrete-portlet-app id="org.gridlab.gridsphere.provider.portlet.jsr.PortletServlet.1">
- <concrete-portlet>
- <portlet-name>Portlet Servlet</portlet-name>
- <default-locale>en</default-locale>
- <language locale="en">
- <title>Portlet Servlet</title>
- <title-short>Portlet Servlet</title-short>
- <description>A JSR Portlet Loader</description>
- <keywords>portlet servlet</keywords>
- </language>
- </concrete-portlet>
-</concrete-portlet-app>
+ <concrete-portlet-app
+ id="org.gridlab.gridsphere.provider.portlet.jsr.PortletServlet.1">
+ <concrete-portlet>
+ <portlet-name>Portlet Servlet</portlet-name>
+ <default-locale>en</default-locale>
+ <language locale="en">
+ <title>Portlet Servlet</title>
+ <title-short>Portlet Servlet</title-short>
+ <description>A JSR Portlet Loader</description>
+ <keywords>portlet servlet</keywords>
+ </language>
+ </concrete-portlet>
+ </concrete-portlet-app>
-</portlet-app-def>
+ </portlet-app-def>
</portlet-app-collection>
Modified: trunk/vlab/portal/vlab-portlets/src/main/webapp/WEB-INF/group.sample.xml
===================================================================
--- trunk/vlab/portal/vlab-portlets/src/main/webapp/WEB-INF/group.sample.xml 2008-10-29 22:48:09 UTC (rev 1195)
+++ trunk/vlab/portal/vlab-portlets/src/main/webapp/WEB-INF/group.sample.xml 2008-10-30 22:30:16 UTC (rev 1196)
@@ -1,19 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- Sample group layout
-
- $Id: group.sample.xml.tpl 3367 2004-07-14 15:29:16Z novotny $
+ Sample group layout
+
+ $Id: group.sample.xml.tpl 3367 2004-07-14 15:29:16Z novotny $
-->
<portlet-group>
- <group-name>mygroupsample</group-name>
- <group-description>A sample group</group-description>
- <group-visibility>PUBLIC</group-visibility>
- <portlet-role-info>
- <portlet-class>org.myorg..portlets.userportlet.UserPortlet</portlet-class>
- <required-role>USER</required-role>
- </portlet-role-info>
- <portlet-role-info>
- <portlet-class>org.myorg.portlets.adminportlet.AdminPortlet</portlet-class>
- <required-role>ADMIN</required-role>
- </portlet-role-info>
+ <group-name>mygroupsample</group-name>
+ <group-description>A sample group</group-description>
+ <group-visibility>PUBLIC</group-visibility>
+ <portlet-role-info>
+ <portlet-class>
+ org.myorg..portlets.userportlet.UserPortlet
+ </portlet-class>
+ <required-role>USER</required-role>
+ </portlet-role-info>
+ <portlet-role-info>
+ <portlet-class>
+ org.myorg.portlets.adminportlet.AdminPortlet
+ </portlet-class>
+ <required-role>ADMIN</required-role>
+ </portlet-role-info>
</portlet-group>
Modified: trunk/vlab/portal/vlab-portlets/src/main/webapp/WEB-INF/group.xml
===================================================================
--- trunk/vlab/portal/vlab-portlets/src/main/webapp/WEB-INF/group.xml 2008-10-29 22:48:09 UTC (rev 1195)
+++ trunk/vlab/portal/vlab-portlets/src/main/webapp/WEB-INF/group.xml 2008-10-30 22:30:16 UTC (rev 1196)
@@ -1,45 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- Sample group layout
-
- $Id: group.sample.xml.tpl 3367 2004-07-14 15:29:16Z novotny $
+ Sample group layout
+
+ $Id: group.sample.xml.tpl 3367 2004-07-14 15:29:16Z novotny $
-->
<portlet-group>
- <group-name>vlabportlets</group-name>
- <group-description>VLAB Pwscf Submission and Monitoring Portlets</group-description>
- <group-visibility>PUBLIC</group-visibility>
- <portlet-role-info>
- <portlet-class>vlabportlets#ProjectManagerPortlet</portlet-class>
- <required-role>USER</required-role>
- </portlet-role-info>
- <portlet-role-info>
- <portlet-class>vlabportlets#MonitorPortlet</portlet-class>
- <required-role>USER</required-role>
- </portlet-role-info>
- <portlet-role-info>
- <portlet-class>vlabportlets#ProjectStatusPortlet</portlet-class>
- <required-role>USER</required-role>
- </portlet-role-info>
- <portlet-role-info>
- <portlet-class>vlabportlets#ViewCijPortlet</portlet-class>
- <required-role>USER</required-role>
- </portlet-role-info>
- <portlet-role-info>
- <portlet-class>vlabportlets#ChargeDensityClientInterface</portlet-class>
- <required-role>USER</required-role>
- </portlet-role-info>
- <portlet-role-info>
- <portlet-class>vlabportlets#PseudoAdminPortlet</portlet-class>
- <required-role>ADMIN</required-role>
- </portlet-role-info>
+ <group-name>vlabportlets</group-name>
+ <group-description>
+ VLAB Pwscf Submission and Monitoring Portlets
+ </group-description>
+ <group-visibility>PUBLIC</group-visibility>
+ <portlet-role-info>
+ <portlet-class>
+ vlabportlets#ProjectManagerPortlet
+ </portlet-class>
+ <required-role>USER</required-role>
+ </portlet-role-info>
+ <portlet-role-info>
+ <portlet-class>vlabportlets#MonitorPortlet</portlet-class>
+ <required-role>USER</required-role>
+ </portlet-role-info>
+ <portlet-role-info>
+ <portlet-class>vlabportlets#ProjectStatusPortlet</portlet-class>
+ <required-role>USER</required-role>
+ </portlet-role-info>
+ <portlet-role-info>
+ <portlet-class>vlabportlets#ViewCijPortlet</portlet-class>
+ <required-role>USER</required-role>
+ </portlet-role-info>
+ <portlet-role-info>
+ <portlet-class>
+ vlabportlets#ChargeDensityClientInterface
+ </portlet-class>
+ <required-role>USER</required-role>
+ </portlet-role-info>
+ <portlet-role-info>
+ <portlet-class>vlabportlets#PseudoAdminPortlet</portlet-class>
+ <required-role>ADMIN</required-role>
+ </portlet-role-info>
<!--
- <group-name>Task Executor Adminstration</group-name>
- <group-description>
+ <group-name>Task Executor Adminstration</group-name>
+ <group-description>
Adminstrate Task Executors
- </group-description>
- <group-visibility>HIDDEN</group-visibility>
- -->
+ </group-description>
+ <group-visibility>HIDDEN</group-visibility>
+ -->
<portlet-role-info>
<portlet-class>
edu.umn.msi.vlab.webapp.admin.portlets.AddNode
@@ -58,5 +64,5 @@
</portlet-class>
<required-role>ADMIN</required-role>
</portlet-role-info>
-
+
</portlet-group>
\ No newline at end of file
Modified: trunk/vlab/portal/vlab-portlets/src/main/webapp/WEB-INF/layout.xml
===================================================================
--- trunk/vlab/portal/vlab-portlets/src/main/webapp/WEB-INF/layout.xml 2008-10-29 22:48:09 UTC (rev 1195)
+++ trunk/vlab/portal/vlab-portlets/src/main/webapp/WEB-INF/layout.xml 2008-10-30 22:30:16 UTC (rev 1196)
@@ -8,10 +8,11 @@
<table-layout>
<row-layout>
<column-layout width="30%">
- <portlet-content context="vlabportlets" include="/html/empty.html"/>
+ <portlet-content context="vlabportlets"
+ include="/html/empty.html" />
</column-layout>
<column-layout width="40%">
-
+
<portlet-frame>
<portlet-class>
vlabportlets#ProjectStatusPortlet
@@ -25,12 +26,13 @@
</column-layout>
<column-layout width="30%">
- <portlet-content context="vlabportlets" include="/html/empty.html"/>
+ <portlet-content context="vlabportlets"
+ include="/html/empty.html" />
</column-layout>
</row-layout>
</table-layout>
</portlet-tab>
-
+
<portlet-tab label="editInput">
<title lang="en">Edit Input</title>
<table-layout>
@@ -47,7 +49,7 @@
</portlet-class>
</portlet-frame>
</column-layout>
-
+
<column-layout width="66%">
<portlet-frame label="editInput">
<portlet-class>
@@ -58,7 +60,7 @@
</row-layout>
</table-layout>
</portlet-tab>
-
+
<portlet-tab label="jobMonitor">
<title lang="en">Job Monitor</title>
<table-layout>
@@ -75,7 +77,7 @@
</portlet-class>
</portlet-frame>
</column-layout>
-
+
<column-layout width="66%">
<portlet-frame label="monitorPortlet">
<portlet-class>
@@ -86,7 +88,7 @@
</row-layout>
</table-layout>
</portlet-tab>
-
+
<portlet-tab label="cij">
<title lang="en">View Cij</title>
<table-layout>
@@ -114,7 +116,7 @@
</table-layout>
</portlet-tab>
- <portlet-tab label="HighTP">
+ <portlet-tab label="HighTP">
<title lang="en">High Temperature</title>
<table-layout>
<row-layout>
@@ -142,7 +144,9 @@
</portlet-tab>
<portlet-tab label="CDVC">
- <title lang="en">Charge Density Visualization Client</title>
+ <title lang="en">
+ Charge Density Visualization Client
+ </title>
<table-layout>
<row-layout>
<column-layout width="34%">
@@ -222,52 +226,62 @@
</row-layout>
</table-layout>
</portlet-tab>
-
+
</portlet-tabbed-pane>
</portlet-tab>
-
+
<portlet-tab>
<title lang="en">VLab Administration</title>
<portlet-tabbed-pane style="sub-menu">
-
+
<portlet-tab label="listnodes">
<title lang="en">Configure Task Executors</title>
<table-layout>
<row-layout>
<column-layout width="50%">
<portlet-frame label="listnodes-frame1">
- <portlet-class>edu.umn.msi.vlab.webapp.admin.portlets.ListNodes</portlet-class>
+ <portlet-class>
+ edu.umn.msi.vlab.webapp.admin.portlets.ListNodes
+ </portlet-class>
</portlet-frame>
</column-layout>
<column-layout width="50%">
<portlet-frame label="editnode-frame">
- <portlet-class>edu.umn.msi.vlab.webapp.admin.portlets.EditNode</portlet-class>
+ <portlet-class>
+ edu.umn.msi.vlab.webapp.admin.portlets.EditNode
+ </portlet-class>
</portlet-frame>
</column-layout>
</row-layout>
</table-layout>
</portlet-tab>
-
+
<portlet-tab label="addnode">
<title lang="en">Add Task Executors</title>
<table-layout>
<row-layout>
<column-layout width="50%">
<portlet-frame label="listnodes-frame2">
- <portlet-class>edu.umn.msi.vlab.webapp.admin.portlets.ListNodes</portlet-class>
+ <portlet-class>
+ edu.umn.msi.vlab.webapp.admin.portlets.ListNodes
+ </portlet-class>
</portlet-frame>
</column-layout>
<column-layout width="50%">
<portlet-frame label="addnode-frame">
- <portlet-class>edu.umn.msi.vlab.webapp.admin.portlets.AddNode</portlet-class>
+ <portlet-class>
+ edu.umn.msi.vlab.webapp.admin.portlets.AddNode
+ </portlet-class>
</portlet-frame>
</column-layout>
</row-layout>
</table-layout>
</portlet-tab>
-
+
<portlet-tab label="pseudo-admin">
- <title lang="en">Manage Pseudo-Potential Repository</title>
+ <title lang="en">
+ Manage Pseudo-Potential Repository
+ </title>
<table-layout>
<row-layout>
<column-layout width="15%"></column-layout>
@@ -282,9 +296,9 @@
</row-layout>
</table-layout>
</portlet-tab>
-
+
</portlet-tabbed-pane>
-
+
</portlet-tab>
-
+
</portlet-tabbed-pane>
Modified: trunk/vlab/portal/vlab-portlets/src/main/webapp/WEB-INF/portlet.xml
===================================================================
--- trunk/vlab/portal/vlab-portlets/src/main/webapp/WEB-INF/portlet.xml 2008-10-29 22:48:09 UTC (rev 1195)
+++ trunk/vlab/portal/vlab-portlets/src/main/webapp/WEB-INF/portlet.xml 2008-10-30 22:30:16 UTC (rev 1196)
@@ -1,198 +1,304 @@
<?xml version="1.0" encoding="UTF-8"?>
-<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
- version="1.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd">
- <portlet>
- <description xml:lang="en">This Portlet is the central portlet for the user to manage projects</description>
- <portlet-name>ProjectManagerPortlet</portlet-name>
- <display-name xml:lang="en">Project Manager Portlet</display-name>
- <portlet-class>edu.umn.msi.vlabPortlets.portlets.ProjectManagerPortlet</portlet-class>
- <expiration-cache>60</expiration-cache>
- <supports><mime-type>text/html</mime-type></supports>
- <supported-locale>en</supported-locale>
- <portlet-info>
- <title></title>
- <short-title>Project Manager</short-title>
- <keywords>project manager</keywords>
- </portlet-info>
- </portlet>
- <portlet>
- <description xml:lang="en">Monitors the progress of a job</description>
- <portlet-name>MonitorPortlet</portlet-name>
- <display-name xml:lang="en">Monitor Portlet</display-name>
- <portlet-class>edu.umn.msi.vlabPortlets.portlets.MonitorPortlet</portlet-class>
- <expiration-cache>0</expiration-cache>
- <supports>
- <mime-type>text/html</mime-type>
- </supports>
- <supported-locale>en</supported-locale>
- <portlet-info>
- <title>Job Monitor Portlet</title>
- <short-title>Job Monitor</short-title>
- <keywords>job monitor</keywords>
- </portlet-info>
- </portlet>
- <portlet>
- <description xml:lang="en">Displays status and other information about the current project</description>
- <portlet-name>ProjectStatusPortlet</portlet-name>
- <display-name xml:lang="en">Status Portlet</display-name>
- <portlet-class>edu.umn.msi.vlabPortlets.portlets.ProjectStatusPortlet</portlet-class>
- <expiration-cache>0</expiration-cache>
- <supports><mime-type>text/html</mime-type></supports>
- <supported-locale>en</supported-locale>
- <portlet-info>
- <title>Project Status</title>
- <short-title>Status Portlet</short-title>
- <keywords>status portlet</keywords>
- </portlet-info>
- </portlet>
-
- <portlet>
- <description xml:lang="en">Shows an overview of the user's projects</description>
- <portlet-name>OverviewPortlet</portlet-name>
- <display-name xml:lang="en">Overview Portlet</display-name>
- <portlet-class>edu.umn.msi.vlabPortlets.portlets.OverviewPortlet</portlet-class>
- <expiration-cache>0</expiration-cache>
- <supports><mime-type>text/html</mime-type></supports>
- <supported-locale>en</supported-locale>
- <portlet-info>
- <title>Project Overview</title>
- <short-title>Overview</short-title>
- <keywords>project overview</keywords>
- </portlet-info>
- </portlet>
-
- <portlet>
- <description xml:lang="en">Displays server status</description>
- <portlet-name>NodeStatusPortlet</portlet-name>
- <display-name xml:lang="en">Node Status Portlet</display-name>
- <portlet-class>edu.umn.msi.vlabPortlets.portlets.NodeStatusPortlet</portlet-class>
- <expiration-cache>120</expiration-cache>
- <supports><mime-type>text/html</mime-type></supports>
- <supported-locale>en</supported-locale>
- <portlet-info>
- <title>System Status</title>
- <short-title>Server status</short-title>
- <keywords>server node status portlet</keywords>
- </portlet-info>
- </portlet>
- <portlet>
- <description xml:lang="en">Displays database connection status</description>
- <portlet-name>DbStatusPortlet</portlet-name>
- <display-name xml:lang="en">Database Status Portlet</display-name>
- <portlet-class>edu.umn.msi.vlabPortlets.portlets.DbStatusPortlet</portlet-class>
- <expiration-cache>120</expiration-cache>
- <supports><mime-type>text/html</mime-type></supports>
- <supported-locale>en</supported-locale>
- <portlet-info>
- <title>Database Connection Status</title>
- <short-title>Db status</short-title>
- <keywords>server database status portlet</keywords>
- </portlet-info>
- </portlet>
- <portlet>
- <description xml:lang="en">Views CIJ visualization</description>
- <portlet-name>ViewCijPortlet</portlet-name>
- <display-name xml:lang="en">View Cij</display-name>
- <portlet-class>edu.umn.msi.vlabPortlets.portlets.ViewCijPortlet</portlet-class>
- <expiration-cache>0</expiration-cache>
- <supports><mime-type>text/html</mime-type></supports>
- <supported-locale>en</supported-locale>
- <portlet-info>
- <title>View Cij</title>
- <short-title>View Cij</short-title>
- <keywords>View Cij Portlet</keywords>
- </portlet-info>
- </portlet>
- <portlet>
- <description xml:lang="en">A portlet for managing the pseudo-potential repository</description>
- <portlet-name>PseudoAdminPortlet</portlet-name>
- <display-name xml:lang="en">Pseudo-Repository Administration</display-name>
- <portlet-class>org.apache.portals.bridges.portletfilter.FilterPortlet</portlet-class>
- <init-param>
- <name>portlet-class</name>
- <value>edu.umn.msi.vlabPortlets.portlets.PseudoAdminPortlet</value>
- </init-param>
- <init-param>
- <name>portlet-filters</name>
- <value>edu.umn.msi.vlabPortlets.HibernatePortletFilter</value>
- </init-param>
- <expiration-cache>0</expiration-cache>
- <supports><mime-type>text/html</mime-type></supports>
- <supported-locale>en</supported-locale>
- <portlet-info>
- <title>Manage Pseudo-Potential Repository</title>
- <short-title>Pseudo-Repository Administration</short-title>
- <keywords>Manage Pseudo-Potential Repository</keywords>
- </portlet-info>
- </portlet>
- <portlet>
- <description xml:lang="en">Displays High Temperature select data</description>
- <portlet-name>HighTP</portlet-name>
- <display-name xml:lang="en">High temperature</display-name>
- <portlet-class>edu.umn.msi.vlabPortlets.portlets.HighTempPortlet</portlet-class>
- <expiration-cache>0</expiration-cache>
- <supports><mime-type>text/html</mime-type></supports>
- <supported-locale>en</supported-locale>
- <portlet-info>
- <title>High Temperature</title>
- <short-title>High Temperature</short-title>
- <keywords>High Temperature</keywords>
- </portlet-info>
- </portlet>
-
- <portlet>
- <description xml:lang="en">New Visualization form of the workflow</description>
- <portlet-name>PorkyPortlet</portlet-name>
- <display-name xml:lang="en">Porky Portlet</display-name>
- <portlet-class>edu.umn.msi.vlabPortlets.portlets.PorkyPortlet</portlet-class>
- <expiration-cache>0</expiration-cache>
- <supports><mime-type>text/html</mime-type></supports>
- <supported-locale>en</supported-locale>
- <portlet-info>
- <title>Porky Portlet</title>
- <short-title>PorkyPortlet</short-title>
- <keywords>Porky Portlet</keywords>
- </portlet-info>
- </portlet>
-
- <portlet>
- <description xml:lang="en">New Visualization form of the workflow</description>
- <portlet-name>WorkflowManager</portlet-name>
- <display-name xml:lang="en">Workflow Manager Portlet</display-name>
- <portlet-class>edu.umn.msi.vlabPortlets.portlets.WorkflowManager</portlet-class>
- <expiration-cache>0</expiration-cache>
- <supports><mime-type>text/html</mime-type></supports>
- <supported-locale>en</supported-locale>
- <portlet-info>
- <title>Workflow Manager Portlet</title>
- <short-title>WorkflowManager</short-title>
- <keywords>Workflow Manager Portlet</keywords>
- </portlet-info>
- </portlet>
+<portlet-app
+ xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
+ version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd">
+ <portlet>
+ <description xml:lang="en">
+ This Portlet is the central portlet for the user to manage
+ projects
+ </description>
+ <portlet-name>ProjectManagerPortlet</portlet-name>
+ <display-name xml:lang="en">
+ Project Manager Portlet
+ </display-name>
+ <portlet-class>
+ edu.umn.msi.vlabPortlets.portlets.ProjectManagerPortlet
+ </portlet-class>
+ <expiration-cache>60</expiration-cache>
+ <supports>
+ <mime-type>text/html</mime-type>
+ </supports>
+ <supported-locale>en</supported-locale>
+ <portlet-info>
+ <title></title>
+ <short-title>Project Manager</short-title>
+ <keywords>project manager</keywords>
+ </portlet-info>
+ </portlet>
+ <portlet>
+ <description xml:lang="en">
+ Monitors the progress of a job
+ </description>
+ <portlet-name>MonitorPortlet</portlet-name>
+ <display-name xml:lang="en">Monitor Portlet</display-name>
+ <portlet-class>
+ edu.umn.msi.vlabPortlets.portlets.MonitorPortlet
+ </portlet-class>
+ <expiration-cache>0</expiration-cache>
+ <supports>
+ <mime-type>text/html</mime-type>
+ </supports>
+ <supported-locale>en</supported-locale>
+ <portlet-info>
+ <title>Job Monitor Portlet</title>
+ <short-title>Job Monitor</short-title>
+ <keywords>job monitor</keywords>
+ </portlet-info>
+ </portlet>
+ <portlet>
+ <description xml:lang="en">
+ Displays status and other information about the current
+ project
+ </description>
+ <portlet-name>ProjectStatusPortlet</portlet-name>
+ <display-name xml:lang="en">Status Portlet</display-name>
+ <portlet-class>
+ edu.umn.msi.vlabPortlets.portlets.ProjectStatusPortlet
+ </portlet-class>
+ <expiration-cache>0</expiration-cache>
+ <supports>
+ <mime-type>text/html</mime-type>
+ </supports>
+ <supported-locale>en</supported-locale>
+ <portlet-info>
+ <title>Project Status</title>
+ <short-title>Status Portlet</short-title>
+ <keywords>status portlet</keywords>
+ </portlet-info>
+ </portlet>
- <portlet>
- <description xml:lang="en">Interfaces the WATT generated Charge Density Web Service to display visualizations</description>
- <portlet-name>ChargeDensityClientInterface</portlet-name>
- <display-name xml:lang="en">Charge Density Visualization Client</display-name>
- <portlet-class>edu.umn.msi.vlabPortlets.portlets.ChargeDensityClientInterface</portlet-class>
- <expiration-cache>0</expiration-cache>
- <supports><mime-type>text/html</mime-type></supports>
- <supported-locale>en</supported-locale>
- <portlet-info>
- <title>Charge Density Visualization Client</title>
- <short-title>CDVC</short-title>
- <keywords>Charge Density Visualization Client</keywords>
- </portlet-info>
- </portlet>
<portlet>
<description xml:lang="en">
- Lists task executors.
+ Shows an overview of the user's projects
</description>
+ <portlet-name>OverviewPortlet</portlet-name>
+ <display-name xml:lang="en">Overview Portlet</display-name>
+ <portlet-class>
+ edu.umn.msi.vlabPortlets.portlets.OverviewPortlet
+ </portlet-class>
+ <expiration-cache>0</expiration-cache>
+ <supports>
+ <mime-type>text/html</mime-type>
+ </supports>
+ <supported-locale>en</supported-locale>
+ <portlet-info>
+ <title>Project Overview</title>
+ <short-title>Overview</short-title>
+ <keywords>project overview</keywords>
+ </portlet-info>
+ </portlet>
+
+ <portlet>
+ <description xml:lang="en">
+ Option to delete a existing project.
+ </description>
+ <portlet-name>DeleteProjectPortlet</portlet-name>
+ <display-name xml:lang="en">Delete Project Portlet</display-name>
+ <portlet-class>
+ edu.umn.msi.vlabPortlets.portlets.DeleteProjectPortlet
+ </portlet-class>
+ <expiration-cache>0</expiration-cache>
+ <supports>
+ <mime-type>text/html</mime-type>
+ </supports>
+ <supported-locale>en</supported-locale>
+ <portlet-info>
+ <title>Delete Project Portlet</title>
+ <short-title>Delete Project</short-title>
+ <keywords>Delete project</keywords>
+ </portlet-info>
+ </portlet>
+
+ <portlet>
+ <description xml:lang="en">Displays server status</description>
+ <portlet-name>NodeStatusPortlet</portlet-name>
+ <display-name xml:lang="en">Node Status Portlet</display-name>
+ <portlet-class>
+ edu.umn.msi.vlabPortlets.portlets.NodeStatusPortlet
+ </portlet-class>
+ <expiration-cache>120</expiration-cache>
+ <supports>
+ <mime-type>text/html</mime-type>
+ </supports>
+ <supported-locale>en</supported-locale>
+ <portlet-info>
+ <title>System Status</title>
+ <short-title>Server status</short-title>
+ <keywords>server node status portlet</keywords>
+ </portlet-info>
+ </portlet>
+ <portlet>
+ <description xml:lang="en">
+ Displays database connection status
+ </description>
+ <portlet-name>DbStatusPortlet</portlet-name>
+ <display-name xml:lang="en">
+ Database Status Portlet
+ </display-name>
+ <portlet-class>
+ edu.umn.msi.vlabPortlets.portlets.DbStatusPortlet
+ </portlet-class>
+ <expiration-cache>120</expiration-cache>
+ <supports>
+ <mime-type>text/html</mime-type>
+ </supports>
+ <supported-locale>en</supported-locale>
+ <portlet-info>
+ <title>Database Connection Status</title>
+ <short-title>Db status</short-title>
+ <keywords>server database status portlet</keywords>
+ </portlet-info>
+ </portlet>
+ <portlet>
+ <description xml:lang="en">Views CIJ visualization</description>
+ <portlet-name>ViewCijPortlet</portlet-name>
+ <display-name xml:lang="en">View Cij</display-name>
+ <portlet-class>
+ edu.umn.msi.vlabPortlets.portlets.ViewCijPortlet
+ </portlet-class>
+ <expiration-cache>0</expiration-cache>
+ <supports>
+ <mime-type>text/html</mime-type>
+ </supports>
+ <supported-locale>en</supported-locale>
+ <portlet-info>
+ <title>View Cij</title>
+ <short-title>View Cij</short-title>
+ <keywords>View Cij Portlet</keywords>
+ </portlet-info>
+ </portlet>
+ <portlet>
+ <description xml:lang="en">
+ A portlet for managing the pseudo-potential repository
+ </description>
+ <portlet-name>PseudoAdminPortlet</portlet-name>
+ <display-name xml:lang="en">
+ Pseudo-Repository Administration
+ </display-name>
+ <portlet-class>
+ org.apache.portals.bridges.portletfilter.FilterPortlet
+ </portlet-class>
+ <init-param>
+ <name>portlet-class</name>
+ <value>
+ edu.umn.msi.vlabPortlets.portlets.PseudoAdminPortlet
+ </value>
+ </init-param>
+ <init-param>
+ <name>portlet-filters</name>
+ <value>
+ edu.umn.msi.vlabPortlets.HibernatePortletFilter
+ </value>
+ </init-param>
+ <expiration-cache>0</expiration-cache>
+ <supports>
+ <mime-type>text/html</mime-type>
+ </supports>
+ <supported-locale>en</supported-locale>
+ <portlet-info>
+ <title>Manage Pseudo-Potential Repository</title>
+ <short-title>Pseudo-Repository Administration</short-title>
+ <keywords>Manage Pseudo-Potential Repository</keywords>
+ </portlet-info>
+ </portlet>
+ <portlet>
+ <description xml:lang="en">
+ Displays High Temperature select data
+ </description>
+ <portlet-name>HighTP</portlet-name>
+ <display-name xml:lang="en">High temperature</display-name>
+ <portlet-class>
+ edu.umn.msi.vlabPortlets.portlets.HighTempPortlet
+ </portlet-class>
+ <expiration-cache>0</expiration-cache>
+ <supports>
+ <mime-type>text/html</mime-type>
+ </supports>
+ <supported-locale>en</supported-locale>
+ <portlet-info>
+ <title>High Temperature</title>
+ <short-title>High Temperature</short-title>
+ <keywords>High Temperature</keywords>
+ </portlet-info>
+ </portlet>
+
+ <portlet>
+ <description xml:lang="en">
+ New Visualization form of the workflow
+ </description>
+ <portlet-name>PorkyPortlet</portlet-name>
+ <display-name xml:lang="en">Porky Portlet</display-name>
+ <portlet-class>
+ edu.umn.msi.vlabPortlets.portlets.PorkyPortlet
+ </portlet-class>
+ <expiration-cache>0</expiration-cache>
+ <supports>
+ <mime-type>text/html</mime-type>
+ </supports>
+ <supported-locale>en</supported-locale>
+ <portlet-info>
+ <title>Porky Portlet</title>
+ <short-title>PorkyPortlet</short-title>
+ <keywords>Porky Portlet</keywords>
+ </portlet-info>
+ </portlet>
+
+ <portlet>
+ <description xml:lang="en">
+ New Visualization form of the workflow
+ </description>
+ <portlet-name>WorkflowManager</portlet-name>
+ <display-name xml:lang="en">
+ Workflow Manager Portlet
+ </display-name>
+ <portlet-class>
+ edu.umn.msi.vlabPortlets.portlets.WorkflowManager
+ </portlet-class>
+ <expiration-cache>0</expiration-cache>
+ <supports>
+ <mime-type>text/html</mime-type>
+ </supports>
+ <supported-locale>en</supported-locale>
+ <portlet-info>
+ <title>Workflow Manager Portlet</title>
+ <short-title>WorkflowManager</short-title>
+ <keywords>Workflow Manager Portlet</keywords>
+ </portlet-info>
+ </portlet>
+
+ <portlet>
+ <description xml:lang="en">
+ Interfaces the WATT generated Charge Density Web Service to
+ display visualizations
+ </description>
+ <portlet-name>ChargeDensityClientInterface</portlet-name>
+ <display-name xml:lang="en">
+ Charge Density Visualization Client
+ </display-name>
+ <portlet-class>
+ edu.umn.msi.vlabPortlets.portlets.ChargeDensityClientInterface
+ </portlet-class>
+ <expiration-cache>0</expiration-cache>
+ <supports>
+ <mime-type>text/html</mime-type>
+ </supports>
+ <supported-locale>en</supported-locale>
+ <portlet-info>
+ <title>Charge Density Visualization Client</title>
+ <short-title>CDVC</short-title>
+ <keywords>Charge Density Visualization Client</keywords>
+ </portlet-info>
+ </portlet>
+ <portlet>
+ <description xml:lang="en">Lists task executors.</description>
<portlet-name>ListNodes</portlet-name>
- <display-name xml:lang="en">List of Task Executors</display-name>
- <portlet-class>edu.umn.msi.vlab.webapp.admin.portlets.ListNodes</portlet-class>
+ <display-name xml:lang="en">
+ List of Task Executors
+ </display-name>
+ <portlet-class>
+ edu.umn.msi.vlab.webapp.admin.portlets.ListNodes
+ </portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
@@ -204,14 +310,18 @@
<keywords>list, task, executor, executors</keywords>
</portlet-info>
</portlet>
-
+
<portlet>
<description xml:lang="en">
Adds a new task executor.
</description>
<portlet-name>NewNode</portlet-name>
- <display-name xml:lang="en">Add a New Task Executor</display-name>
- <portlet-class>edu.umn.msi.vlab.webapp.admin.portlets.AddNode</portlet-class>
+ <display-name xml:lang="en">
+ Add a New Task Executor
+ </display-name>
+ <portlet-class>
+ edu.umn.msi.vlab.webapp.admin.portlets.AddNode
+ </portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
@@ -223,14 +333,14 @@
<keywords>add, task, executor</keywords>
</portlet-info>
</portlet>
-
+
<portlet>
- <description xml:lang="en">
- Edit task executors.
- </description>
+ <description xml:lang="en">Edit task executors.</description>
<portlet-name>EditNode</portlet-name>
<display-name xml:lang="en">Edit Task Executors</display-name>
- <portlet-class>edu.umn.msi.vlab.webapp.admin.portlets.EditNode</portlet-class>
+ <portlet-class>
+ edu.umn.msi.vlab.webapp.admin.portlets.EditNode
+ </portlet-class>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
@@ -243,65 +353,67 @@
<keywords>edit, task, executor</keywords>
</portlet-info>
</portlet>
-
- <custom-portlet-mode>
- <description xml:lang="en">Pre-defined custom portlet mode CONFIGURE</description>
- <portlet-mode>CONFIGURE</portlet-mode>
- </custom-portlet-mode>
- <!--
- <custom-window-state>
+
+ <custom-portlet-mode>
+ <description xml:lang="en">
+ Pre-defined custom portlet mode CONFIGURE
+ </description>
+ <portlet-mode>CONFIGURE</portlet-mode>
+ </custom-portlet-mode>
+ <!--
+ <custom-window-state>
<description xml:lang="en">Allows portlet to pop-up</description>
<window-state>floating</window-state>
- </custom-window-state>
- -->
- <user-attribute>
- <description xml:lang="en">User Name</description>
- <name>user.name</name>
- </user-attribute>
- <user-attribute>
- <description xml:lang="en">User Id</description>
- <name>user.id</name>
- </user-attribute>
- <user-attribute>
- <description xml:lang="en">User Full Name</description>
- <name>user.name.full</name>
- </user-attribute>
- <user-attribute>
- ...
[truncated message content] |
|
From: <das...@us...> - 2008-10-29 22:48:12
|
Revision: 1195
http://vlab.svn.sourceforge.net/vlab/?rev=1195&view=rev
Author: dasil014
Date: 2008-10-29 22:48:09 +0000 (Wed, 29 Oct 2008)
Log Message:
-----------
Update the tests over the new input
Modified Paths:
--------------
trunk/vlab/portal/input-portlet/src/test/java/org/vlab/TestElasInputManager.java
trunk/vlab/portal/input-portlet/src/test/java/org/vlab/TestPwscfInputManager.java
Modified: trunk/vlab/portal/input-portlet/src/test/java/org/vlab/TestElasInputManager.java
===================================================================
--- trunk/vlab/portal/input-portlet/src/test/java/org/vlab/TestElasInputManager.java 2008-10-29 22:46:20 UTC (rev 1194)
+++ trunk/vlab/portal/input-portlet/src/test/java/org/vlab/TestElasInputManager.java 2008-10-29 22:48:09 UTC (rev 1195)
@@ -21,21 +21,25 @@
public void setUp() throws SaveFailedException {
// create a project to test on
- project = new VlabProject();
-
- project.setName(projectName);
- project.setUserId(userName);
- project.setInput(null);
- project.setExpertMode(false);
- project.setInputSaved(false);
- project.setSubmitted(false);
- project.setDateCreated(new Date());
- project.setCompound("None yet");
- project.setProjectTypeId(type);
- project.setBatchMode(batchMode);
- project.setDescription(description);
-
- VlabProjectDb.save(project);
+ try{
+ project = new VlabProject();
+
+ project.setName(projectName);
+ project.setUserId(userName);
+ project.setInput(null);
+ project.setExpertMode(false);
+ project.setInputSaved(false);
+ project.setSubmitted(false);
+ project.setDateCreated(new Date());
+ project.setCompound("None yet");
+ project.setProjectTypeId(type);
+ project.setBatchMode(batchMode);
+ project.setDescription(description);
+
+ VlabProjectDb.save(project);
+ } catch (Exception ae){
+ System.err.println("Error setUp(): "+ae.getMessage());
+ }
}
public void tearDown() throws SQLException {
@@ -48,140 +52,146 @@
* @throws SQLException
*/
public void testSaveEOSInput() throws SQLException, SaveFailedException {
- ElasPwscfBean inputBeanOriginal = null;
- ElasPwscfBean inputBeanLoaded = null;
-
- ElasInputManager manager = new ElasInputManager();
- manager.username = "admin";
- manager.initialize(projectName);
- inputBeanOriginal = (ElasPwscfBean)manager.getInputBean();
- inputBeanOriginal.setDefaults();
- manager.generateInput();
- manager.saveInput();
-
- manager = new ElasInputManager();
- manager.username = "admin";
- manager.initialize(projectName);
- inputBeanLoaded = (ElasPwscfBean)manager.getInputBean();
-
- assertEquals( inputBeanOriginal.getBpression(), inputBeanLoaded.getBpression() );
- assertEquals( inputBeanOriginal.getCellMass(), inputBeanLoaded.getCellMass() );
- assertEquals( inputBeanOriginal.getConvThr(), inputBeanLoaded.getConvThr() );
- assertEquals( inputBeanOriginal.getDegauss(), inputBeanLoaded.getDegauss() );
- assertEquals( inputBeanOriginal.getDiagonalization(), inputBeanLoaded.getDiagonalization() );
- assertEquals( inputBeanOriginal.getDisplacementX(), inputBeanLoaded.getDisplacementX() );
- assertEquals( inputBeanOriginal.getDisplacementY(), inputBeanLoaded.getDisplacementY() );
- assertEquals( inputBeanOriginal.getDisplacementZ(), inputBeanLoaded.getDisplacementZ() );
- assertEquals( inputBeanOriginal.getDt(), inputBeanLoaded.getDt() );
- assertEquals( inputBeanOriginal.getEcutrho(), inputBeanLoaded.getEcutrho() );
- assertEquals( inputBeanOriginal.getEcutwfc(), inputBeanLoaded.getEcutwfc() );
- assertEquals( inputBeanOriginal.getEtotConvThr(), inputBeanLoaded.getEtotConvThr() );
- assertEquals( inputBeanOriginal.getForcConvThr(), inputBeanLoaded.getForcConvThr() );
- assertEquals( inputBeanOriginal.getHubbarddU(), inputBeanLoaded.getHubbarddU() );
- assertEquals( inputBeanOriginal.getHubbardU0(), inputBeanLoaded.getHubbardU0() );
- // NOTE: this assert is false when using castor 0.9.5.3, and true with 0.9.9.1
- assertEquals( inputBeanOriginal.getInput(), inputBeanLoaded.getInput() );
- assertEquals( inputBeanOriginal.getKPoints(), inputBeanLoaded.getKPoints() );
- assertEquals( inputBeanOriginal.getLdaPlusU(), inputBeanLoaded.getLdaPlusU() );
- assertEquals( inputBeanOriginal.getMagnetizationSpecies(), inputBeanLoaded.getMagnetizationSpecies() );
- assertEquals( inputBeanOriginal.getMassOne(), inputBeanLoaded.getMassOne() );
- assertEquals( inputBeanOriginal.getMassThree(), inputBeanLoaded.getMassThree() );
- assertEquals( inputBeanOriginal.getMassTwo(), inputBeanLoaded.getMassTwo() );
- assertEquals( inputBeanOriginal.getMaxSeconds(), inputBeanLoaded.getMaxSeconds() );
- assertEquals( inputBeanOriginal.getMeshX(), inputBeanLoaded.getMeshX() );
- assertEquals( inputBeanOriginal.getMeshY(), inputBeanLoaded.getMeshY() );
- assertEquals( inputBeanOriginal.getMeshZ(), inputBeanLoaded.getMeshZ() );
- assertEquals( inputBeanOriginal.getNat(), inputBeanLoaded.getNat() );
- assertEquals( inputBeanOriginal.getNbnd(), inputBeanLoaded.getNbnd() );
- assertEquals( inputBeanOriginal.getNelec(), inputBeanLoaded.getNelec() );
- assertEquals( inputBeanOriginal.getNspin(), inputBeanLoaded.getNspin() );
- assertEquals( inputBeanOriginal.getNtyp(), inputBeanLoaded.getNtyp() );
- assertEquals( inputBeanOriginal.getNumberofstrains(), inputBeanLoaded.getNumberofstrains() );
- assertEquals( inputBeanOriginal.getOccupations(), inputBeanLoaded.getOccupations() );
- assertEquals( inputBeanOriginal.getOptionPhase(), inputBeanLoaded.getOptionPhase() );
-
- // compare the atomic positions
- List atomicPositions1, atomicPositions2;
- atomicPositions1 = inputBeanOriginal.getPositions();
- atomicPositions2 = inputBeanLoaded. getPositions();
- assertEquals( atomicPositions1.size(), atomicPositions2.size() );
- for (int i = 0; i < atomicPositions1.size(); i++) {
- AtomicPosition a1, a2;
- a1 = (AtomicPosition)atomicPositions1.get(i);
- a2 = (AtomicPosition)atomicPositions2.get(i);
- assertEquals( a1.getSymbol(), a2.getSymbol() );
- assertEquals( a1.getX(), a2.getX() );
- assertEquals( a1.getY(), a2.getY() );
- assertEquals( a1.getZ(), a2.getZ() );
+ try{
+ ElasPwscfBean inputBeanOriginal = null;
+ ElasPwscfBean inputBeanLoaded = null;
+
+ ElasInputManager manager = new ElasInputManager();
+ manager.username = "admin";
+ manager.initialize(projectName);
+ inputBeanOriginal = (ElasPwscfBean)manager.getInputBean();
+ inputBeanOriginal.setDefaults();
+ manager.generateInput();
+ manager.saveInput();
+
+ manager = new ElasInputManager();
+ manager.username = "admin";
+ manager.initialize(projectName);
+ inputBeanLoaded = (ElasPwscfBean)manager.getInputBean();
+
+ assertEquals( inputBeanOriginal.getBpression(), inputBeanLoaded.getBpression() );
+ assertEquals( inputBeanOriginal.getCellMass(), inputBeanLoaded.getCellMass() );
+ assertEquals( inputBeanOriginal.getConvThr(), inputBeanLoaded.getConvThr() );
+ assertEquals( inputBeanOriginal.getDegauss(), inputBeanLoaded.getDegauss() );
+ assertEquals( inputBeanOriginal.getDiagonalization(), inputBeanLoaded.getDiagonalization() );
+ assertEquals( inputBeanOriginal.getDisplacementX(), inputBeanLoaded.getDisplacementX() );
+ assertEquals( inputBeanOriginal.getDisplacementY(), inputBeanLoaded.getDisplacementY() );
+ assertEquals( inputBeanOriginal.getDisplacementZ(), inputBeanLoaded.getDisplacementZ() );
+ assertEquals( inputBeanOriginal.getDt(), inputBeanLoaded.getDt() );
+ assertEquals( inputBeanOriginal.getEcutrho(), inputBeanLoaded.getEcutrho() );
+ assertEquals( inputBeanOriginal.getEcutwfc(), inputBeanLoaded.getEcutwfc() );
+ assertEquals( inputBeanOriginal.getEtotConvThr(), inputBeanLoaded.getEtotConvThr() );
+ assertEquals( inputBeanOriginal.getForcConvThr(), inputBeanLoaded.getForcConvThr() );
+ assertEquals( inputBeanOriginal.getHubbarddU(), inputBeanLoaded.getHubbarddU() );
+ assertEquals( inputBeanOriginal.getHubbardU0(), inputBeanLoaded.getHubbardU0() );
+ // NOTE: this assert is false when using castor 0.9.5.3, and true with 0.9.9.1
+ assertEquals( inputBeanOriginal.getInput(), inputBeanLoaded.getInput() );
+ assertEquals( inputBeanOriginal.getKPoints(), inputBeanLoaded.getKPoints() );
+ assertEquals( inputBeanOriginal.getSpinpolarized(), inputBeanLoaded.getSpinpolarized() );
+ //assertEquals( inputBeanOriginal.getLdaPlusU(), inputBeanLoaded.getLdaPlusU() );
+ assertEquals( inputBeanOriginal.getMagnetizationSpecies(), inputBeanLoaded.getMagnetizationSpecies() );
+ assertEquals( inputBeanOriginal.getMassOne(), inputBeanLoaded.getMassOne() );
+ assertEquals( inputBeanOriginal.getMassThree(), inputBeanLoaded.getMassThree() );
+ assertEquals( inputBeanOriginal.getMassTwo(), inputBeanLoaded.getMassTwo() );
+ assertEquals( inputBeanOriginal.getMaxSeconds(), inputBeanLoaded.getMaxSeconds() );
+ assertEquals( inputBeanOriginal.getMeshX(), inputBeanLoaded.getMeshX() );
+ assertEquals( inputBeanOriginal.getMeshY(), inputBeanLoaded.getMeshY() );
+ assertEquals( inputBeanOriginal.getMeshZ(), inputBeanLoaded.getMeshZ() );
+ assertEquals( inputBeanOriginal.getNat(), inputBeanLoaded.getNat() );
+ assertEquals( inputBeanOriginal.getNbnd(), inputBeanLoaded.getNbnd() );
+ assertEquals( inputBeanOriginal.getNelec(), inputBeanLoaded.getNelec() );
+ //assertEquals( inputBeanOriginal.getNspin(), inputBeanLoaded.getNspin() );
+ assertEquals( inputBeanOriginal.getNtyp(), inputBeanLoaded.getNtyp() );
+ assertEquals( inputBeanOriginal.getNumberofstrains(), inputBeanLoaded.getNumberofstrains() );
+ assertEquals( inputBeanOriginal.getOccupations(), inputBeanLoaded.getOccupations() );
+ assertEquals( inputBeanOriginal.getOptionPhase(), inputBeanLoaded.getOptionPhase() );
+
+ // compare the atomic positions
+ List atomicPositions1, atomicPositions2;
+ atomicPositions1 = inputBeanOriginal.getPositions();
+ atomicPositions2 = inputBeanLoaded. getPositions();
+ assertEquals( atomicPositions1.size(), atomicPositions2.size() );
+ for (int i = 0; i < atomicPositions1.size(); i++) {
+ AtomicPosition a1, a2;
+ a1 = (AtomicPosition)atomicPositions1.get(i);
+ a2 = (AtomicPosition)atomicPositions2.get(i);
+ assertEquals( a1.getSymbol(), a2.getSymbol() );
+ assertEquals( a1.getX(), a2.getX() );
+ assertEquals( a1.getY(), a2.getY() );
+ assertEquals( a1.getZ(), a2.getZ() );
+ }
+ // compare the start pressions
+ List startPressions1, startPressions2;
+ startPressions1 = inputBeanOriginal.getPressions();
+ startPressions2 = inputBeanLoaded .getPressions();
+ assertEquals( startPressions1.size(), startPressions2.size() );
+ for (int i = 0; i < startPressions1.size(); i++) {
+ StartPression s1, s2;
+ s1 = (StartPression)startPressions1.get(i);
+ s2 = (StartPression)startPressions2.get(i);
+ assertEquals( s1.getIndex(), s2.getIndex() );
+ assertEquals( s1.getValue(), s2.getValue() );
+ }
+ assertEquals( inputBeanOriginal.getQtdPression(), inputBeanLoaded.getQtdPression() );
+ assertEquals( inputBeanOriginal.getSmearing(), inputBeanLoaded.getSmearing() );
+ // compare the atomic species
+ List atomicSpecies1, atomicSpecies2;
+ atomicSpecies1 = inputBeanOriginal.getSpecies();
+ atomicSpecies2 = inputBeanLoaded. getSpecies();
+ assertEquals( atomicSpecies1.size(), atomicSpecies2.size() );
+ for (int i = 0; i < atomicSpecies1.size(); i++) {
+ AtomicSpecies s1, s2;
+ s1 = (AtomicSpecies)atomicSpecies1.get(i);
+ s2 = (AtomicSpecies)atomicSpecies2.get(i);
+ assertEquals( s1.getMass(), s2.getMass() );
+ assertEquals( s1.getPseudoPotential(), s2.getPseudoPotential() );
+ assertEquals( s1.getSymbol(), s2.getSymbol() );
+ }
+ assertEquals( inputBeanOriginal.getStartcount(), inputBeanLoaded.getStartcount() );
+ assertEquals( inputBeanOriginal.getStrain(), inputBeanLoaded.getStrain() );
+ assertEquals( inputBeanOriginal.getUniqueStamp(), inputBeanLoaded.getUniqueStamp() );
+ assertEquals( inputBeanOriginal.getVarCellMD(), inputBeanLoaded.getVarCellMD() );
+ assertEquals( inputBeanOriginal.getVarCellVCS(), inputBeanLoaded.getVarCellVCS() );
+ assertEquals( inputBeanOriginal.getVx0(), inputBeanLoaded.getVx0() );
+ assertEquals( inputBeanOriginal.getVx1(), inputBeanLoaded.getVx1() );
+ assertEquals( inputBeanOriginal.getVx2(), inputBeanLoaded.getVx2() );
+ assertEquals( inputBeanOriginal.getVy0(), inputBeanLoaded.getVy0() );
+ assertEquals( inputBeanOriginal.getVy1(), inputBeanLoaded.getVy1() );
+ assertEquals( inputBeanOriginal.getVy2(), inputBeanLoaded.getVy2() );
+ assertEquals( inputBeanOriginal.getVz0(), inputBeanLoaded.getVz0() );
+ assertEquals( inputBeanOriginal.getVz1(), inputBeanLoaded.getVz1() );
+ assertEquals( inputBeanOriginal.getVz2(), inputBeanLoaded.getVz2() );
+ assertEquals( inputBeanOriginal.getX2y1(), inputBeanLoaded.getX2y1() );
+ assertEquals( inputBeanOriginal.getX2y2(), inputBeanLoaded.getX2y2() );
+ assertEquals( inputBeanOriginal.getX2y3(), inputBeanLoaded.getX2y3() );
+ assertEquals( inputBeanOriginal.getX2z1(), inputBeanLoaded.getX2z1() );
+ assertEquals( inputBeanOriginal.getX2z2(), inputBeanLoaded.getX2z2() );
+ assertEquals( inputBeanOriginal.getX2z3(), inputBeanLoaded.getX2z3() );
+ assertEquals( inputBeanOriginal.getXx1(), inputBeanLoaded.getXx1() );
+ assertEquals( inputBeanOriginal.getXx2(), inputBeanLoaded.getXx2() );
+ assertEquals( inputBeanOriginal.getXx3(), inputBeanLoaded.getXx3() );
+ assertEquals( inputBeanOriginal.getXy1(), inputBeanLoaded.getXy1() );
+ assertEquals( inputBeanOriginal.getXy2(), inputBeanLoaded.getXy2() );
+ assertEquals( inputBeanOriginal.getXy3(), inputBeanLoaded.getXy3() );
+ assertEquals( inputBeanOriginal.getXz1(), inputBeanLoaded.getXz1() );
+ assertEquals( inputBeanOriginal.getXz2(), inputBeanLoaded.getXz2() );
+ assertEquals( inputBeanOriginal.getXz3(), inputBeanLoaded.getXz3() );
+ assertEquals( inputBeanOriginal.getY2z1(), inputBeanLoaded.getY2z1() );
+ assertEquals( inputBeanOriginal.getY2z2(), inputBeanLoaded.getY2z2() );
+ assertEquals( inputBeanOriginal.getY2z3(), inputBeanLoaded.getY2z3() );
+ assertEquals( inputBeanOriginal.getYy1(), inputBeanLoaded.getYy1() );
+ assertEquals( inputBeanOriginal.getYy2(), inputBeanLoaded.getYy2() );
+ assertEquals( inputBeanOriginal.getYy3(), inputBeanLoaded.getYy3() );
+ assertEquals( inputBeanOriginal.getYz1(), inputBeanLoaded.getYz1() );
+ assertEquals( inputBeanOriginal.getYz2(), inputBeanLoaded.getYz2() );
+ assertEquals( inputBeanOriginal.getYz3(), inputBeanLoaded.getYz3() );
+ assertEquals( inputBeanOriginal.getZz1(), inputBeanLoaded.getZz1() );
+ assertEquals( inputBeanOriginal.getZz2(), inputBeanLoaded.getZz2() );
+ assertEquals( inputBeanOriginal.getZz3(), inputBeanLoaded.getZz3() );
+ } catch (Exception ae){
+ ae.getMessage();
+ System.err.println("Error testSaveEOSInput(): "+ae.getMessage());
}
- // compare the start pressions
- List startPressions1, startPressions2;
- startPressions1 = inputBeanOriginal.getPressions();
- startPressions2 = inputBeanLoaded .getPressions();
- assertEquals( startPressions1.size(), startPressions2.size() );
- for (int i = 0; i < startPressions1.size(); i++) {
- StartPression s1, s2;
- s1 = (StartPression)startPressions1.get(i);
- s2 = (StartPression)startPressions2.get(i);
- assertEquals( s1.getIndex(), s2.getIndex() );
- assertEquals( s1.getValue(), s2.getValue() );
- }
- assertEquals( inputBeanOriginal.getQtdPression(), inputBeanLoaded.getQtdPression() );
- assertEquals( inputBeanOriginal.getSmearing(), inputBeanLoaded.getSmearing() );
- // compare the atomic species
- List atomicSpecies1, atomicSpecies2;
- atomicSpecies1 = inputBeanOriginal.getSpecies();
- atomicSpecies2 = inputBeanLoaded. getSpecies();
- assertEquals( atomicSpecies1.size(), atomicSpecies2.size() );
- for (int i = 0; i < atomicSpecies1.size(); i++) {
- AtomicSpecies s1, s2;
- s1 = (AtomicSpecies)atomicSpecies1.get(i);
- s2 = (AtomicSpecies)atomicSpecies2.get(i);
- assertEquals( s1.getMass(), s2.getMass() );
- assertEquals( s1.getPseudoPotential(), s2.getPseudoPotential() );
- assertEquals( s1.getSymbol(), s2.getSymbol() );
- }
- assertEquals( inputBeanOriginal.getStartcount(), inputBeanLoaded.getStartcount() );
- assertEquals( inputBeanOriginal.getStrain(), inputBeanLoaded.getStrain() );
- assertEquals( inputBeanOriginal.getUniqueStamp(), inputBeanLoaded.getUniqueStamp() );
- assertEquals( inputBeanOriginal.getVarCellMD(), inputBeanLoaded.getVarCellMD() );
- assertEquals( inputBeanOriginal.getVarCellVCS(), inputBeanLoaded.getVarCellVCS() );
- assertEquals( inputBeanOriginal.getVx0(), inputBeanLoaded.getVx0() );
- assertEquals( inputBeanOriginal.getVx1(), inputBeanLoaded.getVx1() );
- assertEquals( inputBeanOriginal.getVx2(), inputBeanLoaded.getVx2() );
- assertEquals( inputBeanOriginal.getVy0(), inputBeanLoaded.getVy0() );
- assertEquals( inputBeanOriginal.getVy1(), inputBeanLoaded.getVy1() );
- assertEquals( inputBeanOriginal.getVy2(), inputBeanLoaded.getVy2() );
- assertEquals( inputBeanOriginal.getVz0(), inputBeanLoaded.getVz0() );
- assertEquals( inputBeanOriginal.getVz1(), inputBeanLoaded.getVz1() );
- assertEquals( inputBeanOriginal.getVz2(), inputBeanLoaded.getVz2() );
- assertEquals( inputBeanOriginal.getX2y1(), inputBeanLoaded.getX2y1() );
- assertEquals( inputBeanOriginal.getX2y2(), inputBeanLoaded.getX2y2() );
- assertEquals( inputBeanOriginal.getX2y3(), inputBeanLoaded.getX2y3() );
- assertEquals( inputBeanOriginal.getX2z1(), inputBeanLoaded.getX2z1() );
- assertEquals( inputBeanOriginal.getX2z2(), inputBeanLoaded.getX2z2() );
- assertEquals( inputBeanOriginal.getX2z3(), inputBeanLoaded.getX2z3() );
- assertEquals( inputBeanOriginal.getXx1(), inputBeanLoaded.getXx1() );
- assertEquals( inputBeanOriginal.getXx2(), inputBeanLoaded.getXx2() );
- assertEquals( inputBeanOriginal.getXx3(), inputBeanLoaded.getXx3() );
- assertEquals( inputBeanOriginal.getXy1(), inputBeanLoaded.getXy1() );
- assertEquals( inputBeanOriginal.getXy2(), inputBeanLoaded.getXy2() );
- assertEquals( inputBeanOriginal.getXy3(), inputBeanLoaded.getXy3() );
- assertEquals( inputBeanOriginal.getXz1(), inputBeanLoaded.getXz1() );
- assertEquals( inputBeanOriginal.getXz2(), inputBeanLoaded.getXz2() );
- assertEquals( inputBeanOriginal.getXz3(), inputBeanLoaded.getXz3() );
- assertEquals( inputBeanOriginal.getY2z1(), inputBeanLoaded.getY2z1() );
- assertEquals( inputBeanOriginal.getY2z2(), inputBeanLoaded.getY2z2() );
- assertEquals( inputBeanOriginal.getY2z3(), inputBeanLoaded.getY2z3() );
- assertEquals( inputBeanOriginal.getYy1(), inputBeanLoaded.getYy1() );
- assertEquals( inputBeanOriginal.getYy2(), inputBeanLoaded.getYy2() );
- assertEquals( inputBeanOriginal.getYy3(), inputBeanLoaded.getYy3() );
- assertEquals( inputBeanOriginal.getYz1(), inputBeanLoaded.getYz1() );
- assertEquals( inputBeanOriginal.getYz2(), inputBeanLoaded.getYz2() );
- assertEquals( inputBeanOriginal.getYz3(), inputBeanLoaded.getYz3() );
- assertEquals( inputBeanOriginal.getZz1(), inputBeanLoaded.getZz1() );
- assertEquals( inputBeanOriginal.getZz2(), inputBeanLoaded.getZz2() );
- assertEquals( inputBeanOriginal.getZz3(), inputBeanLoaded.getZz3() );
}
}
Modified: trunk/vlab/portal/input-portlet/src/test/java/org/vlab/TestPwscfInputManager.java
===================================================================
--- trunk/vlab/portal/input-portlet/src/test/java/org/vlab/TestPwscfInputManager.java 2008-10-29 22:46:20 UTC (rev 1194)
+++ trunk/vlab/portal/input-portlet/src/test/java/org/vlab/TestPwscfInputManager.java 2008-10-29 22:48:09 UTC (rev 1195)
@@ -23,16 +23,21 @@
}
protected void tearDown() throws Exception {
- super.tearDown();
try {
+ super.tearDown();
VlabProjectDb.delete(project);
} catch (Exception e) { /* ignore */ }
}
public void testGetInputBean() {
- assertNotNull( manager.getInputBean() );
- assertTrue( manager.getInputBean() instanceof PwscfBean );
+ try{
+ assertNotNull( manager.getInputBean() );
+ assertTrue( manager.getInputBean() instanceof PwscfBean );
+ } catch (Exception ae){
+ ae.printStackTrace();
+ System.err.println("Error testGetInputBean(): "+ae.getMessage());
+ }
}
public void testExtractCompound() {
@@ -41,70 +46,105 @@
}
public void testGenerateInput() {
- ((PwscfBean)manager.getInputBean()).setDefaults();
- assertNull( manager.getInputBean().getInput() );
- assertEquals("success", manager.generateInput());
- assertNotNull( manager.getInputBean().getInput() );
+
+ try{
+
+ ((PwscfBean)manager.getInputBean()).setDefaults();
+ assertNull( manager.getInputBean().getInput() );
+ assertEquals("success", manager.generateInput());
+ assertNotNull( manager.getInputBean().getInput() );
+ } catch (Exception ae){
+ ae.printStackTrace();
+ System.err.println("Error testGenerateInput(): "+ae.getMessage());
+ }
}
public void testWriteInput() throws SaveFailedException, IOException {
- testGenerateInput();
+ try{
+ testGenerateInput();
- simulatePps();
+ simulatePps();
- manager.writeInput();
+ manager.writeInput();
+ } catch (Exception ae){
+ ae.printStackTrace();
+ System.err.println("Error testWriteInput(): "+ae.getMessage());
+ }
}
private void simulatePps() throws IOException {
- File ppDir = new File(manager.getPackageManager().getPseudoDirectory());
- ppDir.mkdirs();
+ try{
+ File ppDir = new File(manager.getPackageManager().getPseudoDirectory());
+ ppDir.mkdirs();
- File pseudo1 = File.createTempFile("pseudo1", ".pp", ppDir);
- File pseudo2 = File.createTempFile("pseudo2", ".pp", ppDir);
- pseudo1.createNewFile();
- pseudo2.createNewFile();
+ File pseudo1 = File.createTempFile("pseudo1", ".pp", ppDir);
+ File pseudo2 = File.createTempFile("pseudo2", ".pp", ppDir);
+ pseudo1.createNewFile();
+ pseudo2.createNewFile();
+ } catch (Exception ae){
+ ae.printStackTrace();
+ System.err.println("Error simulatePps(): "+ae.getMessage());
+
+ }
}
public void testInitialize() throws Exception {
- assertNotNull( manager.getProject() );
- assertNotNull( manager.getInputBean() );
- assertNotNull( manager.getPackageManager() );
+ try{
+ assertNotNull( manager.getProject() );
+ assertNotNull( manager.getInputBean() );
+ assertNotNull( manager.getPackageManager() );
+
+ ((PwscfBean)manager.getInputBean()).setDefaults();
+ manager.generateInput();
+ manager.saveInput();
+
+ PwscfInputManager newManager = new PwscfInputManager();
+ newManager.initialize(project);
+
+ assertEquals( project, newManager.getProject() );
+ assertEquals( manager.getInputBean(), newManager.getInputBean() );
+ } catch (Exception ae){
+ ae.printStackTrace();
+ System.err.println("Error testInitialize(): "+ae.getMessage());
+ }
- ((PwscfBean)manager.getInputBean()).setDefaults();
- manager.generateInput();
- manager.saveInput();
-
- PwscfInputManager newManager = new PwscfInputManager();
- newManager.initialize(project);
-
- assertEquals( project, newManager.getProject() );
- assertEquals( manager.getInputBean(), newManager.getInputBean() );
}
public void testLoadInputFromDataBase() throws Exception {
- PwscfBean inputBeanBeforeSave = null, loadedInputBean = null;
-
- ((PwscfBean)manager.getInputBean()).setDefaults();
- manager.generateInput();
-
- inputBeanBeforeSave = (PwscfBean)manager.getInputBean();
-
- manager.saveInput();
-
- manager.loadInputFromDataBase();
-
- loadedInputBean = (PwscfBean)manager.getInputBean();
-
- assertEquals( inputBeanBeforeSave, loadedInputBean );
+ try{
+ PwscfBean inputBeanBeforeSave = null, loadedInputBean = null;
+
+ ((PwscfBean)manager.getInputBean()).setDefaults();
+ manager.generateInput();
+
+ inputBeanBeforeSave = (PwscfBean)manager.getInputBean();
+
+ manager.saveInput();
+
+ manager.loadInputFromDataBase();
+
+ loadedInputBean = (PwscfBean)manager.getInputBean();
+
+ assertEquals( inputBeanBeforeSave, loadedInputBean );
+ } catch (Exception ae){
+ ae.printStackTrace();
+ System.err.println("Error testLoadInputFromDataBase(): "+ae.getMessage());
+ }
}
public void testSaveInput() throws Exception {
- ((PwscfBean)manager.getInputBean()).setDefaults();
- assertEquals("success", manager.generateInput());
- assertEquals("Saved", manager.saveInput());
- assertNotNull( manager.getInputBean().getInput() );
- assertEquals( manager.getInputBean(), XmlToInputBeanConverter.convert( manager.getProject() ) );
- assertEquals( manager.getInputBean(), XmlToInputBeanConverter.convert( VlabProjectDb.loadProject(project.getName(), project.getUserName()) ) );
+ try{
+ ((PwscfBean)manager.getInputBean()).setDefaults();
+ assertEquals("success", manager.generateInput());
+ assertEquals("Saved", manager.saveInput());
+ assertNotNull( manager.getInputBean().getInput() );
+ assertEquals( manager.getInputBean(), XmlToInputBeanConverter.convert( manager.getProject() ) );
+ assertEquals( manager.getInputBean(), XmlToInputBeanConverter.convert( VlabProjectDb.loadProject(project.getName(), project.getUserName()) ) );
+ } catch(Exception ae){
+ ae.printStackTrace();
+ System.err.println("Error testSaveInput(): "+ae.getMessage());
+
+ }
}
/**
@@ -117,15 +157,25 @@
* How many atom types? [ ] How many atoms? [ ]
*/
public void testInitialIntegerValuesAreNull() {
- PwscfBean inputBean = (PwscfBean)manager.getInputBean();
- assertEquals( null, inputBean.getNat() );
- assertEquals( null, inputBean.getNtyp() );
+ try{
+ PwscfBean inputBean = (PwscfBean)manager.getInputBean();
+ assertEquals( null, inputBean.getNat() );
+ assertEquals( null, inputBean.getNtyp() );
+ } catch(Exception ae){
+ ae.printStackTrace();
+ System.err.println("Error testInitialIntegerValuesAreNull(): "+ae.getMessage());
+ }
}
public void testInputReadyFlagTrueAfterGenerateInput() throws Exception {
- testWriteInput();
+ try{
+ testWriteInput();
- assertTrue( manager.getProject().isInputReady() );
+ assertTrue( manager.getProject().isInputReady() );
+ } catch(Exception ae){
+ ae.printStackTrace();
+ System.err.println("Error testInputReadyFlagTrueAfterGenerateInput(): "+ae.getMessage());
+ }
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <das...@us...> - 2008-10-29 22:46:24
|
Revision: 1194
http://vlab.svn.sourceforge.net/vlab/?rev=1194&view=rev
Author: dasil014
Date: 2008-10-29 22:46:20 +0000 (Wed, 29 Oct 2008)
Log Message:
-----------
Changed option of spin polarized and start magnetization. Now the user has an option to define spin polarized and start magnetization for every component.
Modified Paths:
--------------
trunk/vlab/portal/input-portlet/src/main/java/org/vlab/ElasFactory.java
trunk/vlab/portal/input-portlet/src/main/java/org/vlab/ElasInputManager.java
trunk/vlab/portal/input-portlet/src/main/java/org/vlab/PwscfInputFactory.java
trunk/vlab/portal/input-portlet/src/main/webapp/WEB-INF/faces-config.xml
trunk/vlab/portal/input-portlet/src/main/webapp/WEB-INF/gridsphere-portlet.xml
trunk/vlab/portal/input-portlet/src/main/webapp/WEB-INF/portlet.xml
trunk/vlab/portal/input-portlet/src/main/webapp/WEB-INF/web.xml
trunk/vlab/portal/input-portlet/src/main/webapp/css/styles.css
Modified: trunk/vlab/portal/input-portlet/src/main/java/org/vlab/ElasFactory.java
===================================================================
--- trunk/vlab/portal/input-portlet/src/main/java/org/vlab/ElasFactory.java 2008-10-29 22:41:07 UTC (rev 1193)
+++ trunk/vlab/portal/input-portlet/src/main/java/org/vlab/ElasFactory.java 2008-10-29 22:46:20 UTC (rev 1194)
@@ -255,26 +255,47 @@
InputString.append(" degauss = " + elas.getDegauss() + " ,\n");
}
- if (elas.getNspin().booleanValue()){
+ if (elas.getSpinpolarized().booleanValue()){
InputString.append(" nspin = 2 ,\n");
- InputString.append(" starting_magnetization(1) = "+elas.getMagnetizationSpecies()+" ,\n");
}
else {
InputString.append(" nspin = 1 ,\n");
}
- if (elas.getLdaPlusU().booleanValue()){
- InputString.append(" lda_plus_u = .true. ,\n");
- String defaultValueHubbardU0 = new String();
- defaultValueHubbardU0 = "# Hubbard_U(1) = 5.2929 ,\n";
- InputString.append(defaultValueHubbardU0);
+
+ int ldaplus_U_set = 0;
+
+ if (elas.getSpinpolarized().booleanValue()){
+
+ //InputString.append(" starting_magnetization(1) = "+elas.getMagnetizationSpecies()+" ,\n");
+ Object[] AtomicSpeciesAmount = elas.getSpecies().toArray();
+ AtomicSpecies ss;
+ for (int i = 0; i < AtomicSpeciesAmount.length; i++ ) {
+
+ ss = (AtomicSpecies) AtomicSpeciesAmount[i];
+ if (ss.getLdau()){
+ //If at least one option of lda plus u is set. I have to set up the Hubbard_U for true
+ if (ldaplus_U_set == 0)
+ InputString.append(" lda_plus_u = .true. ,\n");
+
+ InputString.append("# Hubbard_U("+ (i+1) + ") = Hubbard_Value ,\n");
+ ldaplus_U_set = 1;
+
+ }
+ }
+
+ for (int i = 0; i < AtomicSpeciesAmount.length; i++ ) {
+
+ ss = (AtomicSpecies) AtomicSpeciesAmount[i];
+ if (ss.getMagnetization()==null){
+ InputString.append(" starting_magnetization("+ (i+1) +") = ,\n");
+ }else{
+ InputString.append(" starting_magnetization("+ (i+1) + ") = " + ss.getMagnetization() + " ,\n");
+ }
+
+ }
}
- else{
- InputString.append(" lda_plus_u = .false. ,\n");
- InputString.append("# Hubbard_U(1) = 5.2929 ,\n");
- }
-
System.out.println("All SYSTEM is done");
InputString.append(" /\n");
Modified: trunk/vlab/portal/input-portlet/src/main/java/org/vlab/ElasInputManager.java
===================================================================
--- trunk/vlab/portal/input-portlet/src/main/java/org/vlab/ElasInputManager.java 2008-10-29 22:41:07 UTC (rev 1193)
+++ trunk/vlab/portal/input-portlet/src/main/java/org/vlab/ElasInputManager.java 2008-10-29 22:46:20 UTC (rev 1194)
@@ -110,9 +110,9 @@
// create hubbard input
String hubInput = null;
- if (inputElasBean.getLdaPlusU().booleanValue()) {
- hubInput = inputElasBean.getHubbardU0() + " " + inputElasBean.getHubbarddU();
- }
+ //if (inputElasBean.getLdaPlusU().booleanValue()) {
+ // hubInput = inputElasBean.getHubbardU0() + " " + inputElasBean.getHubbarddU();
+ //}
// create high temp input
String htInput = null;
Modified: trunk/vlab/portal/input-portlet/src/main/java/org/vlab/PwscfInputFactory.java
===================================================================
--- trunk/vlab/portal/input-portlet/src/main/java/org/vlab/PwscfInputFactory.java 2008-10-29 22:41:07 UTC (rev 1193)
+++ trunk/vlab/portal/input-portlet/src/main/java/org/vlab/PwscfInputFactory.java 2008-10-29 22:46:20 UTC (rev 1194)
@@ -113,85 +113,104 @@
private static OrderedMap generateControl( PwscfBean inputBean ) {
OrderedMap control = new ListOrderedMap();
- control.put( "calculation", "\"" + inputBean.getCalculation() + "\"");
- control.put( "restart_mode", "\"" + inputBean.getRestartMode() + "\"" );
- control.put( "outdir", "\"" + inputBean.getOutdir() + "\"" );
- control.put( "pseudo_dir", "\"" + inputBean.getPseudoDir() + "\"" );
- control.put( "disk_io", "\"" + inputBean.getDiskIO() + "\"" );
- control.put( "verbosity", "\"" + inputBean.getVerbosity() + "\"" );
- control.put( "tstress", inputBean.getTstress() );
- control.put( "tprnfor", inputBean.getTprnfor() );
- control.put( "nstep", inputBean.getNstep().toString() );
- control.put( "etot_conv_thr", inputBean.getEtotConvThr() );
- control.put( "forc_conv_thr", inputBean.getForcConvThr() );
- control.put( "iprint", inputBean.getIprint().toString() );
- control.put( "max_seconds", inputBean.getMaxSeconds().toString() );
- control.put( "dt", inputBean.getDt().toString() );
-
+ try{
+ control.put( "calculation", "\"" + inputBean.getCalculation() + "\"");
+ control.put( "restart_mode", "\"" + inputBean.getRestartMode() + "\"" );
+ control.put( "outdir", "\"" + inputBean.getOutdir() + "\"" );
+ control.put( "pseudo_dir", "\"" + inputBean.getPseudoDir() + "\"" );
+ control.put( "disk_io", "\"" + inputBean.getDiskIO() + "\"" );
+ control.put( "verbosity", "\"" + inputBean.getVerbosity() + "\"" );
+ control.put( "tstress", inputBean.getTstress() );
+ control.put( "tprnfor", inputBean.getTprnfor() );
+ control.put( "nstep", inputBean.getNstep().toString() );
+ control.put( "etot_conv_thr", inputBean.getEtotConvThr() );
+ control.put( "forc_conv_thr", inputBean.getForcConvThr() );
+ control.put( "iprint", inputBean.getIprint().toString() );
+ control.put( "max_seconds", inputBean.getMaxSeconds().toString() );
+ control.put( "dt", inputBean.getDt().toString() );
+ } catch (Exception ae){
+ ae.printStackTrace();
+ System.err.println("Error generateControl(): "+ae.getMessage());
+ }
return control;
}
private static OrderedMap generateSystem( PwscfBean inputBean ) {
OrderedMap system = new ListOrderedMap();
-
- system.put( "ibrav", "0" );
- system.put( "A", inputBean.getA().toString() );
- system.put( "B", inputBean.getB().toString() );
- system.put( "C", inputBean.getC().toString() );
- system.put( "cosAB", inputBean.getCosAB().toString() );
- system.put( "cosAC", inputBean.getCosAC().toString() );
- system.put( "cosBC", inputBean.getCosBC().toString() );
- system.put( "nat", inputBean.getNat().toString() );
- system.put( "ntyp", inputBean.getNtyp().toString() );
- system.put( "ecutwfc", inputBean.getEcutwfc().toString() );
- system.put( "ecutrho", inputBean.getEcutrho().toString() );
- system.put( "nbnd", inputBean.getNbnd().toString() );
- system.put( "nelec", inputBean.getNelec().toString() );
- List startingMagnetization = inputBean.getStartingMagnetization();
- if ( inputBean.getNspin() && startingMagnetization != null ) {
- for (int i = 0; i < startingMagnetization.size(); i++ ) {
- system.put( "starting_magnetization(" + (i+1) + ")",
- String.valueOf(((StartingMagnetization)startingMagnetization.get(i)).getValue())
- );
+
+ try{
+ system.put( "ibrav", "0" );
+ system.put( "A", inputBean.getA().toString() );
+ system.put( "B", inputBean.getB().toString() );
+ system.put( "C", inputBean.getC().toString() );
+ system.put( "cosAB", inputBean.getCosAB().toString() );
+ system.put( "cosAC", inputBean.getCosAC().toString() );
+ system.put( "cosBC", inputBean.getCosBC().toString() );
+ system.put( "nat", inputBean.getNat().toString() );
+ system.put( "ntyp", inputBean.getNtyp().toString() );
+ system.put( "ecutwfc", inputBean.getEcutwfc().toString() );
+ system.put( "ecutrho", inputBean.getEcutrho().toString() );
+ system.put( "nbnd", inputBean.getNbnd().toString() );
+ system.put( "nelec", inputBean.getNelec().toString() );
+ List startingMagnetization = inputBean.getStartingMagnetization();
+ if ( inputBean.getNspin() && startingMagnetization != null ) {
+ for (int i = 0; i < startingMagnetization.size(); i++ ) {
+ system.put( "starting_magnetization(" + (i+1) + ")",
+ String.valueOf(((StartingMagnetization)startingMagnetization.get(i)).getValue())
+ );
+ }
}
- }
- system.put( "occupations", "\"" + inputBean.getOccupations() + "\"" );
- if ( inputBean.getOccupations() != null && inputBean.getOccupations().equals("smearing") ) {
- system.put("smearing", "\"" + inputBean.getSmearing() + "\"" );
- system.put("degauss", inputBean.getDegauss().toString() );
- }
- system.put( "nspin", inputBean.getNspin().booleanValue() ? "2" : "1" );
- system.put( "lda_plus_u", inputBean.getLdaPlusU().booleanValue() ? ".true." : ".false." );
- List<Hubbard> hubbard = inputBean.getHubbard();
- if ( inputBean.getLdaPlusU() && hubbard != null ) {
- for (int i = 0; i < hubbard.size(); i++ ) {
- system.put( "Hubbard_U(" + (i+1) + ")", hubbard.get(i).getU().toString() );
+ system.put( "occupations", "\"" + inputBean.getOccupations() + "\"" );
+ if ( inputBean.getOccupations() != null && inputBean.getOccupations().equals("smearing") ) {
+ system.put("smearing", "\"" + inputBean.getSmearing() + "\"" );
+ system.put("degauss", inputBean.getDegauss().toString() );
}
- for (int i = 0; i < hubbard.size(); i++ ) {
- if ( hubbard.get(i).getAlpha() != null )
- system.put( "Hubbard_Alpha(" + (i+1) + ")", hubbard.get(i).getAlpha().toString() );
+ system.put( "nspin", inputBean.getNspin().booleanValue() ? "2" : "1" );
+ system.put( "lda_plus_u", inputBean.getLdaPlusU().booleanValue() ? ".true." : ".false." );
+ List<Hubbard> hubbard = inputBean.getHubbard();
+ if ( inputBean.getLdaPlusU() && hubbard != null ) {
+ for (int i = 0; i < hubbard.size(); i++ ) {
+ system.put( "Hubbard_U(" + (i+1) + ")", hubbard.get(i).getU().toString() );
+ }
+ for (int i = 0; i < hubbard.size(); i++ ) {
+ if ( hubbard.get(i).getAlpha() != null )
+ system.put( "Hubbard_Alpha(" + (i+1) + ")", hubbard.get(i).getAlpha().toString() );
+ }
}
+ } catch(Exception ae){
+ ae.printStackTrace();
+ System.err.println("Error generateSystem(): "+ae.getMessage());
}
-
+
return system;
}
private static OrderedMap generateElectrons( PwscfBean inputBean ) {
OrderedMap electrons = new ListOrderedMap();
- electrons.put( "conv_thr", inputBean.getConvThr() );
- electrons.put( "diagonalization", "\"david\"" );
-
+ try{
+ electrons.put( "conv_thr", inputBean.getConvThr() );
+ electrons.put( "diagonalization", "\"david\"" );
+ } catch(Exception ae){
+ ae.printStackTrace();
+ System.err.println("Error generateElectrons(): "+ae.getMessage());
+ }
+
return electrons;
}
private static OrderedMap generateCell( PwscfBean inputBean ) {
OrderedMap cell = new ListOrderedMap();
- cell.put( "cell_dynamics", "\"damp-w\"" );
- cell.put( "press", inputBean.getPress().toString() );
- cell.put( "wmass", inputBean.getWmass().toString() );
-
+ try{
+ cell.put( "cell_dynamics", "\"damp-w\"" );
+ cell.put( "press", inputBean.getPress().toString() );
+ cell.put( "wmass", inputBean.getWmass().toString() );
+ } catch (Exception ae){
+ ae.printStackTrace();
+ System.err.println("Error generateCell: "+ae.getMessage());
+ }
+
return cell;
}
@@ -204,42 +223,54 @@
* @param vals Enumeration of values to iterate
*/
private static void printProperties ( StringBuffer input, Enumeration keys, Enumeration vals ) {
- if ( keys.hasMoreElements() ) {
- input.append( " " );
- input.append( (String) keys.nextElement() );
- input.append( " = " );
- input.append( (String) vals.nextElement() );
- }
- while ( keys.hasMoreElements() ) {
- input.append( " ,\n" ).append( " " );
- input.append( (String) keys.nextElement() );
- input.append( " = " );
- input.append( (String) vals.nextElement() );
+
+ try{
+ if ( keys.hasMoreElements() ) {
+ input.append( " " );
+ input.append( (String) keys.nextElement() );
+ input.append( " = " );
+ input.append( (String) vals.nextElement() );
+ }
+ while ( keys.hasMoreElements() ) {
+ input.append( " ,\n" ).append( " " );
+ input.append( (String) keys.nextElement() );
+ input.append( " = " );
+ input.append( (String) vals.nextElement() );
+
+ }
+ input.append( "\n" );
+ } catch (Exception ae){
+ ae.printStackTrace();
+ System.err.println("Error printProperties(): "+ae.getMessage());
}
-
- input.append( "\n" );
}
private static void printProperties ( StringBuffer input, OrderedMap props) {
OrderedMapIterator iter = props.orderedMapIterator();
- if ( iter.hasNext() ) {
- input.append( " " );
- input.append( (String) iter.next() );
- input.append( " = " );
- input.append( (String) iter.getValue() );
+ try{
+
+ if ( iter.hasNext() ) {
+ input.append( " " );
+ input.append( (String) iter.next() );
+ input.append( " = " );
+ input.append( (String) iter.getValue() );
+
+ }
+ while ( iter.hasNext() ) {
+ input.append( " ,\n" ).append( " " );
+ input.append( (String) iter.next() );
+ input.append( " = " );
+ input.append( (String) iter.getValue() );
+
+ }
+ input.append( "\n" );
+ } catch (Exception ae){
+ ae.printStackTrace();
+ System.err.println("Error printProperties(): "+ae.getMessage());
}
- while ( iter.hasNext() ) {
- input.append( " ,\n" ).append( " " );
- input.append( (String) iter.next() );
- input.append( " = " );
- input.append( (String) iter.getValue() );
-
- }
-
- input.append( "\n" );
}
Modified: trunk/vlab/portal/input-portlet/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/vlab/portal/input-portlet/src/main/webapp/WEB-INF/faces-config.xml 2008-10-29 22:41:07 UTC (rev 1193)
+++ trunk/vlab/portal/input-portlet/src/main/webapp/WEB-INF/faces-config.xml 2008-10-29 22:46:20 UTC (rev 1194)
@@ -5,9 +5,7 @@
<faces-config>
<application>
- <action-listener>
- org.vlab.MyActionListener
- </action-listener>
+ <action-listener>org.vlab.MyActionListener</action-listener>
</application>
<managed-bean>
@@ -26,9 +24,7 @@
</managed-bean>
<managed-bean>
<managed-bean-name>focusElement</managed-bean-name>
- <managed-bean-class>
- java.lang.String
- </managed-bean-class>
+ <managed-bean-class>java.lang.String</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
@@ -68,7 +64,7 @@
<to-view-id>/pages/single-calc/step1.jsp</to-view-id>
</navigation-case>
</navigation-rule>
- <navigation-rule>
+ <navigation-rule>
<from-view-id>/pages/single-calc/step3.jsp</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
@@ -117,58 +113,88 @@
</navigation-case>
</navigation-rule>
<navigation-rule>
- <from-view-id>/pages/eularian-strain/elasticity1.jsp</from-view-id>
+ <from-view-id>
+ /pages/eularian-strain/elasticity1.jsp
+ </from-view-id>
<navigation-case>
<from-outcome>submit</from-outcome>
- <to-view-id>/pages/eularian-strain/elasticity2.jsp</to-view-id>
+ <to-view-id>
+ /pages/eularian-strain/elasticity2.jsp
+ </to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
- <from-view-id>/pages/eularian-strain/elasticity2.jsp</from-view-id>
+ <from-view-id>
+ /pages/eularian-strain/elasticity2.jsp
+ </from-view-id>
<navigation-case>
<from-outcome>submit</from-outcome>
- <to-view-id>/pages/eularian-strain/elasticity3.jsp</to-view-id>
+ <to-view-id>
+ /pages/eularian-strain/elasticity3.jsp
+ </to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>refresh</from-outcome>
- <to-view-id>/pages/eularian-strain/elasticity2.jsp</to-view-id>
+ <to-view-id>
+ /pages/eularian-strain/elasticity2.jsp
+ </to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>prev</from-outcome>
- <to-view-id>/pages/eularian-strain/elasticity1.jsp</to-view-id>
+ <to-view-id>
+ /pages/eularian-strain/elasticity1.jsp
+ </to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
- <from-view-id>/pages/eularian-strain/elasticity3.jsp</from-view-id>
+ <from-view-id>
+ /pages/eularian-strain/elasticity3.jsp
+ </from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
- <to-view-id>/pages/eularian-strain/elasticity4.jsp</to-view-id>
+ <to-view-id>
+ /pages/eularian-strain/elasticity4.jsp
+ </to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>prev</from-outcome>
- <to-view-id>/pages/eularian-strain/elasticity2.jsp</to-view-id>
+ <to-view-id>
+ /pages/eularian-strain/elasticity2.jsp
+ </to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
- <from-view-id>/pages/eularian-strain/elasexpert.jsp</from-view-id>
+ <from-view-id>
+ /pages/eularian-strain/elasexpert.jsp
+ </from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
- <to-view-id>/pages/eularian-strain/elasticity4.jsp</to-view-id>
+ <to-view-id>
+ /pages/eularian-strain/elasticity4.jsp
+ </to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>cancel</from-outcome>
- <to-view-id>/pages/eularian-strain/elasticity4.jsp</to-view-id>
+ <to-view-id>
+ /pages/eularian-strain/elasticity4.jsp
+ </to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
- <from-view-id>/pages/eularian-strain/elasticity4.jsp</from-view-id>
+ <from-view-id>
+ /pages/eularian-strain/elasticity4.jsp
+ </from-view-id>
<navigation-case>
<from-outcome>prev</from-outcome>
- <to-view-id>/pages/eularian-strain/elasticity3.jsp</to-view-id>
+ <to-view-id>
+ /pages/eularian-strain/elasticity3.jsp
+ </to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>expert</from-outcome>
- <to-view-id>/pages/eularian-strain/elasexpert.jsp</to-view-id>
+ <to-view-id>
+ /pages/eularian-strain/elasexpert.jsp
+ </to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>success</from-outcome>
@@ -180,13 +206,15 @@
<from-view-id>/pages/eularian-strain/finish.jsp</from-view-id>
<navigation-case>
<from-outcome>restart</from-outcome>
- <to-view-id>/pages/eularian-strain/elasticity2.jsp</to-view-id>
+ <to-view-id>
+ /pages/eularian-strain/elasticity2.jsp
+ </to-view-id>
</navigation-case>
</navigation-rule>
-
-
+
+
<lifecycle>
<phase-listener>org.vlab.MyPhaseListener</phase-listener>
</lifecycle>
-
+
</faces-config>
Modified: trunk/vlab/portal/input-portlet/src/main/webapp/WEB-INF/gridsphere-portlet.xml
===================================================================
--- trunk/vlab/portal/input-portlet/src/main/webapp/WEB-INF/gridsphere-portlet.xml 2008-10-29 22:41:07 UTC (rev 1193)
+++ trunk/vlab/portal/input-portlet/src/main/webapp/WEB-INF/gridsphere-portlet.xml 2008-10-29 22:46:20 UTC (rev 1194)
@@ -1,26 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<portlet-app-collection>
-<portlet-app-def>
+ <portlet-app-def>
-<portlet-app id="org.gridlab.gridsphere.provider.portlet.jsr.PortletServlet">
- <portlet-name>JSR Portlet Servlet</portlet-name>
- <servlet-name>PortletServlet</servlet-name>
-</portlet-app>
+ <portlet-app
+ id="org.gridlab.gridsphere.provider.portlet.jsr.PortletServlet">
+ <portlet-name>JSR Portlet Servlet</portlet-name>
+ <servlet-name>PortletServlet</servlet-name>
+ </portlet-app>
-<concrete-portlet-app id="org.gridlab.gridsphere.provider.portlet.jsr.PortletServlet.1">
- <concrete-portlet>
- <portlet-name>Portlet Servlet</portlet-name>
- <default-locale>en</default-locale>
- <language locale="en">
- <title>Portlet Servlet</title>
- <title-short>Portlet Servlet</title-short>
- <description>A JSR Portlet Loader</description>
- <keywords>portlet servlet</keywords>
- </language>
- </concrete-portlet>
-</concrete-portlet-app>
+ <concrete-portlet-app
+ id="org.gridlab.gridsphere.provider.portlet.jsr.PortletServlet.1">
+ <concrete-portlet>
+ <portlet-name>Portlet Servlet</portlet-name>
+ <default-locale>en</default-locale>
+ <language locale="en">
+ <title>Portlet Servlet</title>
+ <title-short>Portlet Servlet</title-short>
+ <description>A JSR Portlet Loader</description>
+ <keywords>portlet servlet</keywords>
+ </language>
+ </concrete-portlet>
+ </concrete-portlet-app>
-</portlet-app-def>
+ </portlet-app-def>
</portlet-app-collection>
Modified: trunk/vlab/portal/input-portlet/src/main/webapp/WEB-INF/portlet.xml
===================================================================
--- trunk/vlab/portal/input-portlet/src/main/webapp/WEB-INF/portlet.xml 2008-10-29 22:41:07 UTC (rev 1193)
+++ trunk/vlab/portal/input-portlet/src/main/webapp/WEB-INF/portlet.xml 2008-10-29 22:46:20 UTC (rev 1194)
@@ -1,18 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
-<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd">
- <portlet>
- <description>Pwscf Input Portlet</description>
- <portlet-name>input-portlet</portlet-name>
- <display-name>Edit Input</display-name>
- <portlet-class>com.sun.faces.portlet.FacesPortlet</portlet-class>
- <!--<portlet-class>org.apache.myfaces.portlet.MyFacesGenericPortlet</portlet-class>-->
+<portlet-app
+ xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
+ version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd">
+ <portlet>
+ <description>Pwscf Input Portlet</description>
+ <portlet-name>input-portlet</portlet-name>
+ <display-name>Edit Input</display-name>
+ <portlet-class>
+ com.sun.faces.portlet.FacesPortlet
+ </portlet-class>
+ <!--<portlet-class>org.apache.myfaces.portlet.MyFacesGenericPortlet</portlet-class>-->
<!-- The "home page" of your JSF application -->
<!-- This is a required param. -->
<init-param>
- <name>default-view</name>
- <value>/start.jsp</value>
+ <name>default-view</name>
+ <value>/start.jsp</value>
</init-param>
<init-param>
@@ -21,19 +26,22 @@
<value>/start.jsp</value>
</init-param>
- <supports>
- <mime-type>text/html</mime-type>
- <portlet-mode>VIEW</portlet-mode>
- </supports>
+ <supports>
+ <mime-type>text/html</mime-type>
+ <portlet-mode>VIEW</portlet-mode>
+ </supports>
- <portlet-info>
- <title>pwscf input generation</title>
- <short-title>Generates pwscf input for single-calculation and eularian-strain runs</short-title>
- </portlet-info>
+ <portlet-info>
+ <title>pwscf input generation</title>
+ <short-title>
+ Generates pwscf input for single-calculation and
+ eularian-strain runs
+ </short-title>
+ </portlet-info>
- </portlet>
+ </portlet>
- <user-attribute>
+ <user-attribute>
<description>User Name</description>
<name>user.name</name>
</user-attribute>
Modified: trunk/vlab/portal/input-portlet/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/vlab/portal/input-portlet/src/main/webapp/WEB-INF/web.xml 2008-10-29 22:41:07 UTC (rev 1193)
+++ trunk/vlab/portal/input-portlet/src/main/webapp/WEB-INF/web.xml 2008-10-29 22:46:20 UTC (rev 1194)
@@ -5,58 +5,60 @@
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
- <display-name>JSF Job Submit portlets</display-name>
+ <display-name>JSF Job Submit portlets</display-name>
- <description>
- Provides JSF Job Submit portlets
- </description>
+ <description>Provides JSF Job Submit portlets</description>
- <context-param>
- <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
- <param-value>client</param-value>
- </context-param>
+ <context-param>
+ <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+ <param-value>client</param-value>
+ </context-param>
- <context-param>
- <param-name>javax.faces.application.CONFIG_FILES</param-name>
- <param-value>/WEB-INF/faces-config.xml</param-value>
- </context-param>
+ <context-param>
+ <param-name>javax.faces.application.CONFIG_FILES</param-name>
+ <param-value>/WEB-INF/faces-config.xml</param-value>
+ </context-param>
- <context-param>
- <param-name>com.sun.faces.portlet.INIT_VIEW</param-name>
- <param-value>/start.jsp</param-value>
- </context-param>
+ <context-param>
+ <param-name>com.sun.faces.portlet.INIT_VIEW</param-name>
+ <param-value>/start.jsp</param-value>
+ </context-param>
- <context-param>
- <param-name>com.sun.faces.validateXml</param-name>
- <param-value>true</param-value>
- </context-param>
+ <context-param>
+ <param-name>com.sun.faces.validateXml</param-name>
+ <param-value>true</param-value>
+ </context-param>
- <listener>
- <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
- </listener>
+ <listener>
+ <listener-class>
+ com.sun.faces.config.ConfigureListener
+ </listener-class>
+ </listener>
- <!-- Faces Servlet -->
- <servlet>
- <servlet-name>Faces Servlet</servlet-name>
- <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
- <load-on-startup> 1 </load-on-startup>
- </servlet>
+ <!-- Faces Servlet -->
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
- <servlet>
- <servlet-name>PortletServlet</servlet-name>
- <servlet-class>org.gridlab.gridsphere.provider.portlet.jsr.PortletServlet</servlet-class>
- </servlet>
+ <servlet>
+ <servlet-name>PortletServlet</servlet-name>
+ <servlet-class>
+ org.gridlab.gridsphere.provider.portlet.jsr.PortletServlet
+ </servlet-class>
+ </servlet>
- <servlet-mapping>
- <servlet-name>Faces Servlet</servlet-name>
- <url-pattern>/input-portlet/*</url-pattern>
- </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>/input-portlet/*</url-pattern>
+ </servlet-mapping>
- <servlet-mapping>
- <servlet-name>PortletServlet</servlet-name>
- <url-pattern>/jsr/input-portlet</url-pattern>
- </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>PortletServlet</servlet-name>
+ <url-pattern>/jsr/input-portlet</url-pattern>
+ </servlet-mapping>
</web-app>
Modified: trunk/vlab/portal/input-portlet/src/main/webapp/css/styles.css
===================================================================
--- trunk/vlab/portal/input-portlet/src/main/webapp/css/styles.css 2008-10-29 22:41:07 UTC (rev 1193)
+++ trunk/vlab/portal/input-portlet/src/main/webapp/css/styles.css 2008-10-29 22:46:20 UTC (rev 1194)
@@ -66,7 +66,7 @@
.instruction {
font-weight: bolder;
font-style: italic;
- color: green;
+ color: black;
}
.indented {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <das...@us...> - 2008-10-29 22:41:10
|
Revision: 1193
http://vlab.svn.sourceforge.net/vlab/?rev=1193&view=rev
Author: dasil014
Date: 2008-10-29 22:41:07 +0000 (Wed, 29 Oct 2008)
Log Message:
-----------
Changed option of spin polarized and start magnetization. Now the user has an option to define spin polarized and start magnetization for every component.
Modified Paths:
--------------
trunk/vlab/portal/input-portlet/src/main/webapp/pages/eularian-strain/elasticity1.jsp
trunk/vlab/portal/input-portlet/src/main/webapp/pages/eularian-strain/elasticity2.jsp
trunk/vlab/portal/input-portlet/src/main/webapp/pages/eularian-strain/elasticity3.jsp
Modified: trunk/vlab/portal/input-portlet/src/main/webapp/pages/eularian-strain/elasticity1.jsp
===================================================================
--- trunk/vlab/portal/input-portlet/src/main/webapp/pages/eularian-strain/elasticity1.jsp 2008-10-29 22:38:31 UTC (rev 1192)
+++ trunk/vlab/portal/input-portlet/src/main/webapp/pages/eularian-strain/elasticity1.jsp 2008-10-29 22:41:07 UTC (rev 1193)
@@ -1,7 +1,6 @@
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
-
<link href="../input-portlet/css/styles.css" type="text/css" rel="stylesheet">
<script language="javascript" src="../input-portlet/js/commons.js"></script>
@@ -73,8 +72,12 @@
<h:outputText value="How many pressures?"/>
<h:inputText id="qtdPression" size="1" value="#{ElasInputManager.inputBean.qtdPression}" />
+ <h:outputText value="Spin polarized"/>
+ <h:selectBooleanCheckbox id="spinpolarized" value="#{ElasInputManager.inputBean.spinpolarized}" />
+
+
+ <h:outputText value="Good quality fitting demands at least 7 points" escape="false" />
<h:outputText value="<br>" escape="false" />
- <h:outputText value="<br>" escape="false" />
<f:facet name="footer">
<h:panelGroup>
Modified: trunk/vlab/portal/input-portlet/src/main/webapp/pages/eularian-strain/elasticity2.jsp
===================================================================
--- trunk/vlab/portal/input-portlet/src/main/webapp/pages/eularian-strain/elasticity2.jsp 2008-10-29 22:38:31 UTC (rev 1192)
+++ trunk/vlab/portal/input-portlet/src/main/webapp/pages/eularian-strain/elasticity2.jsp 2008-10-29 22:41:07 UTC (rev 1193)
@@ -1,7 +1,7 @@
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
-<html>
- <head>
+<html>
+ <head>
<title>pwscf submission form</title>
<link href="../input-portlet/css/styles.css" type="text/css" rel="stylesheet">
@@ -155,6 +155,7 @@
styleClass="imperceptible container" headerClass="large_header" footerClass="right_footer">
<f:facet name="footer">
<h:panelGroup>
+ <h:outputText value="Good quality fitting demands at least 7 points" escape="false" />
<h:inputText id="qtdPression" value="#{ElasInputManager.inputBean.qtdPression}" size="1"
onchange="findParentForm(this).submit()"/>
<h:outputText value=" number of pressures" />
@@ -193,16 +194,16 @@
<h:panelGrid width="100%" columns="1"
styleClass="imperceptible container" footerClass="right_footer"
columnClasses="align_left">
-
+
+
+ <%--
<f:facet name="footer">
- <h:panelGroup>
- <h:inputText id="ntyp" value="#{ElasInputManager.inputBean.ntyp}" size="1" onchange="findParentForm(this).submit()"/>
- <h:outputText value=" atom types" />
- </h:panelGroup>
+
</f:facet>
-
+ --%>
+
<h:panelGroup>
- <h:outputText value="Select pseudo-potentials by..." styleClass="instruction"/>
+ <h:outputText value="Add pseudo-potentials to your project, either by..." styleClass="instruction"/>
<h:outputText value="<ul><li class=indented>" escape="false"/>
<h:commandButton value="searching public repository"
@@ -222,6 +223,15 @@
<h:outputText value="</ul>" escape="false"/>
</h:panelGroup>
+
+ <h:panelGrid width="100%" columns="2" columnClasses="align_right">
+ <h:panelGroup>
+ <h:inputText id="ntyp" value="#{ElasInputManager.inputBean.ntyp}" size="1" onchange="findParentForm(this).submit()" styleClass="right"/>
+ <h:outputText value=" atom types" styleClass="right"/>
+ </h:panelGroup>
+ </h:panelGrid>
+
+
<h:dataTable value="#{ElasInputManager.inputBean.species}" var="species" id="aSpecies"
width="100%" rowClasses="cell_white, cell_gray" headerClass="cell_header_gray">
<h:column>
@@ -229,7 +239,7 @@
<h:outputText value="Symbol" />
</f:facet>
- <h:inputText id="symbol" value="#{species.symbol}" />
+ <h:inputText id="symbol" size="3" value="#{species.symbol}" />
</h:column>
<h:column>
@@ -237,7 +247,7 @@
<h:outputText value="Mass (a.u.)" />
</f:facet>
- <h:inputText id="mass" value="#{species.mass}" />
+ <h:inputText id="mass" size="4" value="#{species.mass}" />
</h:column>
<h:column>
@@ -246,12 +256,43 @@
</f:facet>
<%-- <h:inputText id="pseudoPotential" value="#{species.pseudoPotential}" /> --%>
- <h:selectOneMenu id="pseudoPotential" value="#{species.pseudoPotential}">
- <f:selectItems value="#{ElasInputManager.files}" />
+ <h:selectOneMenu id="pseudoPotential" value="#{species.pseudoPotential}" >
+ <f:selectItems value="#{ElasInputManager.files}"/>
</h:selectOneMenu>
</h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Start Magnetization" />
+ </f:facet>
+
+ <h:inputText id="mmagnetization" size="6" value="#{species.magnetization}" disabled="{#ElasInputManager.inputBean.spinpolarized}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="LDA+U" />
+ </f:facet>
+
+ <h:selectBooleanCheckbox id="ldau" value="#{species.ldau}" />
+ </h:column>
+
+
</h:dataTable>
+ <f:verbatim><br></f:verbatim>
+
+ <h:panelGroup>
+
+ <h:outputText value="Hubbard_U: Uo" />
+ <h:inputText id="hubbardV0" value="#{ElasInputManager.inputBean.hubbardU0}" disabled="#{species.ldau}"/>
+
+ <h:outputText value="dU" />
+ <h:inputText id="hubbarda" value="#{ElasInputManager.inputBean.hubbarddU}" disabled="#{species.ldau}"/>
+
+ </h:panelGroup>
+
+
</h:panelGrid>
<f:verbatim><br></f:verbatim>
@@ -333,8 +374,8 @@
<h:outputText value="</div>" escape="false" />
- </h:form>
+ </h:form>
</f:view>
-
- </body>
-</html>
+
+ </body>
+</html>
Modified: trunk/vlab/portal/input-portlet/src/main/webapp/pages/eularian-strain/elasticity3.jsp
===================================================================
--- trunk/vlab/portal/input-portlet/src/main/webapp/pages/eularian-strain/elasticity3.jsp 2008-10-29 22:38:31 UTC (rev 1192)
+++ trunk/vlab/portal/input-portlet/src/main/webapp/pages/eularian-strain/elasticity3.jsp 2008-10-29 22:41:07 UTC (rev 1193)
@@ -1,7 +1,7 @@
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
-<html>
+<html>
<head>
<script language="javascript" src="../input-portlet/js/commons.js"></script>
@@ -136,9 +136,9 @@
// form.elements['elasticity3:hubbardV0'].value="5.5963";
}
// End -->
- </script>
+ </script>
<title>Elasticity Pwscf</title>
- <link href="../input-portlet/css/styles.css" type="text/css" rel="stylesheet">
+ <link href="../input-portlet/css/styles.css" type="text/css" rel="stylesheet">
</head>
<f:view>
@@ -151,7 +151,7 @@
value="<body onload=\"javascript:initialize_disabled()\">"
rendered="#{! ElasInputManager.hideStrainTable}"
escape="false" />
-
+
<h:form id="elasticity3">
<h:outputText value="<div width=\"100%\" align=\"center\">" escape="false"/>
@@ -212,13 +212,13 @@
<h:outputText value="Equation of state parameters (Initial guess)"/>
</f:facet>
- <h:outputText value="Ko"/>
+ <h:outputText value="Ko (GPa)"/>
<h:inputText id="massOne" value="#{ElasInputManager.inputBean.massOne}" size="15" required="true"/>
<h:outputText value="K'"/>
<h:inputText id="massTwo" value="#{ElasInputManager.inputBean.massTwo}" size="15" required="false"/>
- <h:outputText value="Vo" />
+ <h:outputText value="Vo (a.u.)" />
<h:inputText id="massThree" value="#{ElasInputManager.inputBean.massThree}" size="15" required="false"/>
<h:selectBooleanCheckbox id="optionPhase" value="#{ElasInputManager.inputBean.optionPhase}" />
@@ -274,26 +274,22 @@
<h:panelGrid width="100%" columns="4" styleClass="container" rowClasses="cell_white, cell_gray">
<f:facet name="header">
- <h:outputText value="Initial cell vectors (Å)" escape="false"/>
+ <h:outputText value="Cell Parameters" escape="false"/>
</f:facet>
- <h:outputText value="" />
- <h:outputText value="X" />
- <h:outputText value="Y" />
- <h:outputText value="Z" />
- <h:outputText value="A" />
+ <h:outputText value="a" style="font-weight:bold"/>
<h:inputText id="vx0" value="#{ElasInputManager.inputBean.vx0}" required="false" />
<h:inputText id="vy0" value="#{ElasInputManager.inputBean.vy0}" required="false" />
<h:inputText id="vz0" value="#{ElasInputManager.inputBean.vz0}" required="false" />
- <h:outputText value="B" />
+ <h:outputText value="b" style="font-weight:bold"/>
<h:inputText id="vx1" value="#{ElasInputManager.inputBean.vx1}" required="false" />
<h:inputText id="vy1" value="#{ElasInputManager.inputBean.vy1}" required="false" />
<h:inputText id="vz1" value="#{ElasInputManager.inputBean.vz1}" required="false" />
- <h:outputText value="C" />
+ <h:outputText value="c" style="font-weight:bold"/>
<h:inputText id="vx2" value="#{ElasInputManager.inputBean.vx2}" required="false" />
<h:inputText id="vy2" value="#{ElasInputManager.inputBean.vy2}" required="false" />
<h:inputText id="vz2" value="#{ElasInputManager.inputBean.vz2}" required="false" />
@@ -483,8 +479,8 @@
--%>
<h:panelGrid width="100%" columns="1" styleClass="imperceptible container">
- <h:panelGrid width="100%" columns="6" rowClasses="cell_white, cell_gray">
- <h:selectBooleanCheckbox id="nspin" value="#{ElasInputManager.inputBean.nspin}"
+ <h:panelGrid width="100%" columns="4" rowClasses="cell_white, cell_gray">
+ <%--<h:selectBooleanCheckbox id="nspin" value="#{ElasInputManager.inputBean.nspin}"
onclick="javascript:enable_by_checkbox( this, document.forms['elasticity3'].elements['elasticity3:magnetizationSpecies'] )" />
<h:outputText value="spin polarized" />
@@ -495,13 +491,13 @@
<h:outputText value="<br>" escape="false" />
<h:selectBooleanCheckbox id="ldaPlusU" value="#{ElasInputManager.inputBean.ldaPlusU}" onclick="javascript:enable_by_checkbox( this, document.forms['elasticity3'].elements['elasticity3:hubbarda']); enable_by_checkbox( this, document.forms['elasticity3'].elements['elasticity3:hubbardV0'] )" />
- <h:outputText value="LDA + U" />
+ <h:outputText value="LDA + U" /> --%>
<h:outputText value="Hubbard_U: Uo" />
- <h:inputText id="hubbardV0" value="#{ElasInputManager.inputBean.hubbardU0}" />
+ <h:inputText id="hubbardV0" value="#{ElasInputManager.inputBean.hubbardU0}" disabled="#{species.ldau}"/>
<h:outputText value="dU" />
- <h:inputText id="hubbarda" value="#{ElasInputManager.inputBean.hubbarddU}" />
+ <h:inputText id="hubbarda" value="#{ElasInputManager.inputBean.hubbarddU}" disabled="#{species.ldau}"/>
</h:panelGrid>
@@ -538,10 +534,10 @@
</h:panelGrid>
<h:panelGrid width="100%" columns="4" columnClasses="cell_title, cell_data" rowClasses="cell_white, cell_gray">
- <h:outputText value="ecut_wfc" />
+ <h:outputText value="Ecut_wfc (Ry)" />
<h:inputText id="ecutwfc" value="#{ElasInputManager.inputBean.ecutwfc}" />
- <h:outputText value="ecut_rho" />
+ <h:outputText value="Ecut_rho (Ry)" />
<h:inputText id="ecutrho" value="#{ElasInputManager.inputBean.ecutrho}" />
<h:outputText value="# band" />
@@ -666,7 +662,7 @@
</h:form>
<h:outputText value="</body>" escape="false" />
-
+
</f:view>
-
-</html>
+
+</html>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <das...@us...> - 2008-10-29 22:38:34
|
Revision: 1192
http://vlab.svn.sourceforge.net/vlab/?rev=1192&view=rev
Author: dasil014
Date: 2008-10-29 22:38:31 +0000 (Wed, 29 Oct 2008)
Log Message:
-----------
Changed option of spin polarized and start magnetization. Now the user has an option to define spin polarized and start magnetization for every component.
Modified Paths:
--------------
trunk/vlab/portal/input-portlet/src/main/webapp/pages/single-calc/step1.jsp
trunk/vlab/portal/input-portlet/src/main/webapp/pages/single-calc/step2.jsp
trunk/vlab/portal/input-portlet/src/main/webapp/pages/single-calc/step3.jsp
Modified: trunk/vlab/portal/input-portlet/src/main/webapp/pages/single-calc/step1.jsp
===================================================================
--- trunk/vlab/portal/input-portlet/src/main/webapp/pages/single-calc/step1.jsp 2008-10-29 22:28:17 UTC (rev 1191)
+++ trunk/vlab/portal/input-portlet/src/main/webapp/pages/single-calc/step1.jsp 2008-10-29 22:38:31 UTC (rev 1192)
@@ -79,13 +79,29 @@
value="#{PwscfInputManager.inputBean.nat}"
required="true" />
+
+ <h:outputText value="Spin polarized" />
+ <h:selectBooleanCheckbox id="spinpolarized" value="#{PwscfInputManager.inputBean.spinpolarized}" />
+
+ <h:outputText value="" />
+ <h:outputText value="you may change these values later" />
+ </h:panelGrid>
+
+
+
+ <%--h:panelGrid width="100%" columns="2"
+ styleClass="container"
+ footerClass="right_footer"
+ rowClasses="cell_gray, cell_white">
+
+ </h:panelGrid>
+
<f:facet name="footer">
<h:panelGroup>
<h:outputText value="you may change these values later" />
</h:panelGroup>
- </f:facet>
+ </f:facet--%>
- </h:panelGrid>
<f:verbatim><br></f:verbatim>
Modified: trunk/vlab/portal/input-portlet/src/main/webapp/pages/single-calc/step2.jsp
===================================================================
--- trunk/vlab/portal/input-portlet/src/main/webapp/pages/single-calc/step2.jsp 2008-10-29 22:28:17 UTC (rev 1191)
+++ trunk/vlab/portal/input-portlet/src/main/webapp/pages/single-calc/step2.jsp 2008-10-29 22:38:31 UTC (rev 1192)
@@ -25,6 +25,20 @@
textbox.disabled = false;
}
}
+
+ function ldaPlusUChanged(objid){
+
+
+ if ( returnObjById(objid).checked == true ) {
+ returnObjById('step2:ldaplusu').disabled = false;
+ } else {
+ returnObjById('step2:ldaplusu').disabled = true;
+ }
+
+
+ }
+
+
/**
* A function that refreshes the 'step2' form, when the pseudo-potentials have
* been uploaded.
@@ -164,7 +178,7 @@
styleClass="imperceptible container" footerClass="right_footer"
columnClasses="align_left">
- <f:facet name="footer">
+ <%--f:facet name="footer">
<h:panelGroup>
<h:inputText
id="ntyp"
@@ -174,10 +188,10 @@
onchange="findParentForm(this).submit()"/>
<h:outputText value="atom types" />
</h:panelGroup>
- </f:facet>
+ </f:facet--%>
<h:panelGroup>
- <h:outputText value="Select pseudo-potentials by..." styleClass="instruction"/>
+ <h:outputText value="Add pseudo-potentials to your project, either by..." styleClass="instruction"/>
<h:outputText value="<ul><li class=indented>" escape="false"/>
<h:commandButton value="searching public repository"
@@ -196,6 +210,13 @@
type="button" />
<h:outputText value="</ul>" escape="false"/>
</h:panelGroup>
+
+ <h:panelGrid width="100%" columns="2" columnClasses="align_right">
+ <h:panelGroup>
+ <h:inputText id="ntyp" value="#{PwscfInputManager.inputBean.ntyp}" size="1" onchange="findParentForm(this).submit()" styleClass="right"/>
+ <h:outputText value=" atom types" styleClass="right"/>
+ </h:panelGroup>
+ </h:panelGrid>
<h:dataTable value="#{PwscfInputManager.inputBean.species}" var="species" id="aSpecies" width="100%" border="0" rowClasses="cell_white, cell_gray" headerClass="cell_header_gray">
<h:column>
@@ -225,7 +246,39 @@
<f:selectItems value="#{PwscfInputManager.files}" />
</h:selectOneMenu>
</h:column>
+
+
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Start Magnetization" />
+ </f:facet>
+
+ <h:inputText id="mmagnetization" size="6" value="#{species.magnetization}" disabled="{#PwscfInputManager.inputBean.spinpolarized}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="LDA + U" />
+ </f:facet>
+
+ <h:selectBooleanCheckbox id="ldau" value="#{species.ldau}" onclick="javascript:ldaPlusUChanged(this)"/>
+ </h:column>
+
+
</h:dataTable>
+
+
+ <f:verbatim><br></f:verbatim>
+
+ <h:panelGroup>
+
+ <h:outputText value="LDA + U" />
+ <h:inputText id="ldaplusu" value="#{PwscfInputManager.inputBean.ldaSpecies}" disabled="#{species.ldau}"/>
+
+ </h:panelGroup>
+
+
</h:panelGrid>
<f:verbatim><br></f:verbatim>
Modified: trunk/vlab/portal/input-portlet/src/main/webapp/pages/single-calc/step3.jsp
===================================================================
--- trunk/vlab/portal/input-portlet/src/main/webapp/pages/single-calc/step3.jsp 2008-10-29 22:28:17 UTC (rev 1191)
+++ trunk/vlab/portal/input-portlet/src/main/webapp/pages/single-calc/step3.jsp 2008-10-29 22:38:31 UTC (rev 1192)
@@ -19,16 +19,7 @@
}
}
- function ldaPlusUChanged() {
- if ( returnObjById('step3:ldaPlusU').checked == true ) {
- returnObjById('step3:ldaSpecies').disabled = false;
- } else {
- returnObjById('step3:ldaSpecies').disabled = true;
- returnObjById('step3:ldaSpecies').value = "";
- hideBlockDisplay( 'step3:hubbardTbl' );
- }
- }
-
+
function magnetizationSpeciesChanged() {
returnObjById('step3:focusElement').value="step3:magnetizationTbl";
@@ -36,13 +27,6 @@
returnObjById('step3').submit();
}
- function ldaSpeciesChanged() {
- returnObjById('step3:focusElement').value="step3:hubbardTbl";
-
- // submit the form
- returnObjById('step3').submit();
- }
-
function initialize() {
initialize_disabled();
determineFocus();
@@ -126,7 +110,7 @@
// End -->
</script>
</head>
-<body onload="javascript:initialize()">
+<body onLoad="javascript:initialize()">
<f:view>
<h:form id="step3">
@@ -329,9 +313,8 @@
<h:outputText escape="false" value="<br>" />
</h:panelGrid>
- <h:panelGrid width="100%" columns="1" styleClass="imperceptible container">
+ <%--h:panelGrid width="100%" columns="1" styleClass="imperceptible container">
-
<h:panelGrid width="100%" styleClass="speciesTbl" columns="4"
columnClasses="chkbox_cell, name_cell, lbl_cell, data_cell"
rowClasses="cell_gray, cell_white">
@@ -348,9 +331,9 @@
value="#{PwscfInputManager.inputBean.magnetizationSpecies}"
onchange="magnetizationSpeciesChanged()"/>
- </h:panelGrid>
+ </h:panelGrid--%>
- <h:dataTable value="#{PwscfInputManager.inputBean.startingMagnetization}"
+ <%--h:dataTable value="#{PwscfInputManager.inputBean.startingMagnetization}"
id="magnetizationTbl" var="magnetization"
styleClass="magnetizationTbl"
rowClasses="cell_white, cell_gray" headerClass="field, cell_header_gray"
@@ -370,26 +353,8 @@
<h:inputText value="#{magnetization.value}"/>
</h:column>
- </h:dataTable>
+ </h:dataTable--%>
- <h:panelGrid width="100%" styleClass="speciesTbl" columns="4"
- columnClasses="chkbox_cell, name_cell, lbl_cell, data_cell"
- rowClasses="cell_gray, cell_white">
-
- <h:selectBooleanCheckbox id="ldaPlusU"
- value="#{PwscfInputManager.inputBean.ldaPlusU}"
- onclick="javascript:ldaPlusUChanged()" />
- <h:outputText value="LDA + U" />
-
- <h:outputText value="# of species" />
- <h:inputText
- id="ldaSpecies"
- value="#{PwscfInputManager.inputBean.ldaSpecies}"
- valueChangeListener="#{PwscfInputManager.listSizeHandler.updateSize}"
- onchange="ldaSpeciesChanged()" />
-
- </h:panelGrid>
-
<h:dataTable value="#{PwscfInputManager.inputBean.hubbard}"
id="hubbardTbl" var="hubbard"
styleClass="hubbardTbl"
@@ -474,7 +439,7 @@
<h:outputText value="<br>" escape="false" />
<h:outputText value="<br>" escape="false" />
</h:panelGrid>
- </h:panelGrid>
+
<h:outputText escape="false" value="<br>" />
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <das...@us...> - 2008-10-29 22:28:21
|
Revision: 1191
http://vlab.svn.sourceforge.net/vlab/?rev=1191&view=rev
Author: dasil014
Date: 2008-10-29 22:28:17 +0000 (Wed, 29 Oct 2008)
Log Message:
-----------
Basic libraries added to pom of the Web Service Task Executor
Modified Paths:
--------------
trunk/vlab/portal/input-portlet/pom.xml
Modified: trunk/vlab/portal/input-portlet/pom.xml
===================================================================
--- trunk/vlab/portal/input-portlet/pom.xml 2008-10-29 20:54:04 UTC (rev 1190)
+++ trunk/vlab/portal/input-portlet/pom.xml 2008-10-29 22:28:17 UTC (rev 1191)
@@ -1,200 +1,209 @@
-<?xml version="1.0" encoding="UTF-8"?><project>
- <parent>
- <artifactId>portal-dependent-project</artifactId>
- <relativePath>../portal-dependent-project</relativePath>
- <groupId>edu.umn.msi.vlab</groupId>
- <version>1.0-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>input-portlet</artifactId>
- <version>1.0-SNAPSHOT</version>
- <packaging>war</packaging>
-
- <name>pwscf input generation</name>
- <description>A JSF portlet for generating pwscf input (single-calc and eularian-strain) as part of the vlab-portlets package.</description>
- <url>http://vlab.msi.umn.edu</url>
- <build>
- <testResources>
- <testResource>
- <directory>src/test/resources</directory>
- </testResource>
- </testResources>
- <finalName>input-portlet</finalName>
- <plugins>
- <plugin>
- <groupId>org.codehaus.cargo</groupId>
- <artifactId>cargo-maven2-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>netbeans-freeform-maven-plugin</artifactId>
- <configuration>
- <additionalFolders>src/main/webapp</additionalFolders>
- <additionalGoals>source:war</additionalGoals>
- <additionalGoals>clean install</additionalGoals>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <excludes>
- <exclude>**/TestSubmission.java</exclude>
- </excludes>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <repositories>
- <repository>
- <id>bollig-repo</id>
- <name>Evan Bollig's Personal Maven2 Repo (bo...@ms... for support)</name>
- <url>http://www.scs.fsu.edu/~bollig/maven/repository</url>
- </repository>
- </repositories>
- <dependencies>
- <dependency>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>pwscf-input-beans</artifactId>
- <version>1.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>vlab-base</artifactId>
- <version>1.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>vlab-db</artifactId>
- <version>1.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>vlab-common</artifactId>
- <version>1.0-SNAPSHOT</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>pseudo-potential-repository</artifactId>
- <version>1.0-SNAPSHOT</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>edu.umn.msi.vlab</groupId>
- <artifactId>test-utils</artifactId>
- <version>1.0-SNAPSHOT</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>javax.faces</groupId>
- <artifactId>jsf-portlet</artifactId>
- <version>1.1</version>
- </dependency>
- <dependency>
- <groupId>gridsphere</groupId>
- <artifactId>portlet-jsr-api</artifactId>
- </dependency>
- <dependency>
- <groupId>gridsphere</groupId>
- <artifactId>gridsphere-ui-tags</artifactId>
- </dependency>
- <dependency>
- <groupId>cgl</groupId>
- <artifactId>crossHash</artifactId>
- <version>0.1</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>javax.faces</groupId>
- <artifactId>jsf-api</artifactId>
- <version>1.1_02</version>
- </dependency>
- <dependency>
- <groupId>javax.faces</groupId>
- <artifactId>jsf-impl</artifactId>
- <version>1.1_02</version>
- </dependency>
- <dependency>
- <groupId>taglibs</groupId>
- <artifactId>standard</artifactId>
- <version>1.1.2</version>
- </dependency>
- <dependency>
- <groupId>commons-collections</groupId>
- <artifactId>commons-collections</artifactId>
- <version>3.2</version>
- </dependency>
- <dependency>
- <groupId>commons-digester</groupId>
- <artifactId>commons-digester</artifactId>
- <version>1.5</version>
- <exclusions>
- <exclusion>
- <artifactId>xml-apis</artifactId>
- <groupId>xml-apis</groupId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>commons-lang</groupId>
- <artifactId>commons-lang</artifactId>
- <version>[2.1,)</version>
- </dependency>
- <dependency>
- <groupId>commons-logging</groupId>
- <artifactId>commons-logging</artifactId>
- <version>1.0.4</version>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>commons-beanutils</groupId>
- <artifactId>commons-beanutils-bean-collections</artifactId>
- <version>1.7.0</version>
- </dependency>
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>servlet-api</artifactId>
- <version>2.4</version>
- </dependency>
- <dependency>
- <groupId>xerces</groupId>
- <artifactId>xerces</artifactId>
- <version>1.4.0</version>
- </dependency>
- <dependency>
- <groupId>commons-fileupload</groupId>
- <artifactId>commons-fileupload</artifactId>
- <version>1.1</version>
- </dependency>
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>jstl</artifactId>
- <version>1.1.2</version>
- </dependency>
- <dependency>
- <groupId>castor</groupId>
- <artifactId>castor</artifactId>
- <version>0.9.9.1</version>
- </dependency>
- <!--
- <dependency>
- <groupId>castor</groupId>
- <artifactId>castor</artifactId>
- <version>0.9.5.3</version>
- <scope>test</scope>
- </dependency>
- -->
- <dependency>
- <groupId>postgresql</groupId>
- <artifactId>postgresql</artifactId>
- <version>8.1-404.jdbc3</version>
- <scope>provided</scope>
- </dependency>
- </dependencies>
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+ <parent>
+ <artifactId>portal-dependent-project</artifactId>
+ <relativePath>../portal-dependent-project</relativePath>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>input-portlet</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>war</packaging>
+
+ <name>pwscf input generation</name>
+ <description>
+ A JSF portlet for generating pwscf input (single-calc and
+ eularian-strain) as part of the vlab-portlets package.
+ </description>
+ <url>http://vlab.msi.umn.edu</url>
+ <build>
+ <testResources>
+ <testResource>
+ <directory>src/test/resources</directory>
+ </testResource>
+ </testResources>
+ <finalName>input-portlet</finalName>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.cargo</groupId>
+ <artifactId>cargo-maven2-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>netbeans-freeform-maven-plugin</artifactId>
+ <configuration>
+ <additionalFolders>
+ src/main/webapp
+ </additionalFolders>
+ <additionalGoals>source:war</additionalGoals>
+ <additionalGoals>clean install</additionalGoals>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <excludes>
+ <exclude>**/TestSubmission.java</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <repositories>
+ <repository>
+ <id>bollig-repo</id>
+ <name>
+ Evan Bollig's Personal Maven2 Repo (bo...@ms...
+ for support)
+ </name>
+ <url>http://www.scs.fsu.edu/~bollig/maven/repository</url>
+ </repository>
+ </repositories>
+ <dependencies>
+ <dependency>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>pwscf-input-beans</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>vlab-base</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>vlab-db</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>vlab-common</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>pseudo-potential-repository</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>edu.umn.msi.vlab</groupId>
+ <artifactId>test-utils</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-portlet</artifactId>
+ <version>1.1</version>
+ </dependency>
+ <dependency>
+ <groupId>gridsphere</groupId>
+ <artifactId>portlet-jsr-api</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>gridsphere</groupId>
+ <artifactId>gridsphere-ui-tags</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>cgl</groupId>
+ <artifactId>crossHash</artifactId>
+ <version>0.1</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-api</artifactId>
+ <version>1.1_02</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-impl</artifactId>
+ <version>1.1_02</version>
+ </dependency>
+ <dependency>
+ <groupId>taglibs</groupId>
+ <artifactId>standard</artifactId>
+ <version>1.1.2</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-collections</groupId>
+ <artifactId>commons-collections</artifactId>
+ <version>3.2</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-digester</groupId>
+ <artifactId>commons-digester</artifactId>
+ <version>1.5</version>
+ <exclusions>
+ <exclusion>
+ <artifactId>xml-apis</artifactId>
+ <groupId>xml-apis</groupId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>commons-lang</groupId>
+ <artifactId>commons-lang</artifactId>
+ <version>[2.1,)</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ <version>1.0.4</version>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>commons-beanutils</groupId>
+ <artifactId>commons-beanutils-bean-collections</artifactId>
+ <version>1.7.0</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.4</version>
+ </dependency>
+ <dependency>
+ <groupId>xerces</groupId>
+ <artifactId>xerces</artifactId>
+ <version>1.4.0</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-fileupload</groupId>
+ <artifactId>commons-fileupload</artifactId>
+ <version>1.1</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>jstl</artifactId>
+ <version>1.1.2</version>
+ </dependency>
+ <dependency>
+ <groupId>castor</groupId>
+ <artifactId>castor</artifactId>
+ <version>0.9.9.1</version>
+ </dependency>
+ <!--
+ <dependency>
+ <groupId>castor</groupId>
+ <artifactId>castor</artifactId>
+ <version>0.9.5.3</version>
+ <scope>test</scope>
+ </dependency>
+ -->
+ <dependency>
+ <groupId>postgresql</groupId>
+ <artifactId>postgresql</artifactId>
+ <version>8.1-404.jdbc3</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
</project>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <das...@us...> - 2008-10-29 20:54:07
|
Revision: 1190
http://vlab.svn.sourceforge.net/vlab/?rev=1190&view=rev
Author: dasil014
Date: 2008-10-29 20:54:04 +0000 (Wed, 29 Oct 2008)
Log Message:
-----------
Update
Modified Paths:
--------------
trunk/vlab/services/task-executor/src/main/java/org/vlab/services/impl/SerialPwscfTask.java
Removed Paths:
-------------
trunk/vlab/services/task-executor/src/main/java/org/vlab/services/GenericSample.java
trunk/vlab/services/task-executor/src/main/java/org/vlab/services/Param1.java
trunk/vlab/services/task-executor/src/main/java/org/vlab/services/ParamVal.java
trunk/vlab/services/task-executor/src/main/java/org/vlab/services/ProjectInput.java
trunk/vlab/services/task-executor/src/main/java/org/vlab/services/PwCard.java
trunk/vlab/services/task-executor/src/main/java/org/vlab/services/PwNameList.java
trunk/vlab/services/task-executor/src/main/java/org/vlab/services/VectType.java
Deleted: trunk/vlab/services/task-executor/src/main/java/org/vlab/services/GenericSample.java
===================================================================
--- trunk/vlab/services/task-executor/src/main/java/org/vlab/services/GenericSample.java 2008-10-29 20:52:43 UTC (rev 1189)
+++ trunk/vlab/services/task-executor/src/main/java/org/vlab/services/GenericSample.java 2008-10-29 20:54:04 UTC (rev 1190)
@@ -1,23 +0,0 @@
-package org.vlab.services;
-
-public class GenericSample {
-
- private PwNameList sample_namelists;// : list of pw_namelist;
- private PwCard sample_cards;// : list of pw_cards;
-
-
- public PwCard getSample_cards() {
- return sample_cards;
- }
- public void setSample_cards(PwCard sample_cards) {
- this.sample_cards = sample_cards;
- }
- public PwNameList getSample_namelists() {
- return sample_namelists;
- }
- public void setSample_namelists(PwNameList sample_namelists) {
- this.sample_namelists = sample_namelists;
- }
-
-
-}
Deleted: trunk/vlab/services/task-executor/src/main/java/org/vlab/services/Param1.java
===================================================================
--- trunk/vlab/services/task-executor/src/main/java/org/vlab/services/Param1.java 2008-10-29 20:52:43 UTC (rev 1189)
+++ trunk/vlab/services/task-executor/src/main/java/org/vlab/services/Param1.java 2008-10-29 20:54:04 UTC (rev 1190)
@@ -1,120 +0,0 @@
-package org.vlab.services;
-
-import java.util.*;
-
-public class Param1 {
-
- private String reference;
- private String name;
- private String is_value;
-
- private boolean is_sample;
- private boolean is_sequence;
- private boolean is_array;
- private boolean is_function;
- private boolean is_vect;
-
- private ParamVal main_val;
- private List sample_val; //: list of param_val; /* Empty if not(is_sample) */
- private List sequence_val; //: list of param_val; /* Empty if not(is_sequence) */
- private List array_val; //: list of param1; /* Empty if not(is_array) */
- private VectType vect_val;// : vect_type; /* Empty if not(is_vect) */
-
- private List coefs;
- //function_val : { order : int; /* Zero if not(is_function) */
- //coefs : list of param_val; /* Empty if not(is_function) */
- //};
-
- public List getArray_val() {
- return array_val;
- }
- public void setArray_val(List array_val) {
- this.array_val = array_val;
- }
- public List getCoefs() {
- return coefs;
- }
- public void setCoefs(List coefs) {
- this.coefs = coefs;
- }
- public ParamVal getMain_val() {
- return main_val;
- }
- public void setMain_val(ParamVal main_val) {
- this.main_val = main_val;
- }
- public List getSample_val() {
- return sample_val;
- }
- public void setSample_val(List sample_val) {
- this.sample_val = sample_val;
- }
- public List getSequence_val() {
- return sequence_val;
- }
- public void setSequence_val(List sequence_val) {
- this.sequence_val = sequence_val;
- }
- public VectType getVect_val() {
- return vect_val;
- }
- public void setVect_val(VectType vect_val) {
- this.vect_val = vect_val;
- }
- public boolean isIs_array() {
- return is_array;
- }
- public void setIs_array(boolean is_array) {
- this.is_array = is_array;
- }
- public boolean isIs_function() {
- return is_function;
- }
- public void setIs_function(boolean is_function) {
- this.is_function = is_function;
- }
- public boolean isIs_sample() {
- return is_sample;
- }
- public void setIs_sample(boolean is_sample) {
- this.is_sample = is_sample;
- }
- public boolean isIs_sequence() {
- return is_sequence;
- }
- public void setIs_sequence(boolean is_sequence) {
- this.is_sequence = is_sequence;
- }
- public String getIs_value() {
- return is_value;
- }
- public void setIs_value(String is_value) {
- this.is_value = is_value;
- }
- public boolean isIs_vect() {
- return is_vect;
- }
- public void setIs_vect(boolean is_vect) {
- this.is_vect = is_vect;
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public String getReference() {
- return reference;
- }
- public void setReference(String reference) {
- this.reference = reference;
- }
-
-
-
-
-
-
-
-
-}
Deleted: trunk/vlab/services/task-executor/src/main/java/org/vlab/services/ParamVal.java
===================================================================
--- trunk/vlab/services/task-executor/src/main/java/org/vlab/services/ParamVal.java 2008-10-29 20:52:43 UTC (rev 1189)
+++ trunk/vlab/services/task-executor/src/main/java/org/vlab/services/ParamVal.java 2008-10-29 20:54:04 UTC (rev 1190)
@@ -1,93 +0,0 @@
-package org.vlab.services;
-
-
-
-
-public class ParamVal {
-
-
- private String reference;
- private int ctrl_no;
- private int order_no;
- private boolean is_string;
- private boolean is_int;
- private boolean is_double;
- private boolean is_boolean;
- private String string_val; /* unset if not(is_string) */
- private int int_val; /* unset if not(is_int) */
- private double double_val; /* unset if not(is_double) */
- private boolean boolean_val; /* unset if not(is_boolean) */
-
-
-
- public boolean isBoolean_val() {
- return boolean_val;
- }
- public void setBoolean_val(boolean boolean_val) {
- this.boolean_val = boolean_val;
- }
- public int getCtrl_no() {
- return ctrl_no;
- }
- public void setCtrl_no(int ctrl_no) {
- this.ctrl_no = ctrl_no;
- }
- public double getDouble_val() {
- return double_val;
- }
- public void setDouble_val(double double_val) {
- this.double_val = double_val;
- }
- public int getInt_val() {
- return int_val;
- }
- public void setInt_val(int int_val) {
- this.int_val = int_val;
- }
- public boolean isIs_boolean() {
- return is_boolean;
- }
- public void setIs_boolean(boolean is_boolean) {
- this.is_boolean = is_boolean;
- }
- public boolean isIs_double() {
- return is_double;
- }
- public void setIs_double(boolean is_double) {
- this.is_double = is_double;
- }
- public boolean isIs_int() {
- return is_int;
- }
- public void setIs_int(boolean is_int) {
- this.is_int = is_int;
- }
- public boolean isIs_string() {
- return is_string;
- }
- public void setIs_string(boolean is_string) {
- this.is_string = is_string;
- }
- public int getOrder_no() {
- return order_no;
- }
- public void setOrder_no(int order_no) {
- this.order_no = order_no;
- }
- public String getReference() {
- return reference;
- }
- public void setReference(String reference) {
- this.reference = reference;
- }
- public String getString_val() {
- return string_val;
- }
- public void setString_val(String string_val) {
- this.string_val = string_val;
- }
-
-
-
-
-}
Deleted: trunk/vlab/services/task-executor/src/main/java/org/vlab/services/ProjectInput.java
===================================================================
--- trunk/vlab/services/task-executor/src/main/java/org/vlab/services/ProjectInput.java 2008-10-29 20:52:43 UTC (rev 1189)
+++ trunk/vlab/services/task-executor/src/main/java/org/vlab/services/ProjectInput.java 2008-10-29 20:54:04 UTC (rev 1190)
@@ -1,23 +0,0 @@
-package org.vlab.services;
-
-public class ProjectInput {
-
-
- private Param1 global_param;// : list of param1;
- private GenericSample pw_template;// : generic_sample;
-
-
- public Param1 getGlobal_param() {
- return global_param;
- }
- public void setGlobal_param(Param1 global_param) {
- this.global_param = global_param;
- }
- public GenericSample getPw_template() {
- return pw_template;
- }
- public void setPw_template(GenericSample pw_template) {
- this.pw_template = pw_template;
- }
-
-}
\ No newline at end of file
Deleted: trunk/vlab/services/task-executor/src/main/java/org/vlab/services/PwCard.java
===================================================================
--- trunk/vlab/services/task-executor/src/main/java/org/vlab/services/PwCard.java 2008-10-29 20:52:43 UTC (rev 1189)
+++ trunk/vlab/services/task-executor/src/main/java/org/vlab/services/PwCard.java 2008-10-29 20:54:04 UTC (rev 1190)
@@ -1,36 +0,0 @@
-package org.vlab.services;
-
-import java.util.*;
-
-import org.vlab.services.*;
-
-public class PwCard {
-
- private String card_name;// : string;
- private VectType name_line_param;// : vect_type;
- private List card_content;// : list of param1;
-
-
- public List getCard_content() {
- return card_content;
- }
- public void setCard_content(List card_content) {
- this.card_content = card_content;
- }
- public String getCard_name() {
- return card_name;
- }
- public void setCard_name(String card_name) {
- this.card_name = card_name;
- }
- public VectType getName_line_param() {
- return name_line_param;
- }
- public void setName_line_param(VectType name_line_param) {
- this.name_line_param = name_line_param;
- }
-
-
-
-
-}
Deleted: trunk/vlab/services/task-executor/src/main/java/org/vlab/services/PwNameList.java
===================================================================
--- trunk/vlab/services/task-executor/src/main/java/org/vlab/services/PwNameList.java 2008-10-29 20:52:43 UTC (rev 1189)
+++ trunk/vlab/services/task-executor/src/main/java/org/vlab/services/PwNameList.java 2008-10-29 20:54:04 UTC (rev 1190)
@@ -1,25 +0,0 @@
-package org.vlab.services;
-
-import java.util.*;
-
-public class PwNameList {
-
- private String namelist_name; // : string;
- private List namelist_content; // : list of param1;
-
-
- public List getNamelist_content() {
- return namelist_content;
- }
- public void setNamelist_content(List namelist_content) {
- this.namelist_content = namelist_content;
- }
- public String getNamelist_name() {
- return namelist_name;
- }
- public void setNamelist_name(String namelist_name) {
- this.namelist_name = namelist_name;
- }
-
-
-}
Deleted: trunk/vlab/services/task-executor/src/main/java/org/vlab/services/VectType.java
===================================================================
--- trunk/vlab/services/task-executor/src/main/java/org/vlab/services/VectType.java 2008-10-29 20:52:43 UTC (rev 1189)
+++ trunk/vlab/services/task-executor/src/main/java/org/vlab/services/VectType.java 2008-10-29 20:54:04 UTC (rev 1190)
@@ -1,25 +0,0 @@
-package org.vlab.services;
-
-import java.util.*;
-
-public class VectType {
-
- private int cardin; /* Zero if not(is_vect) */
- private List elems;// list of param_val; /* Empty if not(is_vect) */
-
-
- public List getElems() {
- return elems;
- }
- public void setElems(List elems) {
- this.elems = elems;
- }
- public int getCardin() {
- return cardin;
- }
- public void setCardin(int cardin) {
- this.cardin = cardin;
- }
-
-
-}
Modified: trunk/vlab/services/task-executor/src/main/java/org/vlab/services/impl/SerialPwscfTask.java
===================================================================
--- trunk/vlab/services/task-executor/src/main/java/org/vlab/services/impl/SerialPwscfTask.java 2008-10-29 20:52:43 UTC (rev 1189)
+++ trunk/vlab/services/task-executor/src/main/java/org/vlab/services/impl/SerialPwscfTask.java 2008-10-29 20:54:04 UTC (rev 1190)
@@ -26,23 +26,21 @@
public class SerialPwscfTask implements TeraGridTask{
- private static SerialPwscfTask instance = null;
- private Properties properties = new Properties();
- private String spool_loc = null;
- private String collectorUrl = null;
- private String myproxy_host = null;
- private String myproxy_port = null;
- private String myproxy_lifetime = null;
- private String community_username = null;
- private String community_passwd = null;
- private String min_remaining_proxy_lifetime = null;
- private String condorGUsername = null;
+ private static SerialPwscfTask instance = null;
+ private Properties properties = new Properties();
+ private String spool_loc = null;
+ private String collectorUrl = null;
+ private String myproxy_host = null;
+ private String myproxy_port = null;
+ private String myproxy_lifetime = null;
+ private String community_username = null;
+ private String community_passwd = null;
+ private String min_remaining_proxy_lifetime = null;
+ private String condorGUsername = null;
-
protected SerialPwscfTask(){
- loadProperties();
-
- }
+ loadProperties();
+ }
public static SerialPwscfTask getInstance(){
if (instance ==null){
@@ -58,15 +56,15 @@
InputStream is =
this.getClass().getClassLoader().getResourceAsStream("TGResource.properties");
properties.load(is);
- spool_loc = properties.getProperty("spool_loc");
- collectorUrl = properties.getProperty("collectorUrl");
- myproxy_host = properties.getProperty("myproxy_host");
- myproxy_port = properties.getProperty("myproxy_port");
- myproxy_lifetime = properties.getProperty("myproxy_lifetime");
- community_username = properties.getProperty("community_username");
- community_passwd = properties.getProperty("community_passwd");
- min_remaining_proxy_lifetime = properties.getProperty("min_remaining_proxy_lifetime");
- condorGUsername = properties.getProperty("condorGUsername");
+ spool_loc = properties.getProperty("spool_loc");
+ collectorUrl = properties.getProperty("collectorUrl");
+ myproxy_host = properties.getProperty("myproxy_host");
+ myproxy_port = properties.getProperty("myproxy_port");
+ myproxy_lifetime = properties.getProperty("myproxy_lifetime");
+ community_username = properties.getProperty("community_username");
+ community_passwd = properties.getProperty("community_passwd");
+ min_remaining_proxy_lifetime = properties.getProperty("min_remaining_proxy_lifetime");
+ condorGUsername = properties.getProperty("condorGUsername");
}catch(Exception e){
System.out.println("Exeption: Loading property file");
e.printStackTrace();
@@ -77,31 +75,31 @@
public String submitJob(String tgGramHostName, String workDir, String batch_sys, String gtVersion)
throws Exception{
- String returnStr = "";
+ String returnStr = "";
+
+ int clusterId = 0;
+ int jobId = 0;
+ String userName = "leesangm";
+ Date date = new Date();
+ long submissionTime = date.getTime();
+ String readableSubmissionTime = date.toString();
+ String executable = TGUtil.generateExcutableLoc(tgGramHostName, "pw.x");
+ String gridResourceVal = TGUtil.generateGridResource(tgGramHostName, batch_sys, gtVersion );
+ String globusRlsVal = TGUtil.generateGlobusRls(tgGramHostName);
- int clusterId = 0;
- int jobId = 0;
- String userName = "leesangm";
- Date date=new Date();
- long submissionTime=date.getTime();
- String readableSubmissionTime=date.toString();
- String executable = TGUtil.generateExcutableLoc(tgGramHostName, "pw.x");
- String gridResourceVal = TGUtil.generateGridResource(tgGramHostName, batch_sys, gtVersion );
- String globusRlsVal = TGUtil.generateGlobusRls(tgGramHostName);
-
//Set up the schedd
- String condorScheddUrl = TGUtil.getScheddUrl(collectorUrl);
- Schedd schedd = new Schedd(new URL(condorScheddUrl));
+ String condorScheddUrl = TGUtil.getScheddUrl(collectorUrl);
+ Schedd schedd = new Schedd(new URL(condorScheddUrl));
//Universal type is GRID
UniverseType universeType = UniverseType.GLOBUS;
//Use the schedd to create a transaction.
//Get the cluster and job ids.
- Transaction xact = schedd.createTransaction();
+ Transaction xact = schedd.createTransaction();
xact.begin(30);
- clusterId = xact.createCluster();
- jobId = xact.createJob(clusterId);
+ clusterId = xact.createCluster();
+ jobId = xact.createJob(clusterId);
TGUtil.createSpoolDir(clusterId, spool_loc);
@@ -171,8 +169,8 @@
if ((schedd.getJobAd(clusterId, jobId)).length==0){
return("There is no job exist.\nCluster ID: "+clusterId+"\nJob ID: "+jobId);
}else{
- ClassAd ad = new ClassAd(schedd.getJobAd(clusterId, jobId));
- status = Integer.parseInt(ad.get("JobStatus"));
+ ClassAd ad = new ClassAd(schedd.getJobAd(clusterId, jobId));
+ status = Integer.parseInt(ad.get("JobStatus"));
}
return statusName[status];
@@ -191,9 +189,9 @@
throw new Exception("There is no output file generated.");
}
- BufferedReader br = new BufferedReader(new FileReader(outputFile));
- String retStr = "";
- String tmpStr = null;
+ BufferedReader br = new BufferedReader(new FileReader(outputFile));
+ String retStr = "";
+ String tmpStr = null;
while (( tmpStr = br.readLine()) != null){
retStr = retStr.concat(tmpStr);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <das...@us...> - 2008-10-29 20:52:46
|
Revision: 1189
http://vlab.svn.sourceforge.net/vlab/?rev=1189&view=rev
Author: dasil014
Date: 2008-10-29 20:52:43 +0000 (Wed, 29 Oct 2008)
Log Message:
-----------
This version just have option to subtmit jobs in Professor Karki labs
Modified Paths:
--------------
trunk/vlab/services/task-executor/src/main/java/org/vlab/services/Executor.java
Modified: trunk/vlab/services/task-executor/src/main/java/org/vlab/services/Executor.java
===================================================================
--- trunk/vlab/services/task-executor/src/main/java/org/vlab/services/Executor.java 2008-10-29 20:50:13 UTC (rev 1188)
+++ trunk/vlab/services/task-executor/src/main/java/org/vlab/services/Executor.java 2008-10-29 20:52:43 UTC (rev 1189)
@@ -2113,7 +2113,30 @@
ScriptContent += "mpirun -np 16 -paramfile $PWD/mpi_parameter -hostfile $PBS_NODEFILE $PWROOT/bin/pw.x -in $PWD/Pwscf_Input2 >> $PWD/Pwscf_Output2;" + "\n";
ScriptContent += "mpirun -np 16 -paramfile $PWD/mpi_parameter -hostfile $PBS_NODEFILE $PWROOT/bin/pw.x -in $PWD/Pwscf_Input3 >> $PWD/Pwscf_Output3;" + "\n";
ScriptContent += "mpirun -np 16 -paramfile $PWD/mpi_parameter -hostfile $PBS_NODEFILE $PWROOT/bin/ph.x -in $PWD/Phonon_Input >> $PWD/Phonon_Output;" + "\n\n";
- }
+ } else if (hostName.equals("calhoun.msi.umn.edu")){
+ ScriptContent += "#!/bin/bash -l\n";
+ ScriptContent += "#PBS -l walltime=10:00:00,mem=4gb,nodes=2:ppn=8\n";
+ ScriptContent += "#PBS -m abe\n";
+ ScriptContent += "cd " + workDir + "\n";
+ ScriptContent += "module load intel\n";
+ ScriptContent += "module load mkl\n";
+ ScriptContent += "module load ompi\n";
+ ScriptContent += "/usr/bin/time mpirun -np 16 -hostfile $PBS_NODEFILE /home/xe1/pedros/bin/pw.x < Pwscf_Input > Pwscf_Output";
+
+ } else if (hostName.equals("tezpur.hpc.lsu.edu")){
+ ScriptContent += "#!/bin/bash \n";
+ ScriptContent += "#PBS -q workq \n";
+ ScriptContent += "#PBS -l nodes=8:ppn=4 \n";
+ ScriptContent += "#PBS -l cput=24:00:00 \n";
+ ScriptContent += "#PBS -l walltime=24:00:00 \n";
+ ScriptContent += "#PBS -j oe \n";
+ ScriptContent += "#PBS -N alpha \n";
+ ScriptContent += "export TMP_DIR=/"+workDir+"/tmp/\n";
+ ScriptContent +="export SCRATCH_DIR=/"+workDir+"\n";
+ ScriptContent += "export NPROCS=`wc -l $PBS_NODEFILE |gawk '//{print $1}\n";
+ ScriptContent += "cd $SCRATCH_DIR\n";
+ ScriptContent += "mpirun -machinefile $PBS_NODEFILE -np $NPROCS $PWD/bin/pw.x < Pwscf_Input > Pwscf_Output";
+ }
}
} catch (Exception ae){
System.err.println("[Executor::createScriptPhonon_BatchMode()] => Error defining the variables: "+ae.getMessage());
@@ -2201,7 +2224,7 @@
* @param gtVersion The version of the globus job manager. This takes 2,3, or 4
* currently only 2 is supported.
*
- * @return String of receipt. Receipt contains basic informatio about thie job submission,
+ * @return String of receipt. Receipt contains basic informatio about this job submission,
* such as cluster ID, job ID and submitted time. The cluster ID
* and job ID are used for the relevant services calls including
* getTeraGridJobStatus() and getTeraGridJobOutput() as parameters.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <das...@us...> - 2008-10-29 20:50:22
|
Revision: 1188
http://vlab.svn.sourceforge.net/vlab/?rev=1188&view=rev
Author: dasil014
Date: 2008-10-29 20:50:13 +0000 (Wed, 29 Oct 2008)
Log Message:
-----------
This new version of aproxeqst reads the cell volume from newer versions of PWscf.
Modified Paths:
--------------
trunk/vlab/services/pwscf-input-splitter/src/main/native/aproxeqst.c
Modified: trunk/vlab/services/pwscf-input-splitter/src/main/native/aproxeqst.c
===================================================================
--- trunk/vlab/services/pwscf-input-splitter/src/main/native/aproxeqst.c 2008-10-29 20:43:57 UTC (rev 1187)
+++ trunk/vlab/services/pwscf-input-splitter/src/main/native/aproxeqst.c 2008-10-29 20:50:13 UTC (rev 1188)
@@ -134,7 +134,7 @@
}
-static double cellvol(double (*CellExt)[3])
+static double cellvolold(double (*CellExt)[3])
{
short i, j, k;
VDat cell[3];
@@ -161,7 +161,35 @@
return c;
}
+static double cellvol(double (*CellExt)[3])
+{
+ short i, j, k;
+ VDat cell[3];
+ double a,b,c;
+ for (i = 0; i <= 2; i++) {
+ cell[0][i] = CellExt[0][i];
+ cell[1][i] = CellExt[1][i];
+ cell[2][i] = CellExt[2][i];
+ }
+
+ c = 0.0;
+ a = cell[0][0] * cell[1][1] * cell[2][2];
+ b = cell[0][2] * cell[1][1] * cell[2][0];
+ c = c + a - b;
+
+ a = cell[0][1] * cell[1][2] * cell[2][0];
+ b = cell[0][0] * cell[1][2] * cell[2][1];
+ c = c + a - b;
+
+ a = cell[0][2] * cell[1][0] * cell[2][1];
+ b = cell[0][1] * cell[1][0] * cell[2][2];
+ c = c + a - b;
+
+ printf(" %9.2f",c);
+ return c;
+}
+
static void genwild(double Cell0Vol, double k0, double kl, short npress,
double *presslist, double (*Cell0)[3])
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <das...@us...> - 2008-10-29 20:43:59
|
Revision: 1187
http://vlab.svn.sourceforge.net/vlab/?rev=1187&view=rev
Author: dasil014
Date: 2008-10-29 20:43:57 +0000 (Wed, 29 Oct 2008)
Log Message:
-----------
Fixed some bugs to deal with negative frequency on final results of high temperature
Modified Paths:
--------------
trunk/vlab/services/project-executor/src/main/resources/scripts/r_filter_direct_final.sh
trunk/vlab/services/project-executor/src/main/resources/scripts/zipFile2.sh
Modified: trunk/vlab/services/project-executor/src/main/resources/scripts/r_filter_direct_final.sh
===================================================================
--- trunk/vlab/services/project-executor/src/main/resources/scripts/r_filter_direct_final.sh 2008-10-29 20:40:51 UTC (rev 1186)
+++ trunk/vlab/services/project-executor/src/main/resources/scripts/r_filter_direct_final.sh 2008-10-29 20:43:57 UTC (rev 1187)
@@ -8,19 +8,13 @@
FILEMODES="matdyn"
STARTCOUNT=1
+
+ rm phon
-
- echo "XXX" > phon
- echo "YYY" >> phon
- echo "Number of volumes (nv), q-vectors (nq), normal modes (np), formula units(nm):" >> phon
-
# Counts the number of directories ( = Num. of Volumes)
countfiles=$STARTCOUNT
DDIR="__CC5f_$countfiles"
- cp $DDIR/__qpoints ./qpw
- awk ' {print " " $2 " " $3 " " $4 " " $5}' qpw > __qp_listW__
-
while [ -d $DDIR ]; do
countfiles=$(( $countfiles + 1 ))
@@ -29,23 +23,19 @@
done
countvolumes=$(( $countfiles - 1 ))
-
- count_q=`cat __qp_listW__ | wc -l`
- sed 's/=/ = /' __CC5f_1/__p1_1/Pwscf_Input2 > __midf1
- count_modes=`awk '/nat/ {print $3}' __midf1 | tail -n 1`
-
- count_modes2=$(( $count_modes * 3 ))
-
- echo " " $countvolumes " " $count_q " " $count_modes2 " 1" >> phon
-
countfiles=$STARTCOUNT
DDIR="__CC5f_$countfiles"
-
+
while [ -d $DDIR ]; do
cd $DDIR
+
+ if [ -f Phon_Vol ]; then
+ rm Phon_Vol
+ fi
+
countphdir=1
phDIR=__p$countfiles"_"$countphdir
@@ -64,11 +54,13 @@
/exit/ { print "";
P=0.1*P;
print "P= " P " V= " V " E= " E;
- }' cellvol_loc2 >> phon_loc
+ }' cellvol_loc2 >> Phon_Vol
- cat phon_loc >> ../phon
- rm cellvol_loc1 cellvol_loc2 phon_loc
+ rm cellvol_loc1 cellvol_loc2
+
+ echo "$DDIR"
+ FAILED=0
while [ -d $phDIR ]; do
cd $phDIR
@@ -79,8 +71,15 @@
awk '/q =/ { print " " $3 " " $4 " " $5;
next; }' __qpts2 | tail -n 1 > phon_loc
awk '/omega/ { print $4;}' __qpts2 >> phon_loc
-
- cat phon_loc >> ../../phon
+
+ NNN=`cat phon_loc | wc -w`
+
+ if [ $NNN -ne 9 ]; then
+ echo " " $phDIR " " $NNN " <<======"
+ FAILED=$(( $FAILED + 1 ))
+ else
+ cat phon_loc >> ../Phon_Vol
+ fi
rm __qpts1 __qpts2
@@ -90,10 +89,49 @@
cd ..
done
+ if [ $FAILED -gt 0 ]; then
+ rm Phon_Vol
+ countvolumes=$(( $countvolumes - 1 ))
+ fi
+
cd ..
+
countfiles=$(( $countfiles + 1 ))
DDIR="__CC5f_$countfiles"
+ done
+
+ echo "XXX" > phon
+ echo "YYY" >> phon
+ echo "Number of volumes (nv), q-vectors (nq), normal modes (np), formula units(nm):" >> phon
+
+ countfiles=$STARTCOUNT
+ DDIR="__CC5f_$countfiles"
+
+ cp $DDIR/__qpoints ./qpw
+ awk ' {print " " $2 " " $3 " " $4 " " $5}' qpw > __qp_listW__
+
+ count_q=`cat __qp_listW__ | wc -l`
+
+ sed 's/=/ = /' __CC5f_1/__p1_1/Pwscf_Input2 > __midf1
+ count_modes=`awk '/nat/ {print $3}' __midf1 | tail -n 1`
+
+ count_modes2=$(( $count_modes * 3 ))
+
+ echo " " $countvolumes " " $count_q " " $count_modes2 " 1" >> phon
+
+ while [ -d $DDIR ]; do
+
+ cd $DDIR
+
+ if [ -f Phon_Vol ]; then
+ cat Phon_Vol >> ../phon
+ fi
+
+ cd ..
+ countfiles=$(( $countfiles + 1 ))
+ DDIR="__CC5f_$countfiles"
+
done
echo "weight " >> phon
Modified: trunk/vlab/services/project-executor/src/main/resources/scripts/zipFile2.sh
===================================================================
--- trunk/vlab/services/project-executor/src/main/resources/scripts/zipFile2.sh 2008-10-29 20:40:51 UTC (rev 1186)
+++ trunk/vlab/services/project-executor/src/main/resources/scripts/zipFile2.sh 2008-10-29 20:43:57 UTC (rev 1187)
@@ -1 +1 @@
-zip -r download.zip $1
+zip hightempfile.zip $1
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <das...@us...> - 2008-10-29 20:40:55
|
Revision: 1186
http://vlab.svn.sourceforge.net/vlab/?rev=1186&view=rev
Author: dasil014
Date: 2008-10-29 20:40:51 +0000 (Wed, 29 Oct 2008)
Log Message:
-----------
Initial classes to create a data model to deal with start/resume option inside workflow.
Added Paths:
-----------
trunk/vlab/services/project-executor/src/main/java/org/vlab/services/ExecutionHistory.java
trunk/vlab/services/project-executor/src/main/java/org/vlab/services/IntermediatePhase.java
trunk/vlab/services/project-executor/src/main/java/org/vlab/services/PhaseProject.java
Added: trunk/vlab/services/project-executor/src/main/java/org/vlab/services/ExecutionHistory.java
===================================================================
--- trunk/vlab/services/project-executor/src/main/java/org/vlab/services/ExecutionHistory.java (rev 0)
+++ trunk/vlab/services/project-executor/src/main/java/org/vlab/services/ExecutionHistory.java 2008-10-29 20:40:51 UTC (rev 1186)
@@ -0,0 +1,27 @@
+package org.vlab.services;
+
+import java.util.List;
+
+public class ExecutionHistory {
+
+ private int ID;
+ private String Status;
+ private List ExecutionHistoryList;
+
+
+ public ExecutionHistory(){
+ System.out.println("");
+ }
+
+ /*
+ * List of Status
+ * 0 - Unitialized
+ * 1 - Running
+ * 2 - Completed
+ * 3 - Canceled
+ * 4 - Failed
+ * 5 - Resumed
+ */
+
+
+}
Added: trunk/vlab/services/project-executor/src/main/java/org/vlab/services/IntermediatePhase.java
===================================================================
--- trunk/vlab/services/project-executor/src/main/java/org/vlab/services/IntermediatePhase.java (rev 0)
+++ trunk/vlab/services/project-executor/src/main/java/org/vlab/services/IntermediatePhase.java 2008-10-29 20:40:51 UTC (rev 1186)
@@ -0,0 +1,9 @@
+package org.vlab.services;
+
+public class IntermediatePhase {
+
+ private boolean copydata;
+
+ private boolean replacedata;
+
+}
Added: trunk/vlab/services/project-executor/src/main/java/org/vlab/services/PhaseProject.java
===================================================================
--- trunk/vlab/services/project-executor/src/main/java/org/vlab/services/PhaseProject.java (rev 0)
+++ trunk/vlab/services/project-executor/src/main/java/org/vlab/services/PhaseProject.java 2008-10-29 20:40:51 UTC (rev 1186)
@@ -0,0 +1,28 @@
+package org.vlab.services;
+
+public class PhaseProject {
+
+
+ public String phasename;
+
+ public boolean setvariable;
+
+ public boolean packagegeneration;
+
+ public String Status;
+
+ public boolean distributor;
+
+ public boolean taskexecution;
+
+ public boolean datarecollection;
+
+ public PostProcessing postprocess;
+
+ public IntermediatePhase intermediate;
+
+
+ public boolean completed;
+
+
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <das...@us...> - 2008-10-29 20:39:07
|
Revision: 1185
http://vlab.svn.sourceforge.net/vlab/?rev=1185&view=rev
Author: dasil014
Date: 2008-10-29 20:39:04 +0000 (Wed, 29 Oct 2008)
Log Message:
-----------
This class has the settings to dispatch the jobs to the Task Dispatcher web service. This class has methods that insert data into a object list based on directory structure of the execution packages, with different options distinct project types.
Added Paths:
-----------
trunk/vlab/services/project-executor/src/main/java/org/vlab/services/DispatcherSetting.java
Added: trunk/vlab/services/project-executor/src/main/java/org/vlab/services/DispatcherSetting.java
===================================================================
--- trunk/vlab/services/project-executor/src/main/java/org/vlab/services/DispatcherSetting.java (rev 0)
+++ trunk/vlab/services/project-executor/src/main/java/org/vlab/services/DispatcherSetting.java 2008-10-29 20:39:04 UTC (rev 1185)
@@ -0,0 +1,587 @@
+package org.vlab.services;
+
+import java.io.*;
+
+public class DispatcherSetting {
+
+ public static Receipt setDispSetting(Receipt projectReceipt, Receipt phaseReceipt, String projectType, Boolean phaseOption){
+
+ System.out.println("\n Here I just start the ProjectExecutor::setDispSetting \n");
+
+ String[] ListOfPackages = null;
+ String ActuallyPackage = null;
+ DispatchTask[] dispatch = null;
+
+ try{
+ ListOfPackages = ListPackages(projectType, phaseOption);
+ } catch (Exception ae){
+ System.err.println("[ProjectExecutor::setDispSetting()] Error getting the list of packages: "+ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+
+ //TotalJobs
+
+ try{
+ dispatch = new DispatchTask[ListOfPackages.length];
+
+ for(int i=0;i<ListOfPackages.length;i++){
+
+ //try{
+ ActuallyPackage = ListOfPackages[i];
+
+ dispatch[i] = new DispatchTask(i, "THREAD:"+i);
+ System.out.println("START: " + dispatch[i].getName());
+
+ dispatch[i].setProjectId(ProjectExecutor.projectId);
+
+ dispatch[i].setProjectName(ProjectExecutor.projectName);
+
+ dispatch[i].setProjectType(projectType);
+
+ dispatch[i].setFullPackageName(ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName + ActuallyPackage);
+
+ dispatch[i].setZipFileName(ActuallyPackage);
+
+ dispatch[i].setTdUrl(ProjectExecutor.tdUrl);
+ dispatch[i].start();
+ dispatch[i].join();
+ //dispatch[i].sleep(2000);
+ }
+ } catch (Exception ae){
+ System.err.println("[ProjectExecutor::setDispSetting()] Error starting up the thread for submission: "+ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+
+
+ try{
+
+ dispatch[ListOfPackages.length-1].join();
+
+ for(int j=0;j<ListOfPackages.length;j++){
+ try{
+ if (dispatch[j].isAlive()){
+ System.out.println("Here I will do the join of: "+dispatch[j].getName());
+ dispatch[j].join();
+ }
+ }catch (Exception ae){
+ System.err.println("[ProjecExecutor::setDispSetting()] => Error catching up the task receipt: " + ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+ }
+
+
+ if (projectType.equals("1")) ReceiptManagement.setClosePhaseReceiptFastRefine("Dispatcher", projectReceipt, phaseReceipt);
+
+ if (projectType.equals("2") && phaseOption.booleanValue()==true) {
+ projectReceipt = ReceiptManagement.setClosePhaseReceiptFastRefine("Dispatcher", projectReceipt, phaseReceipt);
+ }
+
+ if (projectType.equals("2") && phaseOption.booleanValue()==false) {
+ projectReceipt = ReceiptManagement.setClosePhaseReceiptLongRefine("Dispatcher", projectReceipt, phaseReceipt, phaseOption);
+ }
+
+ projectReceipt = ReceiptManagement.setCloseProjectReceipt(projectReceipt);
+
+
+ } catch (Exception ae){
+ System.err.println("[ProjectExecutor::setDispSetting()] => Error finishing the start up of the Tasks");
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+
+ return projectReceipt;
+ }
+
+ public static Receipt setDispSettingCij(Receipt projectReceipt, Receipt phaseReceipt, String projectType, Boolean phaseOption){
+
+ System.out.println("\n Here I just start the ProjectExecutor::setDispSettingCij \n");
+
+ String[] ListOfPackages = null;
+
+ String[] ListOfEEPackages = null;
+
+ String ActuallyCCPackage = null;
+ String ActuallyEEPackage = null;
+ DispatchTask[][] dispatch = null;
+ int Index_i = 0;
+ int Index_j = 0;
+ int Index_EE[] = null;
+
+ try{
+ ListOfPackages = ListPackages(projectType, phaseOption);
+ if (ListOfPackages.length > 0){
+ ActuallyCCPackage = ListOfPackages[0];
+ ListOfEEPackages = ListEEPackages(ActuallyCCPackage, false);
+ }
+ Index_EE = new int[ListOfPackages.length];
+ } catch (Exception ae){
+ System.err.println("[ProjectExecutor::setDispSettingCij()] Error Taking the list of tasks for Cij: "+ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+
+ try{
+ dispatch = new DispatchTask[ListOfPackages.length][ListOfEEPackages.length];
+
+ for(Index_i=0;Index_i<ListOfPackages.length; Index_i++){
+
+ ActuallyCCPackage = ListOfPackages[Index_i];
+ System.out.println("ProjectExecutor::setDispSettingCij() => Actually package is: " + ActuallyCCPackage);
+ ListOfEEPackages = ListEEPackages(ActuallyCCPackage, true);
+
+ Index_EE[Index_i] = ListOfEEPackages.length;
+
+ for(Index_j=0; Index_j < ListOfEEPackages.length; Index_j++){
+
+ try{
+ ActuallyEEPackage = ListOfEEPackages[Index_j];
+
+ dispatch[Index_i][Index_j] = new DispatchTask(Index_i+Index_j, "THREAD:"+Index_i+":"+Index_j);
+
+ System.out.println("START: " + dispatch[Index_i][Index_j].getName());
+ dispatch[Index_i][Index_j].setProjectId(ProjectExecutor.projectId);
+
+ dispatch[Index_i][Index_j].setProjectName(ProjectExecutor.projectName);
+
+ dispatch[Index_i][Index_j].setProjectType(projectType);
+
+ dispatch[Index_i][Index_j].setFullPackageName(ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName + "/" + ActuallyCCPackage.substring(0,ActuallyCCPackage.length()-4) + "/"+ActuallyEEPackage+".zip");
+
+ dispatch[Index_i][Index_j].setZipFileName(ActuallyEEPackage+".zip");
+
+ dispatch[Index_i][Index_j].setTdUrl(ProjectExecutor.tdUrl);
+ dispatch[Index_i][Index_j].start();
+ //dispatch[Index_i][Index_j].sleep(2000);
+ dispatch[Index_i][Index_j].join();
+
+ }catch (Exception ae){
+ System.err.println("[ProjecExecutor::setDispSettingCij()] => Error: " + ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+ }
+ }
+
+ dispatch[ListOfPackages.length-1][ListOfEEPackages.length-1].join();
+
+ System.out.println("THE SIZE OF INDEX_EE: "+Index_EE.length);
+
+ for(int i=0;i<Index_EE.length;i++){
+
+ System.out.println("Index_EE.length: "+Index_EE.length+" and inside the index: "+i+" I have: "+Index_EE[i]);
+
+ for(int j=0;j<Index_EE[i]; j++){
+
+ System.out.println("Thread: "+i+":"+j);
+
+ try{
+ if (dispatch[i][j].isAlive()) {
+ System.out.println("dispatch["+i+"]["+j+"]: " + dispatch[i][j].getName());
+ dispatch[i][j].join();
+ }
+ //else{
+ // System.out.println("Thread: "+i+":"+j+" died");
+ // if (projectType.equals("3")) setClosePhaseReceiptCij();
+ // setCloseProjectReceipt();
+ //}
+
+ }catch (Exception ae){
+ System.err.println("[ProjecExecutor::setDispSettingCij()] => Error trying to join the thread: " + ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+ }
+ }
+
+
+ if (projectType.equals("3")) {
+ projectReceipt = ReceiptManagement.setClosePhaseReceiptCij("Dispatcher", projectReceipt, phaseReceipt, phaseOption);
+ }
+
+ projectReceipt = ReceiptManagement.setCloseProjectReceipt(projectReceipt);
+
+ //setCloseProjectReceipt();
+ } catch(Exception ae){
+ System.err.println("[ProjectExecutor::setDispSettingCij()] Error Sending the Cij packages to Task Dispatcher: "+ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+ return projectReceipt;
+ }
+
+ public static Receipt setDispSettingHighTPThermo(Receipt projectReceipt, Receipt phaseReceipt, String projectType, Boolean phaseOption){
+
+ System.out.println("\n Here I just start the ProjectExecutor::setDispSettingHighTPThermo \n");
+ //List the packages of __CC5f_1
+ String[] ListOfPackages = null;
+
+ String[] ListOfPHPackages = null;
+
+ String ActuallyCCPackage = null;
+ String ActuallyPHPackage = null;
+ DispatchTask[][] dispatch = null;
+ int Index_i = 0;
+ int Index_j = 0;
+ int Index_PH[] = null;
+
+ int JobTotal = 0;
+
+ try{
+ ListOfPackages = ListPackages(projectType, phaseOption);
+ if (ListOfPackages.length > 0){
+ ActuallyCCPackage = ListOfPackages[0];
+ ListOfPHPackages = ListPHPackages(ActuallyCCPackage, false);
+ }
+ Index_PH = new int[ListOfPackages.length];
+ } catch(Exception ae){
+ System.err.println("[ProjectExecutor::setDispSettingHighTPThermo()] Error taking the list packages of HighTP thermo: "+ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+
+ try{
+ dispatch = new DispatchTask[ListOfPackages.length][ListOfPHPackages.length];
+
+ for(Index_i=0;Index_i<ListOfPackages.length; Index_i++){
+
+ ActuallyCCPackage = ListOfPackages[Index_i];
+ System.out.println("ProjectExecutor::setDispSettingHighTPThermo() => Actually package is: " + ActuallyCCPackage);
+ ListOfPHPackages = ListPHPackages(ActuallyCCPackage, true);
+
+ Index_PH[Index_i] = ListOfPHPackages.length;
+
+ for(Index_j=0; Index_j < ListOfPHPackages.length; Index_j++){
+
+ try{
+ ActuallyPHPackage = ListOfPHPackages[Index_j];
+
+ dispatch[Index_i][Index_j] = new DispatchTask(Index_i + Index_j, "THREAD:"+Index_i+":"+Index_j);
+
+ System.out.println("START: " + dispatch[Index_i][Index_j].getName() + " PCK: " + ListOfPHPackages[Index_j]);
+
+ dispatch[Index_i][Index_j].setProjectId(ProjectExecutor.projectId);
+
+ dispatch[Index_i][Index_j].setProjectName(ProjectExecutor.projectName);
+
+ dispatch[Index_i][Index_j].setFullPackageName(ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName + "/" + ActuallyCCPackage.substring(0,ActuallyCCPackage.length()-4) + "/"+ActuallyPHPackage+".zip");
+
+ dispatch[Index_i][Index_j].setZipFileName(ActuallyPHPackage+".zip");
+
+ dispatch[Index_i][Index_j].setTdUrl(ProjectExecutor.tdUrl);
+
+ dispatch[Index_i][Index_j].setProjectType(projectType);
+
+ dispatch[Index_i][Index_j].start();
+ dispatch[Index_i][Index_j].join();
+
+ //dispatch[Index_i][Index_j].sleep(2000);
+ JobTotal++;
+
+ }catch (Exception ae){
+ System.err.println("[ProjecExecutor::setDispSettingHighTPThermo()] => Error: " + ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+ }
+ }
+
+ //dispatch[ListOfPackages.length-1][ListOfPHPackages.length-1].join();
+
+ System.out.println("THE SIZE OF INDEX_PH: "+Index_PH.length);
+
+ System.out.println("My Job Total is: " + JobTotal);
+
+ for(int i=0;i<Index_PH.length;i++){
+
+ System.out.println("Index_EE.length: "+Index_PH.length+" and inside the index: "+i+" I have: "+Index_PH[i]);
+
+ for(int j=0;j<Index_PH[i]; j++){
+
+ System.out.println("Thread: "+i+":"+j);
+
+ //if ( ((i/2)==0) && ((j/2)==0) ){
+ // if (projectType.equals("4")) setClosePhaseReceiptHighTPTHermo();
+ // setCloseProjectReceipt();
+ //}
+ try{
+ if (dispatch[i][j].isAlive()) {
+ System.out.println("dispatch["+i+"]["+j+"]: " + dispatch[i][j].getName());
+ dispatch[i][j].sleep(1000);
+ dispatch[i][j].join();
+ //setClosePhaseReceiptHighTPTHermo();
+ //setCloseProjectReceipt();
+ }
+ else{
+ System.out.println("Thread: "+i+":"+j+" died");
+ //if (projectType.equals("4")) ProjectExecutor.setClosePhaseReceiptHighTPTHermo("DispHigh Thermo inside the loop");
+ //ProjectExecutor.setCloseProjectReceipt();
+ }
+
+ }catch (Exception ae){
+ System.err.println("[ProjecExecutor::setDispSettingHighTPThermo()] => Error trying to join the thread: " + ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+ }
+ }
+
+ //if (ProjectExecutor.projectType.equals("4")) ProjectExecutor.setClosePhaseReceiptHighTPTHermo("DispHigh Thermo");
+
+ if (projectType.equals("4")) {
+ projectReceipt = ReceiptManagement.setClosePhaseReceiptHighTPTHermo("Dispatcher", projectReceipt, phaseReceipt, phaseOption);
+ }
+
+ projectReceipt = ReceiptManagement.setCloseProjectReceipt(projectReceipt);
+
+ //ProjectExecutor.setCloseProjectReceipt();
+ } catch (Exception ae){
+ System.err.println("[ProjectExecutor::setDispSettingHighTPThermo()] Error sending the HighTP pakcages to Task Dispatcher: "+ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+
+ return projectReceipt;
+ }
+
+ public static String[] ListPackages(String projectType, Boolean phaseOption){
+
+ System.out.println(" Here I start the ProjectExecutor::ListPackage() ");
+ File DirOfPackages = null;
+ String[] ListOfFiles = null;
+ FilenameFilter filter = null;
+
+ try{
+ DirOfPackages = new File(ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName);
+
+ if (projectType.equals("1")){
+ filter = new FilenameFilter( ){
+ public boolean accept(File dir, String name){
+ return name.matches("SingleCalc.*.zip");
+ }
+ };
+ }
+
+ if (projectType.equals("2") && phaseOption.booleanValue()==false){
+ System.out.println("\n It means you choose LONG REFINE");
+ filter = new FilenameFilter(){
+ public boolean accept(File dir, String name){
+ return name.matches("__CC5f.*.zip");
+ }
+ };
+ }
+
+ if (projectType.equals("2") && phaseOption.booleanValue()==true){
+ System.out.println("\n It means you choose FAST REFINE");
+ filter = new FilenameFilter( ){
+ public boolean accept(File dir, String name){
+ return name.matches("__AA5f.*.zip");
+ }
+ };
+ }
+
+ if (projectType.equals("3") && phaseOption.booleanValue()==false){
+ System.out.println("\n It means you may chose Cij");
+ filter = new FilenameFilter(){
+ public boolean accept(File dir, String name){
+ return name.matches("__CC5f.*.zip");
+ }
+ };
+ }
+
+ if (projectType.equals("4")){
+ System.out.println("\n It means you may chose HiTP Thermo");
+ filter = new FilenameFilter(){
+ public boolean accept(File dir, String name){
+ return name.matches("__CC5f.*.zip");
+ }
+ };
+ }
+
+ ListOfFiles = DirOfPackages.list(filter);
+
+ System.out.println("I have the following packages: \n");
+ if (ListOfFiles != null) {
+ for (int i=0; i<ListOfFiles.length; i++) {
+ // Get filename of file or directory
+ String FileLabel = ListOfFiles[i];
+ System.out.println(FileLabel);
+ }
+ }
+
+ }catch(Exception ae){
+ System.err.println("[DispatcherSetting::ListPackage()] => Error: " + ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+ return ListOfFiles;
+ }
+
+ public static String[] ListEEPackages(String CCAtuallyPackage, boolean needszipfile){
+
+ System.out.println(" Here I start the ProjectExecutor::ListEEPackages() ");
+ File DirOfPackages = null;
+ String[] ListOfFiles = null;
+ FilenameFilter filter = null;
+
+
+ try{
+ DirOfPackages = new File(ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName + CCAtuallyPackage.substring(0, CCAtuallyPackage.length()-4));
+
+ System.out.println("\n It means you choose LONG REFINE and package path is: " + DirOfPackages.getAbsolutePath());
+ filter = new FilenameFilter(){
+ public boolean accept(File dir, String name){
+ return name.startsWith("__EEf");
+ }
+ };
+
+ ListOfFiles = DirOfPackages.list(filter);
+
+ System.out.println("I have the following packages: \n");
+ if (ListOfFiles != null && needszipfile == true) {
+ for (int i=0; i<ListOfFiles.length; i++) {
+ // Get filename of file or directory
+ String FileLabel = ListOfFiles[i];
+ System.out.println(FileLabel);
+ setZipPackageEE(DirOfPackages.getAbsolutePath(), FileLabel);
+ }
+ }
+
+ }catch(Exception ae){
+ System.err.println("[ProjectExecutor::ListEEPackages()] => Error: " + ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+ return ListOfFiles;
+ }
+
+ public static String[] ListPHPackages(String CCAtuallyPackage, boolean needszipfile){
+
+ System.out.println(" Here I start the ProjectExecutor::ListPHPackages() ");
+ File DirOfPackages = null;
+ String[] ListOfFiles = null;
+ FilenameFilter filter = null;
+
+ try{
+ DirOfPackages = new File(ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName + CCAtuallyPackage.substring(0, CCAtuallyPackage.length()-4));
+
+ System.out.println("\n It means you choose LONG REFINE and package path is: " + DirOfPackages.getAbsolutePath());
+ filter = new FilenameFilter(){
+ public boolean accept(File dir, String name){
+ return name.startsWith("__p");
+ }
+ };
+
+ ListOfFiles = DirOfPackages.list(filter);
+
+ System.out.println("I have the following packages: \n");
+ if (ListOfFiles != null && needszipfile == true) {
+ for (int i=0; i<ListOfFiles.length; i++) {
+ //Get filename of file or directory
+ String FileLabel = ListOfFiles[i];
+ System.out.println(FileLabel);
+ setZipPackagePH(DirOfPackages.getAbsolutePath(), FileLabel);
+ }
+ }
+
+ }catch(Exception ae){
+ System.err.println("[ProjectExecutor::ListEEPackages()] => Error: " + ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+ return ListOfFiles;
+ }
+
+
+
+ private static void setZipPackageEE(String workDir, String ActuallyPackageToZip){
+
+ System.out.println("\n Here I start the setZipPackageEE(String) I got the : " + ActuallyPackageToZip);
+
+ InputStream stderr = null;
+ InputStreamReader isr_err = null;
+ BufferedReader br_err = null;
+ InputStream stdin = null;
+ InputStreamReader isr_stdin = null;
+ BufferedReader br_stdin = null;
+ String returnMessage = null;
+ int exitValue = 0;
+
+
+
+ try{
+ File FileDir = new File(workDir);
+ String[] fullcommand = { ProjectExecutor.ENV_SCRIPT +"zipFile.sh",ActuallyPackageToZip};
+ Runtime Rt = Runtime.getRuntime();
+ Process procShell = Rt.exec(fullcommand, null , FileDir);
+
+ stderr = procShell.getErrorStream();
+ isr_err = new InputStreamReader(stderr);
+ br_err = new BufferedReader(isr_err);
+
+ stdin = procShell.getInputStream();
+ isr_stdin = new InputStreamReader(stdin);
+ br_stdin = new BufferedReader(isr_stdin);
+
+ for(int j=0;(returnMessage = br_stdin.readLine()) != null;j++){
+ System.out.println("Output >> " + returnMessage);
+ }
+ exitValue = procShell.waitFor();
+ System.out.println("Exit Status: "+exitValue);
+
+ } catch (Exception ae){
+
+ System.err.println("[ProjectExecutor:setZipPackageEE()] => Error: " + ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+ }
+
+ private static void setZipPackagePH(String workDir, String ActuallyPackageToZip){
+
+ System.out.println("\n Here I start the setZipPackagePH(String) I got the : " + ActuallyPackageToZip);
+
+ InputStream stderr = null;
+ InputStreamReader isr_err = null;
+ BufferedReader br_err = null;
+ InputStream stdin = null;
+ InputStreamReader isr_stdin = null;
+ BufferedReader br_stdin = null;
+ String returnMessage = null;
+ int exitValue = 0;
+
+ try{
+ File FileDir = new File(workDir);
+ String[] fullcommand = { ProjectExecutor.ENV_SCRIPT +"zipFile.sh",ActuallyPackageToZip};
+ Runtime Rt = Runtime.getRuntime();
+ Process procShell = Rt.exec(fullcommand, null , FileDir);
+
+ stderr = procShell.getErrorStream();
+ isr_err = new InputStreamReader(stderr);
+ br_err = new BufferedReader(isr_err);
+
+ stdin = procShell.getInputStream();
+ isr_stdin = new InputStreamReader(stdin);
+ br_stdin = new BufferedReader(isr_stdin);
+
+ for(int j=0;(returnMessage = br_stdin.readLine()) != null;j++){
+ System.out.println("Output >> " + returnMessage);
+ }
+ exitValue = procShell.waitFor();
+ System.out.println("Exit Status: "+exitValue);
+
+ } catch (Exception ae){
+
+ System.err.println("[ProjectExecutor:setZipPackagePH()] => Error: " + ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+ }
+
+
+
+
+
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <das...@us...> - 2008-10-29 20:33:16
|
Revision: 1184
http://vlab.svn.sourceforge.net/vlab/?rev=1184&view=rev
Author: dasil014
Date: 2008-10-29 20:33:14 +0000 (Wed, 29 Oct 2008)
Log Message:
-----------
Lightweight class with fewer methods, but it still needs to be smaller.
Modified Paths:
--------------
trunk/vlab/services/project-executor/src/main/java/org/vlab/services/ProjectExecutor.java
Modified: trunk/vlab/services/project-executor/src/main/java/org/vlab/services/ProjectExecutor.java
===================================================================
--- trunk/vlab/services/project-executor/src/main/java/org/vlab/services/ProjectExecutor.java 2008-10-29 20:14:14 UTC (rev 1183)
+++ trunk/vlab/services/project-executor/src/main/java/org/vlab/services/ProjectExecutor.java 2008-10-29 20:33:14 UTC (rev 1184)
@@ -50,26 +50,26 @@
public static Receipt phaseReceipt5; /*HiPT Thermo*/
public static Receipt phaseReceipt6; /*HiPT Cij*/
- private static List ListPhaseReceipt = null;
- private static List ListTaskReceipt = null;
+ //private static List ListPhaseReceipt = null;
+ public static List ListTaskReceipt = null;
- private static String ENV_PACKAGE_DIR;
+ public static String ENV_PACKAGE_DIR;
private String ENV_LOG_DIR; /* ENV_LOG_DIR + ProjectId_ + ProjectName*/
- private String ENV_SCRIPT;
- private String zipFileName;
+ public static String ENV_SCRIPT;
+ public static String zipFileName;
private String logFileName;
- private static String dirEPName;
- private static String projectId;
- private static String projectName;
+ public static String dirEPName;
+ public static String projectId;
+ public static String projectName;
public static String projectType; /* These types can be single, Equation of State(Fast Refine & Long Refine) & Cij*/
- private static String projectUserName;
+ public static String projectUserName;
- private static String dbFlavor;
- private static String dbDriver;
- private static String dbHostName;
- private static String dbPortNumber;
- private static String dbUserName;
- private static String dbPassword;
+ public static String dbFlavor;
+ public static String dbDriver;
+ public static String dbHostName;
+ public static String dbPortNumber;
+ public static String dbUserName;
+ public static String dbPassword;
private String compound;
//private TaskDistributor disp = null;
@@ -78,22 +78,22 @@
private ElasPwscfBean ComplexCalcInput = null;
private String initialInput = null;
- private String stringResultFit = "";
+ private static String stringResultFit = "";
private String stringCijOutput = "";
private String filetodb = "";
public static final String INPUT_GENERIC = "GenericInput";
private int qtdpackages;
- private String crystalType;
+ private static String crystalType;
private String fullpathproject;
private String newInputEdited;
- private String tablesemaphore;
- private String numofupdate;
- private String receiptStringFromDb;
+ private static String tablesemaphore;
+ private static String numofupdate;
+ private static String receiptStringFromDb;
private String kindPhase;
private String esgUrl;
- private static String tdUrl;
+ public static String tdUrl;
public static int taskFinishedP = 0;
public static String batchMode;
@@ -105,19 +105,19 @@
public ProjectExecutor(){
projectReceipt = new Receipt();
-
+ /*
phaseReceipt1 = new Receipt();
phaseReceipt2 = new Receipt();
phaseReceipt3 = new Receipt();
phaseReceipt4 = new Receipt();
phaseReceipt5 = new Receipt();
phaseReceipt6 = new Receipt();
-
- ListPhaseReceipt = new Vector();
+ */
-
loadProperties();
+ ListTaskReceipt = new Vector();
+
}
// SETTERS
@@ -133,7 +133,6 @@
this.pesdataexecutionpackage = newPesdataexecutionpackage;
}
-
public static void setDirEPName(){
dirEPName = projectId + "_" + projectName + "/";
}
@@ -254,7 +253,7 @@
} catch (Exception ae){
System.err.println("[ProjectExecutor::loadProperties] Error loading resource properties => "+ae.getMessage());
ae.printStackTrace();
- System.exit(-1);
+ //System.exit(-1);
}
this.dbFlavor = proper.getProperty("DBFLAV");
@@ -292,697 +291,7 @@
System.out.println("DBUSERNAME => " + dbUserName);
System.out.println("DBPASS => " + dbPassword);
}
-
- public static synchronized void setProjectReceipt(){
-
- /*Set the right path for Project*/
- setDirEPName();
- /*if (projectType.equals("1"))
- ListPhaseReceipt1 = new ArrayList();
- else if (projectType.equals("2") && phaseOption.booleanValue()==false)
- ListPhaseReceipt2 = new ArrayList();
- else if (projectType.equals("2") && phaseOption.booleanValue()==true)
- ListPhaseReceipt3 = new ArrayList();
- else{
- ListPhaseReceipt4 = new ArrayList();
- }*/
-
- List bdataContentProject = new Vector();
- Bdata bdataData = null;
-
- try{
- /*Project Receipt*/
- projectReceipt.setCode("001");
- projectReceipt.setKind("Project");
- projectReceipt.setProjectid(getProjectId());
- projectReceipt.setProjectname(getProjectName());
- System.out.println("\nHere I set the inittial projectReceipt\n");
-
- bdataData = new Bdata();
- bdataData.setId("009");
- bdataData.setCode("EnvLogDir");
- bdataData.setKeyword("ENVLOGDIR");
- bdataData.setSvalue(ENV_PACKAGE_DIR + dirEPName);
- bdataContentProject.add(bdataData);
-
- bdataData = new Bdata();
- bdataData.setId("ReceiptId");
- bdataData.setCode("015");
- bdataData.setKeyword("RECEIPTID");
- bdataData.setSvalue(projectId + "." + projectName + "." + projectUserName);
- bdataContentProject.add(bdataData);
-
- System.out.println("\nHere I set the bdata for the ProjectReceipt\n");
-
- projectReceipt.setContent(bdataContentProject);
- } catch (Exception ae){
- System.err.println("[ProjectExecutor::setProjectReceipt] Error defining the Project Receipt: "+ae.getMessage());
- ae.printStackTrace();
- System.exit(-1);
- }
-
- }
-
- public static synchronized void setPhaseReceipt(){
- System.out.println("\n Here I start the Project Phase Receipt\n");
-
- Bdata bdataData = null;
- List bdataContentPhase = new Vector();
-
- ListTaskReceipt = new Vector();
-
- try{
- if (projectType.equals("1")){
- /* Phase Receipt For Single Calculation */
- phaseReceipt1.setCode("002");
- phaseReceipt1.setKind("Single Phase");
- phaseReceipt1.setProjectid(getProjectId());
- phaseReceipt1.setProjectname(getProjectName());
- System.out.println("YOU CHOOSE SINGLE CALCULATION");
- setPhaseOption(new Boolean(false));
-
- /*Setting ID value for phaseReceipt*/
- // bdataData = new Bdata();
- // bdataData.setId("ReceiptId");
- // bdataData.setCode("015");
- // bdataData.setKeyword("RECEIPTID");
- // bdataData.setSvalue("01"+"."+ projectId + "." + projectName + "." + projectUserName);
- // bdataContentPhase.add(bdataData);
-
- // phaseReceipt1.setContent(bdataContentPhase);
- }
- } catch (Exception ae){
- System.err.println("[ProjectExecutor::setPhaseReceipt()] Error defining Phase Receipt for Single Calculation: "+ ae.getMessage());
- ae.printStackTrace();
- System.exit(-1);
- }
-
-
- try{
- if (projectType.equals("2") && phaseOption.booleanValue()==true){
- /* Phase Receipt For Fast Refine */
- phaseReceipt2.setCode("002");
- phaseReceipt2.setKind("Approximate EOS");
- phaseReceipt2.setProjectid(getProjectId());
- phaseReceipt2.setProjectname(getProjectName());
- System.out.println("YOU CHOOSE FAST REFINE");
-
- // if (phaseReceipt2.getContent() == null){
- // /*Setting ID value for phaseReceipt*/
- // bdataData = new Bdata();
- // bdataData.setId("ReceiptId");
- // bdataData.setCode("015");
- // bdataData.setKeyword("RECEIPTID");
- // bdataData.setSvalue("02"+"."+ projectId + "." + projectName + "." + projectUserName);
- // bdataContentPhase.add(bdataData);
- //
- // phaseReceipt2.setContent(bdataContentPhase);
- // }
-
- }else if (projectType.equals("2") && phaseOption.booleanValue()==false){
- /* Phase Receipt Receipt For Long Refine */
- phaseReceipt3.setCode("002");
- phaseReceipt3.setKind("EOS Refinement");
- phaseReceipt3.setProjectid(getProjectId());
- phaseReceipt3.setProjectname(getProjectName());
- System.out.println("YOU CHOOSE LONG REFINE");
-
- // if (phaseReceipt3.getContent() == null){
- // /*Setting ID value for phaseReceipt*/
- // bdataData = new Bdata();
- // bdataData.setId("ReceiptId");
- // bdataData.setCode("015");
- // bdataData.setKeyword("RECEIPTID");
- // bdataData.setSvalue("03"+"."+ projectId + "." + projectName + "." + projectUserName);
- // bdataContentPhase.add(bdataData);
- //
- // phaseReceipt3.setContent(bdataContentPhase);
- // }
-
- }
- } catch (Exception ae){
- System.err.println("[ProjectExecutor::setPhaseReceipt()] Error defining Phase receipt for EOS Calculation: "+ae.getMessage());
- ae.printStackTrace();
- System.exit(-1);
- }
-
- try{
- /*This if means I am using Cij Calculation*/
- if (phaseOption.booleanValue()==false && projectType.equals("3")){
- phaseReceipt4.setCode("003");
- phaseReceipt4.setKind("Cij Calculation");
- phaseReceipt4.setProjectid(getProjectId());
- phaseReceipt4.setProjectname(getProjectName());
- System.out.println("YOU ARE RUNNING CIJ CALCULATION");
-
- // if (phaseReceipt4.getContent() == null){
- // /*Setting ID value for phaseReceipt*/
- // bdataData = new Bdata();
- // bdataData.setId("ReceiptId");
- // bdataData.setCode("015");
- // bdataData.setKeyword("RECEIPTID");
- // bdataData.setSvalue("04"+"."+ projectId + "." + projectName + "." + projectUserName);
- // bdataContentPhase.add(bdataData);
-
- // phaseReceipt4.setContent(bdataContentPhase);
- // }
- }
- } catch (Exception ae){
- System.err.println("[ProjectExecutor::setPhaseReceipt()] Error defining Phase receipt for Cij Calculation: "+ae.getMessage());
- ae.printStackTrace();
- System.exit(-1);
- }
-
-
- try{
- /*Project Type for HiPT Thermo*/
- if (phaseOption.booleanValue()==false && projectType.equals("4")){
- phaseReceipt5.setCode("004");
- phaseReceipt5.setKind("HiPT Thermo");
- phaseReceipt5.setProjectid(getProjectId());
- phaseReceipt5.setProjectname(getProjectName());
- System.out.println("YOU ARE RUNNING HIPT THERMO");
-
- //if (phaseReceipt5.getContent() == null){
- // /*Setting ID value for phaseReceipt*/
- // bdataData = new Bdata();
- // bdataData.setId("ReceiptId");
- // bdataData.setCode("015");
- // bdataData.setKeyword("RECEIPTID");
- // bdataData.setSvalue("05"+"."+ projectId + "." + projectName + "." + projectUserName);
- // bdataContentPhase.add(bdataData);
- //
- // phaseReceipt5.setContent(bdataContentPhase);
- // }
- }
- } catch(Exception ae){
- System.err.println("[ProjectExecutor::setPhaseReceipt()] Error defining the Hipt Thermo project: "+ae.getMessage());
- ae.printStackTrace();
- System.exit(-1);
- }
-
- try{
- /*Project Type for HiPT Cij*/
- if (phaseOption.booleanValue()==false && projectType.equals("5")){
- phaseReceipt6.setCode("005");
- phaseReceipt6.setKind("HiPT Cij");
- phaseReceipt6.setProjectid(getProjectId());
- phaseReceipt6.setProjectname(getProjectName());
- System.out.println("YOU ARE RUNNING HIPT CIJ");
-
- //if (phaseReceipt6.getContent() == null){
- /*Setting ID value for phaseReceipt*/
- // bdataData = new Bdata();
- //bdataData.setId("ReceiptId");
- // bdataData.setCode("015");
- // bdataData.setKeyword("RECEIPTID");
- // bdataData.setSvalue("06"+"."+ projectId + "." + projectName + "." + projectUserName);
- // bdataContentPhase.add(bdataData);
-
- // phaseReceipt6.setContent(bdataContentPhase);
- //}
- }
- } catch (Exception ae){
- System.err.println("[ProjectExecutor::setPhaseReceipt()] Error defininf Hipt Cij project: " +ae.getMessage());
- ae.printStackTrace();
- System.exit(-1);
- }
- }
-
- public static synchronized void setTaskReceipt(String ThreadName, String TaskReceipt){
-
- //System.out.println("\nHere I start the setTaskReceipt with the following Receipt: \n"+TaskReceipt+"\n\n");
- StringReader ReceiptReader = null;
- Receipt newtaskReceipt = new Receipt();
-
- try{
- ReceiptReader = new StringReader(TaskReceipt);
- } catch (Exception ae){
- System.err.println("[Project::setTaskReceipt()] => Error creating the String Reader: " + ae.getMessage());
- ae.printStackTrace();
- System.exit(-1);
- }
-
- try{
- Unmarshaller un = new Unmarshaller(Receipt.class);
- newtaskReceipt = (Receipt) un.unmarshal(ReceiptReader);
- } catch (Exception ae){
- System.err.println("[ProjectExecutor::setTaskReceipt()] => Error: " + ae.getMessage());
- ae.printStackTrace();
- System.exit(-1);
- }
-
- try{
- System.out.println("Receipt Code: " + newtaskReceipt.getCode());
- System.out.println("Receipt Kind: " + newtaskReceipt.getKind());
- ListTaskReceipt.add(newtaskReceipt);
- } catch(Exception ae){
- System.err.println("[ProjectExecutor::setTaskReceipt] Adding Task inside the list of Tasks: "+ae.getMessage());
- ae.printStackTrace();
- System.exit(-1);
- }
-
- System.out.println("Here the thread"+ThreadName + "I put the taskreceipt on the phase list"+ListTaskReceipt.size());
- }
-
- public void setTheNewPackage(){
-
- File readExecutionPackage = null;
- byte[] buff = null;
- InputStream sourcefile = null;
-
- try{
- readExecutionPackage = new File(ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName + "ComplexCalc.zip");
- setZipFileName("ComplexCalc.zip");
-
- System.out.println("\n File name is: "+readExecutionPackage.getName());
- System.out.println("\n File size is: "+readExecutionPackage.length());
-
- int filesiuze = (int) readExecutionPackage.length();
- buff = new byte[filesiuze];
- sourcefile = new FileInputStream(readExecutionPackage);
- sourcefile.read(buff);
- pesdataexecutionpackage = new String(Base64.encode(buff));
- }catch (Exception ae){
- System.err.println("[ProjectExecutor::setTheNewPackage()] => Error "+ae.getMessage());
- ae.printStackTrace();
- System.exit(-1);
- }
- }
-
- public static synchronized String ProjectReceiptToString(Receipt projectReceipt){
-
- System.out.println("\nHere I'm on TaskReceipToString()\n");
- StringWriter classXmlFile = null;
- try{
- classXmlFile = new StringWriter();
- Marshaller.marshal(projectReceipt,classXmlFile);
- } catch (Exception ae){
- System.err.println("[ProjectExecutor::ProjectReceiptToString()] => Error: " + ae.getMessage());
- ae.printStackTrace();
- System.exit(-1);
- }
- //System.out.println("On ProjectReceiptToString() My task class receipt right now is: " + classXmlFile.toString());
-
- return classXmlFile.toString();
- }
-
- public static synchronized String PhaseReceiptToString(Receipt phaseReceipt){
-
- System.out.println("\nHere I'm on PhaseReceiptToString()\n");
- StringWriter classXmlFile = null;
- try{
- classXmlFile = new StringWriter();
- Marshaller.marshal(phaseReceipt,classXmlFile);
-
- } catch (Exception ae){
- System.err.println("[ProjectExecutor::PhaseReceiptToString()] => Error: " + ae.getMessage());
- ae.printStackTrace();
- System.exit(-1);
- }
- //System.out.println("On PhaseReceiptToString() My phase class receipt right now is: " + classXmlFile.toString());
-
- return classXmlFile.toString();
- }
-
- public static synchronized String TaskReceipToString(Receipt taskReceipt){
-
- System.out.println("\nHere I'm on TaskReceipToString()\n");
- StringWriter classXmlFile = null;
- try{
- classXmlFile = new StringWriter();
- Marshaller.marshal(taskReceipt,classXmlFile);
-
- } catch (Exception ae){
- System.err.println("[ProjectExecutor::TaskReceipToString()] => Error: " + ae.getMessage());
- ae.printStackTrace();
- System.exit(-1);
- }
- //System.out.println("On TaskReceipToString() My task class receipt right now is: " + classXmlFile.toString());
- return classXmlFile.toString();
- }
-
- /* public receipt StringToTaskReceipt(String StringTaskReceipt){
- System.out.println("");
- receipt receiptTask = null;
- return receiptTask;
- }*/
-
- public static synchronized void setCloseProjectReceipt(){
-
- System.out.println("\n Here I start the setCloseProjectReceipt() \n");
- try{
- System.out.println("\n\n\n\n\n\n\nWHILE CLOSE THE RECEIPT the List Phase Size is: "+ListPhaseReceipt.size()+"\n\n\n\n");
-
- projectReceipt.setAttachamments(ListPhaseReceipt);
- /*
- if (projectType.equals("1"))
- projectReceipt.setAttachamments(ListPhaseReceipt1);
- else if (projectType.equals("2") && phaseOption.booleanValue()==false)
- projectReceipt.setAttachamments(ListPhaseReceipt2);
- else if (projectType.equals("2") && phaseOption.booleanValue()==true)
- projectReceipt.setAttachamments(ListPhaseReceipt3);
- else{
- projectReceipt.setAttachamments(ListPhaseReceipt4);
- }*/
- SaveReceipt(ProjectReceiptToString(projectReceipt));
- System.out.println("\nHere I finished the receipt project and Saved on DataBase\n");
- } catch(Exception ae){
- System.err.println("[ProjectExecutor::setCloseProjectReceipt()] Error closing the project receipt: "+ae.getMessage());
- ae.printStackTrace();
- System.exit(-1);
- }
- }
-
- /*private void convertedReceipt(){
-
-
-
- System.out.println("I current receipt is: "+stringReceipt);
- StringReader ReceiptReader = new StringReader(stringReceipt);
-
- try{
- Unmarshaller un = new Unmarshaller(Receipt.class);
- receiptProject = (Receipt) un.unmarshal(ReceiptReader);
- } catch (Exception ae){
- System.err.println("Monitor::loadProjectReceipt()] Error doing the Unmarshaller: " + ae.getMessage());
- ae.printStackTrace();
- }
-
- ListPhase = receiptProject.getAttachamments();
- setPhaseSize(ListPhase.size());
-
- }
-
- public void loadPhaseReceipt(int indexPhase){
-
- ListPhase = receiptProject.getAttachamments();
-
- System.out.println("My Receipt used by the Monitor is: "+stringReceipt);
-
- //for(int i=0; i< ListPhase.size();i++){
-
- receiptPhase = (Receipt) (ListPhase.get(indexPhase));
- ListTask = receiptPhase.getAttachamments();
- setSkindphase(receiptPhase.getKind());
-
-
- List ListContentPhaseReceipt = receiptPhase.getContent();
- if (ListContentPhaseReceipt != null){
- Bdata BdataContent = new Bdata();
- for(int i=0; i < ListContentPhaseReceipt.size();i++){
-
- BdataContent = (Bdata) ListContentPhaseReceipt.get(i);
-
- if (BdataContent.getKeyword().equals("STATUSPHASE")){
- this.statusPhase = BdataContent.getSvalue();
- }
- }
- }
-
- if (this.statusPhase == null || ListContentPhaseReceipt == null ){
- this.setStatusPhase("None");
- }
-
- //this.setStatusPhase("None");
-
- }
-
- //public String getKindPhase(){
- //}
-
- public void loadTaskReceipt(){
-
- System.out.println("\n Here I'm on loadTaskReceipt\n");
-
- List ListContent = null;
- Bdata Content = null;
-
- startTime = new String[ListTask.size()];
- serverSide = new String[ListTask.size()];
- status = new String[ListTask.size()];
- packageName = new String[ListTask.size()];
- endTime = new String[ListTask.size()];
-
- setTaskSize(ListTask.size());
-
- for(int j=0;j<ListTask.size();j++){
- receiptTask = (Receipt) ListTask.get(j);
- ListContent = receiptTask.getContent();
- for(int l=0; l < ListContent.size(); l++){
- Content = (Bdata) ListContent.get(l);
-
- System.out.println(Content.getKeyword()+"::"+Content.getSvalue()+"\t");
-
- if (Content.getKeyword().equals("STARTTIME"))
- startTime[j] = Content.getSvalue();
-
- if (Content.getKeyword().equals("HOSTNAME"))
- serverSide[j] = Content.getSvalue();
-
- if (Content.getKeyword().equals("STATUSPROCESS"))
- status[j] = Content.getSvalue();
-
- if (Content.getKeyword().equals("PACKAGENAME"))
- packageName[j] = Content.getSvalue();
-
- if (Content.getKeyword().equals("ENDTIME"))
- endTime[j] = Content.getSvalue();
-
- }
- System.out.println("\n\n");
- }
- }
-
- public void loadSpecificTask(){
-
- System.out.println("\n Here I'm on loadSpecificTask()\n");
-
- List ListContent = null;
- Bdata Content = null;
-
- receiptTask = (Receipt) ListTask.get(taskIndex);
- ListContent = receiptTask.getContent();
- for(int i=0;i<ListContent.size();i++){
-
- Content = (Bdata) ListContent.get(i);
-
- System.out.println(Content.getKeyword()+"::"+Content.getSvalue()+"\t");
-
- if (Content.getKeyword().equals("STARTTIME"))
- setSstarttime(Content.getSvalue());
-
- if (Content.getKeyword().equals("HOSTNAME"))
- setShostname(Content.getSvalue());
-
- if (Content.getKeyword().equals("STATUSPROCESS"))
- setSstatus(Content.getSvalue());
-
- if (Content.getKeyword().equals("IPADDRESS"))
- setSfullurl(Content.getSvalue());
-
- if (Content.getKeyword().equals("PROCESSID"))
- setSprocessid(Content.getSvalue());
-
- if (Content.getKeyword().equals("PATHEXEC"))
- setSfullpath(Content.getSvalue());
-
- if (Content.getKeyword().equals("PACKAGENAME"))
- setSpackagename(Content.getSvalue());
-
- if (Content.getKeyword().equals("ENDTIME"))
- setSendtime(Content.getSvalue());
- }
- }
- }
- */
-
-
-
- public static synchronized void setClosePhaseReceiptSingle(){
- /* Method used by Single Calcuation */
- System.out.println("\n Here I start the setClosePhaseReceiptSingle() \n");
-
- try{
- phaseReceipt1.setAttachamments(ListTaskReceipt);
- System.out.println("\n Here I put the task receipt on the phase attachament \n");
-
- //ListTaskReceipt = null;
- //PhaseReceiptToString(phaseReceipt);
- //ListPhaseReceipt.add(phaseReceipt1);
- if (ListPhaseReceipt.isEmpty())
- ListPhaseReceipt.add(0, phaseReceipt1);
- else
- ListPhaseReceipt.set(0, phaseReceipt1);
- } catch (Exception ae){
- System.err.println("[ProjectExecutor::setClosePhaseReceiptSingle()] Error Closing Single Receipt Phase: "+ae.getMessage());
- ae.printStackTrace();
- System.exit(-1);
- }
- }
-
- public static synchronized void setClosePhaseReceiptFastRefine(String when){
- /* Method used by Fast Refine */
-
- System.out.println("\n Here I start the setClosePhaseReceiptFastRefine() from: \n"+when);
- try{
- phaseReceipt2.setAttachamments(ListTaskReceipt);
- System.out.println("\n Here I put the task receipt on the phase attachament \n");
-
- //ListTaskReceipt = null;
- //PhaseReceiptToString(phaseReceipt);
- //ListPhaseReceipt = new ArrayList();
-
- if (ListPhaseReceipt.isEmpty())
- ListPhaseReceipt.add(0,phaseReceipt2);
- else
- //ListPhaseReceipt.remove(0);
- //ListPhaseReceipt.add(0,phaseReceipt2);
- ListPhaseReceipt.set(0,phaseReceipt2);
-
-
- System.out.println("In the End: setClosePhaseReceiptFastRefine => List Size: "+ListPhaseReceipt.size());
- }catch (Exception ae){
- System.err.println("[ProjectExecutor::setClosePhaseReceiptFastRefine()] Error Closing Fast Refine Receipt Phase: "+ae.getMessage());
- ae.printStackTrace();
- System.exit(-1);
- }
- }
-
- public static synchronized void setClosePhaseReceiptLongRefine(String when){
- /* Method used by Long Refine */
- try{
- System.out.println("\n Here I start the setClosePhaseReceiptLongRefine() The list Task size now is: "+ListTaskReceipt.size()+" from: \n"+when);
-
- System.out.println("\n The ListPhaseReceipt size is: " + ListPhaseReceipt.size());
-
-
-
- //ListTaskReceipt = null;
- //PhaseReceiptToString(phaseReceipt);
- //ListPhaseReceipt = new ArrayList();
- if (ListPhaseReceipt.isEmpty()){
- System.out.println("If Phase Receipt Long Refine is empty I will go here and insert ListPhaseReceipt.add(0,phaseReceipt3);");
- ListPhaseReceipt.add(0,phaseReceipt2);
- ListPhaseReceipt.add(1,phaseReceipt3);
- }
-
- else if (ListPhaseReceipt.size()==1){
- if (phaseOption.booleanValue()==false){
- System.out.println("If Phase Receipt Long Refine I will go here and update ListPhaseReceipt.set(0,phaseReceipt3);");
- ListPhaseReceipt.set(0,phaseReceipt2); //Updating the The Long Refine, when I defined just one Long Refine project
- ListPhaseReceipt.add(1,phaseReceipt3); //Updating the The Long Refine, when I defined just one Long Refine project
- }else{
- System.out.println("If Phase Receipt Long Refine I will go here and insert ListPhaseReceipt.add(1,phaseReceipt3);");
- ListPhaseReceipt.set(0,phaseReceipt2);
- ListPhaseReceipt.add(1,phaseReceipt3); //Add the Long Refine, when I had previously the Fast Refine
- }
- }
- else if (ListPhaseReceipt.size()==2){
- System.out.println("If Phase Receipt Long Refine I will go here and update ListPhaseReceipt.set(1,phaseReceipt3);");
- ListPhaseReceipt.set(0,phaseReceipt2);
- ListPhaseReceipt.set(1,phaseReceipt3); //Update the Long Refine, when I had the Fast Refined already executed.
- }
-
- phaseReceipt3.setAttachamments(ListTaskReceipt);
- System.out.println("\n Here I put the task receipt on the phase attachament \n");
-
- System.out.println("\n\n\n\tThe Long Refine List size right now is: "+ListPhaseReceipt.size());
- } catch (Exception ae){
- System.err.println("[ProjectExecutor::setClosePhaseReceiptLongRefine()] Error closing Long Refine Receipt Phase: "+ae.getMessage());
- ae.printStackTrace();
- System.exit(-1);
- }
- }
-
-
- public static synchronized void setClosePhaseReceiptCij(String when){
-
- System.out.println("\n Here I start the setClosePhaseReceiptCij() \n");
-
- try{
-
- phaseReceipt4.setAttachamments(ListTaskReceipt);
- System.out.println("\n Here I put the task receipt on the phase attachament from: \n"+when);
-
- //ListTaskReceipt = null;
- //PhaseReceiptToString(phaseReceipt);
-
- if (ListPhaseReceipt.size()==1)
-
- ListPhaseReceipt.add(1,phaseReceipt4);
- else if (ListPhaseReceipt.size()==2){
- if (phaseOption.booleanValue()==false){
- ListPhaseReceipt.add(2,phaseReceipt4);
- }else{
- ListPhaseReceipt.add(2,phaseReceipt4);
- }
- }
- else if (ListPhaseReceipt.size()==3){
- ListPhaseReceipt.set(2,phaseReceipt4);
- }
-
- System.out.println("In the End: setClosePhaseReceiptCij => List Size: "+ListPhaseReceipt.size());
-
- } catch(Exception ae){
- System.err.println("[ProjectExecutor::setClosePhaseReceiptCij()] Error closing Cij Receipt Phase: "+ae.getMessage());
- ae.printStackTrace();
- System.exit(-1);
- }
- }
-
- public static synchronized void setClosePhaseReceiptHighTPTHermo(String when){
-
- System.out.println("\n Here I start the setClosePhaseReceiptHighTPTHermo() from: \n"+when);
-
- System.out.println("ListPhaseReceipt: "+ListPhaseReceipt.size() + " =>ListTaskReceipt: "+ListTaskReceipt.size());
-
- try{
- phaseReceipt5.setAttachamments(ListTaskReceipt);
- System.out.println("\n Here I put all the tasks receipt on the phase attachament \n");
-
- //ListTaskReceipt = null;
- //PhaseReceiptToString(phaseReceipt);
-
- if (ListPhaseReceipt.size()==1){
- System.out.println("If Phase Receipt Thermo is 1 I will go here and insert ListPhaseReceipt.add(1,phaseReceipt5);");
- ListPhaseReceipt.add(0,phaseReceipt2);
- ListPhaseReceipt.add(1, phaseReceipt2);
- ListPhaseReceipt.add(2,phaseReceipt5);
- }
-
- else if (ListPhaseReceipt.size()==2){
- if (phaseOption.booleanValue()==false){
- System.out.println("If Phase Receipt Thermo is 2 I will go here and update ListPhaseReceipt.set(1,phaseReceipt5);");
- ListPhaseReceipt.set(0,phaseReceipt2);
- ListPhaseReceipt.set(1,phaseReceipt3);
- ListPhaseReceipt.add(2,phaseReceipt5);
- }else{
- System.out.println("If Phase Receipt Thermo is 2 I will go here and insert ListPhaseReceipt.add(2,phaseReceipt5);");
- ListPhaseReceipt.set(0, phaseReceipt2);
- ListPhaseReceipt.set(1, phaseReceipt3);
- ListPhaseReceipt.add(2, phaseReceipt5);
- }
- }
- else if (ListPhaseReceipt.size()==3){
- System.out.println("If Phase Receipt Thermo is 3 I will go here and insert ListPhaseReceipt.set(2,phaseReceipt5);");
- ListPhaseReceipt.set(0, phaseReceipt2);
- ListPhaseReceipt.set(1, phaseReceipt3);
- ListPhaseReceipt.set(2,phaseReceipt5);
- }
-
- phaseReceipt5.setAttachamments(ListTaskReceipt);
- System.out.println("\n Here I put all the tasks receipt on the phase attachament \n");
-
- System.out.println("In the End: setClosePhaseReceiptHighTPTHermo => List Size: "+ListPhaseReceipt.size());
- } catch(Exception ae){
- System.err.println("[ProjectExecutor::setClosePhaseReceiptHighTPTHermo()] Error closing HighTP Thermo Receipt Phase: "+ae.getMessage());
- ae.printStackTrace();
- System.exit(-1);
- }
- }
-
//GETTERS
public String getLogFileName(){
return this.logFileName;
@@ -1008,16 +317,16 @@
try{
setDirEPName();
-
+
if (kindPhase.equals("Approximate EOS") )//Fast Refine
this.ReadFastRefineFitting();
if (kindPhase.equals("EOS Refinement") )//Long Refine
- this.ReadLongRefineFitting();
+ ReadLongRefineFitting();
} catch (Exception ae){
System.err.println("[ProjectExecutor::getStringResultFit()] Error Running the Fitting EOS: "+ae.getMessage());
ae.printStackTrace();
- System.exit(-1);
+ //System.exit(-1);
}
return this.stringResultFit;
@@ -1027,12 +336,12 @@
try{
setDirEPName();
- CijGentab();
+ OutRunnings.CijGentab();
ReadCijGentab();
} catch (Exception ae){
System.err.println("[ProjectExecutor::getStringCijOutput()] Error Reading the Cij Output: " +ae.getMessage());
ae.printStackTrace();
- System.exit(-1);
+ //System.exit(-1);
}
return this.stringCijOutput;
@@ -1066,8 +375,8 @@
return this.compound;
}
- public String getCrystalType(){
- return this.crystalType;
+ public static String getCrystalType(){
+ return crystalType;
}
public String getFullpathproject(){
@@ -1106,11 +415,11 @@
try{
this.setDirEPName();
- CijGentab();
+ OutRunnings.CijGentab();
} catch(Exception ae){
System.err.println("[ProjectExecutor::getFiletodb()] Error defing directory for CIJ output: "+ae.getMessage());
ae.printStackTrace();
- System.exit(-1);
+ //System.exit(-1);
}
FileReader FileRead = null;
@@ -1132,7 +441,7 @@
} catch(Exception ae){
System.err.println("[ProjectExecutor::getFiletodb] Error reading the file: => " + ae.getMessage());
ae.printStackTrace();
- System.exit(-1);
+ //System.exit(-1);
}
return this.filetodb;
@@ -1140,1159 +449,114 @@
public void run(){
- System.out.println("\n Here I call the run \n");
+ Receipt projectReceipt = null;
+ System.out.println("\n Here I call the run and execute basic commands\n");
try{
/* Start the Project Receipt */
- setProjectReceipt();
- setCreatePackage();
+ //setProjectReceipt();
+ OutRunnings.setCreatePackage(pesdataexecutionpackage);
} catch(Exception ae){
System.err.println("[ProjectExecutor::run()] Error starting upt Project Receipt inside run method: " + ae.getMessage());
ae.printStackTrace();
- System.exit(-1);
+ //System.exit(-1);
}
+
+ ExecuteProject execute = null;
-
try{
- if (projectType.equals("1")){ /* This is Single Calculation */
- System.out.println("\nHere I start the Single Calculation");
- System.out.println("\nReturn from UncompressExecutionPackage: "+UnCompressExecutionPackage());
-
- /* Start the Phase Receipt */
- setPhaseReceipt();
-
-
- /*This method do a send of package to Task Executor, selected by Task Dispacther*/
- setDispSetting();
-
- /*It call the method below to fill up all the path package into the phase receipt*/
- this.AddPckPathSingleCalc();
-
- AddStatusPhase("Running");
-
- //setClosePhaseReceipt();
- Poll(phaseReceipt1.getAttachamments(), "Single");
-
- AddStatusPhase("Completed");
-
- getOutPutTask();
- System.out.println("\nHere I finish the Single Calculation\n");
+ execute = new ExecuteProject();
+ execute.prepare_project();
- } else if (projectType.equals("2") && phaseOption.booleanValue()==true){ /* This is Fast Refine */
-
- System.out.println("Here I uncompress the "+this.zipFileName + " with " + UnCompressComplexCalc());
-
- System.out.println("Start the Spliiter right here for Fast Refine");
- SendPackageESG();
-
- System.out.println("\nHere I finish the splitter");
- System.out.println("\nHere I start uncompress the TarBallFromWS.zip");
- System.out.println("\nReturn from uncompressTarBallfromWS: "+ UnCompressTarBallFromWS());
- System.out.println("\nReturn from UncompressExecutionPackage: " + UnCompressExecutionPackage());
-
- /* Start the Phase Receipt */
- setPhaseReceipt();
-
- setDispSetting();
- //setClosePhaseReceipt();
- //setCloseProjectReceipt();
-
- /*It call the method below to fill up all the path package into the phase receipt of Fast Refine*/
- this.AddPckPathFastRefine();
-
- AddStatusPhase("Running");
-
- Poll(phaseReceipt2.getAttachamments(), "Fast Refine");
-
- AddStatusPhase("Completed");
-
- getOutPutTask();
-
- setFastRefineFitting();
-
- ReadFastRefineFitting();
- /*Here I finish the Fast Refine*/
-
- /*Now Starting the Long Refine*/
- CreatePackage();
- System.out.println("Terminei de criar o arquivo aqui and my ListPhase size is: "+this.ListPhaseReceipt.size() +" and ListTaskSize is: "+this.ListTaskReceipt.size());
-
- /*Here I just change the phase option to run the EOS Refinement aka Long Refine*/
- setPhaseOption(new Boolean(false));
- setPhaseReceipt();
-
- //List OldPhaseList = this.ListPhaseReceipt;
-
- setTheNewPackage();
-
- SendPackageESG();
-
- System.out.println("\nHere I finish the splitter");
- System.out.println("\nHere I start uncompress the TarBallFromWS.zip");
- System.out.println("\nReturn from uncompressTarBallfromWS: "+ UnCompressTarBallFromWS());
- System.out.println("\nReturn from UncompressExecutionPackage: "+UnCompressExecutionPackage());
-
- /* Start the Phase Receipt */
- //setPhaseReceipt();
-
- setDispSetting();
-
- /*It call the method below to fill up all the path package into the phase receipt of Long Refine*/
- this.AddPckPathLongRefine();
-
- AddStatusPhase("Running");
-
- Poll(phaseReceipt3.getAttachamments(), "Long Refine");
-
- AddStatusPhase("Completed");
-
- getOutPutTask();
-
- setLongRefineFitting();
-
- setCloseProjectReceipt();
-
- ReadLongRefineFitting();
- System.out.println("\nHere I finish the sequence of Fast Refine & Long Refine\n");
-
-
- } else if (projectType.equals("2") && phaseOption.booleanValue()==false){ /*This Long Refine*/
-
- System.out.println("Here I uncompress the "+this.zipFileName + " with " + UnCompressComplexCalc());
-
- System.out.println("Start the Spliter right here Long Refine");
-
- SendPackageESG();
-
- System.out.println("\nHere I finish the splitter");
- System.out.println("\nHere I start uncompress the TarBallFromWS.zip");
- System.out.println("\nReturn from uncompressTarBallfromWS: "+ UnCompressTarBallFromWS());
- System.out.println("\nReturn from UncompressExecutionPackage: " + UnCompressExecutionPackage());
-
- /* Start the Phase Receipt */
- setPhaseReceipt();
-
- setDispSetting();
-
- /*It call the method below to fill up all the path package into the phase receipt of Long Refine*/
- this.AddPckPathLongRefine();
-
- AddStatusPhase("Running");
-
- Poll(phaseReceipt3.getAttachamments(), "Long Refine");
-
- AddStatusPhase("Completed");
-
- getOutPutTask();
-
- setLongRefineFitting();
-
- setCloseProjectReceipt();
-
- ReadLongRefineFitting();
-
- System.out.println("\nHere I finish the sequence of Long Refine\n");
-
- } else if (projectType.equals("3")){ /* This Cij */
-
-
- if (phaseOption.booleanValue()==true){ /* Starting the Fast Refine*/
-
- projectType = "2";
- System.out.println("Here I uncompress the "+this.zipFileName + " with " + UnCompressComplexCalc());
-
- System.out.println("Start the Spliiter right here for Fast Refine");
-
- SendPackageESG();
-
- System.out.println("\nHere I finish the splitter");
- System.out.println("\nHere I start uncompress the TarBallFromWS.zip");
- System.out.println("\nReturn from uncompressTarBallfromWS: "+ UnCompressTarBallFromWS());
- System.out.println("\nReturn from UncompressExecutionPackage: "+UnCompressExecutionPackage());
-
- /* Start the Phase Receipt */
- setPhaseReceipt();
-
- setDispSetting();
- //setClosePhaseReceipt();
- //setCloseProjectReceipt();
-
- /*It call the method below to fill up all the path package into the phase receipt of Fast Refine*/
- System.out.println("Phase Fast Refine");
- this.AddPckPathFastRefine();
-
- AddStatusPhase("Running");
-
- Poll(phaseReceipt2.getAttachamments(), "Fast Refine");
-
- AddStatusPhase("Completed");
-
- getOutPutTask();
-
- setFastRefineFitting();
-
- ReadFastRefineFitting();
- /*Here I finish the Fast Refine*/
-
- /*Here I start the Long Refine*/
- CreatePackage();
- System.out.println("Terminei de criar o arquivo aqui and my ListPhase size is: "+ListPhaseReceipt.size() +" and ListTaskSize is: "+ListTaskReceipt.size());
-
- /*Here I just change the phase option to run the EOS Refinement aka Long Refine*/
- setPhaseOption(new Boolean(false));
- setPhaseReceipt();
-
- setTheNewPackage();
-
- SendPackageESG();
-
- System.out.println("\nHere I finish the splitter");
- System.out.println("\nHere I start uncompress the TarBallFromWS.zip");
- System.out.println("\nReturn from uncompressTarBallfromWS: "+ UnCompressTarBallFromWS());
- System.out.println("\nReturn from UncompressExecutionPackage: "+UnCompressExecutionPackage());
-
- /* Start the Phase Receipt */
- setDispSetting();
-
- /*It call the method below to fill up all the path package into the phase receipt of Long Refine*/
- System.out.println("Phase Long Refine");
- this.AddPckPathLongRefine();
-
- AddStatusPhase("Running");
-
-
- System.out.println("Terminei de criar o arquivo aqui and my ListPhase size is: "+this.ListPhaseReceipt.size() +" and ListTaskSize is: "+this.ListTaskReceipt.size());
-
- Poll(phaseReceipt3.getAttachamments(), "Long Refine");
-
-
- System.out.println("Terminei de criar o arquivo aqui and my ListPhase size is: "+this.ListPhaseReceipt.size() +" and ListTaskSize is: "+this.ListTaskReceipt.size());
-
-
- AddStatusPhase("Completed");
-
- getOutPutTask();
-
- setLongRefineFitting();
-
- setCloseProjectReceipt();
-
- ReadLongRefineFitting();
-
- projectType = "3";
- }else{ /* Option for Long Refine */
- projectType = "2";
- System.out.println("Here I uncompress the " + this.zipFileName + " with " + UnCompressComplexCalc());
-
- System.out.println("Start the Spliter right here Long Refine");
-
- SendPackageESG();
-
- System.out.println("\nHere I finish the splitter");
- System.out.println("\nHere I start uncompress the TarBallFromWS.zip");
- System.out.println("\nReturn from uncompressTarBallfromWS: "+ UnCompressTarBallFromWS());
- System.out.println("\nReturn from UncompressExecutionPackage: " + UnCompressExecutionPackage());
-
- /* Start the Phase Receipt */
- setPhaseReceipt();
-
- setDispSetting();
-
- /*It call the method below to fill up all the path package into the phase receipt of Long Refine*/
- this.AddPckPathLongRefine();
-
- AddStatusPhase("Running");
-
-
- System.out.println("Terminei de criar o arquivo aqui and my ListPhase size is: "+this.ListPhaseReceipt.size() +" and ListTaskSize is: "+this.ListTaskReceipt.size());
-
-
- Poll(phaseReceipt3.getAttachamments(), "Long Refine");
-
-
- System.out.println("Terminei de criar o arquivo aqui and my ListPhase size is: "+this.ListPhaseReceipt.size() +" and ListTaskSize is: "+this.ListTaskReceipt.size());
-
-
- AddStatusPhase("Completed");
-
- getOutPutTask();
-
- setLongRefineFitting();
-
- setCloseProjectReceipt();
-
- ReadLongRefineFitting();
- projectType = "3";
- setPhaseOption(new Boolean(false));
- }
-
- RunIntermediate34();
-
- setPhaseReceipt();
-
- setDispSettingCij();
-
- /*It call the method below to fill up all the path package into the phase receipt of Cij*/
- this.AddPckPathCijPhase();
-
- AddStatusPhase("Running");
-
-
- System.out.println("Terminei de criar o arquivo aqui and my ListPhase size is: "+this.ListPhaseReceipt.size() +" and ListTaskSize is: "+this.ListTaskReceipt.size());
-
- Poll(phaseReceipt4.getAttachamments(), "Cij");
-
- System.out.println("Terminei de criar o arquivo aqui and my ListPhase size is: "+this.ListPhaseReceipt.size() +" and ListTaskSize is: "+this.ListTaskReceipt.size());
-
- AddStatusPhase("Completed");
-
- getOutPutTaskCij();
-
- // These methods will be called from Project Manager
- //CijGentab();
- //ReadCijGentab();
- //insertCijtoDB();
- System.out.println("\nHere I finish the sequence of Cij\n");
-
- }
-
- else if (projectType.equals("4")){
- //HiPT Thermo
- //Fast Refine
- //Long Refine
+ ////////////////////////
+ /* Single Calculation */
+ if (projectType.equals("1")){
- //Hi Temperature
- System.out.println("\nHere I start the HiPT Thermo");
+ execute.executeSingleCalc(projectType, phaseOption);
- if (phaseOption.booleanValue()==true){ /* Starting the Fast Refine*/
-
- projectType = "2";
- System.out.println("Here I uncompress the "+this.zipFileName + " with " + UnCompressComplexCalc());
- System.out.println("Start the Spliiter right here for Fast Refine");
- SendPackageESG();
- System.out.println("\nHere I finish the splitter");
- System.out.println("\nHere I start uncompress the TarBallFromWS.zip");
- System.out.println("\nReturn from uncompressTarBallfromWS: "+ UnCompressTarBallFromWS());
- System.out.println("\nReturn from UncompressExecutionPackage: "+UnCompressExecutionPackage());
- /* Start the Phase Receipt */
- setPhaseReceipt();
- setDispSetting();
- /*It call the method below to fill up all the path package into the phase receipt of Fast Refine*/
- System.out.println("Phase Fast Refine");
- this.AddPckPathFastRefine();
- AddStatusPhase("Running");
-
-
-
- System.out.println("Terminei de criar o arquivo aqui and my ListPhase size is: "+this.ListPhaseReceipt.size() +" and ListTaskSize is: "+this.ListTaskReceipt.size());
-
- Poll(phaseReceipt2.getAttachamments(), "Fast Refine");
-
-
- System.out.println("Terminei de criar o arquivo aqui and my ListPhase size is: "+this.ListPhaseReceipt.size() +" and ListTaskSize is: "+this.ListTaskReceipt.size());
-
-
- AddStatusPhase("Completed");
- getOutPutTask();
- setFastRefineFitting();
- ReadFastRefineFitting();
- setCloseProjectReceipt();
- /*Here I finish the Fast Refine*/
- }
-
- /*Now Starting the Long Refine*/
- projectType = "2";
- CreatePackage();
- //System.out.println("Terminei de criar o arquivo aqui and my ListPhase size is: "+this.ListPhaseReceipt.size() +" and ListTaskSize is: "+this.ListTaskReceipt.size());
- /*Here I just change the phase option to run the EOS Refinement aka Long Refine*/
- setPhaseOption(new Boolean(false));
- setPhaseReceipt();
- //List OldPhaseList = this.ListPhaseReceipt;
- setTheNewPackage();
- SendPackageESG();
- System.out.println("\nHere I finish the splitter");
- System.out.println("\nHere I start uncompress the TarBallFromWS.zip");
- System.out.println("\nReturn from uncompressTarBallfromWS: "+ UnCompressTarBallFromWS());
- System.out.println("\nReturn from UncompressExecutionPackage: "+UnCompressExecutionPackage());
- /* Start the Phase Receipt */
- //setPhaseReceipt();
- setDispSetting();
- /*It call the method below to fill up all the path package into the phase receipt of Long Refine*/
- this.AddPckPathLongRefine();
- AddStatusPhase("Running");
-
-
- System.out.println("Terminei de criar o arquivo aqui and my ListPhase size is: "+this.ListPhaseReceipt.size() +" and ListTaskSize is: "+this.ListTaskReceipt.size());
-
- Poll(phaseReceipt3.getAttachamments(), "Long Refine");
-
-
- System.out.println("Terminei de criar o arquivo aqui and my ListPhase size is: "+this.ListPhaseReceipt.size() +" and ListTaskSize is: "+this.ListTaskReceipt.size());
-
- AddStatusPhase("Completed");
- getOutPutTask();
- setLongRefineFitting();
- setCloseProjectReceipt();
- ReadLongRefineFitting();
- System.out.println("\nHere I finish the sequence of Fast Refine XOR Long Refine\n");
- /*Here I finished the sequence of Fast Refine and Long Refine*/
-
- projectType = "4";
-
- createQPointFile();
-
- ScriptCreatePhononPackages();
- setPhaseReceipt();
-
- setDispSettingHighTPThermo();
-
- /*It call the method below to fill up all the path package into the phase receipt of Cij*/
- this.AddPckPathHighTPThermoPhase();
-
- AddStatusPhase("Running");
-
-
- System.out.println("Terminei de criar o arquivo aqui and my ListPhase size is: "+this.ListPhaseReceipt.size() +" and ListTaskSize is: "+this.ListTaskReceipt.size());
-
-
- Poll(phaseReceipt5.getAttachamments(), "HighTP Thermo");
-
-
- System.out.println("Terminei de criar o arquivo aqui and my ListPhase size is: "+this.ListPhaseReceipt.size() +" and ListTaskSize is: "+this.ListTaskReceipt.size());
-
-
- AddStatusPhase("Completed");
- getOutPutTaskHighTempThermo();
-
- System.out.println("\nHere I finish the sequence of High PT Thermo\n");
-
- } else if (projectType.equals("5")){
- //HiPT Thermo
- //Fast Refine
- //Long Refine
- //Hi Temperature
- //Cij
}
- } catch(Exception ae){
- System.err.println("[ProjectExecutor::run()] Error inside IF encapsulates: "+ae.getMessage());
- ae.printStackTrace();
- System.exit(-1);
- }
-
-
- try{
- setCloseProjectReceipt();
- } catch(Exception ae){
- System.err.println("[ProjectExecutor::run()] Error Closing the project Receipt: "+ae.getMessage());
- ae.printStackTrace();
- System.exit(-1);
- }
-
- }
-
- //I had here the StartDispatcher()
-
- public void AddPckPathFastRefine(){
-
- /*This method is used to add all the packages path in Phase Receipt into the content field.*/
- System.out.println("Here I start the AddPckPathFastRefine()");
- try{
- List ListContent = new Vector();
- String[] ListPackagesFR = this.ListPackages();
- Bdata[] ContentFRPhase = new Bdata[ListPackagesFR.length];
- System.out.println("My list will be: ");
- for(int i=0; i<ListPackagesFR.length;i++){
- ContentFRPhase[i] = new Bdata();
- ContentFRPhase[i].setId("013");
- ContentFRPhase[i].setCode(ListPackagesFR[i].substring(0, ListPackagesFR[i].length()-4));
- ContentFRPhase[i].setKeyword("PCKGPATHONPE");
- ContentFRPhase[i].setSvalue(ENV_PACKAGE_DIR+this.dirEPName+ListPackagesFR[i].substring(0, ListPackagesFR[i].length()-4));
- System.out.println(ENV_PACKAGE_DIR+this.dirEPName+ListPackagesFR[i]+"\n");
- ListContent.add(ContentFRPhase[i]);
- }
- phaseReceipt2.setContent(ListContent);
- } catch(Exception ae){
- System.err.println("[ProjectExecutor::AddPckPathFastRefine()] Error adding the Fast Refine Packages at Phase Receipt: "+ae.getMessage());
- ae.printStackTrace();
- System.exit(-1);
- }
- }
-
- public void AddPckPathLongRefine(){
-
- /*This method is used to add all the packages path in Phase Receipt into the content field.*/
- System.out.println("Here I start the AddPckPathLongRefine()");
-
- try{
- List ListContent = new Vector();
- String[] ListPackagesLR = this.ListPackages();
- Bdata[] ContentLRPhase = new Bdata[ListPackagesLR.length];
- for(int i=0; i<ListPackagesLR.length;i++){
- ContentLRPhase[i] = new Bdata();
- ContentLRPhase[i].setId("013");
- ContentLRPhase[i].setCode(ListPackagesLR[i].substring(0, ListPackagesLR[i].length()-4));
- ContentLRPhase[i].setKeyword("PCKGPATHONPE");
- ContentLRPhase[i].setSvalue(ENV_PACKAGE_DIR+this.dirEPName+ListPackagesLR[i].substring(0, ListPackagesLR[i].length()-4));
- ListContent.add(ContentLRPhase[i]);
- }
- phaseReceipt3.setContent(ListContent);
- } catch(Exception ae){
- System.err.println("[ProjectExecutor::AddPckPathLongRefine()] Error addind the Long Refine packages at Phase Receipt: "+ae.getMessage());
- ae.printStackTrace();
- System.exit(-1);
- }
- }
-
- public void AddPckPathSingleCalc(){
-
- /*This method is used to add all the packages path in Phase Receipt into the content field.*/
- System.out.println("Here I start the AddPckPathSingleCalc()");
- try{
- Bdata ContentFRPhase = null;
- List ListContent = new Vector();
- String[] ListPackageSingle = this.ListPackages();
- for(int i=0; i<ListPackageSingle.length;i++){
- ContentFRPhase = new Bdata();
- ContentFRPhase.setId("013");
- ContentFRPhase.setCode(ListPackageSingle[i].substring(0, ListPackageSingle[i].length()-4));
- ContentFRPhase.setKeyword("PCKGPATHONPE");
- ContentFRPhase.setSvalue(ENV_PACKAGE_DIR+this.dirEPName+ListPackageSingle[i].substring(0, ListPackageSingle[i].length()-4));
- ListContent.add(ContentFRPhase);
- }
- phaseReceipt1.setContent(ListContent);
- } catch (Exception ae){
- System.err.println("[ProjectExecutor::AddPckPathSingleCalc()] Error addind the Single Package inside Phase Receipt: "+ae.getMessage());
- ae.printStackTrace();
- System.exit(-1);
- }
- }
-
- private void AddPckPathCijPhase(){
-
- /*This method is used to add all the packages path in Phase Receipt into the content field.*/
- System.out.println("Here I start the AddPckPathCijPhase()");
- try{
- Bdata ContentCijPhase = null;
- List ListContent = new Vector();
- String[] ListLRPackages = ListPackages();
- String[] ListPackagesCij = null;
- String ActuallyCCPackage = null;
- for(int i=0; i<ListLRPackages.length; i++){
+ ///////////////////////////////
+ /* Fast Refine - Long Refine*/
+ if (projectType.equals("2") && phaseOption.booleanValue()==true){
+
+ projectReceipt = execute.executeFastRefine(projectType, phaseOption);
- ActuallyCCPackage = ListLRPackages[i];
- System.out.println("[ProjectExecutor::AddPckPathCijPhase()] => Actually package is: " + ActuallyCCPackage);
-
- ListPackagesCij = ListEEPackages(ActuallyCCPackage, false);
-
- for(int j=0; j < ListPackagesCij.length; j++ ){
- ContentCijPhase = new Bdata();
- ContentCijPhase.setId("013");
- ContentCijPhase.setCode(ListPackagesCij[j].substring(0,ListPackagesCij[j].length()-4));
- ContentCijPhase.setKeyword("PCKGPATHONPE");
- ContentCijPhase.setSvalue(ENV_PACKAGE_DIR+this.dirEPName+ActuallyCCPackage.substring(0, ActuallyCCPackage.length()-4)+"/"+ListPackagesCij[j].substring(0,ListPackagesCij[j].length()-4));
-
- System.out.println("Package: => "+ListPackagesCij[j]);
- System.out.println("Package substring: => " + ListPackagesCij[j].substring(0,ListPackagesCij[j].length()-4));
- System.out.println("Full package for the package: "+ENV_PACKAGE_DIR+this.dirEPName+ActuallyCCPackage.substring(0, ActuallyCCPackage.length()-4)+"/"+ListPackagesCij[j].substring(0,ListPackagesCij[j].length()-4));
- ListContent.add(ContentCijPhase);
- }
- this.phaseReceipt4.setContent(ListContent);
- //for(int j=0; j < ++){
- //0}
+ projectReceipt = execute.executeLongRefine(projectReceipt, projectType, false);
}
- } catch (Exception ae){
- System.err.println("[ProjectExecutor::AddPckPathCijPhase()] Error adding the Cij Package inside the Phase Receipt: "+ae.getMessage());
- ae.printStackTrace();
- System.exit(-1);
- }
- }
-
- private void AddPckPathHighTPThermoPhase(){
-
- /*This method is used to add all the packages path in Phase Receipt into the content field.*/
- System.out.println("Here I start the AddPckPathHighTPThermoPhase()");
-
- try{
- Bdata ContentCijPhase = null;
- List ListContent = new Vector();
- String[] ListLRPackages = ListPackages();
- String[] ListPackagesPH = null;
- String ActuallyCCPackage = null;
- for(int i=0; i<ListLRPackages.length; i++){
+ /////////////////
+ /* Long Refine */
+ if (projectType.equals("2") && phaseOption.booleanValue()==false){
- ActuallyCCPackage = ListLRPackages[i];
- System.out.println("[ProjectExecutor::AddPckPathHighTPThermoPhase()] => Actually package is: " + ActuallyCCPackage);
-
- ListPackagesPH = ListPHPackages(ActuallyCCPackage, false);
-
- for(int j=0; j < ListPackagesPH.length; j++ ){
- ContentCijPhase = new Bdata();
- ContentCijPhase.setId("013");
- ContentCijPhase.setCode(ListPackagesPH[j].substring(0,ListPackagesPH[j].length()-4));
- ContentCijPhase.setKeyword("PCKGPATHONPE");
- ContentCijPhase.setSvalue(ENV_PACKAGE_DIR+this.dirEPName+ActuallyCCPackage.substring(0, ActuallyCCPackage.length()-4)+"/"+ListPackagesPH[j].substring(0,ListPackagesPH[j].length()-4));
-
- System.out.println("Package: => "+ListPackagesPH[j]);
- System.out.println("Package substring: => " + ListPackagesPH[j].substring(0,ListPackagesPH[j].length()-4));
- System.out.println("Full package for the package: "+ENV_PACKAGE_DIR+this.dirEPName+ActuallyCCPackage.substring(0, ActuallyCCPackage.length()-4)+"/"+ListPackagesPH[j].substring(0,ListPackagesPH[j].length()-4));
- ListContent.add(ContentCijPhase);
- }
- this.phaseReceipt5.setContent(ListContent);
+ projectReceipt = ReceiptManagement.setProjectReceipt();
+
+ projectReceipt = execute.executeLongRefine(projectReceipt, projectType, false);
}
- } catch (Exception ae){
- System.err.println("[ProjectExecutor::AddPckPathHighTPThermoPhase()] Error adding the HiPt Thermo packages inside Phase Receipt: "+ae.getMessage());
- ae.printStackTrace();
- System.exit(-1);
- }
- }
-
- private void AddStatusPhase(String StatusPhase){
-
- System.out.println("Here I am starting the AddStatusPhase\n\n");
-
- /*This method will insert the status for every different phase in the project*/
- Bdata BdataContent = null;
- List ListContent = null;
-
- try{
- BdataContent = new Bdata();
-
- /*if (projectType.equals("1")){
- ListContent = this.phaseReceipt1.getContent();
- BdataContent.setId("014");
- BdataContent.setCode("StatusPhase");
- BdataContent.setKeyword("STATUSPHASE");
- BdataContent.setSvalue(StatusPhase);
- ListContent.add(BdataContent);
- this.phaseReceipt1.setContent(ListContent);
- }*/
- //Fast Refine
- if (projectType.equals("2") && phaseOption.booleanValue()==true){
- ListContent = this.phaseReceipt2.getContent();
- BdataContent.setId("014");
- BdataContent.setCode("StatusPhase");
- BdataContent.setKeyword("STATUSPHASE");
- BdataContent.setSvalue(StatusPhase);
- ListContent.add(BdataContent);
- this.phaseReceipt2.setContent(ListContent);
- }
- //Long Refine
- if (projectType.equals("2") && phaseOption.booleanValue()==false){
- ListContent = this.phaseReceipt3.getContent();
- BdataContent.setId("014");
- BdataContent.setCode("StatusPhase");
- BdataContent.setKeyword("STATUSPHASE");
- BdataContent.setSvalue(StatusPhase);
- ListContent.add(BdataContent);
- this.phaseReceipt3.setContent(ListContent);
- }
- //Cij Calculation
- if (phaseOption.booleanValue()==true && projectType.equals("3")){
- ListContent = this.phaseReceipt4.getContent();
- BdataContent.setId("014");
- BdataContent.setCode("StatusPhase");
- BdataContent.setKeyword("STATUSPHASE");
- BdataContent.setSvalue(StatusPhase);
- ListContent.add(BdataContent);
- this.phaseReceipt4.setContent(ListContent);
- }
- //High TP Thermo
- if (phaseOption.booleanValue()==true && projectType.equals("4")){
- ListContent = this.phaseReceipt5.getContent();
- BdataContent.setId("014");
- BdataContent.setCode("StatusPhase");
- BdataContent.setKeyword("STATUSPHASE");
- BdataContent.setSvalue(StatusPhase);
- ListContent.add(BdataContent);
- this.phaseReceipt5.setContent(ListContent);
- }
- } catch (Exception ae){
- System.err.println("[ProjectExecutor::AddStatusPhase] Error defining new status to the phase: "+ae.getMessage());
- ae.printStackTrace();
- System.exit(-1);
- }
- }
-
- public static final int TotalJobs=0;
-
-
- public void setDispSetting(){
+ /////////////////////////////////////
+ /* Fast Refine - Long Refine - Cij */
+ if (projectType.equals("3") && phaseOption.booleanValue()==true){
- System.out.println("\n Here I just start the ProjectExecutor::setDispSetting \n");
-
- //List of Package of __CC5f_1
- String[] ListOfPackages = null;
- String ActuallyPackage = null;
- DispatchTask[] dispatch = null;
-
- try{
- ListOfPackages = ListPackages();
- } catch (Exception ae){
- System.err.println("[ProjectExecutor::setDispSetting()] Error getting the list of packages: "+ae.getMessage());
- ae.printStackTrace();
- System.exit(-1);
- }
-
- //TotalJobs
-
- try{
- dispatch = new DispatchTask[ListOfPackages.length];
-
- for(int i=0;i<ListOfPackages.length;i++){
-
- //try{
- ActuallyPackage = ListOfPackages[i];
- ...
[truncated message content] |
|
From: <das...@us...> - 2008-10-29 20:14:16
|
Revision: 1183
http://vlab.svn.sourceforge.net/vlab/?rev=1183&view=rev
Author: dasil014
Date: 2008-10-29 20:14:14 +0000 (Wed, 29 Oct 2008)
Log Message:
-----------
This class has methods that executes manipulation of data in the external side of the Web service. It has methods to call scripts, create files based on data defined by the user through web portal, and creation of data based on workflow.
Added Paths:
-----------
trunk/vlab/services/project-executor/src/main/java/org/vlab/services/OutRunnings.java
Added: trunk/vlab/services/project-executor/src/main/java/org/vlab/services/OutRunnings.java
===================================================================
--- trunk/vlab/services/project-executor/src/main/java/org/vlab/services/OutRunnings.java (rev 0)
+++ trunk/vlab/services/project-executor/src/main/java/org/vlab/services/OutRunnings.java 2008-10-29 20:14:14 UTC (rev 1183)
@@ -0,0 +1,722 @@
+package org.vlab.services;
+
+import java.io.File.*;
+import java.io.*;
+
+import java.util.zip.ZipEntry;
+import java.util.zip.ZipFile;
+import java.util.zip.ZipOutputStream;
+import java.util.*;
+
+import org.apache.axis.encoding.Base64;
+
+public class OutRunnings {
+
+ public static void createQPointFile(){
+
+ try {
+ BufferedWriter out = new BufferedWriter(new FileWriter(ProjectExecutor.ENV_PACKAGE_DIR+ProjectExecutor.dirEPName+"/__q-points_grid"));
+ out.write("4 4 4 0 0 0");
+ out.close();
+ } catch (IOException e) {
+ System.err.println("Error: " + e.getMessage());
+ e.printStackTrace();
+ //System.exit(-1);
+ }
+ }
+
+ public static void CijGentab(){
+
+ ProjectExecutor.setDirEPName();
+
+ System.out.println("\n Here I start the CijGentab() \n");
+
+ InputStream stderr = null;
+ InputStreamReader isr_err = null;
+ BufferedReader br_err = null;
+ InputStream stdin = null;
+ InputStreamReader isr_stdin = null;
+ BufferedReader br_stdin = null;
+ String returnMessage = null;
+ int exitValue = 0;
+ File FileDir = null;
+
+ try{
+ FileDir = new File(ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName);
+ String[] fullcommand = {ProjectExecutor.ENV_SCRIPT +"Cij_gentab.sh", ProjectExecutor.getCrystalType()};
+
+ Runtime Rt = Runtime.getRuntime();
+ Process procShell = Rt.exec(fullcommand, null , FileDir);
+
+ stderr = procShell.getErrorStream();
+ isr_err = new InputStreamReader(stderr);
+ br_err = new BufferedReader(isr_err);
+
+ stdin = procShell.getInputStream();
+ isr_stdin = new InputStreamReader(stdin);
+ br_stdin = new BufferedReader(isr_stdin);
+
+ for(int j=0;(returnMessage = br_stdin.readLine()) != null;j++){
+ System.out.println("Output >> " + returnMessage);
+ //returnMessage = br_stdin.readLine();
+ }
+
+ exitValue = procShell.waitFor();
+ System.out.println("Exit Status: "+exitValue);
+
+ } catch (Exception ae){
+
+ System.err.println("[ProjectExecutor:CijGentab()] => Error: " + ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+ }
+
+
+
+
+ //This method will no longer be used
+ private String UnCompressTarBallFromWS(String ProjectType, Boolean phaseOption){
+
+ /* Starting the process to UnZip the file */
+ int count;
+ byte data[] = null;
+
+ try {
+ BufferedOutputStream dest = null;
+ BufferedInputStream is = null;
+ ZipEntry entry;
+ ZipFile zipfile = new ZipFile(ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName + "TarBallFromWS.zip");
+ Enumeration e = zipfile.entries();
+
+ while(e.hasMoreElements()) {
+ entry = (ZipEntry) e.nextElement();
+ System.out.println("Extracting TarBallFromWS.zip : " + entry);
+ is = new BufferedInputStream (zipfile.getInputStream(entry));
+
+ data = new byte[ProjectExecutor.BUFFER];
+ FileOutputStream fos = new FileOutputStream(ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName + entry.getName());
+ dest = new BufferedOutputStream(fos, ProjectExecutor.BUFFER);
+ while ((count = is.read(data, 0, ProjectExecutor.BUFFER)) != -1) {
+ dest.write(data, 0, count);
+ }
+ dest.flush();
+ dest.close();
+ is.close();
+ }
+ } catch(Exception e) {
+ System.err.println("[ProjectExecutor.java] In setUncompressZip() " + e.getMessage());
+ e.printStackTrace();
+ //System.exit(-1);
+ }
+ return "sucessfully Uncompress of TarBallFromWS.zip";
+ }
+
+
+ public static String UnCompressExecutionPackage(String ProjectType, Boolean phaseOption){
+ System.out.println(" Here I start the ProjectExecutor::UnCompressExecutionPackage() ");
+
+ /* Starting the process to UnZip the file */
+ int count;
+ byte data[] = null;
+ String[] Packages = DispatcherSetting.ListPackages(ProjectType, phaseOption);
+ String actuallyPackage = null;
+
+ for(int i=0; i < Packages.length; i++){
+
+ actuallyPackage = Packages[i];
+
+ try {
+ BufferedOutputStream dest = null;
+ BufferedInputStream is = null;
+ ZipEntry entry;
+ ZipFile zipfile = new ZipFile(ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName + actuallyPackage);
+ Enumeration e = zipfile.entries();
+
+ while(e.hasMoreElements()) {
+ entry = (ZipEntry) e.nextElement();
+ StringTokenizer st = new StringTokenizer(ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName + entry.getName(), "/" );
+ String accumulatedDir = "/";
+ String TokenName;
+ File tempDirectory = null;
+
+ while ( st.hasMoreTokens() ) {
+ TokenName = st.nextToken();
+ accumulatedDir += TokenName + "/";
+ System.out.println("Token: "+TokenName);
+ // System.out.println("SubStr: "+zipFileName.substring(0,zipFileName.length()-4));
+
+ if (TokenName.equals(actuallyPackage.substring(0,actuallyPackage.length()-4))){
+ System.out.println("accumalatedDir: "+accumulatedDir);
+ tempDirectory = new File( accumulatedDir );
+ /*If to create a temp directory*/
+ if ( !tempDirectory.exists() ) {
+ if ( !tempDirectory.mkdir() ) {
+ System.err.println("unable to create directory: " + accumulatedDir );
+ } else
+ System.out.println( tempDirectory.getAbsolutePath() + " created." );
+ tempDirectory = new File (accumulatedDir+"/tmp");
+ tempDirectory.mkdir();
+ System.out.println( tempDirectory.getAbsolutePath() + " created." );
+ }
+
+ if (entry.getSize()>0){
+ System.out.println("Extracting "+actuallyPackage+": "+entry);
+ is = new BufferedInputStream (zipfile.getInputStream(entry));
+
+ data = new byte[ProjectExecutor.BUFFER];
+ FileOutputStream fos = new FileOutputStream(ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName + entry.getName());
+ dest = new BufferedOutputStream(fos, ProjectExecutor.BUFFER);
+ while ((count = is.read(data, 0, ProjectExecutor.BUFFER)) != -1) {
+ dest.write(data, 0, count);
+ }
+ dest.flush();
+ dest.close();
+ is.close();
+ }
+ }
+ }
+ }
+ } catch(Exception e) {
+ System.err.println("[ProjectExecutor.java] In setUncompressZip() " + e.getMessage());
+ e.printStackTrace();
+ //System.exit(-1);
+ }
+ }
+ return "Sucessfully";
+ }
+ /* Preciso de um metodo pra descobrir se o projeto eh Fast Refine ou Long Refine */
+
+
+
+ public static String UnCompressComplexCalc(){
+
+ System.out.println(" Here I start the ProjectExecutor::UnCompressComplexCalc() ");
+
+ InputStream stderr = null;
+ InputStreamReader isr_err = null;
+ BufferedReader br_err = null;
+ InputStream stdin = null;
+ InputStreamReader isr_stdin = null;
+ BufferedReader br_stdin = null;
+ String returnMessage = null;
+ int exitValue = 0;
+
+ try{
+ File FileDir = new File(ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName);
+ String[] fullcommand = {ProjectExecutor.ENV_SCRIPT +"unzip.sh", ProjectExecutor.zipFileName };
+ Runtime Rt = Runtime.getRuntime();
+ Process procShell = Rt.exec(fullcommand, null , FileDir);
+
+ stderr = procShell.getErrorStream();
+ isr_err = new InputStreamReader(stderr);
+ br_err = new BufferedReader(isr_err);
+
+ stdin = procShell.getInputStream();
+ isr_stdin = new InputStreamReader(stdin);
+ br_stdin = new BufferedReader(isr_stdin);
+
+ for(int j=0;(returnMessage = br_stdin.readLine()) != null;j++){
+ System.out.println("Output >> " + returnMessage);
+ //returnMessage = br_stdin.readLine();
+ }
+
+ exitValue = procShell.waitFor();
+ System.out.println("Exit Status: "+exitValue);
+
+ } catch (Exception ae){
+
+ System.err.println("[ProjectExecutor:UnCompressComplexCalc()] => Error: " + ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+ return "Sucessfully";
+ }
+
+
+ public static void RunPackageESG(Boolean phaseOption){
+
+ System.out.println("\n Here I start the Script of ESG \n");
+
+ InputStream stderr = null;
+ InputStreamReader isr_err = null;
+ BufferedReader br_err = null;
+ InputStream stdin = null;
+ InputStreamReader isr_stdin = null;
+ BufferedReader br_stdin = null;
+ String returnMessage = null;
+ int exitValue = 0;
+ File FileDir = null;
+ String[] fullcommand1 = null;
+
+ try{
+ FileDir = new File(ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName);
+
+ if (phaseOption.booleanValue()==true){
+ String[] fullcommand2 = { ProjectExecutor.ENV_SCRIPT +"FastRefine.sh" , "GenericInput" };
+ fullcommand1 = fullcommand2;
+ }
+ else{
+ String[] fullcommand2 = { ProjectExecutor.ENV_SCRIPT +"LongRefineCd.sh", "GenericInput" };
+ fullcommand1 = fullcommand2;
+ }
+
+ Runtime Rt = Runtime.getRuntime();
+ Process procShell = Rt.exec(fullcommand1, null , FileDir);
+
+ stderr = procShell.getErrorStream();
+ isr_err = new InputStreamReader(stderr);
+ br_err = new BufferedReader(isr_err);
+
+ stdin = procShell.getInputStream();
+ isr_stdin = new InputStreamReader(stdin);
+ br_stdin = new BufferedReader(isr_stdin);
+
+ for(int j=0;(returnMessage = br_stdin.readLine()) != null;j++){
+ System.out.println("Output >> " + returnMessage);
+ }
+
+ /*for(int j=0;(returnMessage = br_stdin.readLine()) != null;j++){
+ System.out.println("Output >> " + returnMessage);
+ }*/
+
+ exitValue = procShell.waitFor();
+ System.out.println("Exit Status: "+exitValue);
+ } catch (Exception ae){
+
+ System.err.println("[OutRunnings:RunPackageESG()] => Error: " + ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+
+ }
+
+
+ public static void setFastRefineFitting(){
+
+ System.out.println("\n Here I start the setFastRefineFitting() \n");
+
+ InputStream stderr = null;
+ InputStreamReader isr_err = null;
+ BufferedReader br_err = null;
+ InputStream stdin = null;
+ InputStreamReader isr_stdin = null;
+ BufferedReader br_stdin = null;
+ String returnMessage = null;
+ int exitValue = 0;
+ String fullcommand = null;
+
+ try{
+ File FileDir = new File(ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName);
+ fullcommand = ProjectExecutor.ENV_SCRIPT +"FRef_fit.sh";
+ Runtime Rt = Runtime.getRuntime();
+ Process procShell = Rt.exec(fullcommand, null , FileDir);
+
+ stderr = procShell.getErrorStream();
+ isr_err = new InputStreamReader(stderr);
+ br_err = new BufferedReader(isr_err);
+
+ stdin = procShell.getInputStream();
+ isr_stdin = new InputStreamReader(stdin);
+ br_stdin = new BufferedReader(isr_stdin);
+
+ for(int j=0;(returnMessage = br_stdin.readLine()) != null;j++){
+ System.out.println("Output >> " + returnMessage);
+ }
+
+ exitValue = procShell.waitFor();
+ System.out.println("Exit Status: "+exitValue);
+
+ } catch (Exception ae){
+
+ System.err.println("[ProjectExecutor:setFastRefineFitting()] => Error: " + ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+ }
+
+ public static void setLongRefineFitting(){
+
+ System.out.println("\n Here I start the setLongRefineFitting() \n");
+
+ InputStream stderr = null;
+ InputStreamReader isr_err = null;
+ BufferedReader br_err = null;
+ InputStream stdin = null;
+ InputStreamReader isr_stdin = null;
+ BufferedReader br_stdin = null;
+ String returnMessage = null;
+ int exitValue = 0;
+ String fullcommand = null;
+
+
+ try{
+ File FileDir = new File(ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName);
+ fullcommand = ProjectExecutor.ENV_SCRIPT +"LRef_fit.sh";
+
+ Runtime Rt = Runtime.getRuntime();
+ Process procShell = Rt.exec(fullcommand, null , FileDir);
+
+ stderr = procShell.getErrorStream();
+ isr_err = new InputStreamReader(stderr);
+ br_err = new BufferedReader(isr_err);
+
+ stdin = procShell.getInputStream();
+ isr_stdin = new InputStreamReader(stdin);
+ br_stdin = new BufferedReader(isr_stdin);
+
+ for(int j=0;(returnMessage = br_stdin.readLine()) != null;j++){
+ System.out.println("Output >> " + returnMessage);
+ //returnMessage = br_stdin.readLine();
+ }
+
+ exitValue = procShell.waitFor();
+ System.out.println("Exit Status: "+exitValue);
+ } catch (Exception ae){
+
+ System.err.println("[ProjectExecutor:setLongRefineFitting()] => Error: " + ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+ }
+
+
+ /* This method is just to create Zip File*/
+ public static void setCreatePackage(String pesdataexecutionpackage){
+
+ //int len;
+ System.out.println("\n Here I start the setCreatePackage() \n");
+ byte[] DataToFile = null;
+ File zipFile = null;
+
+ //DimeAttachments streamfiledime = DimeAttachment();
+
+ try{
+ System.out.println("File size from Client: " + pesdataexecutionpackage.length());
+ DataToFile = Base64.decode(pesdataexecutionpackage);
+ } catch(Exception ae){
+ //ae.printStackTrace();
+ System.err.println("[ProjectExecutor::setCreatePackage] Error: " + ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+
+
+
+ try{
+ /*Set Name for Zip File*/
+ ProjectExecutor.setDirEPName();
+
+ zipFile = new File(ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName);
+
+ if (zipFile.exists())
+ System.out.println("ALL PREVIOUS FILE WAS DELETED: " + deleteDir(zipFile));
+
+ zipFile.mkdir();
+ zipFile = new File(ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName + ProjectExecutor.zipFileName);
+ System.out.println("File name: "+zipFile.getName());
+ System.out.println("File Size: "+DataToFile.length);
+ System.out.println("The outputstream for the file: "+zipFile);
+ OutputStream srcDest = new FileOutputStream(zipFile);
+ System.out.println("The write data on the file");
+ srcDest.write(DataToFile, 0, DataToFile.length);
+ System.out.println("Close the file");
+ srcDest.close();
+ System.out.println("I created the file " + ProjectExecutor.zipFileName + " ");
+ /* Here I should set one variable with the right path to Zip File Created */
+ }catch (Exception ae){
+ System.err.println("[ProjectExecutor::setCreatePackage()] => Error creating the ZipFile: " + ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+ }
+
+ /* Here I uncompress the package that I got from the Page */
+ public void setUncompressZip(){
+
+ /* Starting the process to UnZip the file */
+ int count;
+ byte data[] = null;
+
+ try {
+ BufferedOutputStream dest = null;
+ BufferedInputStream is = null;
+ ZipEntry entry;
+ ZipFile zipfile = new ZipFile(ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName + ProjectExecutor.zipFileName);
+ Enumeration e = zipfile.entries();
+
+ while(e.hasMoreElements()) {
+ entry = (ZipEntry) e.nextElement();
+ StringTokenizer st = new StringTokenizer(ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName + entry.getName(), "/" );
+ String accumulatedDir = "/";
+ String TokenName;
+ File tempDirectory = null;
+
+ while ( st.hasMoreTokens() ) {
+ TokenName = st.nextToken();
+ accumulatedDir += TokenName + "/";
+ System.out.println("Token: "+TokenName);
+ System.out.println("SubStr: " + ProjectExecutor.zipFileName.substring(0, ProjectExecutor.zipFileName.length()-4));
+
+ if (TokenName.matches(".*Input.*")){
+ System.out.println("InputName is: "+TokenName);
+ }
+
+ if (TokenName.equals(ProjectExecutor.zipFileName.substring(0, ProjectExecutor.zipFileName.length()-4))){
+ System.out.println("accumalatedDir: "+accumulatedDir);
+ tempDirectory = new File( accumulatedDir );
+ /*If to create a temp directory*/
+ if ( !tempDirectory.exists() ) {
+ if ( !tempDirectory.mkdir() ) {
+ System.err.println("unable to create directory: " + accumulatedDir );
+ } else
+ System.out.println( tempDirectory.getAbsolutePath() + " created." );
+ tempDirectory = new File (accumulatedDir+"/tmp");
+ tempDirectory.mkdir();
+ System.out.println( tempDirectory.getAbsolutePath() + " created." );
+ }
+
+ if (entry.getSize()>0){
+ System.out.println("Extracting " + ProjectExecutor.zipFileName+": "+entry);
+ is = new BufferedInputStream (zipfile.getInputStream(entry));
+
+ data = new byte[ProjectExecutor.BUFFER];
+ FileOutputStream fos = new FileOutputStream(ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName + entry.getName());
+ dest = new BufferedOutputStream(fos, ProjectExecutor.BUFFER);
+ while ((count = is.read(data, 0, ProjectExecutor.BUFFER)) != -1) {
+ dest.write(data, 0, count);
+ }
+ dest.flush();
+ dest.close();
+ is.close();
+ }
+ }
+ }
+ }
+ } catch(Exception e) {
+ System.err.println("[ProjectExecutor.java] In setUncompressZip() " + e.getMessage());
+ e.printStackTrace();
+ //System.exit(-1);
+ }
+ }
+
+
+
+ public static void RunIntermediate34(){
+
+ System.out.println("\n Here I start the RunIntermediate34() \n");
+
+ InputStream stderr = null;
+ InputStreamReader isr_err = null;
+ BufferedReader br_err = null;
+ InputStream stdin = null;
+ InputStreamReader isr_stdin = null;
+ BufferedReader br_stdin = null;
+ String returnMessage = null;
+ int exitValue = 0;
+ String fullcommand = null;
+ File FileDir = null;
+ try{
+
+ FileDir = new File(ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName);
+
+ fullcommand = ProjectExecutor.ENV_SCRIPT +"Intermediate34.sh";
+
+ Runtime Rt = Runtime.getRuntime();
+ Process procShell = Rt.exec(fullcommand, null , FileDir);
+
+ stderr = procShell.getErrorStream();
+ isr_err = new InputStreamReader(stderr);
+ br_err = new BufferedReader(isr_err);
+
+ stdin = procShell.getInputStream();
+ isr_stdin = new InputStreamReader(stdin);
+ br_stdin = new BufferedReader(isr_stdin);
+
+ for(int j=0;(returnMessage = br_stdin.readLine()) != null;j++){
+ System.out.println("Output >> " + returnMessage);
+ }
+ exitValue = procShell.waitFor();
+ System.out.println("Exit Status: "+exitValue);
+ } catch (Exception ae){
+
+ System.err.println("[ProjectExecutor:RunIntermediate34()] => Error: " + ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+ }
+
+
+ public static void ScriptCreatePhononPackages(){
+
+ System.out.println("\n Here I start the ScriptCreatePhononPackages() \n");
+
+ InputStream stderr = null;
+ InputStreamReader isr_err = null;
+ BufferedReader br_err = null;
+ InputStream stdin = null;
+ InputStreamReader isr_stdin = null;
+ BufferedReader br_stdin = null;
+ String returnMessage = null;
+ int exitValue = 0;
+ String fullcommand = null;
+ File FileDir = null;
+
+ try{
+ FileDir = new File( ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName);
+ fullcommand = ProjectExecutor.ENV_SCRIPT +"x2.sh";
+
+ Runtime Rt = Runtime.getRuntime();
+ Process procShell = Rt.exec(fullcommand, null , FileDir);
+
+ stderr = procShell.getErrorStream();
+ isr_err = new InputStreamReader(stderr);
+ br_err = new BufferedReader(isr_err);
+
+ stdin = procShell.getInputStream();
+ isr_stdin = new InputStreamReader(stdin);
+ br_stdin = new BufferedReader(isr_stdin);
+
+ for(int j=0;(returnMessage = br_stdin.readLine()) != null;j++){
+ System.out.println("Output >> " + returnMessage);
+ }
+
+ /*for(int j=0;(returnMessage = br_stdin.readLine()) != null;j++){
+ System.out.println("Output >> " + returnMessage);
+ }*/
+
+ exitValue = procShell.waitFor();
+ System.out.println("Exit Status: "+exitValue);
+ } catch (Exception ae){
+
+ System.err.println("[OutRunning:ScriptCreatePhononPackages()] => Error: " + ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+ }
+
+
+
+
+
+
+
+
+ public static void setTheNewPackage(){
+
+ File readExecutionPackage = null;
+ byte[] buff = null;
+ InputStream sourcefile = null;
+
+ try{
+ readExecutionPackage = new File(ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName + "ComplexCalc.zip");
+ ProjectExecutor.zipFileName = "ComplexCalc.zip";
+
+ System.out.println("\n File name is: "+readExecutionPackage.getName());
+ System.out.println("\n File size is: "+readExecutionPackage.length());
+
+ int filesiuze = (int) readExecutionPackage.length();
+ buff = new byte[filesiuze];
+ sourcefile = new FileInputStream(readExecutionPackage);
+ sourcefile.read(buff);
+ //ProjectExecutor.pesdataexecutionpackage = new String(Base64.encode(buff));
+ }catch (Exception ae){
+ System.err.println("[ProjectExecutor::setTheNewPackage()] => Error "+ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+ }
+
+
+
+
+ public static void CreatePackage(){
+
+ //File listPseudoFile = new File(ENV_UPLOAD_DIR);
+ File RunDirTemplate = null;
+ //Create the ZIP file
+ String outFilename = null;
+
+ try{
+ RunDirTemplate = new File(ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName +"RunDirTemplate");
+ outFilename = ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName +"ComplexCalc.zip";
+
+ ZipOutputStream out = new ZipOutputStream(new FileOutputStream(outFilename));
+ System.out.println("[ElasInputManager.java] Creating : " + outFilename);
+ AddDirToZiP(RunDirTemplate, out, ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName + ProjectExecutor.INPUT_GENERIC);
+ out.close();
+ System.out.println("[ElasInputManager.java] Zip File Created sucessfully");
+ }catch (IOException ae){
+ System.out.println("[ProjectExecutor::CreatePackage()] Error creating the basic package " + ae.getMessage());
+ ae.printStackTrace();
+ //return "fail";
+ }
+ }
+
+ public static void AddDirToZiP(File dirObj, ZipOutputStream out, String AbsolutePathGenericInput) throws IOException
+ {
+ File[] files = dirObj.listFiles();
+ File GenericInput = new File(AbsolutePathGenericInput);
+ byte[] tmpBuf = new byte[1024];
+ FileInputStream in=null;
+ int len;
+
+ for (int i=0; i<files.length; i++){
+ if(files[i].isDirectory()){
+ File[] files_temp = files[i].listFiles();
+ in = new FileInputStream(files_temp[0].getAbsoluteFile());
+ System.out.println("[ElasPwscfBean.java] Adding: " + files_temp[0].getAbsolutePath());
+ out.putNextEntry(new ZipEntry("/RunDirTemplate/"+"tmp/"+files_temp[0].getName()));
+ }else{
+ in = new FileInputStream(files[i].getAbsoluteFile());
+ System.out.println("[ElasPwscfBean.java] Adding: " + files[i].getAbsolutePath());
+ out.putNextEntry(new ZipEntry("/RunDirTemplate/"+files[i].getName()));
+ }
+
+ // Transfer from the file to the ZIP file
+ while((len = in.read(tmpBuf)) > 0){
+ out.write(tmpBuf, 0, len);
+ }
+ // Complete the entry
+ out.closeEntry();
+ in.close();
+ }
+
+ /* Insert the generic Input to ComplexCalc.zip*/
+ in = new FileInputStream(GenericInput);
+ System.out.println("[ElasPwscfBean.java] Adding: " + GenericInput.getAbsolutePath());
+ out.putNextEntry(new ZipEntry(GenericInput.getName()));
+ //Transfer from the file to the ZIP file
+ while((len = in.read(tmpBuf)) > 0){
+ out.write(tmpBuf, 0, len);
+ }
+ // Complete the entry
+ out.closeEntry();
+ in.close();
+ }
+
+
+
+
+
+ public static boolean deleteDir(File dir) {
+ try{
+ if (dir.isDirectory()) {
+ String[] children = dir.list();
+ for (int i=0; i<children.length; i++) {
+ boolean success = deleteDir(new File(dir, children[i]));
+ if (!success) {
+ return false;
+ }
+ }
+ }
+ } catch (Exception ae){
+ System.err.println("[deleteDir] => "+ae.getMessage());
+ ae.printStackTrace();
+ }
+ // The directory is now empty so delete it
+ return dir.delete();
+ }
+
+
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <das...@us...> - 2008-10-29 20:08:02
|
Revision: 1182
http://vlab.svn.sourceforge.net/vlab/?rev=1182&view=rev
Author: dasil014
Date: 2008-10-29 20:07:53 +0000 (Wed, 29 Oct 2008)
Log Message:
-----------
I added some print out information to check integrity of the Task Receipts in the pollphase
Modified Paths:
--------------
trunk/vlab/services/project-executor/src/main/java/org/vlab/services/PollPhase.java
Modified: trunk/vlab/services/project-executor/src/main/java/org/vlab/services/PollPhase.java
===================================================================
--- trunk/vlab/services/project-executor/src/main/java/org/vlab/services/PollPhase.java 2008-10-29 20:05:54 UTC (rev 1181)
+++ trunk/vlab/services/project-executor/src/main/java/org/vlab/services/PollPhase.java 2008-10-29 20:07:53 UTC (rev 1182)
@@ -90,6 +90,7 @@
} catch (Exception ae){
System.err.println("[PollPhase::PollPhase()] => Error Creating the Threads:"+ae.getMessage());
ae.printStackTrace();
+
}
//try{
@@ -191,8 +192,11 @@
//listBdata.add(bdataContent);
taskReceipt.setContent(listBdata);
- ProjectExecutor.setTaskReceipt("Poll",ProjectExecutor.TaskReceipToString(taskReceipt));
+ //ReceiptManagement.setTaskReceipt("Poll", ReceiptManagement.TaskReceipToString(taskReceipt));
+ ProjectExecutor.ListTaskReceipt.add( taskReceipt);
+
+
}else{
/* IT MEANS THAT THE ACTUALLY JOB STILL TUNNING */
@@ -207,7 +211,10 @@
}
taskReceipt.setContent(listBdata);
- ProjectExecutor.setTaskReceipt("Poll",ProjectExecutor.TaskReceipToString(taskReceipt));
+ //ReceiptManagement.setTaskReceipt("Poll", ReceiptManagement.TaskReceipToString(taskReceipt));
+
+ ProjectExecutor.ListTaskReceipt.add( taskReceipt);
+
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <das...@us...> - 2008-10-29 20:06:04
|
Revision: 1181
http://vlab.svn.sourceforge.net/vlab/?rev=1181&view=rev
Author: dasil014
Date: 2008-10-29 20:05:54 +0000 (Wed, 29 Oct 2008)
Log Message:
-----------
All methods that manipulated the Receipt recursively moved from ProjectExecutor.java to this new class.
Added Paths:
-----------
trunk/vlab/services/project-executor/src/main/java/org/vlab/services/ReceiptManagement.java
Added: trunk/vlab/services/project-executor/src/main/java/org/vlab/services/ReceiptManagement.java
===================================================================
--- trunk/vlab/services/project-executor/src/main/java/org/vlab/services/ReceiptManagement.java (rev 0)
+++ trunk/vlab/services/project-executor/src/main/java/org/vlab/services/ReceiptManagement.java 2008-10-29 20:05:54 UTC (rev 1181)
@@ -0,0 +1,872 @@
+package org.vlab.services;
+
+import org.exolab.castor.xml.Marshaller;
+import org.exolab.castor.xml.Unmarshaller;
+import java.util.Enumeration;
+import java.util.List;
+import java.util.Vector;
+import java.net.URL;
+import java.sql.Connection;
+import java.sql.DriverManager;
+import java.sql.ResultSet;
+import java.sql.Connection;
+import java.sql.DriverManager;
+import java.sql.ResultSet;
+import java.sql.Statement;
+import java.io.*;
+
+import org.vlab.ElasPwscfBean;
+
+public class ReceiptManagement {
+
+ //private static List ListTaskReceipt;
+
+ public static Receipt setPhaseReceipt(String ProjectType, Boolean PhaseOption){
+ System.out.println("\n Here I start the Project Phase Receipt\n");
+
+ Bdata bdataData = null;
+ List bdataContentPhase = new Vector();
+ Receipt phaseReceipt;
+ phaseReceipt = new Receipt();
+ //ListTaskReceipt = new Vector();
+
+
+ try{
+ if (ProjectType.equals("1")){
+ /* Phase Receipt For Single Calculation */
+ phaseReceipt.setCode("002");
+ phaseReceipt.setKind("Single Phase");
+ phaseReceipt.setProjectid(ProjectExecutor.projectId);
+ phaseReceipt.setProjectname(ProjectExecutor.projectName);
+ System.out.println("YOU CHOOSE SINGLE CALCULATION");
+ //setPhaseOption(new Boolean(false));
+
+ /*Setting ID value for phaseReceipt*/
+ // bdataData = new Bdata();
+ // bdataData.setId("ReceiptId");
+ // bdataData.setCode("015");
+ // bdataData.setKeyword("RECEIPTID");
+ // bdataData.setSvalue("01"+"."+ projectId + "." + projectName + "." + projectUserName);
+ // bdataContentPhase.add(bdataData);
+
+ // phaseReceipt1.setContent(bdataContentPhase);
+ }
+ } catch (Exception ae){
+ System.err.println("[ProjectExecutor::setPhaseReceipt()] Error defining Phase Receipt for Single Calculation: "+ ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+
+
+ try{
+ if (ProjectType.equals("2") && PhaseOption.booleanValue()==true){
+ /* Phase Receipt For Fast Refine */
+ phaseReceipt.setCode("002");
+ phaseReceipt.setKind("Approximate EOS");
+ phaseReceipt.setProjectid(ProjectExecutor.projectId);
+ phaseReceipt.setProjectname(ProjectExecutor.projectName);
+ System.out.println("YOU CHOOSE FAST REFINE");
+
+ // if (phaseReceipt2.getContent() == null){
+ // /*Setting ID value for phaseReceipt*/
+ // bdataData = new Bdata();
+ // bdataData.setId("ReceiptId");
+ // bdataData.setCode("015");
+ // bdataData.setKeyword("RECEIPTID");
+ // bdataData.setSvalue("02"+"."+ projectId + "." + projectName + "." + projectUserName);
+ // bdataContentPhase.add(bdataData);
+ //
+ // phaseReceipt2.setContent(bdataContentPhase);
+ // }
+
+ }else if (ProjectType.equals("2") && PhaseOption.booleanValue()==false){
+ /* Phase Receipt Receipt For Long Refine */
+ phaseReceipt.setCode("002");
+ phaseReceipt.setKind("EOS Refinement");
+ phaseReceipt.setProjectid(ProjectExecutor.projectId);
+ phaseReceipt.setProjectname(ProjectExecutor.projectName);
+ System.out.println("YOU CHOOSE LONG REFINE");
+
+ // if (phaseReceipt3.getContent() == null){
+ // /*Setting ID value for phaseReceipt*/
+ // bdataData = new Bdata();
+ // bdataData.setId("ReceiptId");
+ // bdataData.setCode("015");
+ // bdataData.setKeyword("RECEIPTID");
+ // bdataData.setSvalue("03"+"."+ projectId + "." + projectName + "." + projectUserName);
+ // bdataContentPhase.add(bdataData);
+ //
+ // phaseReceipt3.setContent(bdataContentPhase);
+ // }
+
+ }
+ } catch (Exception ae){
+ System.err.println("[ProjectExecutor::setPhaseReceipt()] Error defining Phase receipt for EOS Calculation: "+ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+
+ try{
+ /*This if means I am using Cij Calculation*/
+ if (PhaseOption.booleanValue()==false && ProjectType.equals("3")){
+ phaseReceipt.setCode("003");
+ phaseReceipt.setKind("Cij Calculation");
+ phaseReceipt.setProjectid(ProjectExecutor.projectId);
+ phaseReceipt.setProjectname(ProjectExecutor.projectName);
+ System.out.println("YOU ARE RUNNING CIJ CALCULATION");
+
+ // if (phaseReceipt4.getContent() == null){
+ // /*Setting ID value for phaseReceipt*/
+ // bdataData = new Bdata();
+ // bdataData.setId("ReceiptId");
+ // bdataData.setCode("015");
+ // bdataData.setKeyword("RECEIPTID");
+ // bdataData.setSvalue("04"+"."+ projectId + "." + projectName + "." + projectUserName);
+ // bdataContentPhase.add(bdataData);
+
+ // phaseReceipt4.setContent(bdataContentPhase);
+ // }
+ }
+ } catch (Exception ae){
+ System.err.println("[ProjectExecutor::setPhaseReceipt()] Error defining Phase receipt for Cij Calculation: "+ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+
+
+ try{
+ /*Project Type for HiPT Thermo*/
+ if (PhaseOption.booleanValue()==false && ProjectType.equals("4")){
+ phaseReceipt.setCode("004");
+ phaseReceipt.setKind("HiPT Thermo");
+ phaseReceipt.setProjectid(ProjectExecutor.projectId);
+ phaseReceipt.setProjectname(ProjectExecutor.projectName);
+ System.out.println("YOU ARE RUNNING HIPT THERMO");
+
+ //if (phaseReceipt5.getContent() == null){
+ // /*Setting ID value for phaseReceipt*/
+ // bdataData = new Bdata();
+ // bdataData.setId("ReceiptId");
+ // bdataData.setCode("015");
+ // bdataData.setKeyword("RECEIPTID");
+ // bdataData.setSvalue("05"+"."+ projectId + "." + projectName + "." + projectUserName);
+ // bdataContentPhase.add(bdataData);
+ //
+ // phaseReceipt5.setContent(bdataContentPhase);
+ // }
+ }
+ } catch(Exception ae){
+ System.err.println("[ProjectExecutor::setPhaseReceipt()] Error defining the Hipt Thermo project: "+ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+
+ try{
+ /*Project Type for HiPT Cij*/
+ if (PhaseOption.booleanValue()==false && ProjectType.equals("5")){
+ phaseReceipt.setCode("005");
+ phaseReceipt.setKind("HiPT Cij");
+ phaseReceipt.setProjectid(ProjectExecutor.projectId);
+ phaseReceipt.setProjectname(ProjectExecutor.projectName);
+ System.out.println("YOU ARE RUNNING HIPT CIJ");
+
+ //if (phaseReceipt6.getContent() == null){
+ /*Setting ID value for phaseReceipt*/
+ // bdataData = new Bdata();
+ //bdataData.setId("ReceiptId");
+ // bdataData.setCode("015");
+ // bdataData.setKeyword("RECEIPTID");
+ // bdataData.setSvalue("06"+"."+ projectId + "." + projectName + "." + projectUserName);
+ // bdataContentPhase.add(bdataData);
+
+ // phaseReceipt6.setContent(bdataContentPhase);
+ //}
+ }
+ } catch (Exception ae){
+ System.err.println("[ProjectExecutor::setPhaseReceipt()] Error defininf Hipt Cij project: " +ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+ return phaseReceipt;
+ }
+
+
+ public static Receipt setProjectReceipt(){
+
+ /*Set the right path for Project*/
+ ProjectExecutor.setDirEPName();
+ /*if (projectType.equals("1"))
+ ListPhaseReceipt1 = new ArrayList();
+ else if (projectType.equals("2") && phaseOption.booleanValue()==false)
+ ListPhaseReceipt2 = new ArrayList();
+ else if (projectType.equals("2") && phaseOption.booleanValue()==true)
+ ListPhaseReceipt3 = new ArrayList();
+ else{
+ ListPhaseReceipt4 = new ArrayList();
+ }*/
+
+ Receipt projectReceipt;
+ Bdata bdataData;
+ List bdataContentProject = new Vector();
+
+ projectReceipt = new Receipt();
+
+ try{
+ /*Project Receipt*/
+ projectReceipt.setCode("001");
+ projectReceipt.setKind("Project");
+ projectReceipt.setProjectid(ProjectExecutor.projectId);
+ projectReceipt.setProjectname(ProjectExecutor.projectName);
+
+ System.out.println("\nHere I set the inittial projectReceipt\n");
+
+ bdataData = new Bdata();
+ bdataData.setId("009");
+ bdataData.setCode("EnvLogDir");
+ bdataData.setKeyword("ENVLOGDIR");
+ bdataData.setSvalue(ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName);
+ bdataContentProject.add(bdataData);
+
+ bdataData = new Bdata();
+ bdataData.setId("ReceiptId");
+ bdataData.setCode("015");
+ bdataData.setKeyword("RECEIPTID");
+ bdataData.setSvalue(ProjectExecutor.projectId + "." + ProjectExecutor.projectName + "." + ProjectExecutor.projectUserName);
+ bdataContentProject.add(bdataData);
+
+ System.out.println("\nHere I set the bdata for the ProjectReceipt\n");
+
+ projectReceipt.setContent(bdataContentProject);
+ } catch (Exception ae){
+ System.err.println("[ProjectExecutor::setProjectReceipt] Error defining the Project Receipt: "+ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+
+ return projectReceipt;
+ }
+
+
+ public static synchronized String ProjectReceiptToString(Receipt projectReceipt){
+
+ System.out.println("\nHere I'm on TaskReceipToString()\n");
+ StringWriter classXmlFile = null;
+ try{
+ classXmlFile = new StringWriter();
+ Marshaller.marshal(projectReceipt,classXmlFile);
+ } catch (Exception ae){
+ System.err.println("[ProjectExecutor::ProjectReceiptToString()] => Error: " + ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+ //System.out.println("On ProjectReceiptToString() My task class receipt right now is: " + classXmlFile.toString());
+
+ return classXmlFile.toString();
+ }
+
+ public static synchronized String PhaseReceiptToString(Receipt phaseReceipt){
+
+ System.out.println("\nHere I'm on PhaseReceiptToString()\n");
+ StringWriter classXmlFile = null;
+ try{
+ classXmlFile = new StringWriter();
+ Marshaller.marshal(phaseReceipt,classXmlFile);
+
+ } catch (Exception ae){
+ System.err.println("[ProjectExecutor::PhaseReceiptToString()] => Error: " + ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+ //System.out.println("On PhaseReceiptToString() My phase class receipt right now is: " + classXmlFile.toString());
+
+ return classXmlFile.toString();
+ }
+
+ public static String TaskReceipToString(Receipt taskReceipt){
+
+ System.out.println("\nHere I'm on TaskReceipToString()\n");
+ StringWriter classXmlFile = null;
+ try{
+ classXmlFile = new StringWriter();
+ Marshaller.marshal(taskReceipt,classXmlFile);
+
+ } catch (Exception ae){
+ System.err.println("[ProjectExecutor::TaskReceipToString()] => Error: " + ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+ //System.out.println("On TaskReceipToString() My task class receipt right now is: " + classXmlFile.toString());
+ return classXmlFile.toString();
+ }
+
+ /* public receipt StringToTaskReceipt(String StringTaskReceipt){
+ System.out.println("");
+ receipt receiptTask = null;
+ return receiptTask;
+ }*/
+
+ public static Receipt setCloseProjectReceipt(Receipt projectReceipt){
+
+
+ List ListPhaseReceipt = projectReceipt.getAttachamments();
+
+
+ System.out.println("\n Here I start the setCloseProjectReceipt() \n");
+ try{
+ System.out.println("\n\n\n\n\n\n\nWHILE CLOSE THE RECEIPT the List Phase Size is: " + ListPhaseReceipt.size() + "\n\n\n\n");
+
+ projectReceipt.setAttachamments(ListPhaseReceipt);
+ /*
+ if (projectType.equals("1"))
+ projectReceipt.setAttachamments(ListPhaseReceipt1);
+ else if (projectType.equals("2") && phaseOption.booleanValue()==false)
+ projectReceipt.setAttachamments(ListPhaseReceipt2);
+ else if (projectType.equals("2") && phaseOption.booleanValue()==true)
+ projectReceipt.setAttachamments(ListPhaseReceipt3);
+ else{
+ projectReceipt.setAttachamments(ListPhaseReceipt4);
+ }*/
+ SaveReceipt(ProjectReceiptToString(projectReceipt));
+ System.out.println("\nHere I finished the receipt project and Saved on DataBase\n");
+ } catch(Exception ae){
+ System.err.println("[ProjectExecutor::setCloseProjectReceipt()] Error closing the project receipt: "+ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+ return projectReceipt;
+ }
+
+
+ public static void SaveReceipt(String Receipt){
+
+ System.out.println("ProjecNameSaved: " + ProjectExecutor.projectName + "\n ");
+ System.out.println("ProjectId: " + ProjectExecutor.projectId + "\n");
+
+ Connection dbCon;
+ String dbURL = "jdbc:"+ ProjectExecutor.dbFlavor + "://" + ProjectExecutor.dbHostName + ":" + ProjectExecutor.dbPortNumber + "/";
+ String UpdateString = "update tbprojectdescriptor set receipt = '" + Receipt + "' where projectname='"+ProjectExecutor.projectName+"'";
+
+ //System.out.println("\nJust to make sure the query to run is: " + UpdateString +"\n\n\n");
+ try{
+ Class.forName(ProjectExecutor.dbDriver);
+ dbCon = DriverManager.getConnection(dbURL, ProjectExecutor.dbUserName, ProjectExecutor.dbPassword);
+
+ //PreparedStatement updateSales = con.prepareStatement("UPDATE COFFEES SET SALES = ? WHERE COF_NAME LIKE ?");
+
+ Statement s = dbCon.createStatement();
+ int qtdlinefetch = s.executeUpdate(UpdateString);
+
+ System.out.println("Updated: " + qtdlinefetch + " rows");
+ dbCon.close();
+ } catch (Exception ae){
+ System.err.println("ProjectExecutor::SaveReceipt() => Error saving receipt on Database: " + ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+ //setProjectReceipt();
+ }
+
+
+
+
+ public static Receipt setClosePhaseReceiptSingle(Receipt PhaseReceipt){
+
+ List ListPhaseReceipt = PhaseReceipt.getAttachamments();
+
+ /* Method used by Single Calcuation */
+ System.out.println("\n Here I start the setClosePhaseReceiptSingle() \n");
+
+ try{
+ PhaseReceipt.setAttachamments(ExecuteProject.ListTaskReceipt);
+ System.out.println("\n Here I put the task receipt on the phase attachament \n");
+
+ //ListTaskReceipt = null;
+ //PhaseReceiptToString(phaseReceipt);
+ //ListPhaseReceipt.add(phaseReceipt1);
+ if (ListPhaseReceipt.isEmpty())
+ ListPhaseReceipt.add(0, PhaseReceipt);
+ else
+ ListPhaseReceipt.set(0, PhaseReceipt);
+ } catch (Exception ae){
+ System.err.println("[ProjectExecutor::setClosePhaseReceiptSingle()] Error Closing Single Receipt Phase: "+ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+
+ return PhaseReceipt;
+ }
+
+ public static Receipt setClosePhaseReceiptFastRefine(String when, Receipt projectReceipt, Receipt phaseReceipt){
+ /* Method used by Fast Refine */
+
+ List ListPhaseReceipt = null;
+ //List ListTaskReceipt = null;
+
+ System.out.println("\n Here I start the setClosePhaseReceiptFastRefine() from: \n"+when);
+ try{
+
+ //ExecuteProject.ListTaskReceipt =
+ phaseReceipt.setAttachamments(ExecuteProject.ListTaskReceipt);
+ ListPhaseReceipt = projectReceipt.getAttachamments();
+
+ System.out.println("\n Here I put the task receipt on the phase attachament \n");
+
+
+ if (ListPhaseReceipt == null){
+ //phaseReceipt.setAttachamments(ExecuteProject.ListTaskReceipt);
+ ListPhaseReceipt = new Vector();
+ ListPhaseReceipt.add(0, phaseReceipt);
+ }
+ else{
+ //ListPhaseReceipt.remove(0);
+ //ListPhaseReceipt.add(0,phaseReceipt2);
+ //phaseReceipt.setAttachamments(ExecuteProject.ListTaskReceipt);
+
+ ListPhaseReceipt.set(0, phaseReceipt);
+
+ System.out.println("In the End: setClosePhaseReceiptFastRefine => List Size: "+phaseReceipt.getAttachamments().size());
+
+ }
+
+ projectReceipt.setAttachamments(ListPhaseReceipt);
+
+ }catch (Exception ae){
+ System.err.println("[ProjectExecutor::setClosePhaseReceiptFastRefine()] Error Closing Fast Refine Receipt Phase: "+ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+
+ return projectReceipt;
+ }
+
+ public static Receipt setClosePhaseReceiptLongRefine(String when, Receipt projectReceipt, Receipt phaseReceipt, Boolean phaseOption){
+ /* Method used by Long Refine */
+
+ List ListPhaseReceipt = null;
+ Receipt FastRefine = null;
+ Receipt LongRefine = null;
+
+
+ try{
+
+ ListPhaseReceipt = projectReceipt.getAttachamments();
+
+ System.out.println("\n Here I start the setClosePhaseReceiptLongRefine() The list Task size now is: " + ExecuteProject.ListTaskReceipt.size()+" from: \n"+when);
+
+ System.out.println("\n The ListPhaseReceipt size is: " + ListPhaseReceipt.size());
+
+ //ListTaskReceipt = null;
+ //PhaseReceiptToString(phaseReceipt);
+ //ListPhaseReceipt = new ArrayList();
+ if (ListPhaseReceipt == null){
+ System.out.println("If Phase Receipt Long Refine is empty I will go here and insert ListPhaseReceipt.add(0,phaseReceipt3);");
+
+ ListPhaseReceipt = new Vector();
+
+ // FastRefine = (Receipt) phaseReceipt.getAttachamments().get(0);
+ // LongRefine = (Receipt) phaseReceipt.getAttachamments().get(1);
+
+ ListPhaseReceipt.add(0, phaseReceipt);
+ // ListPhaseReceipt.add(1,LongRefine);
+ }
+
+ else if (ListPhaseReceipt.size()==1){
+ if (phaseOption.booleanValue()==false){
+ System.out.println("If Phase Receipt Long Refine I will go here and update ListPhaseReceipt.set(0,phaseReceipt3);");
+
+ //FastRefine = (Receipt) phaseReceipt.getAttachamments().get(0);
+ LongRefine = phaseReceipt;
+
+ //ListPhaseReceipt.set(0,FastRefine); //Updating the The Long Refine, when I defined just one Long Refine project
+ ListPhaseReceipt.add(1,LongRefine); //Updating the The Long Refine, when I defined just one Long Refine project
+
+
+ }else{
+ System.out.println("If Phase Receipt Long Refine I will go here and insert ListPhaseReceipt.add(1,phaseReceipt3);");
+
+ //FastRefine = (Receipt) phaseReceipt.getAttachamments().get(0);
+ //LongRefine = (Receipt) phaseReceipt.getAttachamments().get(1);
+
+ LongRefine = phaseReceipt;
+
+ ListPhaseReceipt.set(0,LongRefine);
+ //ListPhaseReceipt.add(1,LongRefine); //Add the Long Refine, when I had previously the Fast Refine
+ }
+ }
+ else if (ListPhaseReceipt.size()==2){
+ System.out.println("If Phase Receipt Long Refine I will go here and update ListPhaseReceipt.set(1,phaseReceipt3);");
+
+ FastRefine = (Receipt) phaseReceipt.getAttachamments().get(0);
+ LongRefine = (Receipt) phaseReceipt.getAttachamments().get(1);
+
+ ListPhaseReceipt.set(0,FastRefine);
+ ListPhaseReceipt.set(1,LongRefine); //Update the Long Refine, when I had the Fast Refined already executed.
+ }
+
+ //LongRefine.setAttachamments(ListTaskReceipt);
+ //System.out.println("\n Here I put the task receipt on the phase attachament \n");
+
+ System.out.println("\n\n\n\tThe Long Refine List size right now is: "+ListPhaseReceipt.size());
+
+ projectReceipt.setAttachamments(ListPhaseReceipt);
+
+ } catch (Exception ae){
+ System.err.println("[ProjectExecutor::setClosePhaseReceiptLongRefine()] Error closing Long Refine Receipt Phase: "+ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+ return projectReceipt;
+ }
+
+
+ public static Receipt setClosePhaseReceiptCij(String when, Receipt projectReceipt, Receipt phaseReceipt, Boolean phaseOption){
+
+ List ListPhaseReceipt = null;
+ Receipt FastRefine = null;
+ Receipt LongRefine = null;
+ //List ListTaskReceipt = null;
+
+ System.out.println("\n Here I start the setClosePhaseReceiptCij() \n");
+
+ try{
+ //phaseReceipt4
+ phaseReceipt.setAttachamments(ExecuteProject.ListTaskReceipt);
+ System.out.println("\n Here I put the task receipt on the phase attachament from: \n"+when);
+
+ if (ListPhaseReceipt.size()==1)
+
+ //ListPhaseReceipt.add(1,phaseReceipt4);
+
+ ListPhaseReceipt.add(1,phaseReceipt);
+ else if (ListPhaseReceipt.size()==2){
+ if (phaseOption.booleanValue()==false){
+ //ListPhaseReceipt.add(2,phaseReceipt4);
+ ListPhaseReceipt.add(2,phaseReceipt);
+ }else{
+ //ListPhaseReceipt.add(2,phaseReceipt4);
+ ListPhaseReceipt.add(2,phaseReceipt);
+ }
+ }
+ else if (ListPhaseReceipt.size()==3){
+ //ListPhaseReceipt.set(2,phaseReceipt4);
+ ListPhaseReceipt.set(2,phaseReceipt);
+ }
+
+ System.out.println("In the End: setClosePhaseReceiptCij => List Size: "+ListPhaseReceipt.size());
+
+ } catch(Exception ae){
+ System.err.println("[ProjectExecutor::setClosePhaseReceiptCij()] Error closing Cij Receipt Phase: "+ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+
+ return projectReceipt;
+
+ }
+
+ public static Receipt setClosePhaseReceiptHighTPTHermo(String when, Receipt projectReceipt, Receipt phaseReceipt, Boolean phaseOption){
+
+
+ //List ListTaskReceipt = null;
+ System.out.println("\n Here I start the setClosePhaseReceiptHighTPTHermo() from: \n"+when);
+
+
+ List ListPhaseReceipt = projectReceipt.getAttachamments();
+
+ System.out.println("ListPhaseReceipt: "+ListPhaseReceipt.size() + " => ListTaskReceipt: " + ExecuteProject.ListTaskReceipt.size());
+
+ try{
+ //phaseReceipt5.setAttachamments(ListTaskReceipt);
+ System.out.println("\n Here I put all the tasks receipt on the phase attachament \n");
+
+
+ if (ListPhaseReceipt.size()==1){
+ System.out.println("If Phase Receipt Thermo is 1 I will go here and insert ListPhaseReceipt.add(1,phaseReceipt5);");
+ // ListPhaseReceipt.add(0,phaseReceipt2);
+ // ListPhaseReceipt.add(1, phaseReceipt2);
+ // ListPhaseReceipt.add(2,phaseReceipt5);
+ }
+
+ else if (ListPhaseReceipt.size()==2){
+ if (phaseOption.booleanValue()==false){
+ System.out.println("If Phase Receipt Thermo is 2 I will go here and update ListPhaseReceipt.set(1,phaseReceipt5);");
+ // ListPhaseReceipt.set(0,phaseReceipt2);
+ // ListPhaseReceipt.set(1,phaseReceipt3);
+ // ListPhaseReceipt.add(2,phaseReceipt5);
+ }else{
+ System.out.println("If Phase Receipt Thermo is 2 I will go here and insert ListPhaseReceipt.add(2,phaseReceipt5);");
+ // ListPhaseReceipt.set(0, phaseReceipt2);
+ // ListPhaseReceipt.set(1, phaseReceipt3);
+ // ListPhaseReceipt.add(2, phaseReceipt5);
+ }
+ }
+ else if (ListPhaseReceipt.size()==3){
+ System.out.println("If Phase Receipt Thermo is 3 I will go here and insert ListPhaseReceipt.set(2,phaseReceipt5);");
+ // ListPhaseReceipt.set(0, phaseReceipt2);
+ // ListPhaseReceipt.set(1, phaseReceipt3);
+ // ListPhaseReceipt.set(2,phaseReceipt5);
+ }
+
+ //phaseReceipt5.setAttachamments(ListTaskReceipt);
+ System.out.println("\n Here I put all the tasks receipt on the phase attachament \n");
+
+ System.out.println("In the End: setClosePhaseReceiptHighTPTHermo => List Size: "+ListPhaseReceipt.size());
+ } catch(Exception ae){
+ System.err.println("[ProjectExecutor::setClosePhaseReceiptHighTPTHermo()] Error closing HighTP Thermo Receipt Phase: "+ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+
+ return projectReceipt;
+
+ }
+
+
+ //I had here the StartDispatcher()
+ public static Receipt AddPckPathFastRefine(Receipt phaseReceipt, String ProjectType, Boolean phaseOption){
+
+ /*This method is used to add all the packages path in Phase Receipt into the content field.*/
+ System.out.println("Here I start the AddPckPathFastRefine()");
+ try{
+ List ListContent = new Vector();
+ String[] ListPackagesFR = DispatcherSetting.ListPackages(ProjectType, phaseOption);
+ Bdata[] ContentFRPhase = new Bdata[ListPackagesFR.length];
+ System.out.println("My list will be: ");
+ for(int i=0; i<ListPackagesFR.length;i++){
+ ContentFRPhase[i] = new Bdata();
+ ContentFRPhase[i].setId("013");
+ ContentFRPhase[i].setCode(ListPackagesFR[i].substring(0, ListPackagesFR[i].length()-4));
+ ContentFRPhase[i].setKeyword("PCKGPATHONPE");
+ ContentFRPhase[i].setSvalue(ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName+ListPackagesFR[i].substring(0, ListPackagesFR[i].length()-4));
+ System.out.println(ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName+ListPackagesFR[i]+"\n");
+ ListContent.add(ContentFRPhase[i]);
+ }
+ phaseReceipt.setContent(ListContent);
+ } catch(Exception ae){
+ System.err.println("[ProjectExecutor::AddPckPathFastRefine()] Error adding the Fast Refine Packages at Phase Receipt: "+ae.getMessage());
+ ae.printStackTrace();
+ System.exit(-1);
+ }
+
+ return phaseReceipt;
+ }
+
+ public static Receipt AddPckPathLongRefine(Receipt phaseReceipt, String ProjectType, Boolean phaseOption){
+
+ /*This method is used to add all the packages path in Phase Receipt into the content field.*/
+ System.out.println("Here I start the AddPckPathLongRefine()");
+
+ try{
+ List ListContent = new Vector();
+ String[] ListPackagesLR = DispatcherSetting.ListPackages(ProjectType, phaseOption);
+ Bdata[] ContentLRPhase = new Bdata[ListPackagesLR.length];
+ for(int i=0; i<ListPackagesLR.length;i++){
+ ContentLRPhase[i] = new Bdata();
+ ContentLRPhase[i].setId("013");
+ ContentLRPhase[i].setCode(ListPackagesLR[i].substring(0, ListPackagesLR[i].length()-4));
+ ContentLRPhase[i].setKeyword("PCKGPATHONPE");
+ ContentLRPhase[i].setSvalue(ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName+ListPackagesLR[i].substring(0, ListPackagesLR[i].length()-4));
+ ListContent.add(ContentLRPhase[i]);
+ }
+ phaseReceipt.setContent(ListContent);
+ } catch(Exception ae){
+ System.err.println("[ProjectExecutor::AddPckPathLongRefine()] Error addind the Long Refine packages at Phase Receipt: "+ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+ return phaseReceipt;
+ }
+
+ public static Receipt AddPckPathSingleCalc(Receipt phaseReceipt, String ProjectType, Boolean phaseOption){
+
+ /*This method is used to add all the packages path in Phase Receipt into the content field.*/
+ System.out.println("Here I start the AddPckPathSingleCalc()");
+ try{
+ Bdata ContentFRPhase = null;
+ List ListContent = new Vector();
+ String[] ListPackageSingle = DispatcherSetting.ListPackages(ProjectType, phaseOption);
+ for(int i=0; i<ListPackageSingle.length;i++){
+ ContentFRPhase = new Bdata();
+ ContentFRPhase.setId("013");
+ ContentFRPhase.setCode(ListPackageSingle[i].substring(0, ListPackageSingle[i].length()-4));
+ ContentFRPhase.setKeyword("PCKGPATHONPE");
+ ContentFRPhase.setSvalue(ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName+ListPackageSingle[i].substring(0, ListPackageSingle[i].length()-4));
+ ListContent.add(ContentFRPhase);
+ }
+ phaseReceipt.setContent(ListContent);
+ } catch (Exception ae){
+ System.err.println("[ProjectExecutor::AddPckPathSingleCalc()] Error addind the Single Package inside Phase Receipt: "+ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+ return phaseReceipt;
+
+ }
+
+
+ public static Receipt AddPckPathCijPhase(Receipt phaseReceipt, String ProjectType, Boolean phaseOption){
+
+ /*This method is used to add all the packages path in Phase Receipt into the content field.*/
+ System.out.println("Here I start the AddPckPathCijPhase()");
+ try{
+ Bdata ContentCijPhase = null;
+ List ListContent = new Vector();
+
+ String[] ListLRPackages = DispatcherSetting.ListPackages(ProjectType, phaseOption);
+ String[] ListPackagesCij = null;
+ String ActuallyCCPackage = null;
+
+ for(int i=0; i<ListLRPackages.length; i++){
+
+ ActuallyCCPackage = ListLRPackages[i];
+ System.out.println("[ProjectExecutor::AddPckPathCijPhase()] => Actually package is: " + ActuallyCCPackage);
+
+ ListPackagesCij = DispatcherSetting.ListEEPackages(ActuallyCCPackage, false);
+
+ for(int j=0; j < ListPackagesCij.length; j++ ){
+ ContentCijPhase = new Bdata();
+ ContentCijPhase.setId("013");
+ ContentCijPhase.setCode(ListPackagesCij[j].substring(0,ListPackagesCij[j].length()-4));
+ ContentCijPhase.setKeyword("PCKGPATHONPE");
+ ContentCijPhase.setSvalue(ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName+ActuallyCCPackage.substring(0, ActuallyCCPackage.length()-4)+"/"+ListPackagesCij[j].substring(0,ListPackagesCij[j].length()-4));
+
+ System.out.println("Package: => "+ListPackagesCij[j]);
+ System.out.println("Package substring: => " + ListPackagesCij[j].substring(0,ListPackagesCij[j].length()-4));
+ System.out.println("Full package for the package: "+ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName+ActuallyCCPackage.substring(0, ActuallyCCPackage.length()-4)+"/"+ListPackagesCij[j].substring(0,ListPackagesCij[j].length()-4));
+ ListContent.add(ContentCijPhase);
+ }
+ phaseReceipt.setContent(ListContent);
+ //for(int j=0; j < ++){
+ //0}
+ }
+ } catch (Exception ae){
+ System.err.println("[ProjectExecutor::AddPckPathCijPhase()] Error adding the Cij Package inside the Phase Receipt: "+ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+
+ return phaseReceipt;
+ }
+
+ public static Receipt AddPckPathHighTPThermoPhase(Receipt phaseReceipt, String ProjectType, Boolean phaseOption){
+
+ /*This method is used to add all the packages path in Phase Receipt into the content field.*/
+ System.out.println("Here I start the AddPckPathHighTPThermoPhase()");
+
+ try{
+ Bdata ContentCijPhase = null;
+ List ListContent = new Vector();
+
+ String[] ListLRPackages = DispatcherSetting.ListPackages(ProjectType, phaseOption);
+ String[] ListPackagesPH = null;
+ String ActuallyCCPackage = null;
+
+ for(int i=0; i<ListLRPackages.length; i++){
+
+ ActuallyCCPackage = ListLRPackages[i];
+ System.out.println("[ProjectExecutor::AddPckPathHighTPThermoPhase()] => Actually package is: " + ActuallyCCPackage);
+
+ ListPackagesPH = DispatcherSetting.ListPHPackages(ActuallyCCPackage, false);
+
+ for(int j=0; j < ListPackagesPH.length; j++ ){
+ ContentCijPhase = new Bdata();
+ ContentCijPhase.setId("013");
+ ContentCijPhase.setCode(ListPackagesPH[j].substring(0,ListPackagesPH[j].length()-4));
+ ContentCijPhase.setKeyword("PCKGPATHONPE");
+ ContentCijPhase.setSvalue(ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName+ActuallyCCPackage.substring(0, ActuallyCCPackage.length()-4)+"/"+ListPackagesPH[j].substring(0,ListPackagesPH[j].length()-4));
+
+ System.out.println("Package: => "+ListPackagesPH[j]);
+ System.out.println("Package substring: => " + ListPackagesPH[j].substring(0,ListPackagesPH[j].length()-4));
+ System.out.println("Full package for the package: " + ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName+ActuallyCCPackage.substring(0, ActuallyCCPackage.length()-4)+"/"+ListPackagesPH[j].substring(0,ListPackagesPH[j].length()-4));
+ ListContent.add(ContentCijPhase);
+ }
+ phaseReceipt.setContent(ListContent);
+ }
+ } catch (Exception ae){
+ System.err.println("[ProjectExecutor::AddPckPathHighTPThermoPhase()] Error adding the HiPt Thermo packages inside Phase Receipt: "+ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+
+ return phaseReceipt;
+ }
+
+
+
+ public static Receipt AddStatusPhase(String StatusPhase, Receipt phaseReceipt, String ProjectType, Boolean phaseOption){
+
+ System.out.println("Here I am starting the AddStatusPhase\n\n");
+
+ /*This method will insert the status for every different phase in the project*/
+ Bdata BdataContent = null;
+ List ListContent = null;
+
+ try{
+ BdataContent = new Bdata();
+
+ /*if (projectType.equals("1")){
+ ListContent = this.phaseReceipt1.getContent();
+ BdataContent.setId("014");
+ BdataContent.setCode("StatusPhase");
+ BdataContent.setKeyword("STATUSPHASE");
+ BdataContent.setSvalue(StatusPhase);
+ ListContent.add(BdataContent);
+ this.phaseReceipt1.setContent(ListContent);
+ }*/
+ //Fast Refine
+ if (ProjectType.equals("2") && phaseOption.booleanValue()==true){
+ ListContent = phaseReceipt.getContent();
+ BdataContent.setId("014");
+ BdataContent.setCode("StatusPhase");
+ BdataContent.setKeyword("STATUSPHASE");
+ BdataContent.setSvalue(StatusPhase);
+ ListContent.add(BdataContent);
+ phaseReceipt.setContent(ListContent);
+ }
+ //Long Refine
+ if (ProjectType.equals("2") && phaseOption.booleanValue()==false){
+ ListContent = phaseReceipt.getContent();
+ BdataContent.setId("014");
+ BdataContent.setCode("StatusPhase");
+ BdataContent.setKeyword("STATUSPHASE");
+ BdataContent.setSvalue(StatusPhase);
+ ListContent.add(BdataContent);
+ phaseReceipt.setContent(ListContent);
+ }
+
+ //Cij Calculation
+ if (phaseOption.booleanValue()==true && ProjectType.equals("3")){
+ ListContent = phaseReceipt.getContent();
+ BdataContent.setId("014");
+ BdataContent.setCode("StatusPhase");
+ BdataContent.setKeyword("STATUSPHASE");
+ BdataContent.setSvalue(StatusPhase);
+ ListContent.add(BdataContent);
+ phaseReceipt.setContent(ListContent);
+ }
+
+ //High TP Thermo
+ if (phaseOption.booleanValue()==true && ProjectType.equals("4")){
+ ListContent = phaseReceipt.getContent();
+ BdataContent.setId("014");
+ BdataContent.setCode("StatusPhase");
+ BdataContent.setKeyword("STATUSPHASE");
+ BdataContent.setSvalue(StatusPhase);
+ ListContent.add(BdataContent);
+ phaseReceipt.setContent(ListContent);
+ }
+ } catch (Exception ae){
+ System.err.println("[ProjectExecutor::AddStatusPhase] Error defining new status to the phase: "+ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+
+ return phaseReceipt;
+ }
+
+
+
+
+
+
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <das...@us...> - 2008-10-29 19:56:47
|
Revision: 1180
http://vlab.svn.sourceforge.net/vlab/?rev=1180&view=rev
Author: dasil014
Date: 2008-10-29 19:56:44 +0000 (Wed, 29 Oct 2008)
Log Message:
-----------
This class has many method migrated from the ProjectExecutor.java. It contents the rules and sequence of execution for every project.
Added Paths:
-----------
trunk/vlab/services/project-executor/src/main/java/org/vlab/services/ExecuteProject.java
Added: trunk/vlab/services/project-executor/src/main/java/org/vlab/services/ExecuteProject.java
===================================================================
--- trunk/vlab/services/project-executor/src/main/java/org/vlab/services/ExecuteProject.java (rev 0)
+++ trunk/vlab/services/project-executor/src/main/java/org/vlab/services/ExecuteProject.java 2008-10-29 19:56:44 UTC (rev 1180)
@@ -0,0 +1,312 @@
+package org.vlab.services;
+
+import java.util.*;
+
+public class ExecuteProject {
+
+ private PhaseProject SingleCalculation;
+ private PhaseProject FastRefineCalculation;
+ private PhaseProject LongRefineCalculation;
+ private PhaseProject CijCalculation;
+ private PhaseProject HiPTthermo;
+
+ public static List ListTaskReceipt;
+
+ public void prepare_project(){
+
+ SingleCalculation = new PhaseProject();
+ FastRefineCalculation = new PhaseProject();
+ LongRefineCalculation = new PhaseProject();
+ CijCalculation = new PhaseProject();
+ HiPTthermo = new PhaseProject();
+
+ }
+
+ public void executeSingleCalc(String ProjectType, Boolean phaseOption){
+
+ try{
+ ListTaskReceipt = new Vector();
+
+ /* This is Single Calculation */
+ System.out.println("\nHere I start the Single Calculation");
+ System.out.println("\nReturn from UncompressExecutionPackage: "+ OutRunnings.UnCompressExecutionPackage(ProjectType, phaseOption));
+
+ SingleCalculation.phasename = "Single Calculation";
+
+ /* Start the Project Receipt*/
+ Receipt projectReceipt = ReceiptManagement.setProjectReceipt();
+
+ /* Start the Phase Receipt */
+ Receipt phaseReceipt = ReceiptManagement.setPhaseReceipt(ProjectType, phaseOption);
+
+ SingleCalculation.setvariable = true;
+ SingleCalculation.packagegeneration = true;
+
+ SingleCalculation.Status = "Packages created";
+
+ /*This method do a send of package to Task Executor, selected by Task Dispacther*/
+ projectReceipt = DispatcherSetting.setDispSetting(projectReceipt, phaseReceipt, ProjectType, phaseOption);
+ phaseReceipt = ReceiptManagement.setClosePhaseReceiptSingle(phaseReceipt);
+
+ projectReceipt = ReceiptManagement.setCloseProjectReceipt(phaseReceipt);
+
+ SingleCalculation.distributor = true;
+
+ SingleCalculation.Status = "Packages Submitted";
+
+ /*It call the method below to fill up all the path package into the phase receipt*/
+ phaseReceipt = ReceiptManagement.AddPckPathSingleCalc(phaseReceipt, ProjectType, phaseOption);
+
+ phaseReceipt = ReceiptManagement.AddStatusPhase("Running", phaseReceipt, ProjectType, phaseOption);
+
+ SingleCalculation.taskexecution = true;
+
+ SingleCalculation.Status = "Running";
+
+ //setClosePhaseReceipt();
+ projectReceipt = ProjectExecutor.Poll(projectReceipt, phaseReceipt, "Single", ProjectType, phaseOption);
+
+ phaseReceipt = ReceiptManagement.AddStatusPhase("Completed", phaseReceipt, ProjectType, phaseOption);
+
+ PostProcessing.getOutPutTask(phaseReceipt,ProjectType, phaseOption);
+ SingleCalculation.datarecollection = true;
+ SingleCalculation.completed = true;
+
+ System.out.println("\nHere I finish the Single Calculation\n");
+ } catch(Exception ae){
+ System.err.println("[executeSingleCalc] => " + ae.getMessage());
+ ae.printStackTrace();
+ }
+
+ }
+
+ public Receipt executeFastRefine(String ProjectType, Boolean phaseOption){
+ /* This is Fast Refine */
+
+ Receipt projectReceipt = null;
+ Receipt phaseReceipt = null;
+
+ try{
+ projectReceipt = ReceiptManagement.setProjectReceipt();
+ phaseReceipt = ReceiptManagement.setPhaseReceipt(ProjectType, phaseOption);
+
+ ListTaskReceipt = new Vector();
+
+ if (ProjectType.equals("2") && phaseOption.booleanValue()==true){
+
+ /* This is Fast Refine */
+ FastRefineCalculation.phasename = "Fast Refine";
+
+ System.out.println("Here I uncompress the " + ProjectExecutor.zipFileName + " with " + OutRunnings.UnCompressComplexCalc());
+ System.out.println("Start the Spliiter right here for Fast Refine");
+
+ //SendPackageESG();
+ //Instead of running in a service, I will do it locally
+
+ FastRefineCalculation.setvariable = true;
+
+ OutRunnings.RunPackageESG(phaseOption);
+
+ FastRefineCalculation.packagegeneration = true;
+
+ System.out.println("\nHere I finish the splitter");
+ System.out.println("\nHere I start uncompress the TarBallFromWS.zip");
+ //System.out.println("\nReturn from uncompressTarBallfromWS: "+ UnCompressTarBallFromWS());
+ System.out.println("\nReturn from UncompressExecutionPackage: " + OutRunnings.UnCompressExecutionPackage(ProjectType, phaseOption));
+
+ /* Start the Phase Receipt */
+ //setPhaseReceipt();
+
+ projectReceipt = DispatcherSetting.setDispSetting(projectReceipt, phaseReceipt, ProjectType, phaseOption);
+
+ FastRefineCalculation.distributor = true;
+ projectReceipt = ReceiptManagement.setClosePhaseReceiptFastRefine("Finish Submission", projectReceipt, phaseReceipt);
+ projectReceipt = ReceiptManagement.setCloseProjectReceipt(projectReceipt);
+
+ /*It call the method below to fill up all the path package into the phase receipt of Fast Refine*/
+ phaseReceipt = ReceiptManagement.AddPckPathFastRefine(phaseReceipt, ProjectType, phaseOption);
+
+ FastRefineCalculation.taskexecution = true;
+
+ phaseReceipt = ReceiptManagement.AddStatusPhase("Running", phaseReceipt, ProjectType, phaseOption);
+
+ projectReceipt = ProjectExecutor.Poll(projectReceipt, phaseReceipt, "Fast Refine", ProjectType, phaseOption);
+
+ phaseReceipt = ReceiptManagement.AddStatusPhase("Completed", phaseReceipt, ProjectType, phaseOption);
+
+ projectReceipt = ReceiptManagement.setClosePhaseReceiptFastRefine("Finish Execution", projectReceipt, phaseReceipt);
+ projectReceipt = ReceiptManagement.setCloseProjectReceipt(projectReceipt);
+
+ PostProcessing.getOutPutTask(phaseReceipt,ProjectType, phaseOption);
+
+ FastRefineCalculation.datarecollection = true;
+
+ OutRunnings.setFastRefineFitting();
+
+ ProjectExecutor.ReadFastRefineFitting();
+ }
+ }catch (Exception ae){
+ System.err.println("[executeFastRefine] => " + ae.getMessage() );
+ ae.printStackTrace();
+ }
+
+ return projectReceipt;
+ }
+
+ public Receipt executeLongRefine(Receipt projectReceipt, String projectType, Boolean phaseOption){
+
+ try{
+
+ Receipt phaseReceipt = ReceiptManagement.setPhaseReceipt(projectType, phaseOption);
+
+ ListTaskReceipt = new Vector();
+
+ /*This Long Refine*/
+ if (projectType.equals("2") && phaseOption.booleanValue()==false){
+
+ OutRunnings.CreatePackage();
+
+ System.out.println("Here I uncompress the "+ ProjectExecutor.zipFileName + " with " + OutRunnings.UnCompressComplexCalc());
+
+ System.out.println("Start the Spliter right here Long Refine");
+
+ OutRunnings.setTheNewPackage();
+ //SendPackageESG();
+ //Instead of running in a service, I will do it locally
+ OutRunnings.RunPackageESG(phaseOption);
+
+ System.out.println("\nHere I finish the splitter");
+ //System.out.println("\nHere I start uncompress the TarBallFromWS.zip");
+ //System.out.println("\nReturn from uncompressTarBallfromWS: "+ UnCompressTarBallFromWS());
+ System.out.println("\nReturn from UncompressExecutionPackage: " + OutRunnings.UnCompressExecutionPackage(projectType, phaseOption));
+
+ /* Start the Phase Receipt */
+ //setPhaseReceipt();
+ projectReceipt = DispatcherSetting.setDispSetting(projectReceipt, phaseReceipt, projectType, phaseOption);
+
+ /*It call the method below to fill up all the path package into the phase receipt of Long Refine*/
+ phaseReceipt = ReceiptManagement.AddPckPathLongRefine(phaseReceipt, projectType, phaseOption);
+ projectReceipt = ReceiptManagement.setClosePhaseReceiptLongRefine("Finish Execution", projectReceipt, phaseReceipt, phaseOption);
+ projectReceipt = ReceiptManagement.setCloseProjectReceipt(projectReceipt);
+
+
+
+
+ phaseReceipt = ReceiptManagement.AddStatusPhase("Running", phaseReceipt, projectType, phaseOption);
+ projectReceipt = ReceiptManagement.setClosePhaseReceiptLongRefine("Finish Execution", projectReceipt, phaseReceipt, phaseOption);
+ projectReceipt = ReceiptManagement.setCloseProjectReceipt(projectReceipt);
+
+
+ projectReceipt = ProjectExecutor.Poll(projectReceipt, phaseReceipt, "Long Refine", projectType, phaseOption);
+
+ phaseReceipt = ReceiptManagement.AddStatusPhase("Completed", phaseReceipt, projectType, phaseOption);
+
+ projectReceipt = ReceiptManagement.setClosePhaseReceiptLongRefine("Finish Execution", projectReceipt, phaseReceipt, phaseOption);
+ projectReceipt = ReceiptManagement.setCloseProjectReceipt(projectReceipt);
+
+ PostProcessing.getOutPutTask(phaseReceipt, projectType, phaseOption);
+
+ OutRunnings.setLongRefineFitting();
+
+ //projectReceipt = ReceiptManagement.setCloseProjectReceipt(projectReceipt);
+
+ ProjectExecutor.ReadLongRefineFitting();
+
+ System.out.println("\nHere I finish the sequence of Long Refine\n");
+
+
+ }
+ } catch(Exception ae){
+ System.err.println("[executeLongRefine] => " + ae.getMessage());
+ ae.printStackTrace();
+ }
+
+ return projectReceipt;
+ }
+
+ public void executeCij(Receipt projectReceipt, String projectType, Boolean phaseOption){
+
+ /* This Cij */
+ //Confirm the execution of Fast Refne and Long Refine soh later on goes to CIj
+
+ try{
+ Receipt phaseReceipt = ReceiptManagement.setPhaseReceipt(projectType, phaseOption);
+
+ ListTaskReceipt = new Vector();
+
+ OutRunnings.RunIntermediate34();
+
+ projectReceipt = DispatcherSetting.setDispSettingCij(projectReceipt, phaseReceipt, projectType, phaseOption);
+
+ /*It call the method below to fill up all the path package into the phase receipt of Cij*/
+ phaseReceipt = ReceiptManagement.AddPckPathCijPhase(phaseReceipt, projectType, phaseOption);
+
+ phaseReceipt = ReceiptManagement.AddStatusPhase("Running", phaseReceipt, projectType, phaseOption);
+
+ System.out.println("Terminei de criar o arquivo aqui and my ListPhase size is: "+ projectReceipt.getAttachamments().size() +" and ListTaskSize is: " + phaseReceipt.getAttachamments().size());
+
+ projectReceipt = ProjectExecutor.Poll(projectReceipt, phaseReceipt, "Cij", projectType, phaseOption);
+
+ System.out.println("Terminei de criar o arquivo aqui and my ListPhase size is: " + projectReceipt.getAttachamments().size() + " and ListTaskSize is: " + phaseReceipt.getAttachamments().size());
+
+ phaseReceipt = ReceiptManagement.AddStatusPhase("Completed", phaseReceipt, projectType, phaseOption);
+
+ projectReceipt = ReceiptManagement.setClosePhaseReceiptCij("Finish Execution", projectReceipt, phaseReceipt, phaseOption);
+ projectReceipt = ReceiptManagement.setCloseProjectReceipt(projectReceipt);
+
+ PostProcessing.getOutPutTaskCij(phaseReceipt, projectType, phaseOption);
+
+ // These methods will be called from Project Manager
+ //CijGentab();
+ //ReadCijGentab();
+ //insertCijtoDB();
+ System.out.println("\nHere I finish the sequence of Cij\n");
+ } catch(Exception ae){
+ System.err.println("[executeCij] => " + ae.getMessage() );
+ ae.printStackTrace();
+ }
+ }
+
+ public void executeHiPTThermo(Receipt projectReceipt, String projectType, Boolean phaseOption){
+
+
+ try{
+
+ projectType = "4";
+
+ Receipt phaseReceipt = ReceiptManagement.setPhaseReceipt(projectType, phaseOption);
+
+ ListTaskReceipt = new Vector();
+
+ OutRunnings.createQPointFile();
+
+ OutRunnings.ScriptCreatePhononPackages();
+
+ projectReceipt = DispatcherSetting.setDispSettingHighTPThermo(projectReceipt, phaseReceipt, projectType, phaseOption);
+
+ /*It call the method below to fill up all the path package into the phase receipt of Cij*/
+ phaseReceipt = ReceiptManagement.AddPckPathHighTPThermoPhase(phaseReceipt, projectType, phaseOption);
+
+ phaseReceipt = ReceiptManagement.AddStatusPhase("Running", phaseReceipt, projectType, phaseOption);
+
+ System.out.println("Terminei de criar o arquivo aqui and my ListPhase size is: " + projectReceipt.getAttachamments().size() +" and ListTaskSize is: " + phaseReceipt.getAttachamments().size() );
+
+ ProjectExecutor.Poll(projectReceipt, phaseReceipt, "HighTP Thermo", projectType, phaseOption);
+
+ System.out.println("Terminei de criar o arquivo aqui and my ListPhase size is: " + projectReceipt.getAttachamments().size() + " and ListTaskSize is: " + phaseReceipt.getAttachamments().size() );
+
+ phaseReceipt = ReceiptManagement.AddStatusPhase("Completed", phaseReceipt, projectType, phaseOption);
+
+ projectReceipt = ReceiptManagement.setClosePhaseReceiptHighTPTHermo("Finish Execution", projectReceipt, phaseReceipt, phaseOption);
+ projectReceipt = ReceiptManagement.setCloseProjectReceipt(projectReceipt);
+
+ PostProcessing.getOutPutTaskHighTempThermo(phaseReceipt, projectType, phaseOption);
+
+ System.out.println("\nHere I finish the sequence of High PT Thermo\n");
+ } catch (Exception ae){
+ System.err.println("[executeHiPTThermo] => " + ae.getMessage());
+ ae.printStackTrace();
+ }
+ }
+
+}
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <das...@us...> - 2008-10-29 19:49:46
|
Revision: 1179
http://vlab.svn.sourceforge.net/vlab/?rev=1179&view=rev
Author: dasil014
Date: 2008-10-29 19:49:42 +0000 (Wed, 29 Oct 2008)
Log Message:
-----------
I moved all post-processing methods to a specific class. This class is just called from other class when it needs a pos-processing.
Added Paths:
-----------
trunk/vlab/services/project-executor/src/main/java/org/vlab/services/PostProcessing.java
Added: trunk/vlab/services/project-executor/src/main/java/org/vlab/services/PostProcessing.java
===================================================================
--- trunk/vlab/services/project-executor/src/main/java/org/vlab/services/PostProcessing.java (rev 0)
+++ trunk/vlab/services/project-executor/src/main/java/org/vlab/services/PostProcessing.java 2008-10-29 19:49:42 UTC (rev 1179)
@@ -0,0 +1,552 @@
+package org.vlab.services;
+
+import java.util.Enumeration;
+import java.util.List;
+import java.util.Vector;
+import java.io.*;
+import java.net.URL;
+import org.exolab.castor.xml.Marshaller;
+import org.exolab.castor.xml.Unmarshaller;
+
+import org.apache.axis.encoding.Base64;
+
+public class PostProcessing {
+
+ private boolean filter;
+
+ private boolean duplicateinput;
+
+ private boolean replacedata;
+
+ private boolean assemblyfitting;
+
+ private boolean runposprocessing;
+
+
+
+public static void getOutPutTask(Receipt phaseReceipt, String ProjectType, Boolean phaseOption){
+
+ System.out.println("\n Here I am on getOutPutTask \n");
+
+ Executor TaskExec = null;
+ byte[] DataToFile = null;
+ File OutPutFile = null;
+ String StringOutPutPwscf = null;
+ String fullUrl = null;
+ String packageName = null;
+ StringWriter classXmlFile = null;
+ OutputStream srcDest = null;
+ int buffsizeWS = 0;
+
+ Bdata bdataContent = null;
+ List listTask = null;
+ List listBdata = null;
+
+ try{
+ //if (projectType.equals("1")) listTask = phaseReceipt1.getAttachamments();
+
+ //if (projectType.equals("2") && phaseOption.booleanValue()==true) listTask = phaseReceipt2.getAttachamments();
+
+ //if (projectType.equals("2") && phaseOption.booleanValue()==false) listTask = phaseReceipt3.getAttachamments();
+
+ listTask = phaseReceipt.getAttachamments();
+
+ } catch(Exception ae){
+ System.err.println("[ProjectExecutor::getOutPutTask()] Error setting the Phase options to get output: "+ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+
+ //listTask = phaseReceipt.getAttachamments();
+
+ try{
+
+ Receipt newtaskReceipt = new Receipt();
+
+ for(int j=0;j < listTask.size(); j++){
+ newtaskReceipt = (Receipt) (listTask.get(j));
+ listBdata = newtaskReceipt.getContent();
+
+ for(int k=0; k < listBdata.size(); k++){
+
+ bdataContent = (Bdata) (listBdata.get(k));
+
+ if (bdataContent.getKeyword().equals("IPADDRESS")){
+ fullUrl = bdataContent.getSvalue();
+ }
+
+ if (bdataContent.getKeyword().equals("PACKAGENAME")){
+ packageName = bdataContent.getSvalue();
+ }
+ }
+ TaskExec = new ExecutorServiceLocator().getTaskExecutor(new URL(fullUrl));
+ System.out.println("I got step1 instanciando Task Executor");
+ ((TaskExecutorSoapBindingStub)TaskExec).setMaintainSession(true);
+ System.out.println("I got step2 instanciando Task Executor");
+
+ classXmlFile = new StringWriter();
+
+ try{
+ Marshaller.marshal(newtaskReceipt,classXmlFile);
+ } catch (Exception ae){
+ System.err.println("[ProjectExecutor::getOutPutTask()] On Castor XMl conversor => Error : " + ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+
+ //System.out.println("My class right now is: "+classXmlFile.toString());
+
+ TaskExec.setStringTaskReceipt(classXmlFile.toString());
+ TaskExec.setProjectType(ProjectType);
+ TaskExec.prepare_path_to_get_output();
+
+ /* This method just prepared the Output to be get by getStringOutPutPwscf() */
+ System.out.println("Here I started to take the output file to: " + ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName + packageName);
+ TaskExec.setFileIndex(0);
+ TaskExec.readFile();
+
+ OutPutFile = new File(ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName + packageName + "/Pwscf_Output");
+ srcDest = new FileOutputStream(OutPutFile);
+
+ while((buffsizeWS = TaskExec.buffsize()) >= 0){
+ TaskExec.getOutPut();
+ StringOutPutPwscf = TaskExec.getStringOutPutPwscf();
+ DataToFile = Base64.decode(StringOutPutPwscf);
+ srcDest.write(DataToFile, 0, buffsizeWS);
+ }
+ System.out.println("Here I got " + ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName + packageName);
+ //OutPutFile = new File(this.ENV_PACKAGE_DIR + this.dirEPName);
+ //OutPutFile.mkdir();
+ //System.out.println("File name: " + OutPutFile.getName());
+ //System.out.println("File Size: " + DataToFile.length);
+ srcDest.close();
+
+
+ /* This method just prepared the Output to be get by getStringOutPutPwscf()
+ System.out.println("This method just prepared the Output to be get by getStringOutPutPwscf()");
+ TaskExec.getOutPut();
+
+ System.out.println(" This next method getStringOutPutPwscf() get the OutPut on Base64 format ");
+
+ StringOutPutPwscf = TaskExec.getStringOutPutPwscf();
+ DataToFile = Base64.decode(StringOutPutPwscf);
+
+ //OutPutFile = new File(this.ENV_PACKAGE_DIR + this.dirEPName);
+ //OutPutFile.mkdir();
+ OutPutFile = new File(this.ENV_PACKAGE_DIR + this.dirEPName + packageName + "/Pwscf_Output");
+ System.out.println("File name: " + OutPutFile.getName());
+ System.out.println("File Size: " + DataToFile.length);
+ OutputStream srcDest = new FileOutputStream(OutPutFile);
+ srcDest.write(DataToFile, 0, DataToFile.length);
+ srcDest.close();
+ */
+
+ }
+ } catch (Exception ae){
+ System.err.println("[ProjectExecutor::getOutPutTask()] => Error creating the OutPut File: " + ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+
+ srcDest = null;
+ }
+
+ public static void getOutPutTaskCij(Receipt phaseReceipt, String ProjectType, Boolean phaseOption){
+
+ System.out.println("\n Here I am on getOutPutTaskCij \n");
+
+ Executor TaskExec = null;
+ byte[] DataToFile = null;
+ File OutPutFile = null;
+ String StringOutPutPwscf = null;
+ String fullUrl = null;
+ String packageName = null;
+ StringWriter classXmlFile = null;
+ Bdata bdataContent = null;
+ OutputStream srcDest = null;
+ int buffsizeWS = 0;
+ List listBdata = null;
+ String[] ListOfEEPackages = null;
+ String ActuallyCCPackage = null;
+ String ActuallyEEPackage = null;
+
+ String AbsolutePathOutput = null;
+ int verify = 0;
+ List listTask = null;
+ String[] ListOfPackages = null;
+
+
+ try{
+ listTask = phaseReceipt.getAttachamments();
+ ListOfPackages = DispatcherSetting.ListPackages(ProjectType, phaseOption);
+ } catch (Exception ae){
+ System.err.println("[ProjectExecutor::getOutPutTaskCij()] Error getting the list of packages: "+ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+
+ try{
+ Receipt newtaskReceipt = new Receipt();
+ for(int j=0;j < listTask.size(); j++){
+ System.out.println("The Task Size is: "+listTask.size());
+ newtaskReceipt = (Receipt) (listTask.get(j));
+ listBdata = newtaskReceipt.getContent();
+
+ for(int k=0; k < listBdata.size(); k++){
+
+ bdataContent = (Bdata) (listBdata.get(k));
+
+ if (bdataContent.getKeyword().equals("IPADDRESS")){
+ fullUrl = bdataContent.getSvalue();
+ verify++;
+ }
+
+ if (bdataContent.getKeyword().equals("PACKAGENAME")){
+ packageName = bdataContent.getSvalue();
+
+
+ for(int i=0;i<ListOfPackages.length;i++){
+ ActuallyCCPackage = ListOfPackages[i];
+ ListOfEEPackages = DispatcherSetting.ListEEPackages(ActuallyCCPackage,false);
+ for(int p=0; p<ListOfEEPackages.length; p++){
+ ActuallyEEPackage = ListOfEEPackages[p];
+
+ System.out.println("The EEPackage name is:"+ActuallyEEPackage);
+ System.out.println("The Package from receipt is: "+packageName);
+ if (packageName.equals(ActuallyEEPackage)){
+ verify++;
+ System.out.println("\n\nYES THE PACKAGES ARE EQUALS\n\n");
+ AbsolutePathOutput = ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName + "/"+ ActuallyCCPackage.substring(0,ActuallyCCPackage.length()-4) + "/" + ActuallyEEPackage;
+ }
+ }
+ }
+ }
+ }
+
+ if(verify!=0 && verify%2==0){
+ System.out.println("Here I start reading the output");
+ TaskExec = new ExecutorServiceLocator().getTaskExecutor(new URL(fullUrl));
+ System.out.println("I got step1 instanciando Task Executor");
+ ((TaskExecutorSoapBindingStub)TaskExec).setMaintainSession(true);
+ System.out.println("I got step2 instanciando Task Executor");
+
+ classXmlFile = new StringWriter();
+
+ try{
+ Marshaller.marshal(newtaskReceipt,classXmlFile);
+ } catch (Exception ae){
+ System.err.println("[ProjectExecutor::getOutPutTaskCij()] On Castor XMl conversor => Error : " + ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+
+ //System.out.println("My class right now is: "+classXmlFile.toString());
+
+ TaskExec.setStringTaskReceipt(classXmlFile.toString());
+ TaskExec.setProjectType(ProjectType);
+ TaskExec.prepare_path_to_get_output();
+
+ /* This method just prepared the Output to be get by getStringOutPutPwscf() */
+ System.out.println("Here I started to take the output file to: " + AbsolutePathOutput);
+ TaskExec.setFileIndex(0);
+ TaskExec.readFile();
+
+ OutPutFile = new File(AbsolutePathOutput + "/Pwscf_Output");
+ srcDest = new FileOutputStream(OutPutFile);
+
+ while((buffsizeWS = TaskExec.buffsize()) >= 0){
+ if (buffsizeWS == -1){
+ System.out.println("[Failed to get the Output]");
+ break;
+ }
+ TaskExec.getOutPut();
+ StringOutPutPwscf = TaskExec.getStringOutPutPwscf();
+ DataToFile = Base64.decode(StringOutPutPwscf);
+ srcDest.write(DataToFile, 0, buffsizeWS);
+ }
+ System.out.println("Here I got "+AbsolutePathOutput);
+ //OutPutFile = new File(this.ENV_PACKAGE_DIR + this.dirEPName);
+ //OutPutFile.mkdir();
+ //System.out.println("File name: " + OutPutFile.getName());
+ //System.out.println("File Size: " + DataToFile.length);
+ srcDest.close();
+
+ }
+ verify=0;
+ }
+ } catch (Exception ae){
+ System.err.println("[ProjectExecutor::getOutPutTaskCij()] => Error creating the OutPut File: " + ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+ srcDest = null;
+ }
+
+ public static void getOutPutTaskHighTempThermo(Receipt phaseReceipt, String ProjectType, Boolean phaseOption){
+
+ System.out.println("\n Here I am on getOutPutTaskHighTempThermo \n");
+
+ Executor TaskExec = null;
+ byte[] DataToFile = null;
+ File OutPutFile = null;
+ String StringOutPutFile = null;
+ String fullUrl = null;
+ String packageName = null;
+ StringWriter classXmlFile = null;
+ Bdata bdataContent = null;
+ OutputStream srcDest = null;
+ String[] ListOfPHPackages = null;
+ String ActuallyCCPackage = null;
+ String ActuallyPHPackage = null;
+
+ String AbsolutePathOutput = null;
+ List listTask = null;
+ int verify = 0;
+ List listBdata = null;
+ String[] ListOfPackages = null;
+ int buffsizeWS = 0;
+ String StringOutPutPwscf = null;
+
+ try{
+ listTask = phaseReceipt.getAttachamments();
+
+ ListOfPackages = DispatcherSetting.ListPackages(ProjectType, phaseOption);
+ } catch(Exception ae){
+ System.err.println("[ProjectExecutor::getOutPutTaskHighTempThermo()] Error getting the HighPT packages: "+ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+
+ try{
+ Receipt newtaskReceipt = new Receipt();
+ for(int j=0;j < listTask.size(); j++){
+ System.out.println("The Task Size is: "+listTask.size());
+ newtaskReceipt = (Receipt) (listTask.get(j));
+ listBdata = newtaskReceipt.getContent();
+
+ for(int k=0; k < listBdata.size(); k++){
+
+ bdataContent = (Bdata) (listBdata.get(k));
+
+ if (bdataContent.getKeyword().equals("IPADDRESS")){
+ fullUrl = bdataContent.getSvalue();
+ verify++;
+ }
+
+ if (bdataContent.getKeyword().equals("PACKAGENAME")){
+ packageName = bdataContent.getSvalue();
+
+
+ for(int i=0;i<ListOfPackages.length;i++){
+ ActuallyCCPackage = ListOfPackages[i];
+ ListOfPHPackages = DispatcherSetting.ListPHPackages(ActuallyCCPackage, false); //ListEEPackages(ActuallyCCPackage,false);
+ for(int p=0; p<ListOfPHPackages.length; p++){
+ ActuallyPHPackage = ListOfPHPackages[p];
+
+ System.out.println("The EEPackage name is:"+ActuallyPHPackage);
+ System.out.println("The Package from receipt is: "+packageName);
+ if (packageName.equals(ActuallyPHPackage)){
+ verify++;
+ System.out.println("\n\nYES THE PACKAGES ARE EQUALS\n\n");
+ AbsolutePathOutput = ProjectExecutor.ENV_PACKAGE_DIR + ProjectExecutor.dirEPName + "/"+ ActuallyCCPackage.substring(0,ActuallyCCPackage.length()-4) + "/" + ActuallyPHPackage;
+ }
+ }
+ }
+ }
+ }
+
+ if(verify!=0 && verify%2==0){
+ System.out.println("Here I start reading the output");
+ TaskExec = new ExecutorServiceLocator().getTaskExecutor(new URL(fullUrl));
+ System.out.println("I got step1 instanciando Task Executor");
+ ((TaskExecutorSoapBindingStub)TaskExec).setMaintainSession(true);
+ System.out.println("I got step2 instanciando Task Executor");
+
+ classXmlFile = new StringWriter();
+
+ try{
+ Marshaller.marshal(newtaskReceipt,classXmlFile);
+ } catch (Exception ae){
+ System.err.println("[ProjectExecutor::getOutPutTaskHighTempThermo()] On Castor XMl conversor => Error : " + ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+
+
+ TaskExec.setStringTaskReceipt(classXmlFile.toString());
+ TaskExec.setProjectType(ProjectType);
+ TaskExec.prepare_path_to_get_output();
+
+ /* This method just prepared the Output to be get by getStringOutPutPwscf() */
+ System.out.println("Here I started to take the output file to: " + AbsolutePathOutput + "Pwscf_Output2");
+ TaskExec.setFileIndex(1);//Index_1 => Pwscf_Output2; Index_2 => Pwscf_Output3; Index_3 => Phonon_Output; Index_4 => matdyn
+ TaskExec.readFile();
+
+ OutPutFile = new File(AbsolutePathOutput + "/Pwscf_Output2");
+ srcDest = new FileOutputStream(OutPutFile);
+
+ while((buffsizeWS = TaskExec.buffsize()) >= 0){
+ if (buffsizeWS == -1){
+ System.out.println("[Failed to get the Output]");
+ break;
+ }
+ TaskExec.getOutPut();
+ StringOutPutPwscf = TaskExec.getStringOutPutPwscf();
+ DataToFile = Base64.decode(StringOutPutPwscf);
+ srcDest.write(DataToFile, 0, buffsizeWS);
+ }
+ System.out.println("Here I got "+AbsolutePathOutput);
+ srcDest.close();
+
+ /* This method just prepared the Output to be get by getStringOutPutPwscf() */
+ System.out.println("Here I started to take the output file to: " + AbsolutePathOutput + "Pwscf_Output3");
+ TaskExec.setFileIndex(2);//Index_1 => Pwscf_Output2; Index_2 => Pwscf_Output3; Index_3 => Phonon_Output; Index_4 => matdyn
+ TaskExec.readFile();
+
+ OutPutFile = new File(AbsolutePathOutput + "/Pwscf_Output3");
+ srcDest = new FileOutputStream(OutPutFile);
+
+ while((buffsizeWS = TaskExec.buffsize()) >= 0){
+ if (buffsizeWS == -1){
+ System.out.println("[Failed to get the Output]");
+ break;
+ }
+ TaskExec.getOutPut();
+ StringOutPutPwscf = TaskExec.getStringOutPutPwscf();
+ DataToFile = Base64.decode(StringOutPutPwscf);
+ srcDest.write(DataToFile, 0, buffsizeWS);
+ }
+ System.out.println("Here I got "+AbsolutePathOutput);
+ srcDest.close();
+
+
+
+
+ /* This method just prepared the Output to be get by getStringOutPutPwscf() */
+ System.out.println("Here I started to take the output file to: " + AbsolutePathOutput + "Phonon_Output");
+ TaskExec.setFileIndex(3);//Index_1 => Pwscf_Output2; Index_2 => Pwscf_Output3; Index_3 => Phonon_Output; Index_4 => matdyn
+ TaskExec.readFile();
+
+ OutPutFile = new File(AbsolutePathOutput + "/Phonon_Output");
+ srcDest = new FileOutputStream(OutPutFile);
+
+ while((buffsizeWS = TaskExec.buffsize()) >= 0){
+ if (buffsizeWS == -1){
+ System.out.println("[Failed to get the Output]");
+ break;
+ }
+ TaskExec.getOutPut();
+ StringOutPutPwscf = TaskExec.getStringOutPutPwscf();
+ DataToFile = Base64.decode(StringOutPutPwscf);
+ srcDest.write(DataToFile, 0, buffsizeWS);
+ }
+ System.out.println("Here I got "+AbsolutePathOutput);
+ srcDest.close();
+
+
+ /* This method just prepared the Output to be get by getStringOutPutPwscf() */
+ System.out.println("Here I started to take the output file to: " + AbsolutePathOutput + "matdyn");
+ TaskExec.setFileIndex(4);//Index_1 => Pwscf_Output2; Index_2 => Pwscf_Output3; Index_3 => Phonon_Output; Index_4 => matdyn
+ TaskExec.readFile();
+
+ OutPutFile = new File(AbsolutePathOutput + "/matdyn");
+ srcDest = new FileOutputStream(OutPutFile);
+
+ while((buffsizeWS = TaskExec.buffsize()) >= 0){
+ if (buffsizeWS == -1){
+ System.out.println("[Failed to get the Output]");
+ break;
+ }
+ TaskExec.getOutPut();
+ StringOutPutPwscf = TaskExec.getStringOutPutPwscf();
+ DataToFile = Base64.decode(StringOutPutPwscf);
+ srcDest.write(DataToFile, 0, buffsizeWS);
+ }
+ System.out.println("Here I got "+AbsolutePathOutput);
+ srcDest.close();
+
+ /*
+ //System.out.println("My class right now is: "+classXmlFile.toString());
+ TaskExec.setProjectType(getProjectType());
+ TaskExec.setStringTaskReceipt(classXmlFile.toString());
+ TaskExec.setProjectType(projectType);
+
+ //This method just prepared the Output to be get by getStringOutPutPwscf()
+ System.out.println("This method just prepared the Output to be get by getOutPutTaskHighTempThermo()");
+ TaskExec.getOutPut();
+
+ System.out.println(" This next method getStringOutPutPwscf() get the OutPut on Base64 format ");
+
+ StringOutPutFile = TaskExec.getStringOutPutPwscf2();
+ DataToFile = Base64.decode(StringOutPutFile);
+
+ OutPutFile = new File(AbsolutePathOutput + "/Pwscf_Output2");
+ System.out.println("File name: " + OutPutFile.getName());
+ System.out.println("File Size: " + DataToFile.length);
+ srcDest = new FileOutputStream(OutPutFile);
+ srcDest.write(DataToFile, 0, DataToFile.length);
+ srcDest.close();
+ srcDest = null;
+
+ StringOutPutFile = TaskExec.getStringOutPutPwscf3();
+ DataToFile = Base64.decode(StringOutPutFile);
+
+ OutPutFile = new File(AbsolutePathOutput + "/Pwscf_Output3");
+ System.out.println("File name: " + OutPutFile.getName());
+ System.out.println("File Size: " + DataToFile.length);
+ srcDest = new FileOutputStream(OutPutFile);
+ srcDest.write(DataToFile, 0, DataToFile.length);
+ srcDest.close();
+ srcDest = null;
+
+ StringOutPutFile = TaskExec.getStringOutPutPhonon();
+ DataToFile = Base64.decode(StringOutPutFile);
+
+ OutPutFile = new File(AbsolutePathOutput + "/Pwscf_Phonon");
+ System.out.println("File name: " + OutPutFile.getName());
+ System.out.println("File Size: " + DataToFile.length);
+ srcDest = new FileOutputStream(OutPutFile);
+ srcDest.write(DataToFile, 0, DataToFile.length);
+ srcDest.close();
+ srcDest = null;
+
+ StringOutPutFile = TaskExec.getStringOutPutMatdyn();
+ DataToFile = Base64.decode(StringOutPutFile);
+
+ OutPutFile = new File(AbsolutePathOutput + "/matdyn");
+ System.out.println("File name: " + OutPutFile.getName());
+ System.out.println("File Size: " + DataToFile.length);
+ srcDest = new FileOutputStream(OutPutFile);
+ srcDest.write(DataToFile, 0, DataToFile.length);
+ srcDest.close();
+ srcDest = null;
+ */
+
+ }
+ verify=0;
+ }
+ } catch (Exception ae){
+ System.err.println("[ProjectExecutor::getOutPutTaskHighTempThermo()] => Error creating the OutPut File: " + ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <das...@us...> - 2008-10-29 19:41:22
|
Revision: 1178
http://vlab.svn.sourceforge.net/vlab/?rev=1178&view=rev
Author: dasil014
Date: 2008-10-29 19:41:19 +0000 (Wed, 29 Oct 2008)
Log Message:
-----------
I added a option to resubmit a job in a different Task Executor, if it failed to submit a job in a Task Executor attributed. If keep try find task executor available to get the execution package. The method that convert a string into a Task Receipt class setConvertTaskReceipt(String, String) had move from ProjectExecutor class to DispatchTask.java, due the facilite to exchange data into the same class.
Modified Paths:
--------------
trunk/vlab/services/project-executor/src/main/java/org/vlab/services/DispatchTask.java
Modified: trunk/vlab/services/project-executor/src/main/java/org/vlab/services/DispatchTask.java
===================================================================
--- trunk/vlab/services/project-executor/src/main/java/org/vlab/services/DispatchTask.java 2008-10-29 19:25:36 UTC (rev 1177)
+++ trunk/vlab/services/project-executor/src/main/java/org/vlab/services/DispatchTask.java 2008-10-29 19:41:19 UTC (rev 1178)
@@ -4,7 +4,12 @@
import java.io.FileInputStream;
import java.io.InputStream;
import java.net.URL;
+import java.io.StringReader;
+import java.net.*;
+import org.exolab.castor.xml.Marshaller;
+import org.exolab.castor.xml.Unmarshaller;
+
import org.apache.axis.encoding.Base64;
public class DispatchTask extends Thread{
@@ -199,6 +204,24 @@
tdUrl = disp.getTargetFullUrl();
System.out.println("URL TO CONNECT: " + tdUrl);
+ int i = 1;
+ while(i!=0){
+
+ try{
+ URL url = new URL(tdUrl);
+ URLConnection connection = url.openConnection();
+ connection.connect();
+ i = 0;
+ System.out.println("Successfully Connected at: " + tdUrl);
+ }catch(Exception ae){
+ System.err.println("Error trying to connect at: " + tdUrl);
+ i = 1;
+ disp.setChooseToRun();
+ tdUrl = disp.getTargetFullUrl();
+ System.out.println("URL TO CONNECT: " + tdUrl);
+ }
+ }
+
//disp.setTdExecutionPackage(pesdataexecutionpackage);
SendExecutionPackage();
@@ -211,7 +234,7 @@
try{
tdReceiptString = disp.getTdReceiptString();
this.sleep(1000);
- ProjectExecutor.setTaskReceipt( this.getName(), tdReceiptString);
+ ExecuteProject.ListTaskReceipt.add(setConvertTaskReceipt( this.getName(), tdReceiptString));
} catch (Exception ae){
System.err.println("[DispatchTask::start() Thread:" + this.getName() + "] => Error getting the receipt string: " + ae.getMessage());
ae.printStackTrace();
@@ -220,4 +243,45 @@
}
+
+
+
+ public static Receipt setConvertTaskReceipt(String ThreadName, String TaskReceipt){
+
+ //System.out.println("\nHere I start the setTaskReceipt with the following Receipt: \n"+TaskReceipt+"\n\n");
+ StringReader ReceiptReader = null;
+ Receipt newtaskReceipt = new Receipt();
+
+ try{
+ ReceiptReader = new StringReader(TaskReceipt);
+ } catch (Exception ae){
+ System.err.println("[Project::setTaskReceipt()] => Error creating the String Reader: " + ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+
+ try{
+ Unmarshaller un = new Unmarshaller(Receipt.class);
+ newtaskReceipt = (Receipt) un.unmarshal(ReceiptReader);
+ } catch (Exception ae){
+ System.err.println("[ProjectExecutor::setTaskReceipt()] => Error: " + ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+
+ try{
+ System.out.println("Receipt Code: " + newtaskReceipt.getCode());
+ System.out.println("Receipt Kind: " + newtaskReceipt.getKind());
+ //ExecuteProject.ListTaskReceipt.add(newtaskReceipt);
+ } catch(Exception ae){
+ System.err.println("[ProjectExecutor::setTaskReceipt] Adding Task inside the list of Tasks: "+ae.getMessage());
+ ae.printStackTrace();
+ //System.exit(-1);
+ }
+
+ //System.out.println("Here the thread" + ThreadName + "I put the taskreceipt on the phase list" + ExecuteProject.ListTaskReceipt.size());
+
+ return newtaskReceipt;
+ }
+
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <das...@us...> - 2008-10-29 19:25:39
|
Revision: 1177
http://vlab.svn.sourceforge.net/vlab/?rev=1177&view=rev
Author: dasil014
Date: 2008-10-29 19:25:36 +0000 (Wed, 29 Oct 2008)
Log Message:
-----------
I added a function getListofFiles(String pathProjectHP) to list all files from the gnuplot plot generation
Modified Paths:
--------------
trunk/vlab/services/project-executor/src/main/java/org/vlab/services/ProjectExecutorManager.java
Modified: trunk/vlab/services/project-executor/src/main/java/org/vlab/services/ProjectExecutorManager.java
===================================================================
--- trunk/vlab/services/project-executor/src/main/java/org/vlab/services/ProjectExecutorManager.java 2008-10-29 19:15:14 UTC (rev 1176)
+++ trunk/vlab/services/project-executor/src/main/java/org/vlab/services/ProjectExecutorManager.java 2008-10-29 19:25:36 UTC (rev 1177)
@@ -28,6 +28,7 @@
private String pathPhononDir;
private String pathProjectHP;
private String ENV_SCRIPT;
+ public int numberoffile;
public ProjectExecutorManager(){
loadProperties();
@@ -40,8 +41,8 @@
Properties proper = new Properties();
try{
- //proper.load( this.getClass().getClassLoader().getResourceAsStream("resource.properties") );
- proper.load(this.getClass().getResourceAsStream("resource.properties"));
+ proper.load( this.getClass().getClassLoader().getResourceAsStream("resource.properties") );
+ //proper.load(this.getClass().getResourceAsStream("resource.properties"));
} catch (Exception ae){
System.err.println("[ProjectExecutor::loadProperties] Error loading resource properties => "+ae.getMessage());
ae.printStackTrace();
@@ -241,6 +242,7 @@
return returnString;
}
+
public void execute(){
System.out.println("\n ");
@@ -296,8 +298,8 @@
Properties proper = new Properties();
try{
- //proper.load( this.getClass().getClassLoader().getResourceAsStream("resource.properties") );
- proper.load(this.getClass().getResourceAsStream("resource.properties"));
+ proper.load( this.getClass().getClassLoader().getResourceAsStream("resource.properties") );
+ //proper.load(this.getClass().getResourceAsStream("resource.properties"));
} catch (Exception ae){
System.err.println("[ProjectExecutor::loadProperties] Error loading resource properties => "+ae.getMessage());
ae.printStackTrace();
@@ -505,7 +507,7 @@
ae.printStackTrace();
}
}
-
+ /*
public void copyToDownload(){
File newDirDownload = null;
@@ -775,6 +777,7 @@
}
setUrlListofFiles("http://dasilveira.msi.umn.edu:8180/axis/openplotout.jsp?PathExec="+pathProjectHP+"/ListOfFiles.txt");
}
+ */
public void createZipFile(){
@@ -791,8 +794,11 @@
try{
FileDir = new File(pathProjectHP);
+ String listofFiles = getListofFiles(pathProjectHP);
- String[] fullcommand = { this.ENV_SCRIPT +"zipFile2.sh", pathProjectHP+"/download/"};
+ System.out.println("List of file to compact: " + listofFiles);
+ System.out.println("WorkDir: "+FileDir);
+ String[] fullcommand = { this.ENV_SCRIPT +"zipFile2.sh", listofFiles};
Runtime Rt = Runtime.getRuntime();
Process procShell = Rt.exec(fullcommand, null , FileDir);
@@ -819,6 +825,35 @@
}
+ private String getListofFiles(String pathProjectHP){
+
+ File listFile = new File(pathProjectHP);
+ String[] ArrayOfFiles = null;
+ FilenameFilter filter = null;
+ String ConcatenateListofFile = "";
+
+ filter = new FilenameFilter(){
+ public boolean accept(File dir, String name){
+ return name.matches(".*.dat");
+ }
+ };
+
+ try{
+ ArrayOfFiles = listFile.list(filter);
+ numberoffile = 0;
+ for (int i=0; i<ArrayOfFiles.length; i++) {
+ // Get filename of file or directory
+ ConcatenateListofFile = ConcatenateListofFile + " " + ArrayOfFiles[i];
+ //System.out.println(ConcatenateListofFile);
+ numberoffile++;
+ }
+ } catch(Exception ae){
+ System.err.println("Error listing the the dat files: "+ae.getMessage());
+ ae.printStackTrace();
+ }
+ return ConcatenateListofFile;
+ }
+
public String getDownloadFile(){
File downloadFile = null;
@@ -827,7 +862,7 @@
String StringReturned = null;
try{
- downloadFile = new File(pathProjectHP + "download.zip");
+ downloadFile = new File(pathProjectHP + "hightempfile.zip");
System.out.println("\n File name is: " + downloadFile.getName());
System.out.println("\n File size is: " + downloadFile.length());
@@ -903,6 +938,4 @@
System.out.println(e.getMessage());
}
}
-
-
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <das...@us...> - 2008-10-29 19:15:18
|
Revision: 1176
http://vlab.svn.sourceforge.net/vlab/?rev=1176&view=rev
Author: dasil014
Date: 2008-10-29 19:15:14 +0000 (Wed, 29 Oct 2008)
Log Message:
-----------
New version of thermo program. It correct some bugs with negative frequencies
Modified Paths:
--------------
trunk/vlab/services/project-executor/src/main/native/Nthermo_distro/.gdb_history
trunk/vlab/services/project-executor/src/main/native/Nthermo_distro/FitEn.c
trunk/vlab/services/project-executor/src/main/native/Nthermo_distro/HTParms
trunk/vlab/services/project-executor/src/main/native/Nthermo_distro/cth
trunk/vlab/services/project-executor/src/main/native/Nthermo_distro/energy_core.c
trunk/vlab/services/project-executor/src/main/native/Nthermo_distro/phon
Modified: trunk/vlab/services/project-executor/src/main/native/Nthermo_distro/.gdb_history
===================================================================
--- trunk/vlab/services/project-executor/src/main/native/Nthermo_distro/.gdb_history 2008-02-25 07:51:41 UTC (rev 1175)
+++ trunk/vlab/services/project-executor/src/main/native/Nthermo_distro/.gdb_history 2008-10-29 19:15:14 UTC (rev 1176)
@@ -1,132 +1,13 @@
-file /Users/cesar/Desktop/From_LiLi/4Cesar/a.out
-file /Users/cesar/Desktop/NewThermo/Periclase/90RY/Fit_q/a.out
-file /Users/cesar/Desktop/new_elast/a.out
-file /Users/cesar/Desktop/Fit_Ener/4LiLI/a.out
-file /Users/cesar/Desktop/thermo_dot_c/a.out
-quit
-break thermo.f:115
-run
-print nv
-print nt
-print i
-print t
-print t(401)
-step
-break thermo.f:265
-run
-cont
-print nq
-print nq(1)
-print nq
+file /Users/cesar/Desktop/DOWNLOAD/Nthermo_distro/thermo
+list printout
up
-print nq
-run
-print nq
-cont
-delete 2
-break do
-break thermo.f:265
quit
-run
-quit
-break <implicit code>:1
-file /Users/cesar/Desktop/NewThermo/Periclase/90RY/Fit_q/a.out
-quit
-file /Users/cesar/Desktop/NewThermo/Periclase/90RY/Fit_q/a.out
-set args
-run
-print Parms
-printf parms
-print parms[1]
-print x
-up
-quit
-file /Users/cesar/Desktop/new_elast/a.out
-quit
-list 'main'
-break main
-quit
-list 'Parms'
-set args
-run
-list elast.p:1
-break elast.p:325
-run
-break elast.p:327
-break elast.p:326
-cont
-print delampglb
-print numamp
-cont
-print Cij
-quit
-break GenFit_En_V.c:88
-run
-print g
-print r_o
-print l
-quit
-break GenFit_En_V.c:88
-run
-print g
-print Fo
-quit
-break GenFit_En_V.c:104
-run
-print g
-quit
-run
-quit
-run
-quit
-list E_PT
-list V_PT
-list 'E_PT'
-list V_PT
-break energy_core.c:246
-run
-print i
-print P
-print T
-print EofVT
-print *EofVT
-print EofVT[0]
-print EofVT[1]
-quit
-run
-list E_PT
-list V_PT
-break energy_core.c:252
-run
-break energy_core.c:250
-run
-break energy_core.c:247
-run
-list SetParam
-quit
list main_inits
-list readfreqs
-break energy_core.c:149
+list energy_inits
+list SetParam
+break energy_core.c:398
+delete 1
+break Et[k]
+break energy_core.c:397
run
-print NumOfVols
-graph display NumOfVols
-print print NumOfQpoints
-print NumOfQpoints
-print NumOfFreqs
-print NumOfMolUn
-print ss
-quit
-list main_inits
-break Initialization.c:132
-break Initialization.c:133
-run
-quit
-run
-quit
-run
-up
-quit
-run
-up
-quit
Modified: trunk/vlab/services/project-executor/src/main/native/Nthermo_distro/FitEn.c
===================================================================
--- trunk/vlab/services/project-executor/src/main/native/Nthermo_distro/FitEn.c 2008-02-25 07:51:41 UTC (rev 1175)
+++ trunk/vlab/services/project-executor/src/main/native/Nthermo_distro/FitEn.c 2008-10-29 19:15:14 UTC (rev 1176)
@@ -166,6 +166,24 @@
nparm = J;
}
Nfree = *Npts - nparm; /* No. de graus de liberdade. */
+
+/*
+ {
+ int i;
+
+ printf("NPTS = %4i \n",(*Npts));
+ for (i=0;i<(*Npts);i++) {
+ printf("%4i %12.4f %12.4f \n",i,Dados[0][i],Dados[1][i]);
+ }
+ printf("NPTS = %4i \n",(*NparmExt));
+ printf("NparmExt = %4i \n",(*NparmExt));
+ for (i=0;i<(*Npts);i++) {
+ printf("%4i %12.4f \n",i,Param1[i]);
+ }
+ }
+
+*/
+
memcpy(X, Dados[0], sizeof(YCoordType));
memcpy(Y, Dados[1], sizeof(YCoordType));
if (Nfree > 0) {
Modified: trunk/vlab/services/project-executor/src/main/native/Nthermo_distro/HTParms
===================================================================
--- trunk/vlab/services/project-executor/src/main/native/Nthermo_distro/HTParms 2008-02-25 07:51:41 UTC (rev 1175)
+++ trunk/vlab/services/project-executor/src/main/native/Nthermo_distro/HTParms 2008-10-29 19:15:14 UTC (rev 1176)
@@ -1,5 +1,5 @@
-0.0 4200.0 10.0
-1 4
+100.0 3500.0 50.0
+0
1
1
1
@@ -14,4 +14,4 @@
0
0.0 16 10.0
0
-500.0 8 500.0
+500.0 5 500.0
Modified: trunk/vlab/services/project-executor/src/main/native/Nthermo_distro/cth
===================================================================
--- trunk/vlab/services/project-executor/src/main/native/Nthermo_distro/cth 2008-02-25 07:51:41 UTC (rev 1175)
+++ trunk/vlab/services/project-executor/src/main/native/Nthermo_distro/cth 2008-10-29 19:15:14 UTC (rev 1176)
@@ -1,12 +1,12 @@
rm *.o thermo
-gcc -g -O0 -c Globals.c
-gcc -g -O0 -c E_VP.c
-gcc -g -O0 -c FitEn.c
-gcc -g -O0 -c Initialization.c
-gcc -g -O0 -c O1_deriv.c
-gcc -g -O0 -c energy_core.c
-gcc -g -O0 -c mostfunctions_of_PT.c
-gcc -g -O0 -c mostfunctions_of_VT.c
-gcc -g -O0 -c output.c
-gcc -g -O0 -c printout.c
-gcc -g -O0 Globals.o FitEn.o O1_deriv.o output.o printout.o mostfunctions_of_PT.o E_VP.o Initialization.o energy_core.o mostfunctions_of_VT.o thermo.c -o thermo
+gcc -g2 -O0 -c Globals.c
+gcc -g2 -O0 -c E_VP.c
+gcc -g2 -O0 -c FitEn.c
+gcc -g2 -O0 -c Initialization.c
+gcc -g2 -O0 -c O1_deriv.c
+gcc -g2 -O0 -c energy_core.c
+gcc -g2 -O0 -c mostfunctions_of_PT.c
+gcc -g2 -O0 -c mostfunctions_of_VT.c
+gcc -g2 -O0 -c output.c
+gcc -g2 -O0 -c printout.c
+gcc -g2 -O0 Globals.o FitEn.o O1_deriv.o output.o printout.o mostfunctions_of_PT.o E_VP.o Initialization.o energy_core.o mostfunctions_of_VT.o thermo.c -o thermo
Modified: trunk/vlab/services/project-executor/src/main/native/Nthermo_distro/energy_core.c
===================================================================
--- trunk/vlab/services/project-executor/src/main/native/Nthermo_distro/energy_core.c 2008-02-25 07:51:41 UTC (rev 1175)
+++ trunk/vlab/services/project-executor/src/main/native/Nthermo_distro/energy_core.c 2008-10-29 19:15:14 UTC (rev 1176)
@@ -168,15 +168,19 @@
l = 0;
for (k=0;k<NumOfVols;k++) {
fscanf(freqFile,"%le %le %le \n",&a,&b,&c);
+/* printf("P,V,E = %12.4f %12.4f %12.4f \n",a,b,c); */
Po[k] = a;
Vo[k] = b;
Eo[k] = c;
for (i=0;i<NumOfQpoints;i++) {
fscanf(freqFile,"%le %le %le \n",&a,&b,&c);
+/* printf("q-point = %12.4f %12.4f %12.4f \n",a,b,c); */
for (j=0;j<NumOfFreqs;j++) {
fscanf(freqFile,"%le \n",&a);
+ if (a<0.0) a = 0.1;
freqsGlb[l] = a;
+/* printf("freq j = %4i %16.6f \n",j,freqsGlb[l]); */
l++;
}
}
@@ -186,6 +190,7 @@
for (j=0;j<NumOfQpoints;j++) {
fscanf(freqFile,"%le %le %le %le \n",&a,&b,&c,&d);
weightGlb[j] = d;
+/* printf("q-point weight = %12.4f %12.4f %12.4f %12.4f \n",a,b,c,weightGlb[j]); */
}
wt = 0.0;
@@ -210,7 +215,7 @@
/* */
/* Lowest Level Abstraction Functions! */
-/* Those are the only public functions aloowed */
+/* Those are the only public functions alowed */
/* to access the energy parametrization data. */
/* */
Modified: trunk/vlab/services/project-executor/src/main/native/Nthermo_distro/phon
===================================================================
--- trunk/vlab/services/project-executor/src/main/native/Nthermo_distro/phon 2008-02-25 07:51:41 UTC (rev 1175)
+++ trunk/vlab/services/project-executor/src/main/native/Nthermo_distro/phon 2008-10-29 19:15:14 UTC (rev 1176)
@@ -1,14083 +1,651 @@
-Periclase
-The file contains frequencies and wieght factors at the end
+XXX
+YYY
Number of volumes (nv), q-vectors (nq), normal modes (np), formula units(nm):
-12 145 6 1
+ 11 8 6 1
- -7.9 131.2235 -34.02334905
- .0000 .0000 .0000
- -.000034
- -.000031
- -.000020
- 364.821136
- 364.821136
- 670.755212
-
- -.0625 -.0625 .0625
- 47.538611
- 47.538611
- 82.142128
- 364.301148
- 364.301148
- 668.783968
-
- -.1250 -.1250 .1250
- 92.843768
- 92.843768
- 162.307452
- 362.841845
- 362.841845
- 662.892252
-
- -.1875 -.1875 .1875
- 134.245687
- 134.245687
- 238.723435
- 360.556089
- 360.556089
- 653.066778
-
- -.2500 -.2500 .2500
- 170.933556
- 170.933556
- 309.971942
- 357.222956
- 357.222956
- 639.095615
-
- -.3125 -.3125 .3125
- 202.754778
- 202.754778
- 352.259001
- 352.259001
- 375.045949
- 620.477736
-
- -.3750 -.3750 .3750
- 229.415484
- 229.415484
- 345.345911
- 345.345911
- 433.300312
- 596.510461
-
- -.4375 -.4375 .4375
- 249.068248
- 249.068248
- 337.801899
- 337.801899
- 484.259559
- 566.589492
-
- -.5000 -.5000 .5000
- 256.891457
- 256.891457
- 334.063078
- 334.063078
- 521.799155
- 536.142654
-
- .0000 .0000 .1250
- 62.156228
- 62.156228
- 84.719618
- 367.081708
- 367.081708
- 664.848859
-
- -.0625 -.0625 .1875
- 92.891946
- 97.863906
- 147.097454
- 365.682017
- 368.502341
- 658.905995
-
- -.1250 -.1250 .2500
- 129.215573
- 135.548010
- 218.844937
- 361.883529
- 368.317853
- 650.430300
-
- -.1875 -.1875 .3125
- 165.506308
- 170.057073
- 288.505035
- 358.135205
- 366.344860
- 638.125993
-
- -.2500 -.2500 .3750
- 198.818905
- 200.139613
- 351.029492
- 356.669814
- 362.190325
- 621.471650
-
- -.3125 -.3125 .4375
- 225.624191
- 227.700422
- 349.349300
- 355.436170
- 412.721531
- 599.843308
-
- -.3750 -.3750 .5000
- 245.728405
- 250.077439
- 344.709282
- 346.534492
- 464.820088
- 572.630686
-
- -.4375 -.4375 .5625
- 257.280202
- 261.869922
- 338.340390
- 343.025025
- 508.231081
- 540.773791
-
- -.5000 -.5000 .6250
- 254.974470
- 259.484660
- 335.934841
- 347.465720
- 495.288851
- 551.457825
-
- -.5625 -.5625 .6875
- 238.479027
- 245.392060
- 339.735065
- 355.554993
- 448.370528
- 582.418232
-
- -.6250 -.6250 .7500
- 212.923994
- 224.054838
- 345.166740
- 362.877954
- 394.089997
- 607.894864
-
- -.6875 -.6875 .8125
- 181.838581
- 197.471327
- 332.267233
- 349.745932
- 368.882583
- 628.061541
-
- -.7500 -.7500 .8750
- 146.704888
- 165.915729
- 265.960362
- 353.442252
- 371.437533
- 643.647274
-
- -.8125 -.8125 .9375
- 108.725737
- 129.432018
- 196.116649
- 356.976341
- 371.798104
- 655.343009
-
- -.8750 -.8750 1.0000
- 71.225061
- 88.307422
- 128.635542
- 360.705416
- 369.315304
- 663.775477
-
- .0000 .0000 .2500
- 120.316466
- 120.316466
- 165.308458
- 372.862415
- 372.862415
- 647.904682
-
- -.0625 -.0625 .3125
- 147.700921
- 149.577161
- 215.671826
- 372.775931
- 375.283954
- 637.409821
-
- -.1250 -.1250 .3750
- 178.019467
- 178.707876
- 274.799969
- 369.689276
- 375.506647
- 625.868548
-
- -.1875 -.1875 .4375
- 204.885734
- 209.178676
- 333.117259
- 367.465582
- 373.236497
- 611.247181
-
- -.2500 -.2500 .5000
- 227.444760
- 237.929309
- 363.543427
- 367.999706
- 390.577568
- 592.505759
-
- -.3125 -.3125 .5625
- 246.029085
- 261.190113
- 359.677698
- 363.673717
- 439.805752
- 569.040897
-
- -.3750 -.3750 .6250
- 258.849349
- 275.468006
- 349.663236
- 365.525066
- 482.138213
- 541.519712
-
- -.4375 -.4375 .6875
- 261.626904
- 278.351058
- 341.892410
- 370.708610
- 493.504815
- 532.641396
-
- -.5000 -.5000 .7500
- 250.729207
- 271.117416
- 340.008848
- 377.397715
- 456.053564
- 560.234055
-
- -.5625 -.5625 .8125
- 228.718528
- 256.696432
- 342.151500
- 381.397084
- 409.609259
- 586.425072
-
- -.6250 -.6250 .8750
- 200.358345
- 236.336442
- 345.132132
- 351.630220
- 388.250624
- 608.433442
-
- -.6875 -.6875 .9375
- 168.845089
- 209.124496
- 296.297382
- 348.195708
- 386.138952
- 626.850617
-
- -.7500 -.7500 1.0000
- 136.853899
- 173.099712
- 242.183195
- 351.973669
- 380.942564
- 642.448496
-
- .0000 .0000 .3750
- 170.749871
- 170.749871
- 238.148025
- 380.475404
- 380.475404
- 622.238459
-
- -.0625 -.0625 .4375
- 193.544354
- 194.924557
- 278.216276
- 382.204312
- 383.441918
- 608.434792
-
- -.1250 -.1250 .5000
- 214.843047
- 222.720683
- 323.349525
- 382.649876
- 383.817736
- 594.319406
-
- -.1875 -.1875 .5625
- 233.642784
- 251.272501
- 366.471327
- 381.012162
- 386.487862
- 577.937713
-
- -.2500 -.2500 .6250
- 249.690991
- 276.210070
- 374.527951
- 384.892896
- 414.519846
- 558.325303
-
- -.3125 -.3125 .6875
- 262.001191
- 293.632744
- 364.796784
- 391.547448
- 451.156886
- 535.926884
-
- -.3750 -.3750 .7500
- 267.815895
- 301.540331
- 354.120499
- 398.300055
- 473.485894
- 519.605517
-
- -.4375 -.4375 .8125
- 263.117980
- 300.600404
- 346.456268
- 402.884266
- 456.011341
- 534.457581
-
- -.5000 -.5000 .8750
- 246.859466
- 292.307500
- 343.606385
- 398.464463
- 424.751082
- 559.734315
-
- -.5625 -.5625 .9375
- 222.842775
- 276.153100
- 343.646005
- 368.489235
- 409.408483
- 584.049915
-
- -.6250 -.6250 1.0000
- 195.582130
- 248.737353
- 330.240426
- 345.106612
- 399.156813
- 606.495192
-
- .0000 .0000 .5000
- 210.608737
- 210.608737
- 300.007442
- 389.393348
- 389.393348
- 591.749049
-
- -.0625 -.0625 .5625
- 227.228157
- 231.097380
- 330.036744
- 392.757492
- 393.334025
- 576.798524
-
- -.1250 -.1250 .6250
- 242.321961
- 257.749288
- 360.749080
- 392.785074
- 398.565013
- 561.812549
-
- -.1875 -.1875 .6875
- 255.574097
- 285.955058
- 387.973477
- 388.772049
- 408.427894
- 545.371149
-
- -.2500 -.2500 .7500
- 266.372748
- 309.645248
- 380.619009
- 405.646010
- 427.396538
- 527.335407
-
- -.3125 -.3125 .8125
- 273.093377
- 324.585666
- 369.444325
- 414.131286
- 449.856215
- 510.688827
-
- -.3750 -.3750 .8750
- 272.946786
- 329.648700
- 357.964021
- 414.551909
- 457.111596
- 509.989823
-
- -.4375 -.4375 .9375
- 263.396685
- 324.604664
- 349.464436
- 404.156630
- 444.667677
- 531.091698
-
- -.5000 -.5000 1.0000
- 245.328063
- 307.277320
- 344.990957
- 386.168198
- 428.376580
- 557.586136
-
- .0000 .0000 .6250
- 239.913888
- 239.913888
- 347.898328
- 399.118747
- 399.118747
- 561.782668
-
- -.0625 -.0625 .6875
- 251.790453
- 257.313030
- 367.591935
- 402.014672
- 404.635670
- 548.507020
-
- -.1250 -.1250 .7500
- 262.349681
- 283.492136
- 383.883859
- 400.690097
- 413.904369
- 535.263647
-
- -.1875 -.1875 .8125
- 271.085753
- 313.407534
- 394.176270
- 394.814553
- 428.315995
- 521.108143
-
- -.2500 -.2500 .8750
- 277.087119
- 340.271406
- 384.814034
- 397.448391
- 447.705083
- 505.856377
-
- -.3125 -.3125 .9375
- 278.871637
- 355.225740
- 372.168149
- 397.070164
- 469.005519
- 491.471887
-
- -.3750 -.3750 1.0000
- 274.617322
- 348.358784
- 359.459792
- 400.882862
- 464.914294
- 503.396103
-
- .0000 .0000 .7500
- 260.885392
- 260.885392
- 379.376046
- 407.700493
- 407.700493
- 538.366430
-
- -.0625 -.0625 .8125
- 268.867984
- 275.506574
- 388.767589
- 409.113538
- 413.556002
- 529.434496
-
- -.1250 -.1250 .8750
- 275.203809
- 300.739315
- 392.262676
- 405.860987
- 424.979657
- 520.025890
-
- -.1875 -.1875 .9375
- 279.387786
- 332.398687
- 388.188981
- 398.017375
- 441.463973
- 509.055267
-
- -.2500 -.2500 1.0000
- 280.833763
- 364.980840
- 376.763757
- 386.289044
- 460.242688
- 496.228324
-
- .0000 .0000 .8750
- 274.267456
- 274.267456
- 394.479818
- 413.296449
- 413.296449
- 525.597924
-
- -.0625 -.0625 .9375
- 277.983301
- 285.304743
- 396.256761
- 412.826753
- 418.273019
- 521.379617
-
- -.1250 -.1250 1.0000
- 279.718034
- 307.210683
- 393.111958
- 407.626414
- 428.935006
- 515.674299
-
- .0000 .0000 1.0000
- 278.961814
- 278.961814
- 398.208754
- 415.203227
- 415.203227
- 522.134795
-
- -.1250 .0000 .2500
- 117.846353
- 136.423639
- 193.021701
- 362.471784
- 375.073944
- 649.444589
-
- -.1875 -.0625 .3125
- 148.789837
- 173.149716
- 251.886186
- 358.024856
- 378.709182
- 637.830246
-
- -.2500 -.1250 .3750
- 181.060250
- 204.279310
- 312.973128
- 354.295851
- 379.100435
- 623.295127
-
- -.3125 -.1875 .4375
- 211.110867
- 230.384769
- 350.508934
- 368.355967
- 379.996060
- 604.980681
-
- -.3750 -.2500 .5000
- 236.469295
- 251.867211
- 346.804297
- 370.057639
- 426.574387
- 582.118426
-
- -.4375 -.3125 .5625
- 254.400664
- 267.359708
- 343.334391
- 363.956258
- 473.255115
- 554.422598
-
- -.5000 -.3750 .6250
- 261.217635
- 273.221463
- 341.959818
- 360.736235
- 503.589857
- 530.581497
-
- -.1250 .0000 .3750
- 168.099593
- 183.190569
- 255.645649
- 370.382092
- 382.797473
- 624.151666
-
- -.1875 -.0625 .4375
- 192.871530
- 214.294987
- 303.305445
- 366.886368
- 387.570495
- 609.768034
-
- -.2500 -.1250 .5000
- 218.214105
- 241.128002
- 351.720991
- 364.778832
- 389.865686
- 593.051645
-
- -.3125 -.1875 .5625
- 240.268085
- 264.109778
- 361.731206
- 383.944131
- 405.293183
- 573.065242
-
- -.3750 -.2500 .6250
- 256.894463
- 281.687278
- 358.390644
- 384.731762
- 446.135262
- 549.532123
-
- -.4375 -.3125 .6875
- 266.032511
- 290.925530
- 353.235512
- 386.017361
- 478.611083
- 526.312536
-
- -.5000 -.3750 .7500
- 264.482460
- 290.699667
- 348.693549
- 389.826631
- 471.176213
- 532.508033
-
- -.5625 -.4375 .8125
- 251.131087
- 282.246162
- 347.376268
- 392.731295
- 434.842789
- 557.953248
-
- -.6250 -.5000 .8750
- 228.976710
- 267.121795
- 348.372326
- 380.675594
- 403.234172
- 581.944932
-
- -.6875 -.5625 .9375
- 202.067727
- 244.968286
- 337.122410
- 350.441910
- 396.384576
- 603.011132
-
- -.7500 -.6250 1.0000
- 174.025230
- 213.484137
- 291.838061
- 353.406459
- 389.265266
- 621.584622
-
- -.1250 .0000 .5000
- 210.314143
- 221.329764
- 310.415183
- 381.103156
- 392.030271
- 592.968452
-
- -.1875 -.0625 .5625
- 229.849118
- 247.954551
- 345.485244
- 379.948540
- 398.440125
- 576.997148
-
- -.2500 -.1250 .6250
- 247.832543
- 273.961708
- 377.667437
- 380.407623
- 404.735486
- 559.397589
-
- -.3125 -.1875 .6875
- 262.075643
- 296.120645
- 375.728096
- 399.700839
- 422.511624
- 539.781792
-
- -.3750 -.2500 .7500
- 271.433015
- 310.643844
- 368.851799
- 407.604090
- 449.002383
- 520.059209
-
- -.4375 -.3125 .8125
- 273.592727
- 316.183105
- 360.232064
- 412.061899
- 459.332888
- 513.243326
-
- -.5000 -.3750 .8750
- 265.969111
- 313.324103
- 353.397705
- 409.119354
- 442.818714
- 531.098003
-
- -.5625 -.4375 .9375
- 248.908213
- 301.930914
- 349.913155
- 390.588353
- 425.672222
- 555.579398
-
- -.6250 -.5000 1.0000
- 226.120145
- 279.537856
- 349.002191
- 362.973025
- 412.106225
- 579.990019
-
- -.1250 .0000 .6250
- 242.272666
- 249.605479
- 353.254345
- 393.326061
- 402.192443
- 561.621660
-
- -.1875 -.0625 .6875
- 257.057582
- 274.101029
- 374.960814
- 393.862648
- 410.271914
- 546.316922
-
- -.2500 -.1250 .7500
- 268.743381
- 301.722449
- 391.041456
- 393.180948
- 421.333926
- 530.160578
-
- -.3125 -.1875 .8125
- 276.969919
- 325.532897
- 384.990144
- 403.592914
- 438.045325
- 513.462174
-
- -.3750 -.2500 .8750
- 280.517104
- 339.937037
- 374.860314
- 407.166886
- 457.080248
- 499.577120
-
- -.4375 -.3125 .9375
- 277.410771
- 341.538118
- 363.915747
- 404.475550
- 460.439627
- 504.526623
-
- -.5000 -.3750 1.0000
- 266.372543
- 328.406200
- 355.128178
- 398.347117
- 445.549758
- 528.421665
-
- -.1250 .0000 .7500
- 265.437287
- 269.855027
- 380.869069
- 404.681670
- 411.160401
- 536.623565
-
- -.1875 -.0625 .8125
- 275.527673
- 293.679250
- 389.098117
- 404.760828
- 420.849929
- 524.682526
-
- -.2500 -.1250 .8750
- 281.845778
- 323.888432
- 390.296193
- 399.662283
- 436.348563
- 511.840770
-
- -.3125 -.1875 .9375
- 284.833857
- 353.705026
- 384.068868
- 389.861574
- 456.484434
- 497.301894
-
- -.3750 -.2500 1.0000
- 283.663988
- 362.849668
- 376.840545
- 386.743724
- 479.485524
- 480.225820
-
- -.1250 .0000 .8750
- 280.460470
- 282.777161
- 393.066484
- 412.469578
- 416.986452
- 522.723359
-
- -.1875 -.0625 .9375
- 285.226528
- 305.205132
- 391.840400
- 410.028035
- 427.346353
- 515.068198
-
- -.2500 -.1250 1.0000
- 286.412425
- 334.375499
- 385.185431
- 401.845396
- 442.814836
- 505.862974
-
- -.1250 .0000 1.0000
- 285.842512
- 287.312911
- 395.703817
- 415.087776
- 418.963816
- 518.895022
-
- -.2500 .0000 .5000
- 213.967171
- 247.994683
- 334.950123
- 363.652326
- 399.715961
- 591.394104
-
- -.3125 -.0625 .5625
- 236.841478
- 274.629101
- 362.193394
- 369.040469
- 409.290130
- 571.293597
-
- -.3750 -.1250 .6250
- 256.876572
- 293.690543
- 362.546596
- 397.139529
- 421.405867
- 549.538684
-
- -.4375 -.1875 .6875
- 270.516169
- 305.571988
- 363.250669
- 405.981214
- 446.234927
- 527.283975
-
- -.5000 -.2500 .7500
- 275.381587
- 309.650859
- 363.677683
- 407.026637
- 462.049662
- 514.105891
-
- -.2500 .0000 .6250
- 248.463109
- 273.878914
- 367.309674
- 379.263428
- 411.361101
- 558.479840
-
- -.3125 -.0625 .6875
- 266.237015
- 297.666007
- 380.474230
- 387.401083
- 422.690606
- 539.092323
-
- -.3750 -.1250 .7500
- 278.956280
- 316.835525
- 381.122637
- 402.560831
- 435.674675
- 519.669569
-
- -.4375 -.1875 .8125
- 285.053088
- 328.083051
- 378.898825
- 409.679267
- 450.244830
- 504.147909
-
- -.5000 -.2500 .8750
- 283.513709
- 329.835161
- 373.810900
- 408.683611
- 452.539880
- 505.570277
-
- -.5625 -.3125 .9375
- 273.749564
- 321.549308
- 368.111914
- 399.430364
- 440.964251
- 524.537095
-
- -.6250 -.3750 1.0000
- 257.003582
- 302.752870
- 363.945227
- 384.725198
- 426.352488
- 547.893829
-
- -.2500 .0000 .7500
- 275.473648
- 292.404684
- 385.170703
- 396.501899
- 421.552183
- 530.529689
-
- -.3125 -.0625 .8125
- 288.209090
- 315.948919
- 390.003333
- 398.568828
- 433.990533
- 514.582340
-
- -.3750 -.1250 .8750
- 293.820968
- 339.321046
- 389.510402
- 395.719487
- 450.430842
- 498.866078
-
- -.4375 -.1875 .9375
- 293.386683
- 351.969150
- 386.596741
- 389.252252
- 467.185189
- 486.716462
-
- -.5000 -.2500 1.0000
- 286.639939
- 343.645802
- 377.069228
- 394.160804
- 459.584636
- 500.340378
-
- -.2500 .0000 .8750
- 294.548921
- 304.210356
- 389.045651
- 409.765331
- 428.092539
- 513.921331
-
- -.3125 -.0625 .9375
- 300.560880
- 329.354588
- 383.173781
- 408.287435
- 441.613912
- 502.315353
-
- -.3750 -.1250 1.0000
- 299.208077
- 358.539097
- 371.822266
- 399.679014
- 459.894765
- 489.515087
-
- -.2500 .0000 1.0000
- 302.069168
- 308.354527
- 387.987860
- 414.532655
- 430.291531
- 509.026409
-
- -.3750 .0000 .7500
- 283.996785
- 319.371047
- 385.204600
- 391.571059
- 438.472355
- 518.456248
-
- -.4375 -.0625 .8125
- 295.914301
- 336.343461
- 390.181733
- 392.374487
- 452.493030
- 499.423005
-
- -.5000 -.1250 .8750
- 299.969459
- 343.215078
- 391.066303
- 393.242795
- 460.703015
- 489.037318
-
- -.3750 .0000 .8750
- 306.610807
- 329.921525
- 383.042392
- 405.291740
- 446.094856
- 499.155117
-
- -.4375 -.0625 .9375
- 313.073100
- 348.988203
- 372.019476
- 406.922543
- 460.855125
- 484.111767
-
- -.5000 -.1250 1.0000
- 308.319348
- 353.243227
- 374.246520
- 401.023760
- 468.225471
- 479.884767
-
- -.3750 .0000 1.0000
- 317.987963
- 333.611213
- 374.870705
- 413.455085
- 448.631703
- 492.569915
-
- -.5000 .0000 1.0000
- 324.574988
- 356.563472
- 356.563472
- 412.797729
- 471.079062
- 471.079062
-
+ -5.009 128.3001 -34.51148633
+ 0.000000000 0.000000000 0.000000000
+-19.215106
+-19.215106
+-19.215106
+122.955356
+122.955356
+122.955356
+ 0.176864930 -0.176864930 0.176864930
+-11.299015
+-11.299015
+17.487303
+145.015653
+145.015653
+157.888211
+ -0.353729860 0.353729860 -0.353729860
+-9.597741
+-9.597741
+16.973926
+145.104217
+145.104217
+156.973844
+ 0.000000000 0.000000000 0.353729860
+-12.511766
+-12.511766
+11.571650
+145.770587
+145.770587
+156.399722
+ -0.530594790 0.530594790 -0.176864930
+-9.717147
+-6.772224
+11.035211
+146.246424
+147.964669
+154.297578
+ -0.353729860 0.353729860 0.000000000
+8.658476
+10.252291
+11.175138
+12.448448
+13.032034
+16.487785
+ 0.000000000 0.000000000 -0.707459719
+9.419689
+9.419689
+12.742573
+12.742573
+13.740691
+14.328575
+ 0.353729860 0.000000000 -0.707459719
+-4.806807
+-1.547939
+-1.547939
+147.542050
+150.336256
+150.336256
- 0 124.5844 -34.02505439
- .0000 .0000 .0000
- -.000051
- -.000049
- -.000049
- 413.786826
- 413.786826
- 709.906308
-
- -.0625 -.0625 .0625
- 51.789063
- 51.789063
- 86.805205
- 412.996176
- 412.996176
- 707.781813
-
- -.1250 -.1250 .1250
- 101.426954
- 101.426954
- 171.545907
- 410.724086
- 410.724086
- 701.444068
-
- -.1875 -.1875 .1875
- 147.259089
- 147.259089
- 252.353278
- 407.099304
- 407.099304
- 690.912786
-
- -.2500 -.2500 .2500
- 188.386056
- 188.386056
- 327.703593
- 401.966628
- 401.966628
- 676.010683
-
- -.3125 -.3125 .3125
- 224.474828
- 224.474828
- 394.867486
- 394.867486
- 396.483211
- 656.261040
-
- -.3750 -.3750 .3750
- 254.990670
- 254.990670
- 385.663065
- 385.663065
- 457.941398
- 630.986719
-
- -.4375 -.4375 .4375
- 277.698715
- 277.698715
- 376.014624
- 376.014624
- 511.394472
- 599.731605
-
- -.5000 -.5000 .5000
- 286.838021
- 286.838021
- 371.277989
- 371.277989
- 548.283376
- 570.325246
-
- .0000 .0000 .1250
- 63.243530
- 63.243530
- 95.221506
- 416.025937
- 416.025937
- 703.187596
-
- -.0625 -.0625 .1875
- 100.185677
- 101.309670
- 159.376321
- 413.946864
- 417.193170
- 696.669358
-
- -.1250 -.1250 .2500
- 142.842626
- 142.844110
- 233.694111
- 408.573681
- 416.272210
- 687.644931
-
- -.1875 -.1875 .3125
- 181.667399
- 184.498246
- 306.552926
- 402.644601
- 413.085699
- 674.615454
-
- -.2500 -.2500 .3750
- 216.227520
- 222.464802
- 374.570724
- 396.356567
- 407.271923
- 657.051321
-
- -.3125 -.3125 .4375
- 246.137346
- 255.177220
- 388.933330
- 398.473122
- 436.721768
- 634.349335
-
- -.3750 -.3750 .5000
- 270.453922
- 280.068684
- 382.310135
- 387.200258
- 491.198538
- 606.000741
-
- -.4375 -.4375 .5625
- 285.756683
- 291.945054
- 376.510807
- 380.382558
- 535.284315
- 574.042128
-
- -.5000 -.5000 .6250
- 285.555682
- 286.820747
- 372.661786
- 386.734847
- 522.586083
- 584.356149
-
- -.5625 -.5625 .6875
- 268.284779
- 268.655100
- 377.303095
- 397.393628
- 474.034166
- 616.139146
-
- -.6250 -.6250 .7500
- 240.029450
- 242.780823
- 384.896303
- 406.551069
- 417.660714
- 642.783271
-
- -.6875 -.6875 .8125
- 205.303240
- 211.422816
- 352.413347
- 391.957700
- 414.868617
- 664.027651
-
- -.7500 -.7500 .8750
- 166.024733
- 175.049029
- 282.596164
- 397.998953
- 419.065425
- 680.557255
-
- -.8125 -.8125 .9375
- 123.617344
- 134.019065
- 209.247269
- 403.478017
- 420.397823
- 693.065969
-
- -.8750 -.8750 1.0000
- 81.358318
- 89.894829
- 137.916456
- 408.599416
- 418.252346
- 702.217615
-
- .0000 .0000 .2500
- 122.543166
- 122.543166
- 185.982274
- 421.865985
- 421.865985
- 683.938672
-
- -.0625 -.0625 .3125
- 153.590354
- 155.054951
- 238.281810
- 420.968459
- 424.127902
- 672.388504
-
- -.1250 -.1250 .3750
- 186.016190
- 192.938902
- 298.089406
- 415.638484
- 423.684391
- 660.287112
-
- -.1875 -.1875 .4375
- 216.250368
- 230.779827
- 357.862204
- 410.057125
- 420.215992
- 645.200035
-
- -.2500 -.2500 .5000
- 243.219987
- 264.701767
- 404.410393
- 413.271658
- 415.294330
- 625.950197
-
- -.3125 -.3125 .5625
- 266.353502
- 291.106966
- 402.233146
- 402.744914
- 465.727565
- 601.995500
-
- -.3750 -.3750 .6250
- 283.843257
- 305.548768
- 389.959224
- 403.808248
- 508.295545
- 574.631906
-
- -.4375 -.4375 .6875
- 291.097309
- 305.413264
- 379.141428
- 411.094204
- 519.063715
- 566.330732
-
- -.5000 -.5000 .7500
- 282.598629
- 293.462486
- 375.804645
- 420.715424
- 482.260801
- 592.924116
-
- -.5625 -.5625 .8125
- 259.882524
- 273.733902
- 379.066941
- 424.075032
- 437.902606
- 619.681116
-
- -.6250 -.6250 .8750
- 228.896276
- 247.907328
- 375.933883
- 384.457633
- 435.191743
- 642.585358
-
- -.6875 -.6875 .9375
- 193.674386
- 215.696694
- 317.761715
- 390.222287
- 434.937457
- 662.069309
-
- -.7500 -.7500 1.0000
- 157.156269
- 176.677540
- 260.303768
- 396.487312
- 430.078196
- 678.886261
-
- .0000 .0000 .3750
- 174.344008
- 174.344008
- 268.182443
- 429.697648
- 429.697648
- 654.848845
-
- -.0625 -.0625 .4375
- 198.852926
- 202.585915
- 310.407214
- 430.410362
- 432.477565
- 639.756008
-
- -.1250 -.1250 .5000
- 223.205128
- 237.514173
- 355.517025
- 427.917999
- 432.065650
- 625.295608
-
- -.1875 -.1875 .5625
- 245.814089
- 273.151170
- 399.525528
- 426.350159
- 427.908335
- 609.048807
-
- -.2500 -.2500 .6250
- 266.082224
- 303.375596
- 419.553081
- 427.428490
- 440.564826
- 589.897319
-
- -.3125 -.3125 .6875
- 282.965565
- 322.811350
- 407.360598
- 432.673376
- 475.727229
- 568.644694
-
- -.3750 -.3750 .7500
- 293.805899
- 328.968883
- 393.494918
- 441.047346
- 495.511755
- 554.276890
-
- -.4375 -.4375 .8125
- 293.843286
- 323.674531
- 382.624491
- 447.858392
- 481.011125
- 566.622802
-
- -.5000 -.5000 .8750
- 279.765364
- 309.676373
- 378.730358
- 435.854483
- 461.360188
- 590.995864
-
- -.5625 -.5625 .9375
- 254.864274
- 287.482154
- 380.224638
- 397.360262
- 456.502084
- 615.997824
-
- -.6250 -.6250 1.0000
- 224.714686
- 255.787021
- 356.220449
- 384.302045
- 448.157182
- 639.910828
-
- .0000 .0000 .5000
- 216.086037
- 216.086037
- 337.835539
- 438.663671
- 438.663671
- 620.480368
-
- -.0625 -.0625 .5625
- 234.470208
- 239.843940
- 369.513389
- 441.315052
- 441.636102
- 604.487298
-
- -.1250 -.1250 .6250
- 252.331125
- 272.299777
- 399.329577
- 440.716246
- 443.459473
- 589.857919
-
- -.1875 -.1875 .6875
- 268.957717
- 306.924560
- 424.614246
- 435.271386
- 448.710543
- 574.771456
-
- -.2500 -.2500 .7500
- 283.629242
- 335.704841
- 425.170480
- 445.252909
- 457.586545
- 559.069036
-
- -.3125 -.3125 .8125
- 294.850076
- 352.038797
- 411.362382
- 457.452463
- 471.396184
- 545.516062
-
- -.3750 -.3750 .8750
- 299.842541
- 354.374957
- 396.515706
- 453.979171
- 485.668218
- 543.318901
-
- -.4375 -.4375 .9375
- 294.862490
- 344.026730
- 385.020540
- 438.688119
- 485.453910
- 560.632216
-
- -.5000 -.5000 1.0000
- 278.608574
- 321.299200
- 379.894759
- 418.212771
- 474.260966
- 587.547936
-
- .0000 .0000 .6250
- 247.583519
- 247.583519
- 390.590669
- 448.037550
- 448.037550
- 587.553459
-
- -.0625 -.0625 .6875
- 260.958882
- 267.432861
- 409.984196
- 450.469506
- 452.477819
- 574.460914
-
- -.1250 -.1250 .7500
- 273.746991
- 297.937730
- 422.879612
- 448.235781
- 459.809078
- 563.092182
-
- -.1875 -.1875 .8125
- 285.336213
- 333.159477
- 428.459692
- 440.984293
- 470.925566
- 551.939208
-
- -.2500 -.2500 .8750
- 294.898834
- 365.262592
- 427.989026
- 429.029054
- 485.126370
- 540.195539
-
- -.3125 -.3125 .9375
- 301.085828
- 381.865008
- 413.697048
- 427.054853
- 502.763261
- 527.795281
-
- -.3750 -.3750 1.0000
- 301.849444
- 371.226489
- 397.706232
- 433.826600
- 505.244183
- 532.957630
-
- .0000 .0000 .7500
- 270.244592
- 270.244592
- 421.835627
- 456.237144
- 456.237144
- 564.619496
-
- -.0625 -.0625 .8125
- 279.223170
- 286.525662
- 428.223005
- 457.307200
- 461.532070
- 557.914386
-
- -.1250 -.1250 .8750
- 287.288170
- 315.019160
- 427.643297
- 453.249419
- 471.070482
- 551.440076
-
- -.1875 -.1875 .9375
- 293.984350
- 350.952512
- 420.236795
- 444.070828
- 484.001318
- 543.148377
-
- -.2500 -.2500 1.0000
- 298.811144
- 388.359844
- 406.337931
- 430.400631
- 498.360258
- 532.251959
-
- .0000 .0000 .8750
- 284.431796
- 284.431796
- 432.000019
- 461.712686
- 461.712686
- 556.232396
-
- -.0625 -.0625 .9375
- 288.772914
- 296.650117
- 431.231551
- 460.984079
- 466.024573
- 554.083800
-
- -.1250 -.1250 1.0000
- 291.971786
- 321.385077
- 426.448022
- 454.999894
- 474.562492
- 549.543055
-
- .0000 .0000 1.0000
- 289.321952
- 289.321952
- 432.745389
- 463.624758
- 463.624758
- 555.407784
-
- -.1250 .0000 .2500
- 129.686234
- 139.030004
- 209.820378
- 409.642312
- 424.096529
- 686.168059
-
- -.1875 -.0625 .3125
- 166.019778
- 178.860469
- 271.408668
- 403.205723
- 427.450018
- 673.676655
-
- -.2500 -.1250 .3750
- 202.246234
- 215.669330
- 334.798206
- 396.938614
- 426.705138
- 658.332023
-
- -.3125 -.1875 .4375
- 234.671270
- 248.594068
- 390.641664
- 395.211913
- 422.789957
- 639.201066
-
- -.3750 -.2500 .5000
- 261.632545
- 276.395414
- 384.791007
- 413.814359
- 451.935968
- 615.524741
-
- -.4375 -.3125 .5625
- 281.642656
- 295.352401
- 380.661937
- 404.835947
- 499.808745
- 587.296163
-
- -.5000 -.3750 .6250
- 290.027471
- 301.565358
- 379.897758
- 399.720162
- 528.975925
- 564.875798
-
- -.1250 .0000 .3750
- 179.498666
- 187.168037
- 282.046146
- 417.293669
- 432.035063
- 657.753138
-
- -.1875 -.0625 .4375
- 208.920352
- 222.466959
- 331.208225
- 411.327781
- 436.331259
- 642.541057
-
- -.2500 -.1250 .5000
- 236.517047
- 257.317460
- 380.872732
- 406.056814
- 436.530251
- 625.355219
-
- -.3125 -.1875 .5625
- 260.408464
- 287.826892
- 401.702376
- 425.681662
- 435.893201
- 605.163775
-
- -.3750 -.2500 .6250
- 279.816421
- 309.464266
- 397.815524
- 427.593022
- 471.916094
- 581.883996
-
- -.4375 -.3125 .6875
- 292.437434
- 318.590890
- 392.490862
- 427.207829
- 502.567232
- 560.347238
-
- -.5000 -.3750 .7500
- 293.574572
- 315.988292
- 386.018579
- 432.712976
- 495.970075
- 565.604344
-
- -.5625 -.4375 .8125
- 280.970025
- 303.573835
- 383.566961
- 437.695384
- 461.550056
- 589.947607
-
- -.6250 -.5000 .8750
- 258.105743
- 282.303563
- 385.782932
- 411.262835
- 446.740134
- 614.208672
-
- -.6875 -.5625 .9375
- 228.856685
- 253.845718
- 363.733091
- 390.294856
- 444.817107
- 636.134921
-
- -.7500 -.6250 1.0000
- 196.751345
- 218.576795
- 315.829608
- 396.105626
- 438.520659
- 655.954316
-
- -.1250 .0000 .5000
- 221.503688
- 227.263854
- 345.557570
- 427.843126
- 441.241410
- 622.873501
-
- -.1875 -.0625 .5625
- 244.066566
- 259.151307
- 381.092507
- 424.199308
- 446.553599
- 606.455313
-
- -.2500 -.1250 .6250
- 263.923580
- 293.134746
- 413.046392
- 422.731007
- 448.638998
- 589.222958
-
- -.3125 -.1875 .6875
- 280.952695
- 321.388450
- 416.928667
- 444.249319
- 450.920780
- 570.863052
-
- -.3750 -.2500 .7500
- 294.007387
- 337.884362
- 409.914657
- 453.889688
- 469.222842
- 553.681760
-
- -.4375 -.3125 .8125
- 300.395131
- 341.476564
- 399.153406
- 458.313234
- 479.219095
- 547.759181
-
- -.5000 -.3750 .8750
- 296.387899
- 334.374557
- 389.479908
- 449.404707
- 475.369371
- 562.064426
-
- -.5625 -.4375 .9375
- 280.719552
- 317.100802
- 385.225501
- 423.659637
- 470.072049
- 585.743299
-
- -.6250 -.5000 1.0000
- 256.613008
- 289.599815
- 385.770227
- 393.752799
- 460.042084
- 611.266445
-
- -.1250 .0000 .6250
- 253.895361
- 257.855296
- 393.993096
- 440.032587
- 450.913293
- 588.511285
-
- -.1875 -.0625 .6875
- 270.490455
- 287.465682
- 413.536130
- 439.657870
- 457.308903
- 573.862943
-
- -.2500 -.1250 .7500
- 284.365180
- 321.417154
- 425.127168
- 439.293449
- 464.181868
- 559.736561
-
- -.3125 -.1875 .8125
- 295.752088
- 350.429504
- 426.314094
- 438.777834
- 474.455691
- 546.355755
-
- -.3750 -.2500 .8750
- 303.312608
- 366.168575
- 415.943936
- 440.310902
- 488.450683
- 535.491487
-
- -.4375 -.3125 .9375
- 304.742012
- 364.597898
- 401.682884
- 438.408772
- 497.956221
- 535.995078
-
- -.5000 -.3750 1.0000
- 297.372398
- 346.665408
- 390.308682
- 432.651383
- 488.863330
- 557.298290
-
- -.1250 .0000 .7500
- 277.621454
- 279.920903
- 421.431890
- 452.084438
- 459.355004
- 563.585730
-
- -.1875 -.0625 .8125
- 288.865525
- 307.976687
- 425.342193
- 451.636895
- 467.465101
- 554.122013
-
- -.2500 -.1250 .8750
- 297.472872
- 343.045754
- 422.532369
- 444.958085
- 479.460058
- 544.503725
-
- -.3125 -.1875 .9375
- 303.688054
- 378.128852
- 413.058824
- 432.727563
- 494.872114
- 533.037278
-
- -.3750 -.2500 1.0000
- 306.591370
- 389.054277
- 414.076972
- 418.937524
- 513.073737
- 518.379354
-
- -.1250 .0000 .8750
- 292.907131
- 293.734...
[truncated message content] |
|
From: <dki...@us...> - 2008-02-25 07:51:37
|
Revision: 1175
http://vlab.svn.sourceforge.net/vlab/?rev=1175&view=rev
Author: dkigelman
Date: 2008-02-24 23:51:41 -0800 (Sun, 24 Feb 2008)
Log Message:
-----------
added scm information to pom.xml's
Modified Paths:
--------------
trunk/vlab/commons/pom.xml
trunk/vlab/pom.xml
trunk/vlab/portal/pom.xml
trunk/vlab/services/pom.xml
Modified: trunk/vlab/commons/pom.xml
===================================================================
--- trunk/vlab/commons/pom.xml 2008-02-20 20:06:57 UTC (rev 1174)
+++ trunk/vlab/commons/pom.xml 2008-02-25 07:51:41 UTC (rev 1175)
@@ -25,5 +25,10 @@
<module>service-stubs</module>
</modules>
+ <scm>
+ <connection>scm:svn:https://vlab.svn.sourceforge.net/svnroot/vlab/trunk/vlab/commons</connection>
+ <developerConnection>scm:svn:https://vlab.svn.sourceforge.net/svnroot/vlab/trunk/vlab/commons</developerConnection>
+ <url>http://vlab.svn.sourceforge.net/viewvc/vlab/trunk/vlab/commons</url>
+ </scm>
</project>
Modified: trunk/vlab/pom.xml
===================================================================
--- trunk/vlab/pom.xml 2008-02-20 20:06:57 UTC (rev 1174)
+++ trunk/vlab/pom.xml 2008-02-25 07:51:41 UTC (rev 1175)
@@ -89,4 +89,10 @@
</plugins>
</reporting>
+ <scm>
+ <connection>scm:svn:https://vlab.svn.sourceforge.net/svnroot/vlab/trunk/vlab</connection>
+ <developerConnection>scm:svn:https://vlab.svn.sourceforge.net/svnroot/vlab/trunk/vlab</developerConnection>
+ <url>http://vlab.svn.sourceforge.net/viewvc/vlab/trunk/vlab/</url>
+ </scm>
+
</project>
Modified: trunk/vlab/portal/pom.xml
===================================================================
--- trunk/vlab/portal/pom.xml 2008-02-20 20:06:57 UTC (rev 1174)
+++ trunk/vlab/portal/pom.xml 2008-02-25 07:51:41 UTC (rev 1175)
@@ -87,4 +87,10 @@
</pluginManagement>
</build>
+ <scm>
+ <connection>scm:svn:https://vlab.svn.sourceforge.net/svnroot/vlab/trunk/vlab/portal</connection>
+ <developerConnection>scm:svn:https://vlab.svn.sourceforge.net/svnroot/vlab/trunk/vlab/portal</developerConnection>
+ <url>http://vlab.svn.sourceforge.net/viewvc/vlab/trunk/vlab/portal</url>
+ </scm>
+
</project>
Modified: trunk/vlab/services/pom.xml
===================================================================
--- trunk/vlab/services/pom.xml 2008-02-20 20:06:57 UTC (rev 1174)
+++ trunk/vlab/services/pom.xml 2008-02-25 07:51:41 UTC (rev 1175)
@@ -44,5 +44,11 @@
</plugins>
</pluginManagement>
</build>
+
+ <scm>
+ <connection>scm:svn:https://vlab.svn.sourceforge.net/svnroot/vlab/trunk/vlab/services</connection>
+ <developerConnection>scm:svn:https://vlab.svn.sourceforge.net/svnroot/vlab/trunk/vlab/services</developerConnection>
+ <url>http://vlab.svn.sourceforge.net/viewvc/vlab/trunk/vlab/services</url>
+ </scm>
</project>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <das...@us...> - 2008-02-20 20:07:24
|
Revision: 1174
http://vlab.svn.sourceforge.net/vlab/?rev=1174&view=rev
Author: dasil014
Date: 2008-02-20 12:06:57 -0800 (Wed, 20 Feb 2008)
Log Message:
-----------
URL formation for Task Executor
Modified Paths:
--------------
trunk/vlab/services/task-dispatcher/src/main/java/org/vlab/services/TaskDistributor.java
trunk/vlab/services/task-dispatcher/src/main/resources/servers.properties
Modified: trunk/vlab/services/task-dispatcher/src/main/java/org/vlab/services/TaskDistributor.java
===================================================================
--- trunk/vlab/services/task-dispatcher/src/main/java/org/vlab/services/TaskDistributor.java 2008-02-20 20:04:02 UTC (rev 1173)
+++ trunk/vlab/services/task-dispatcher/src/main/java/org/vlab/services/TaskDistributor.java 2008-02-20 20:06:57 UTC (rev 1174)
@@ -13,7 +13,7 @@
public class TaskDistributor {
- private static final String URL_POSTFIX = "/axis/services/TaskExecutor";
+ private static final String URL_POSTFIX = "/task-executor/services/TaskExecutor";
private static Random generator;
Modified: trunk/vlab/services/task-dispatcher/src/main/resources/servers.properties
===================================================================
--- trunk/vlab/services/task-dispatcher/src/main/resources/servers.properties 2008-02-20 20:04:02 UTC (rev 1173)
+++ trunk/vlab/services/task-dispatcher/src/main/resources/servers.properties 2008-02-20 20:06:57 UTC (rev 1174)
@@ -1,17 +1,5 @@
-QtdServer = 4
-HostName1 = altix.msi.umn.edu
-Ip1 = 128.101.190.99
+QtdServer = 1
+HostName1 = x-128-101-213-90.wireless.umn.edu
+Ip1 = 128.101.213.90
Port1 = 8380
-Throughput1 = 0.7
-HostName2 = ortiz.msi.umn.edu
-Ip2 = 128.101.191.226
-Port2 = 8380
-Throughput2 = 0.8
-HostName3 = dasilveira.msi.umn.edu
-Ip3 = 128.101.191.166
-Port3 = 8380
-Throughput3 = 0.9
-HostName4 = pedro.msi.umn.edu
-Ip4 = pedro.msi.umn.edu
-Port4 = 8380
-Throughput4 = 1.0
+Throughput1 = 1.0
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|