Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

first try #654

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"java.configuration.updateBuildConfiguration": "interactive",
"[java]": {
"editor.defaultFormatter": "redhat.java",
"editor.defaultFormatter": "serikb.google-java-format",
"editor.formatOnSave": true,
},
"java.format.settings.url": "https://raw.githubusercontent.com/google/styleguide/gh-pages/eclipse-java-google-style.xml",
Expand Down
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@
<artifactId>commons-lang</artifactId>
<version>2.6</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.10.1</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-math3</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @author asmund
* @version $Id: $Id
*/
public class CompressorResponse {
public class CompressorResponse extends Response{
public String name = "test";

public Double suctionTemperature;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @author asmund
* @version $Id: $Id
*/
public class HXResponse {
public class HXResponse extends Response{
public String name = "test";

public Double feedTemperature1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @author asmund
* @version $Id: $Id
*/
public class HeaterResponse {
public class HeaterResponse extends Response{
public String name = "test";

public Double feedTemperature;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @author asmund
* @version $Id: $Id
*/
public class MPMResponse {
public class MPMResponse extends Response{
public String name;
public Double massFLow, GOR, GOR_std, gasDensity, oilDensity, waterDensity;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @author asmund
* @version $Id: $Id
*/
public class PumpResponse {
public class PumpResponse extends Response{
public String name = "test";

public Double suctionTemperature;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package neqsim.processSimulation.util.monitor;

import java.util.HashMap;
import java.util.Map;
import neqsim.thermo.system.SystemInterface;
import neqsim.util.NamedBaseClass;
import com.google.gson.Gson;

public class Response {

public String toJson() throws Exception {
Gson gson = new Gson();
return gson.toJson(this);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @author asmund
* @version $Id: $Id
*/
public class SeparatorResponse {
public class SeparatorResponse extends Response{
public String name;
public Double gasLoadFactor;
public Double massflow;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @author asmund
* @version $Id: $Id
*/
public class StreamResponse {
public class StreamResponse extends Response{
public String name;
public Fluid fluid;
public Double temperature;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @author asmund
* @version $Id: $Id
*/
public class ThreePhaseSeparatorResponse {
public class ThreePhaseSeparatorResponse extends Response{
public String name;
public Double gasLoadFactor;
public Double massflow;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @author asmund
* @version $Id: $Id
*/
public class WellAllocatorResponse {
public class WellAllocatorResponse extends Response{
public String name;
public Double gasExportRate, oilExportRate, totalExportRate;

Expand Down