import java.net.MalformedURLException;
import java.net.URL;
import java.util.List;
import org.jwitsml.Capabilities;
import org.jwitsml.WitsmlQuery;
import org.jwitsml.WitsmlServer;
import org.jwitsml.WitsmlServerException;
import org.jwitsml.WitsmlVersion;
import org.jwitsml.WitsmlWell;
public class BasicExample {
public static void main(String[] arguments) {
try {
// Identify ourself and our capabilities as WITSML client
Showing posts with label JWitsml. Show all posts
Showing posts with label JWitsml. Show all posts
Wednesday, December 21, 2011
Access data from a WITSML server
Getting WITSML data from the server
All data is retrieved through a WitsmlServer instance which represents the WITSML server in the client program.
There are three different ways to get data:
1. Get multiple children of a given type from a specific parent
// Get all wellbores from a given well instance List<WitsmlWellbore> wellbores = witsmlServer.get(WitsmlWellbore.class, new WitsmlQuery(), well); // Get all rigs from a given wellbore instance List<WitsmlRig> rigs = witsmlServer.get(WitsmlRig.class, new WitsmlQuery(), wellbore); // ... or through the wellbore ID List<WitsmlRig> rigs = witsmlServer.get(WitsmlRig.class, new WitsmlQuery(), "ID-wellbore"); // Both parent and grandparent may be specified List<WitsmlMudLog> mudLogs = witsmlServer.get(WitsmlMudLog.class, new WitsmlQuery(), "ID-wellbore", "ID-well"); // Wells doesn't have parents so we can skip the parent argument List<WitsmlWell> wells = witsmlServer.get(WitsmlWell.class, new WitsmlQuery()); // Attempt to get all rigs! Some servers will accept this approach // while others will require a valid wellbore parent. // The WITSML standard is unclear on this issue. List<WitsmlRig> rigs = witsmlServer.get(WitsmlRig.class, new WitsmlQuery());
Subscribe to:
Posts (Atom)
Featured Posts
Kali Linux Remote Desktop: Access GNOME from Windows Using Native RDP
Kali Linux + GNOME 50 + GNOME Remote Desktop + Windows Remote Desktop (MSTSC) Getting a full GNOME desktop remotely on Kali Linux can be ...
-
public struct CoOrds { public int x, y; public CoOrds( int p1, int p2) { x = p1; y = p2; } }
-
LM Studio Overview LM Studio is a desktop application designed for developing and experimenting with large language models (LLMs)...