Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
gbXML to EnergyPlus convertor first commit
  • Loading branch information
weilixu committed Jun 26, 2017
0 parents commit 59d2ad6
Show file tree
Hide file tree
Showing 173 changed files with 1,893,245 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="lib" path="lib/jdom-2.0.5.jar" sourcepath="lib/jdom-2.0.5-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:platform:/resource/gbxmlProject/lib/jdom-2.0.5-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
29 changes: 29 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>gbxmlProject</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
</natures>
</projectDescription>
12 changes: 12 additions & 0 deletions .settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.source=1.8
4 changes: 4 additions & 0 deletions .settings/org.eclipse.m2e.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1
Binary file added bin/main/java/config/FilesPath.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added bin/main/java/model/ashraebaseline/HVACSystem.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added bin/main/java/model/gbXML/CampusTranslator.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added bin/main/java/model/gbXML/ForwardTranslator.class
Binary file not shown.
Binary file added bin/main/java/model/gbXML/GbXMLResources.class
Binary file not shown.
Binary file added bin/main/java/model/gbXML/GbXMLSpace.class
Binary file not shown.
Binary file added bin/main/java/model/gbXML/GbXMLThermalZone.class
Binary file not shown.
Binary file not shown.
Binary file added bin/main/java/model/gbXML/HVACTranslator.class
Binary file not shown.
Binary file added bin/main/java/model/gbXML/OutputModule.class
Binary file not shown.
Binary file added bin/main/java/model/gbXML/ReverseTranslator.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added bin/main/java/model/idf/IDFFileObject.class
Binary file not shown.
Binary file added bin/main/java/model/idf/IDFObject.class
Binary file not shown.
Binary file added bin/main/java/model/idf/IDFParser.class
Binary file not shown.
Binary file added bin/main/java/model/idf/IDFTreeStructure.class
Binary file not shown.
Binary file added bin/main/java/model/idf/IDFViewer.class
Binary file not shown.
Binary file added bin/main/java/model/idf/Idf_structure.class
Binary file not shown.
Binary file added bin/main/java/model/idf/JsoupElement.class
Binary file not shown.
Binary file added bin/main/java/model/idf/Level_1.class
Binary file not shown.
Binary file added bin/main/java/model/idf/Level_2.class
Binary file not shown.
Binary file added bin/main/java/model/idf/Level_3.class
Binary file not shown.
Binary file added bin/main/java/model/idf/TreePath.class
Binary file not shown.
58 changes: 58 additions & 0 deletions config/FilesPath.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
package main.java.config;

import java.util.ArrayList;

import org.apache.commons.configuration.CompositeConfiguration;
import org.apache.commons.configuration.ConfigurationException;
import org.apache.commons.configuration.PropertiesConfiguration;
import org.apache.commons.configuration.SystemConfiguration;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class FilesPath{
private static final Logger LOG = LoggerFactory.getLogger(FilesPath.class);

private static String ConfigPath = "";

private static CompositeConfiguration properties = null;

/**
* USED ONLY on init phase, if used for testing/development purpose, make sure to
* remove this function call before publish
* @param path
*/
public static void setConfigPath(String path){
FilesPath.ConfigPath = path;
readConfig();
}

private static void readConfig(){
properties = new CompositeConfiguration();
properties.addConfiguration(new SystemConfiguration());
try {
properties.addConfiguration(new PropertiesConfiguration(ConfigPath));
} catch (ConfigurationException e) {
LOG.error("Read configuration file failed, file path: "+ConfigPath);
e.printStackTrace();
}
}

public static ArrayList<String> readProperties(String[] keys){
ArrayList<String> result = new ArrayList<String>();
if(properties == null){
readConfig();
}
for(String key : keys){
result.add(properties.getString(key));
}
return result;
}

public static String readProperty(String key){
if(properties == null){
readConfig();
}

return properties.getString(key);
}
}
2 changes: 2 additions & 0 deletions config/server.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
WeatherFilePath=/Users/weilixu/Documents/workspace/WeatherData/
ResourcePath=/Users/weilixu/Documents/workspace/BuildSimHub/resource/
Binary file added lib/jdom-2.0.5-contrib.jar
Binary file not shown.
Binary file added lib/jdom-2.0.5-javadoc.jar
Binary file not shown.
Binary file added lib/jdom-2.0.5-junit.jar
Binary file not shown.
Binary file added lib/jdom-2.0.5-sources.jar
Binary file not shown.
Binary file added lib/jdom-2.0.5.jar
Binary file not shown.
134 changes: 134 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>gbXMLProject</groupId>
<artifactId>gbXMLProject</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<properties>
<mysql.connector.version>6.0.2</mysql.connector.version>
</properties>
<build>
<sourceDirectory>src</sourceDirectory>
<resources>
<resource>
<directory>src</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.6</version>
<configuration>
<warSourceDirectory>WebContent</warSourceDirectory>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.5</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.21</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.1.7</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<version>1.1.7</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.6.2</version>
</dependency>
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>1.9.1</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<!-- dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
</dependency -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql.connector.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-dbcp2 -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-dbcp2</artifactId>
<version>2.1.1</version>
</dependency>
<!-- https://mvnrepository.com/artifact/commons-codec/commons-codec -->
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.10</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.jdom/jdom2 -->
<dependency>
<groupId>org.jdom</groupId>
<artifactId>jdom2</artifactId>
<version>2.0.6</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.poi/poi -->
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>3.15</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml -->
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>3.15</version>
</dependency>
<dependency>
<groupId>jaxen</groupId>
<artifactId>jaxen</artifactId>
<version>1.1.4</version>
</dependency>
<dependency>
<groupId>commons-configuration</groupId>
<artifactId>commons-configuration</artifactId>
<version>1.10</version>
</dependency>
<dependency>
<groupId>org.reflections</groupId>
<artifactId>reflections</artifactId>
<version>0.9.11</version>
</dependency>
</dependencies>
</project>
Loading

0 comments on commit 59d2ad6

Please sign in to comment.