-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first implementation of reporting of process (#986)
* first implementation of reporting of process * added json reporting * fixed bug in stream * update pom * update doc * fix bug * update * update * update
- Loading branch information
Showing
22 changed files
with
301 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
src/main/java/neqsim/processSimulation/util/monitor/ValveResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package neqsim.processSimulation.util.monitor; | ||
|
||
import java.util.ArrayList; | ||
import neqsim.processSimulation.processEquipment.valve.ValveInterface; | ||
|
||
/** | ||
* <p> | ||
* StreamResponse class. | ||
* </p> | ||
* | ||
* @author asmund | ||
* @version $Id: $Id | ||
*/ | ||
public class ValveResponse { | ||
public String name; | ||
public ArrayList<String[]> data = new ArrayList<String[]>(); | ||
|
||
/** | ||
* <p> | ||
* Constructor for StreamResponse. | ||
* </p> | ||
* | ||
* @param valve a {@link neqsim.processSimulation.processEquipment.valve.ValveInterface} object | ||
*/ | ||
public ValveResponse(ValveInterface valve) { | ||
|
||
name = valve.getName(); | ||
|
||
data.add(new String[] {"outlet temperature", | ||
Double.toString(valve.getOutletStream() | ||
.getTemperature(neqsim.util.unit.Units.getSymbol("temperature"))), | ||
neqsim.util.unit.Units.getSymbol("temperature")}); | ||
data.add(new String[] {"outlet pressure", | ||
Double.toString( | ||
valve.getOutletStream().getPressure(neqsim.util.unit.Units.getSymbol("pressure"))), | ||
neqsim.util.unit.Units.getSymbol("pressure")}); | ||
} | ||
|
||
/** | ||
* <p> | ||
* print. | ||
* </p> | ||
*/ | ||
public void print() {} | ||
} |
Oops, something went wrong.