mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Creation of OpenFOAM-dev repository 15/04/2008
This commit is contained in:
@ -0,0 +1,32 @@
|
||||
package FoamXServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/ApplicationDescriptor.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// Application descriptor structure.
|
||||
public final class ApplicationDescriptor implements org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
public String name = null;
|
||||
public String category = null;
|
||||
public String path = null;
|
||||
public boolean systemClass = false;
|
||||
|
||||
public ApplicationDescriptor ()
|
||||
{
|
||||
} // ctor
|
||||
|
||||
public ApplicationDescriptor (String _name, String _category, String _path, boolean _systemClass)
|
||||
{
|
||||
name = _name;
|
||||
category = _category;
|
||||
path = _path;
|
||||
systemClass = _systemClass;
|
||||
} // ctor
|
||||
|
||||
} // class ApplicationDescriptor
|
||||
@ -0,0 +1,98 @@
|
||||
package FoamXServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/ApplicationDescriptorHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// Application descriptor structure.
|
||||
abstract public class ApplicationDescriptorHelper
|
||||
{
|
||||
private static String _id = "IDL:FoamXServer/ApplicationDescriptor:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, FoamXServer.ApplicationDescriptor that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static FoamXServer.ApplicationDescriptor extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
private static boolean __active = false;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
synchronized (org.omg.CORBA.TypeCode.class)
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
if (__active)
|
||||
{
|
||||
return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
|
||||
}
|
||||
__active = true;
|
||||
org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [4];
|
||||
org.omg.CORBA.TypeCode _tcOf_members0 = null;
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0);
|
||||
_members0[0] = new org.omg.CORBA.StructMember (
|
||||
"name",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0);
|
||||
_members0[1] = new org.omg.CORBA.StructMember (
|
||||
"category",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0);
|
||||
_members0[2] = new org.omg.CORBA.StructMember (
|
||||
"path",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_boolean);
|
||||
_members0[3] = new org.omg.CORBA.StructMember (
|
||||
"systemClass",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_struct_tc (FoamXServer.ApplicationDescriptorHelper.id (), "ApplicationDescriptor", _members0);
|
||||
__active = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static FoamXServer.ApplicationDescriptor read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
FoamXServer.ApplicationDescriptor value = new FoamXServer.ApplicationDescriptor ();
|
||||
value.name = istream.read_string ();
|
||||
value.category = istream.read_string ();
|
||||
value.path = istream.read_string ();
|
||||
value.systemClass = istream.read_boolean ();
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.ApplicationDescriptor value)
|
||||
{
|
||||
ostream.write_string (value.name);
|
||||
ostream.write_string (value.category);
|
||||
ostream.write_string (value.path);
|
||||
ostream.write_boolean (value.systemClass);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package FoamXServer;
|
||||
|
||||
/**
|
||||
* FoamXServer/ApplicationDescriptorHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// Application descriptor structure.
|
||||
public final class ApplicationDescriptorHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public FoamXServer.ApplicationDescriptor value = null;
|
||||
|
||||
public ApplicationDescriptorHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public ApplicationDescriptorHolder (FoamXServer.ApplicationDescriptor initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = FoamXServer.ApplicationDescriptorHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
FoamXServer.ApplicationDescriptorHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return FoamXServer.ApplicationDescriptorHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package FoamXServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/ApplicationDescriptorListHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
abstract public class ApplicationDescriptorListHelper
|
||||
{
|
||||
private static String _id = "IDL:FoamXServer/ApplicationDescriptorList:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, FoamXServer.ApplicationDescriptor[] that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static FoamXServer.ApplicationDescriptor[] extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = FoamXServer.ApplicationDescriptorHelper.type ();
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (FoamXServer.ApplicationDescriptorListHelper.id (), "ApplicationDescriptorList", __typeCode);
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static FoamXServer.ApplicationDescriptor[] read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
FoamXServer.ApplicationDescriptor value[] = null;
|
||||
int _len0 = istream.read_long ();
|
||||
value = new FoamXServer.ApplicationDescriptor[_len0];
|
||||
for (int _o1 = 0;_o1 < value.length; ++_o1)
|
||||
value[_o1] = FoamXServer.ApplicationDescriptorHelper.read (istream);
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.ApplicationDescriptor[] value)
|
||||
{
|
||||
ostream.write_long (value.length);
|
||||
for (int _i0 = 0;_i0 < value.length; ++_i0)
|
||||
FoamXServer.ApplicationDescriptorHelper.write (ostream, value[_i0]);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,39 @@
|
||||
package FoamXServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/ApplicationDescriptorListHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
public final class ApplicationDescriptorListHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public FoamXServer.ApplicationDescriptor value[] = null;
|
||||
|
||||
public ApplicationDescriptorListHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public ApplicationDescriptorListHolder (FoamXServer.ApplicationDescriptor[] initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = FoamXServer.ApplicationDescriptorListHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
FoamXServer.ApplicationDescriptorListHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return FoamXServer.ApplicationDescriptorListHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,15 @@
|
||||
package FoamXServer.CaseBrowser;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseBrowser/ICaseBrowser.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public interface ICaseBrowser extends ICaseBrowserOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
} // interface ICaseBrowser
|
||||
@ -0,0 +1,72 @@
|
||||
package FoamXServer.CaseBrowser;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseBrowser/ICaseBrowserHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
abstract public class ICaseBrowserHelper
|
||||
{
|
||||
private static String _id = "IDL:FoamXServer/CaseBrowser/ICaseBrowser:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, FoamXServer.CaseBrowser.ICaseBrowser that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static FoamXServer.CaseBrowser.ICaseBrowser extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (FoamXServer.CaseBrowser.ICaseBrowserHelper.id (), "ICaseBrowser");
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static FoamXServer.CaseBrowser.ICaseBrowser read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
return narrow (istream.read_Object (_ICaseBrowserStub.class));
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.CaseBrowser.ICaseBrowser value)
|
||||
{
|
||||
ostream.write_Object ((org.omg.CORBA.Object) value);
|
||||
}
|
||||
|
||||
public static FoamXServer.CaseBrowser.ICaseBrowser narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof FoamXServer.CaseBrowser.ICaseBrowser)
|
||||
return (FoamXServer.CaseBrowser.ICaseBrowser)obj;
|
||||
else if (!obj._is_a (id ()))
|
||||
throw new org.omg.CORBA.BAD_PARAM ();
|
||||
else
|
||||
{
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
|
||||
FoamXServer.CaseBrowser._ICaseBrowserStub stub = new FoamXServer.CaseBrowser._ICaseBrowserStub ();
|
||||
stub._set_delegate(delegate);
|
||||
return stub;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package FoamXServer.CaseBrowser;
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseBrowser/ICaseBrowserHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public final class ICaseBrowserHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public FoamXServer.CaseBrowser.ICaseBrowser value = null;
|
||||
|
||||
public ICaseBrowserHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public ICaseBrowserHolder (FoamXServer.CaseBrowser.ICaseBrowser initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = FoamXServer.CaseBrowser.ICaseBrowserHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
FoamXServer.CaseBrowser.ICaseBrowserHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return FoamXServer.CaseBrowser.ICaseBrowserHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,104 @@
|
||||
package FoamXServer.CaseBrowser;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseBrowser/ICaseBrowserOperations.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public interface ICaseBrowserOperations
|
||||
{
|
||||
|
||||
// Foam system properties (user data editable).
|
||||
FoamXServer.CaseServer.IFoamProperties foamProperties ();
|
||||
|
||||
// Managed cases list.
|
||||
FoamXServer.CaseDescriptor[] cases ();
|
||||
|
||||
// Running jobs list.
|
||||
FoamXServer.JobDescriptor[] runningJobs ();
|
||||
|
||||
// Finished jobs list.
|
||||
FoamXServer.JobDescriptor[] finishedJobs ();
|
||||
|
||||
// Get environment variable
|
||||
void getEnv (String envName, org.omg.CORBA.StringHolder hostName) throws FoamXServer.FoamXError;
|
||||
|
||||
// Get the machines hostName
|
||||
void getHostName (org.omg.CORBA.StringHolder hostName) throws FoamXServer.FoamXError;
|
||||
|
||||
// Get userName
|
||||
void getUserName (org.omg.CORBA.StringHolder userName) throws FoamXServer.FoamXError;
|
||||
|
||||
// Get modification date
|
||||
int fileModificationDate (String fileName) throws FoamXServer.FoamXIOError;
|
||||
|
||||
// Read file and store contents in string
|
||||
void readFile (String fileName, org.omg.CORBA.StringHolder contents) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
|
||||
// Write contents of string as a file
|
||||
void writeFile (String fileName, String contents) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
|
||||
// Utility execution.
|
||||
int invokeUtility (String hostName, String utilityName, String[] arguments, String logName, boolean backGround) throws FoamXServer.FoamXError;
|
||||
void refreshCaseList () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
void addToCaseList (String rootDir) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
|
||||
// Case manipulation.
|
||||
void openCase (FoamXServer.CaseDescriptor caseDesc) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
void newCase (String rootDir, String caseName, String app) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
void importCase (String rootDir, String caseName, String app) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
void deleteCase (FoamXServer.CaseDescriptor caseDesc) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
void cloneCase (FoamXServer.CaseDescriptor caseDesc, String newCaseRootDir, String newCaseName, String newAppClassName, String timeSel) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
|
||||
// Try to resolve NameServer entry for caseServer
|
||||
boolean getCaseServerReference (String rootDir, String caseName, FoamXServer.CaseServer.ICaseServerHolder caseObj) throws FoamXServer.FoamXError, FoamXServer.FoamXSYSError;
|
||||
|
||||
// start casePostServer
|
||||
void openCasePost (FoamXServer.CaseDescriptor caseDesc, int nProcs) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
|
||||
// Try to resolve NameServer entry for casePostServer
|
||||
boolean getCasePostServerReference (String rootDir, String caseName, int nProcs, FoamXServer.CasePostServer.ICasePostServerHolder caseObj) throws FoamXServer.FoamXError, FoamXServer.FoamXSYSError;
|
||||
boolean caseLocked (FoamXServer.CaseDescriptor caseDesc) throws FoamXServer.FoamXError;
|
||||
void unlockCase (String rootDir, String caseName) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
void unlockCaseDescriptor (FoamXServer.CaseDescriptor caseDesc) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
void addCase (String rootDir, String rawRootDir, String caseName, String app) throws FoamXServer.FoamXError;
|
||||
void caseOpen (String rootDir, String caseName) throws FoamXServer.FoamXError;
|
||||
boolean isCaseInError (FoamXServer.CaseDescriptor caseDesc) throws FoamXServer.FoamXError;
|
||||
void caseIsInError (FoamXServer.CaseDescriptor caseDesc) throws FoamXServer.FoamXError;
|
||||
|
||||
// Process control
|
||||
void refreshJobsLists () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
void checkRunningJobs () throws FoamXServer.FoamXError, FoamXServer.FoamXSYSError;
|
||||
void purgeRunningJobs () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
void purgeFinishedJob (FoamXServer.JobID jobID) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
void purgeFinishedJobs (int nDays) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
|
||||
// Kill process.
|
||||
void kill (FoamXServer.JobID jobID) throws FoamXServer.FoamXError, FoamXServer.FoamXSYSError;
|
||||
|
||||
// Suspend process
|
||||
void suspend (FoamXServer.JobID jobID) throws FoamXServer.FoamXError, FoamXServer.FoamXSYSError;
|
||||
|
||||
// Continue process
|
||||
void cont (FoamXServer.JobID jobID) throws FoamXServer.FoamXError, FoamXServer.FoamXSYSError;
|
||||
|
||||
// now=false: next natural dump
|
||||
void end (FoamXServer.JobID jobID, String rootDir, String caseName, boolean now) throws FoamXServer.FoamXError, FoamXServer.FoamXSYSError;
|
||||
|
||||
// Reset the job status
|
||||
void setStatus (FoamXServer.JobID jobID, FoamXServer.JobStatus jobStatus) throws FoamXServer.FoamXError;
|
||||
|
||||
// Validation.
|
||||
void validate () throws FoamXServer.FoamXError, FoamXServer.ValidationError;
|
||||
|
||||
// Persistence.
|
||||
void save () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError;
|
||||
|
||||
// Lifetime management.
|
||||
void close ();
|
||||
} // interface ICaseBrowserOperations
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,50 @@
|
||||
package FoamXServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseDescriptor.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// Case descriptor structure.
|
||||
public final class CaseDescriptor implements org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
public String rootDir = null;
|
||||
|
||||
// rootDir (after expansion)
|
||||
public String rawRootDir = null;
|
||||
|
||||
// rootDir (before expansion)
|
||||
public String caseName = null;
|
||||
public String app = null;
|
||||
public int nProcs = (int)0;
|
||||
|
||||
// 1 or number of subdomains in parallel
|
||||
public boolean managed = false;
|
||||
|
||||
// True if this is a FoamX managed case.
|
||||
public boolean locked = false;
|
||||
|
||||
// True if this case is locked by another user.
|
||||
public boolean error = false;
|
||||
|
||||
public CaseDescriptor ()
|
||||
{
|
||||
} // ctor
|
||||
|
||||
public CaseDescriptor (String _rootDir, String _rawRootDir, String _caseName, String _app, int _nProcs, boolean _managed, boolean _locked, boolean _error)
|
||||
{
|
||||
rootDir = _rootDir;
|
||||
rawRootDir = _rawRootDir;
|
||||
caseName = _caseName;
|
||||
app = _app;
|
||||
nProcs = _nProcs;
|
||||
managed = _managed;
|
||||
locked = _locked;
|
||||
error = _error;
|
||||
} // ctor
|
||||
|
||||
} // class CaseDescriptor
|
||||
@ -0,0 +1,126 @@
|
||||
package FoamXServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseDescriptorHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// Case descriptor structure.
|
||||
abstract public class CaseDescriptorHelper
|
||||
{
|
||||
private static String _id = "IDL:FoamXServer/CaseDescriptor:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, FoamXServer.CaseDescriptor that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static FoamXServer.CaseDescriptor extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
private static boolean __active = false;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
synchronized (org.omg.CORBA.TypeCode.class)
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
if (__active)
|
||||
{
|
||||
return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
|
||||
}
|
||||
__active = true;
|
||||
org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [8];
|
||||
org.omg.CORBA.TypeCode _tcOf_members0 = null;
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0);
|
||||
_members0[0] = new org.omg.CORBA.StructMember (
|
||||
"rootDir",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0);
|
||||
_members0[1] = new org.omg.CORBA.StructMember (
|
||||
"rawRootDir",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0);
|
||||
_members0[2] = new org.omg.CORBA.StructMember (
|
||||
"caseName",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0);
|
||||
_members0[3] = new org.omg.CORBA.StructMember (
|
||||
"app",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_long);
|
||||
_members0[4] = new org.omg.CORBA.StructMember (
|
||||
"nProcs",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_boolean);
|
||||
_members0[5] = new org.omg.CORBA.StructMember (
|
||||
"managed",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_boolean);
|
||||
_members0[6] = new org.omg.CORBA.StructMember (
|
||||
"locked",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_boolean);
|
||||
_members0[7] = new org.omg.CORBA.StructMember (
|
||||
"error",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_struct_tc (FoamXServer.CaseDescriptorHelper.id (), "CaseDescriptor", _members0);
|
||||
__active = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static FoamXServer.CaseDescriptor read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
FoamXServer.CaseDescriptor value = new FoamXServer.CaseDescriptor ();
|
||||
value.rootDir = istream.read_string ();
|
||||
value.rawRootDir = istream.read_string ();
|
||||
value.caseName = istream.read_string ();
|
||||
value.app = istream.read_string ();
|
||||
value.nProcs = istream.read_long ();
|
||||
value.managed = istream.read_boolean ();
|
||||
value.locked = istream.read_boolean ();
|
||||
value.error = istream.read_boolean ();
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.CaseDescriptor value)
|
||||
{
|
||||
ostream.write_string (value.rootDir);
|
||||
ostream.write_string (value.rawRootDir);
|
||||
ostream.write_string (value.caseName);
|
||||
ostream.write_string (value.app);
|
||||
ostream.write_long (value.nProcs);
|
||||
ostream.write_boolean (value.managed);
|
||||
ostream.write_boolean (value.locked);
|
||||
ostream.write_boolean (value.error);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package FoamXServer;
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseDescriptorHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// Case descriptor structure.
|
||||
public final class CaseDescriptorHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public FoamXServer.CaseDescriptor value = null;
|
||||
|
||||
public CaseDescriptorHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public CaseDescriptorHolder (FoamXServer.CaseDescriptor initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = FoamXServer.CaseDescriptorHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
FoamXServer.CaseDescriptorHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return FoamXServer.CaseDescriptorHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package FoamXServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseDescriptorListHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
abstract public class CaseDescriptorListHelper
|
||||
{
|
||||
private static String _id = "IDL:FoamXServer/CaseDescriptorList:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, FoamXServer.CaseDescriptor[] that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static FoamXServer.CaseDescriptor[] extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = FoamXServer.CaseDescriptorHelper.type ();
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (FoamXServer.CaseDescriptorListHelper.id (), "CaseDescriptorList", __typeCode);
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static FoamXServer.CaseDescriptor[] read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
FoamXServer.CaseDescriptor value[] = null;
|
||||
int _len0 = istream.read_long ();
|
||||
value = new FoamXServer.CaseDescriptor[_len0];
|
||||
for (int _o1 = 0;_o1 < value.length; ++_o1)
|
||||
value[_o1] = FoamXServer.CaseDescriptorHelper.read (istream);
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.CaseDescriptor[] value)
|
||||
{
|
||||
ostream.write_long (value.length);
|
||||
for (int _i0 = 0;_i0 < value.length; ++_i0)
|
||||
FoamXServer.CaseDescriptorHelper.write (ostream, value[_i0]);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,39 @@
|
||||
package FoamXServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseDescriptorListHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
public final class CaseDescriptorListHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public FoamXServer.CaseDescriptor value[] = null;
|
||||
|
||||
public CaseDescriptorListHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public CaseDescriptorListHolder (FoamXServer.CaseDescriptor[] initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = FoamXServer.CaseDescriptorListHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
FoamXServer.CaseDescriptorListHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return FoamXServer.CaseDescriptorListHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,15 @@
|
||||
package FoamXServer.CasePostServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CasePostServer/ICasePostServer.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public interface ICasePostServer extends ICasePostServerOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
} // interface ICasePostServer
|
||||
@ -0,0 +1,72 @@
|
||||
package FoamXServer.CasePostServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CasePostServer/ICasePostServerHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
abstract public class ICasePostServerHelper
|
||||
{
|
||||
private static String _id = "IDL:FoamXServer/CasePostServer/ICasePostServer:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, FoamXServer.CasePostServer.ICasePostServer that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static FoamXServer.CasePostServer.ICasePostServer extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (FoamXServer.CasePostServer.ICasePostServerHelper.id (), "ICasePostServer");
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static FoamXServer.CasePostServer.ICasePostServer read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
return narrow (istream.read_Object (_ICasePostServerStub.class));
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.CasePostServer.ICasePostServer value)
|
||||
{
|
||||
ostream.write_Object ((org.omg.CORBA.Object) value);
|
||||
}
|
||||
|
||||
public static FoamXServer.CasePostServer.ICasePostServer narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof FoamXServer.CasePostServer.ICasePostServer)
|
||||
return (FoamXServer.CasePostServer.ICasePostServer)obj;
|
||||
else if (!obj._is_a (id ()))
|
||||
throw new org.omg.CORBA.BAD_PARAM ();
|
||||
else
|
||||
{
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
|
||||
FoamXServer.CasePostServer._ICasePostServerStub stub = new FoamXServer.CasePostServer._ICasePostServerStub ();
|
||||
stub._set_delegate(delegate);
|
||||
return stub;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package FoamXServer.CasePostServer;
|
||||
|
||||
/**
|
||||
* FoamXServer/CasePostServer/ICasePostServerHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public final class ICasePostServerHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public FoamXServer.CasePostServer.ICasePostServer value = null;
|
||||
|
||||
public ICasePostServerHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public ICasePostServerHolder (FoamXServer.CasePostServer.ICasePostServer initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = FoamXServer.CasePostServer.ICasePostServerHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
FoamXServer.CasePostServer.ICasePostServerHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return FoamXServer.CasePostServer.ICasePostServerHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,89 @@
|
||||
package FoamXServer.CasePostServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CasePostServer/ICasePostServerOperations.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public interface ICasePostServerOperations
|
||||
{
|
||||
|
||||
// Attributes.
|
||||
String caseRoot ();
|
||||
String caseName ();
|
||||
int nProcs ();
|
||||
|
||||
// Time-steps.
|
||||
String[] availableTimeSteps ();
|
||||
|
||||
// Set database
|
||||
void setTime (String timeName, int timeIndex) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
|
||||
// Slave variant
|
||||
void setTimeSlave ();
|
||||
|
||||
// Get patchnames over all domains
|
||||
String[] getPatchNames () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
|
||||
// Slave variant
|
||||
void getPatchNamesSlave ();
|
||||
|
||||
// Get fieldNames
|
||||
String[] getFieldNames (String type) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
|
||||
// Bounding box
|
||||
void getMeshBb (FoamXServer.Point3Holder min, FoamXServer.Point3Holder max) throws FoamXServer.FoamXError;
|
||||
|
||||
// Slave variant
|
||||
void getMeshBbSlave ();
|
||||
|
||||
// Patch mesh
|
||||
void getPatchMesh (String patchName, double creaseAngle, FoamXServer.FloatListHolder points, FoamXServer.LongListHolder edges) throws FoamXServer.FoamXError;
|
||||
|
||||
// Slave variant
|
||||
void getPatchMeshSlave ();
|
||||
|
||||
// Cut mesh
|
||||
void getCutMesh (float[] basePoint, float[] normal, FoamXServer.FloatListHolder points, FoamXServer.LongListHolder edges) throws FoamXServer.FoamXError;
|
||||
|
||||
// Slave variant
|
||||
void getCutMeshSlave ();
|
||||
|
||||
// Cut mesh outline
|
||||
void getCutMeshOutline (float[] basePoint, float[] normal, FoamXServer.FloatListHolder points, FoamXServer.LongListHolder edges) throws FoamXServer.FoamXError;
|
||||
|
||||
// Slave variant
|
||||
void getCutMeshOutlineSlave ();
|
||||
|
||||
// Triangulate and sample patch
|
||||
void getTriPatch (String fieldName, String patchName, FoamXServer.FloatListHolder points, FoamXServer.LongListHolder triFaces, FoamXServer.FloatListHolder values) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
|
||||
// Slave variant
|
||||
void getTriPatchSlave ();
|
||||
|
||||
// Triangulate and sample patch
|
||||
void getTriPatchVec (String fieldName, String patchName, FoamXServer.FloatListHolder points, FoamXServer.LongListHolder triFaces, FoamXServer.FloatListHolder values) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
|
||||
// Slave variant
|
||||
void getTriPatchVecSlave ();
|
||||
|
||||
// Cutplane and sample
|
||||
void cutPlane (String fieldName, float[] basePoint, float[] normal, FoamXServer.FloatListHolder points, FoamXServer.LongListHolder triFaces, FoamXServer.FloatListHolder values) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
|
||||
// Slave variant
|
||||
void cutPlaneSlave ();
|
||||
|
||||
// Cutplane and sample
|
||||
void cutPlaneVec (String fieldName, float[] basePoint, float[] normal, FoamXServer.FloatListHolder points, FoamXServer.LongListHolder triFaces, FoamXServer.FloatListHolder values) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
|
||||
// Slave variant
|
||||
void cutPlaneVecSlave ();
|
||||
|
||||
//- Lifetime management.
|
||||
void close ();
|
||||
} // interface ICasePostServerOperations
|
||||
@ -0,0 +1,650 @@
|
||||
package FoamXServer.CasePostServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CasePostServer/_ICasePostServerStub.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public class _ICasePostServerStub extends org.omg.CORBA.portable.ObjectImpl implements FoamXServer.CasePostServer.ICasePostServer
|
||||
{
|
||||
|
||||
|
||||
// Attributes.
|
||||
public String caseRoot ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_caseRoot", true);
|
||||
$in = _invoke ($out);
|
||||
String $result = $in.read_string ();
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return caseRoot ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // caseRoot
|
||||
|
||||
public String caseName ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_caseName", true);
|
||||
$in = _invoke ($out);
|
||||
String $result = $in.read_string ();
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return caseName ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // caseName
|
||||
|
||||
public int nProcs ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_nProcs", true);
|
||||
$in = _invoke ($out);
|
||||
int $result = $in.read_long ();
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return nProcs ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // nProcs
|
||||
|
||||
|
||||
// Time-steps.
|
||||
public String[] availableTimeSteps ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_availableTimeSteps", true);
|
||||
$in = _invoke ($out);
|
||||
String $result[] = FoamXServer.StringListHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return availableTimeSteps ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // availableTimeSteps
|
||||
|
||||
|
||||
// Set database
|
||||
public void setTime (String timeName, int timeIndex) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("setTime", true);
|
||||
$out.write_string (timeName);
|
||||
$out.write_long (timeIndex);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
setTime (timeName, timeIndex );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // setTime
|
||||
|
||||
|
||||
// Slave variant
|
||||
public void setTimeSlave ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("setTimeSlave", false);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
setTimeSlave ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // setTimeSlave
|
||||
|
||||
|
||||
// Get patchnames over all domains
|
||||
public String[] getPatchNames () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("getPatchNames", true);
|
||||
$in = _invoke ($out);
|
||||
String $result[] = FoamXServer.StringListHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return getPatchNames ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // getPatchNames
|
||||
|
||||
|
||||
// Slave variant
|
||||
public void getPatchNamesSlave ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("getPatchNamesSlave", false);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
getPatchNamesSlave ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // getPatchNamesSlave
|
||||
|
||||
|
||||
// Get fieldNames
|
||||
public String[] getFieldNames (String type) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("getFieldNames", true);
|
||||
$out.write_string (type);
|
||||
$in = _invoke ($out);
|
||||
String $result[] = FoamXServer.StringListHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return getFieldNames (type );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // getFieldNames
|
||||
|
||||
|
||||
// Bounding box
|
||||
public void getMeshBb (FoamXServer.Point3Holder min, FoamXServer.Point3Holder max) throws FoamXServer.FoamXError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("getMeshBb", true);
|
||||
$in = _invoke ($out);
|
||||
min.value = FoamXServer.Point3Helper.read ($in);
|
||||
max.value = FoamXServer.Point3Helper.read ($in);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
getMeshBb (min, max );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // getMeshBb
|
||||
|
||||
|
||||
// Slave variant
|
||||
public void getMeshBbSlave ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("getMeshBbSlave", false);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
getMeshBbSlave ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // getMeshBbSlave
|
||||
|
||||
|
||||
// Patch mesh
|
||||
public void getPatchMesh (String patchName, double creaseAngle, FoamXServer.FloatListHolder points, FoamXServer.LongListHolder edges) throws FoamXServer.FoamXError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("getPatchMesh", true);
|
||||
$out.write_string (patchName);
|
||||
$out.write_double (creaseAngle);
|
||||
$in = _invoke ($out);
|
||||
points.value = FoamXServer.FloatListHelper.read ($in);
|
||||
edges.value = FoamXServer.LongListHelper.read ($in);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
getPatchMesh (patchName, creaseAngle, points, edges );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // getPatchMesh
|
||||
|
||||
|
||||
// Slave variant
|
||||
public void getPatchMeshSlave ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("getPatchMeshSlave", false);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
getPatchMeshSlave ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // getPatchMeshSlave
|
||||
|
||||
|
||||
// Cut mesh
|
||||
public void getCutMesh (float[] basePoint, float[] normal, FoamXServer.FloatListHolder points, FoamXServer.LongListHolder edges) throws FoamXServer.FoamXError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("getCutMesh", true);
|
||||
FoamXServer.Point3Helper.write ($out, basePoint);
|
||||
FoamXServer.Point3Helper.write ($out, normal);
|
||||
$in = _invoke ($out);
|
||||
points.value = FoamXServer.FloatListHelper.read ($in);
|
||||
edges.value = FoamXServer.LongListHelper.read ($in);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
getCutMesh (basePoint, normal, points, edges );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // getCutMesh
|
||||
|
||||
|
||||
// Slave variant
|
||||
public void getCutMeshSlave ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("getCutMeshSlave", false);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
getCutMeshSlave ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // getCutMeshSlave
|
||||
|
||||
|
||||
// Cut mesh outline
|
||||
public void getCutMeshOutline (float[] basePoint, float[] normal, FoamXServer.FloatListHolder points, FoamXServer.LongListHolder edges) throws FoamXServer.FoamXError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("getCutMeshOutline", true);
|
||||
FoamXServer.Point3Helper.write ($out, basePoint);
|
||||
FoamXServer.Point3Helper.write ($out, normal);
|
||||
$in = _invoke ($out);
|
||||
points.value = FoamXServer.FloatListHelper.read ($in);
|
||||
edges.value = FoamXServer.LongListHelper.read ($in);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
getCutMeshOutline (basePoint, normal, points, edges );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // getCutMeshOutline
|
||||
|
||||
|
||||
// Slave variant
|
||||
public void getCutMeshOutlineSlave ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("getCutMeshOutlineSlave", false);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
getCutMeshOutlineSlave ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // getCutMeshOutlineSlave
|
||||
|
||||
|
||||
// Triangulate and sample patch
|
||||
public void getTriPatch (String fieldName, String patchName, FoamXServer.FloatListHolder points, FoamXServer.LongListHolder triFaces, FoamXServer.FloatListHolder values) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("getTriPatch", true);
|
||||
$out.write_string (fieldName);
|
||||
$out.write_string (patchName);
|
||||
$in = _invoke ($out);
|
||||
points.value = FoamXServer.FloatListHelper.read ($in);
|
||||
triFaces.value = FoamXServer.LongListHelper.read ($in);
|
||||
values.value = FoamXServer.FloatListHelper.read ($in);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
getTriPatch (fieldName, patchName, points, triFaces, values );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // getTriPatch
|
||||
|
||||
|
||||
// Slave variant
|
||||
public void getTriPatchSlave ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("getTriPatchSlave", false);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
getTriPatchSlave ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // getTriPatchSlave
|
||||
|
||||
|
||||
// Triangulate and sample patch
|
||||
public void getTriPatchVec (String fieldName, String patchName, FoamXServer.FloatListHolder points, FoamXServer.LongListHolder triFaces, FoamXServer.FloatListHolder values) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("getTriPatchVec", true);
|
||||
$out.write_string (fieldName);
|
||||
$out.write_string (patchName);
|
||||
$in = _invoke ($out);
|
||||
points.value = FoamXServer.FloatListHelper.read ($in);
|
||||
triFaces.value = FoamXServer.LongListHelper.read ($in);
|
||||
values.value = FoamXServer.FloatListHelper.read ($in);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
getTriPatchVec (fieldName, patchName, points, triFaces, values );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // getTriPatchVec
|
||||
|
||||
|
||||
// Slave variant
|
||||
public void getTriPatchVecSlave ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("getTriPatchVecSlave", false);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
getTriPatchVecSlave ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // getTriPatchVecSlave
|
||||
|
||||
|
||||
// Cutplane and sample
|
||||
public void cutPlane (String fieldName, float[] basePoint, float[] normal, FoamXServer.FloatListHolder points, FoamXServer.LongListHolder triFaces, FoamXServer.FloatListHolder values) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("cutPlane", true);
|
||||
$out.write_string (fieldName);
|
||||
FoamXServer.Point3Helper.write ($out, basePoint);
|
||||
FoamXServer.Point3Helper.write ($out, normal);
|
||||
$in = _invoke ($out);
|
||||
points.value = FoamXServer.FloatListHelper.read ($in);
|
||||
triFaces.value = FoamXServer.LongListHelper.read ($in);
|
||||
values.value = FoamXServer.FloatListHelper.read ($in);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
cutPlane (fieldName, basePoint, normal, points, triFaces, values );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // cutPlane
|
||||
|
||||
|
||||
// Slave variant
|
||||
public void cutPlaneSlave ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("cutPlaneSlave", false);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
cutPlaneSlave ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // cutPlaneSlave
|
||||
|
||||
|
||||
// Cutplane and sample
|
||||
public void cutPlaneVec (String fieldName, float[] basePoint, float[] normal, FoamXServer.FloatListHolder points, FoamXServer.LongListHolder triFaces, FoamXServer.FloatListHolder values) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("cutPlaneVec", true);
|
||||
$out.write_string (fieldName);
|
||||
FoamXServer.Point3Helper.write ($out, basePoint);
|
||||
FoamXServer.Point3Helper.write ($out, normal);
|
||||
$in = _invoke ($out);
|
||||
points.value = FoamXServer.FloatListHelper.read ($in);
|
||||
triFaces.value = FoamXServer.LongListHelper.read ($in);
|
||||
values.value = FoamXServer.FloatListHelper.read ($in);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
cutPlaneVec (fieldName, basePoint, normal, points, triFaces, values );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // cutPlaneVec
|
||||
|
||||
|
||||
// Slave variant
|
||||
public void cutPlaneVecSlave ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("cutPlaneVecSlave", false);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
cutPlaneVecSlave ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // cutPlaneVecSlave
|
||||
|
||||
|
||||
//- Lifetime management.
|
||||
public void close ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("close", false);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
close ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // close
|
||||
|
||||
// Type-specific CORBA::Object operations
|
||||
private static String[] __ids = {
|
||||
"IDL:FoamXServer/CasePostServer/ICasePostServer:1.0"};
|
||||
|
||||
public String[] _ids ()
|
||||
{
|
||||
return (String[])__ids.clone ();
|
||||
}
|
||||
|
||||
private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
|
||||
{
|
||||
String str = s.readUTF ();
|
||||
String[] args = null;
|
||||
java.util.Properties props = null;
|
||||
org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
|
||||
_set_delegate (delegate);
|
||||
}
|
||||
|
||||
private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
|
||||
{
|
||||
String[] args = null;
|
||||
java.util.Properties props = null;
|
||||
String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
|
||||
s.writeUTF (str);
|
||||
}
|
||||
} // class _ICasePostServerStub
|
||||
@ -0,0 +1,15 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/IApplication.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public interface IApplication extends IApplicationOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
} // interface IApplication
|
||||
@ -0,0 +1,72 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/IApplicationHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
abstract public class IApplicationHelper
|
||||
{
|
||||
private static String _id = "IDL:FoamXServer/CaseServer/IApplication:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, FoamXServer.CaseServer.IApplication that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static FoamXServer.CaseServer.IApplication extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (FoamXServer.CaseServer.IApplicationHelper.id (), "IApplication");
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static FoamXServer.CaseServer.IApplication read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
return narrow (istream.read_Object (_IApplicationStub.class));
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.CaseServer.IApplication value)
|
||||
{
|
||||
ostream.write_Object ((org.omg.CORBA.Object) value);
|
||||
}
|
||||
|
||||
public static FoamXServer.CaseServer.IApplication narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof FoamXServer.CaseServer.IApplication)
|
||||
return (FoamXServer.CaseServer.IApplication)obj;
|
||||
else if (!obj._is_a (id ()))
|
||||
throw new org.omg.CORBA.BAD_PARAM ();
|
||||
else
|
||||
{
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
|
||||
FoamXServer.CaseServer._IApplicationStub stub = new FoamXServer.CaseServer._IApplicationStub ();
|
||||
stub._set_delegate(delegate);
|
||||
return stub;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/IApplicationHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public final class IApplicationHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public FoamXServer.CaseServer.IApplication value = null;
|
||||
|
||||
public IApplicationHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public IApplicationHolder (FoamXServer.CaseServer.IApplication initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = FoamXServer.CaseServer.IApplicationHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
FoamXServer.CaseServer.IApplicationHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return FoamXServer.CaseServer.IApplicationHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,72 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/IApplicationOperations.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public interface IApplicationOperations
|
||||
{
|
||||
|
||||
//- Short name for this application class.
|
||||
String name ();
|
||||
|
||||
//- Short name for this application class.
|
||||
void name (String newName);
|
||||
|
||||
//- Application class description.
|
||||
String description ();
|
||||
|
||||
//- Application class description.
|
||||
void description (String newDescription);
|
||||
|
||||
//- Application class category.
|
||||
String category ();
|
||||
|
||||
//- Application class category.
|
||||
void category (String newCategory);
|
||||
|
||||
//- List of modules required to pre-process this application class.
|
||||
String[] modules ();
|
||||
|
||||
//- List of modules required to pre-process this application class.
|
||||
void modules (String[] newModules);
|
||||
|
||||
//- System or user defined application class.
|
||||
boolean systemClass ();
|
||||
|
||||
//- List of defined fields.
|
||||
String[] fields ();
|
||||
void getField (String fieldName, FoamXServer.CaseServer.IGeometricFieldDescriptorHolder fieldDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
void findField (String fieldName, FoamXServer.CaseServer.IGeometricFieldDescriptorHolder fieldDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
void addField (String fieldName, FoamXServer.CaseServer.IGeometricFieldDescriptorHolder fieldDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
void deleteField (String fieldName) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
|
||||
// Patch physical types.
|
||||
String[] patchPhysicalTypes ();
|
||||
|
||||
// List of defined patch physical types.
|
||||
void getPatchPhysicalType (String patchPhysicalTypeName, FoamXServer.CaseServer.IPatchPhysicalTypeDescriptorHolder patchPhysicalTypeDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
void findPatchPhysicalType (String patchPhysicalTypeName, FoamXServer.CaseServer.IPatchPhysicalTypeDescriptorHolder patchPhysicalTypeDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
void addPatchPhysicalType (String patchPhysicalTypeName, FoamXServer.CaseServer.IPatchPhysicalTypeDescriptorHolder patchPhysicalTypeDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
void deletePatchPhysicalType (String patchPhysicalTypeName) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
|
||||
// Dictionaries.
|
||||
String[] dictionaries ();
|
||||
|
||||
// List of defined dictionaries.
|
||||
void getDictionary (String dictName, FoamXServer.ITypeDescriptorHolder dictTypeDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
void addDictionary (String dictName, FoamXServer.ITypeDescriptorHolder dictTypeDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
void deleteDictionary (String dictName) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
|
||||
// Validation.
|
||||
void validate () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError;
|
||||
|
||||
// Persistence.
|
||||
void save () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError;
|
||||
} // interface IApplicationOperations
|
||||
@ -0,0 +1,15 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/ICaseServer.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public interface ICaseServer extends ICaseServerOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
} // interface ICaseServer
|
||||
@ -0,0 +1,72 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/ICaseServerHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
abstract public class ICaseServerHelper
|
||||
{
|
||||
private static String _id = "IDL:FoamXServer/CaseServer/ICaseServer:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, FoamXServer.CaseServer.ICaseServer that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static FoamXServer.CaseServer.ICaseServer extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (FoamXServer.CaseServer.ICaseServerHelper.id (), "ICaseServer");
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static FoamXServer.CaseServer.ICaseServer read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
return narrow (istream.read_Object (_ICaseServerStub.class));
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.CaseServer.ICaseServer value)
|
||||
{
|
||||
ostream.write_Object ((org.omg.CORBA.Object) value);
|
||||
}
|
||||
|
||||
public static FoamXServer.CaseServer.ICaseServer narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof FoamXServer.CaseServer.ICaseServer)
|
||||
return (FoamXServer.CaseServer.ICaseServer)obj;
|
||||
else if (!obj._is_a (id ()))
|
||||
throw new org.omg.CORBA.BAD_PARAM ();
|
||||
else
|
||||
{
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
|
||||
FoamXServer.CaseServer._ICaseServerStub stub = new FoamXServer.CaseServer._ICaseServerStub ();
|
||||
stub._set_delegate(delegate);
|
||||
return stub;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/ICaseServerHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public final class ICaseServerHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public FoamXServer.CaseServer.ICaseServer value = null;
|
||||
|
||||
public ICaseServerHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public ICaseServerHolder (FoamXServer.CaseServer.ICaseServer initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = FoamXServer.CaseServer.ICaseServerHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
FoamXServer.CaseServer.ICaseServerHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return FoamXServer.CaseServer.ICaseServerHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,80 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/ICaseServerOperations.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public interface ICaseServerOperations
|
||||
{
|
||||
|
||||
// Attributes.
|
||||
boolean managed ();
|
||||
|
||||
// Attributes.
|
||||
void managed (boolean newManaged);
|
||||
String caseRoot ();
|
||||
String caseName ();
|
||||
|
||||
// Application class for this case (read only).
|
||||
FoamXServer.CaseServer.IApplication application ();
|
||||
|
||||
// Foam system properties (read only).
|
||||
FoamXServer.CaseServer.IFoamProperties foamProperties ();
|
||||
|
||||
// Time-steps.
|
||||
String[] availableTimeSteps ();
|
||||
|
||||
// Get current time
|
||||
String getTime () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
|
||||
// Set time
|
||||
void setTime (String timeName, int timeIndex) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
|
||||
// Mesh.
|
||||
boolean meshDefined ();
|
||||
void readMesh () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
void importMesh (String hostName, String rootDir, String caseName) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
|
||||
// Field values.
|
||||
void getFieldValues (String fieldName, FoamXServer.CaseServer.IGeometricFieldHolder fieldValues) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
|
||||
// Patches.
|
||||
String[] patchNames ();
|
||||
void addPatch (String patchName, String patchPhysicalType) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
void deletePatch (String patchName) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
void deleteAllPatches () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
|
||||
// Patch physical type
|
||||
void setPatchPhysicalType (String patchName, String patchPhysicalType) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
void getPatchPhysicalType (String patchName, org.omg.CORBA.StringHolder patchPhysicalType) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
|
||||
// Dictionaries.
|
||||
void getDictionary (String dictionaryName, boolean forceRead, FoamXServer.IDictionaryEntryHolder dictRoot) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
void readFile (String name, org.omg.CORBA.StringHolder contents) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
void writeFile (String name, String contents) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
|
||||
// Get modification date
|
||||
int fileModificationDate (String fileName) throws FoamXServer.FoamXIOError;
|
||||
|
||||
//- Calculation control.
|
||||
int runCase (String arguments) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
void killCase () throws FoamXServer.FoamXError;
|
||||
|
||||
//- Validation.
|
||||
void validate () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError;
|
||||
|
||||
// Returns true if this has been modified
|
||||
boolean modified ();
|
||||
|
||||
//- Persistence.
|
||||
void save () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError;
|
||||
|
||||
//- Lifetime management.
|
||||
void close ();
|
||||
} // interface ICaseServerOperations
|
||||
@ -0,0 +1,15 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/IFoamProperties.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public interface IFoamProperties extends IFoamPropertiesOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
} // interface IFoamProperties
|
||||
@ -0,0 +1,72 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/IFoamPropertiesHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
abstract public class IFoamPropertiesHelper
|
||||
{
|
||||
private static String _id = "IDL:FoamXServer/CaseServer/IFoamProperties:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, FoamXServer.CaseServer.IFoamProperties that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static FoamXServer.CaseServer.IFoamProperties extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (FoamXServer.CaseServer.IFoamPropertiesHelper.id (), "IFoamProperties");
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static FoamXServer.CaseServer.IFoamProperties read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
return narrow (istream.read_Object (_IFoamPropertiesStub.class));
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.CaseServer.IFoamProperties value)
|
||||
{
|
||||
ostream.write_Object ((org.omg.CORBA.Object) value);
|
||||
}
|
||||
|
||||
public static FoamXServer.CaseServer.IFoamProperties narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof FoamXServer.CaseServer.IFoamProperties)
|
||||
return (FoamXServer.CaseServer.IFoamProperties)obj;
|
||||
else if (!obj._is_a (id ()))
|
||||
throw new org.omg.CORBA.BAD_PARAM ();
|
||||
else
|
||||
{
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
|
||||
FoamXServer.CaseServer._IFoamPropertiesStub stub = new FoamXServer.CaseServer._IFoamPropertiesStub ();
|
||||
stub._set_delegate(delegate);
|
||||
return stub;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/IFoamPropertiesHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public final class IFoamPropertiesHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public FoamXServer.CaseServer.IFoamProperties value = null;
|
||||
|
||||
public IFoamPropertiesHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public IFoamPropertiesHolder (FoamXServer.CaseServer.IFoamProperties initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = FoamXServer.CaseServer.IFoamPropertiesHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
FoamXServer.CaseServer.IFoamPropertiesHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return FoamXServer.CaseServer.IFoamPropertiesHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,65 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/IFoamPropertiesOperations.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public interface IFoamPropertiesOperations
|
||||
{
|
||||
|
||||
//- Attributes.
|
||||
String[] availableModules ();
|
||||
|
||||
//- Root directories to search for cases.
|
||||
String[] rootDirectories ();
|
||||
|
||||
//- Unexpanded form of rootDirectories.
|
||||
String[] rawRootDirectories ();
|
||||
void addRootDirectory (String rawRootDir) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
void deleteRootDirectory (String rawRootDir) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
|
||||
// Foam types.
|
||||
String[] foamTypes ();
|
||||
void getFoamType (String foamTypeName, FoamXServer.ITypeDescriptorHolder typeDesc) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
|
||||
// Geometry types.
|
||||
String[] geometryTypes ();
|
||||
void getGeometryType (String geometryTypeName, FoamXServer.CaseServer.IGeometryDescriptorHolder geometryDesc) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
|
||||
// Patch types.
|
||||
String[] patchTypes ();
|
||||
void getPatchType (String patchTypeName, FoamXServer.CaseServer.IPatchDescriptorHolder patchDesc) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
void findPatchType (String patchTypeName, FoamXServer.CaseServer.IPatchDescriptorHolder patchDesc) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
|
||||
// Patch field types.
|
||||
String[] patchFieldTypes ();
|
||||
void getPatchFieldType (String patchFieldTypeName, FoamXServer.ITypeDescriptorHolder patchFieldDesc) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
void findPatchFieldType (String patchFieldTypeName, FoamXServer.ITypeDescriptorHolder patchFieldDesc) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
|
||||
// FOAM controlDict
|
||||
void getFoamControlDict (FoamXServer.IDictionaryEntryHolder controlDict) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
|
||||
// Application classes.
|
||||
FoamXServer.ApplicationDescriptor[] applicationes ();
|
||||
void getApplication (String appName, FoamXServer.CaseServer.IApplicationHolder app) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
void addApplication (String appName, FoamXServer.CaseServer.IApplicationHolder app) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
void deleteApplication (String appName) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
void cloneApplication (String appNameSrc, String appNameDest, String appDestPath, FoamXServer.CaseServer.IApplicationHolder app) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
|
||||
// Foam utilities.
|
||||
FoamXServer.ApplicationDescriptor[] utilities ();
|
||||
void getUtilityControlDict (String utilityName, String rootDir, String caseName, FoamXServer.IDictionaryEntryHolder controlDict) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
|
||||
//- Validation.
|
||||
void validate () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError;
|
||||
|
||||
//- Persistence.
|
||||
void saveSystemProperties () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError;
|
||||
void saveUserProperties () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError;
|
||||
} // interface IFoamPropertiesOperations
|
||||
@ -0,0 +1,15 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/IGeometricField.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public interface IGeometricField extends IGeometricFieldOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
} // interface IGeometricField
|
||||
@ -0,0 +1,15 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/IGeometricFieldDescriptor.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public interface IGeometricFieldDescriptor extends IGeometricFieldDescriptorOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
} // interface IGeometricFieldDescriptor
|
||||
@ -0,0 +1,72 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/IGeometricFieldDescriptorHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
abstract public class IGeometricFieldDescriptorHelper
|
||||
{
|
||||
private static String _id = "IDL:FoamXServer/CaseServer/IGeometricFieldDescriptor:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, FoamXServer.CaseServer.IGeometricFieldDescriptor that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static FoamXServer.CaseServer.IGeometricFieldDescriptor extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (FoamXServer.CaseServer.IGeometricFieldDescriptorHelper.id (), "IGeometricFieldDescriptor");
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static FoamXServer.CaseServer.IGeometricFieldDescriptor read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
return narrow (istream.read_Object (_IGeometricFieldDescriptorStub.class));
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.CaseServer.IGeometricFieldDescriptor value)
|
||||
{
|
||||
ostream.write_Object ((org.omg.CORBA.Object) value);
|
||||
}
|
||||
|
||||
public static FoamXServer.CaseServer.IGeometricFieldDescriptor narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof FoamXServer.CaseServer.IGeometricFieldDescriptor)
|
||||
return (FoamXServer.CaseServer.IGeometricFieldDescriptor)obj;
|
||||
else if (!obj._is_a (id ()))
|
||||
throw new org.omg.CORBA.BAD_PARAM ();
|
||||
else
|
||||
{
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
|
||||
FoamXServer.CaseServer._IGeometricFieldDescriptorStub stub = new FoamXServer.CaseServer._IGeometricFieldDescriptorStub ();
|
||||
stub._set_delegate(delegate);
|
||||
return stub;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/IGeometricFieldDescriptorHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public final class IGeometricFieldDescriptorHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public FoamXServer.CaseServer.IGeometricFieldDescriptor value = null;
|
||||
|
||||
public IGeometricFieldDescriptorHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public IGeometricFieldDescriptorHolder (FoamXServer.CaseServer.IGeometricFieldDescriptor initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = FoamXServer.CaseServer.IGeometricFieldDescriptorHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
FoamXServer.CaseServer.IGeometricFieldDescriptorHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return FoamXServer.CaseServer.IGeometricFieldDescriptorHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,48 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/IGeometricFieldDescriptorOperations.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public interface IGeometricFieldDescriptorOperations
|
||||
{
|
||||
FoamXServer.ITypeDescriptor typeDescriptor ();
|
||||
FoamXServer.ITypeDescriptor fieldTypeDescriptor ();
|
||||
FoamXServer.CaseServer.IGeometryDescriptor geometryDescriptor ();
|
||||
|
||||
//- Field name (eg, "p").
|
||||
String name ();
|
||||
|
||||
//- Field name (eg, "p").
|
||||
void name (String newName);
|
||||
|
||||
//- Field description (eg, "Pressure").
|
||||
String description ();
|
||||
|
||||
//- Field description (eg, "Pressure").
|
||||
void description (String newDescription);
|
||||
|
||||
//- Field type name (eg, "scalar").
|
||||
String fieldTypeName ();
|
||||
|
||||
//- Field type name (eg, "scalar").
|
||||
void fieldTypeName (String newFieldTypeName);
|
||||
|
||||
//- Geometry type name (eg, "vol").
|
||||
String geometryTypeName ();
|
||||
|
||||
//- Geometry type name (eg, "vol").
|
||||
void geometryTypeName (String newGeometryTypeName);
|
||||
|
||||
//- Field dimensions.
|
||||
FoamXServer.DimensionSet dimensions ();
|
||||
|
||||
//- Field dimensions.
|
||||
void dimensions (FoamXServer.DimensionSet newDimensions);
|
||||
} // interface IGeometricFieldDescriptorOperations
|
||||
@ -0,0 +1,72 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/IGeometricFieldHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
abstract public class IGeometricFieldHelper
|
||||
{
|
||||
private static String _id = "IDL:FoamXServer/CaseServer/IGeometricField:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, FoamXServer.CaseServer.IGeometricField that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static FoamXServer.CaseServer.IGeometricField extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (FoamXServer.CaseServer.IGeometricFieldHelper.id (), "IGeometricField");
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static FoamXServer.CaseServer.IGeometricField read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
return narrow (istream.read_Object (_IGeometricFieldStub.class));
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.CaseServer.IGeometricField value)
|
||||
{
|
||||
ostream.write_Object ((org.omg.CORBA.Object) value);
|
||||
}
|
||||
|
||||
public static FoamXServer.CaseServer.IGeometricField narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof FoamXServer.CaseServer.IGeometricField)
|
||||
return (FoamXServer.CaseServer.IGeometricField)obj;
|
||||
else if (!obj._is_a (id ()))
|
||||
throw new org.omg.CORBA.BAD_PARAM ();
|
||||
else
|
||||
{
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
|
||||
FoamXServer.CaseServer._IGeometricFieldStub stub = new FoamXServer.CaseServer._IGeometricFieldStub ();
|
||||
stub._set_delegate(delegate);
|
||||
return stub;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/IGeometricFieldHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public final class IGeometricFieldHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public FoamXServer.CaseServer.IGeometricField value = null;
|
||||
|
||||
public IGeometricFieldHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public IGeometricFieldHolder (FoamXServer.CaseServer.IGeometricField initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = FoamXServer.CaseServer.IGeometricFieldHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
FoamXServer.CaseServer.IGeometricFieldHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return FoamXServer.CaseServer.IGeometricFieldHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/IGeometricFieldOperations.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public interface IGeometricFieldOperations
|
||||
{
|
||||
String name ();
|
||||
void getInternalFieldValue (FoamXServer.IDictionaryEntryHolder internalFieldValue) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
void getPatchFieldParameters (String patchName, FoamXServer.IDictionaryEntryHolder patchFieldValue) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError;
|
||||
|
||||
// Returns true if this has been modified
|
||||
boolean modified ();
|
||||
} // interface IGeometricFieldOperations
|
||||
@ -0,0 +1,15 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/IGeometryDescriptor.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public interface IGeometryDescriptor extends IGeometryDescriptorOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
} // interface IGeometryDescriptor
|
||||
@ -0,0 +1,72 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/IGeometryDescriptorHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
abstract public class IGeometryDescriptorHelper
|
||||
{
|
||||
private static String _id = "IDL:FoamXServer/CaseServer/IGeometryDescriptor:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, FoamXServer.CaseServer.IGeometryDescriptor that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static FoamXServer.CaseServer.IGeometryDescriptor extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (FoamXServer.CaseServer.IGeometryDescriptorHelper.id (), "IGeometryDescriptor");
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static FoamXServer.CaseServer.IGeometryDescriptor read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
return narrow (istream.read_Object (_IGeometryDescriptorStub.class));
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.CaseServer.IGeometryDescriptor value)
|
||||
{
|
||||
ostream.write_Object ((org.omg.CORBA.Object) value);
|
||||
}
|
||||
|
||||
public static FoamXServer.CaseServer.IGeometryDescriptor narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof FoamXServer.CaseServer.IGeometryDescriptor)
|
||||
return (FoamXServer.CaseServer.IGeometryDescriptor)obj;
|
||||
else if (!obj._is_a (id ()))
|
||||
throw new org.omg.CORBA.BAD_PARAM ();
|
||||
else
|
||||
{
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
|
||||
FoamXServer.CaseServer._IGeometryDescriptorStub stub = new FoamXServer.CaseServer._IGeometryDescriptorStub ();
|
||||
stub._set_delegate(delegate);
|
||||
return stub;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/IGeometryDescriptorHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public final class IGeometryDescriptorHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public FoamXServer.CaseServer.IGeometryDescriptor value = null;
|
||||
|
||||
public IGeometryDescriptorHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public IGeometryDescriptorHolder (FoamXServer.CaseServer.IGeometryDescriptor initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = FoamXServer.CaseServer.IGeometryDescriptorHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
FoamXServer.CaseServer.IGeometryDescriptorHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return FoamXServer.CaseServer.IGeometryDescriptorHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,33 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/IGeometryDescriptorOperations.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public interface IGeometryDescriptorOperations
|
||||
{
|
||||
|
||||
//- Name of geometry type (eg, "volume").
|
||||
String name ();
|
||||
|
||||
//- Name of geometry type (eg, "volume").
|
||||
void name (String newName);
|
||||
|
||||
//- Display name (eg, "Volume").
|
||||
String displayName ();
|
||||
|
||||
//- Display name (eg, "Volume").
|
||||
void displayName (String newDisplayName);
|
||||
|
||||
//- Description (eg, "Finite Volume Geometry").
|
||||
String description ();
|
||||
|
||||
//- Description (eg, "Finite Volume Geometry").
|
||||
void description (String newDescription);
|
||||
} // interface IGeometryDescriptorOperations
|
||||
@ -0,0 +1,15 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/IPatchDescriptor.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public interface IPatchDescriptor extends IPatchDescriptorOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
} // interface IPatchDescriptor
|
||||
@ -0,0 +1,72 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/IPatchDescriptorHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
abstract public class IPatchDescriptorHelper
|
||||
{
|
||||
private static String _id = "IDL:FoamXServer/CaseServer/IPatchDescriptor:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, FoamXServer.CaseServer.IPatchDescriptor that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static FoamXServer.CaseServer.IPatchDescriptor extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (FoamXServer.CaseServer.IPatchDescriptorHelper.id (), "IPatchDescriptor");
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static FoamXServer.CaseServer.IPatchDescriptor read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
return narrow (istream.read_Object (_IPatchDescriptorStub.class));
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.CaseServer.IPatchDescriptor value)
|
||||
{
|
||||
ostream.write_Object ((org.omg.CORBA.Object) value);
|
||||
}
|
||||
|
||||
public static FoamXServer.CaseServer.IPatchDescriptor narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof FoamXServer.CaseServer.IPatchDescriptor)
|
||||
return (FoamXServer.CaseServer.IPatchDescriptor)obj;
|
||||
else if (!obj._is_a (id ()))
|
||||
throw new org.omg.CORBA.BAD_PARAM ();
|
||||
else
|
||||
{
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
|
||||
FoamXServer.CaseServer._IPatchDescriptorStub stub = new FoamXServer.CaseServer._IPatchDescriptorStub ();
|
||||
stub._set_delegate(delegate);
|
||||
return stub;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/IPatchDescriptorHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public final class IPatchDescriptorHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public FoamXServer.CaseServer.IPatchDescriptor value = null;
|
||||
|
||||
public IPatchDescriptorHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public IPatchDescriptorHolder (FoamXServer.CaseServer.IPatchDescriptor initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = FoamXServer.CaseServer.IPatchDescriptorHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
FoamXServer.CaseServer.IPatchDescriptorHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return FoamXServer.CaseServer.IPatchDescriptorHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,33 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/IPatchDescriptorOperations.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public interface IPatchDescriptorOperations
|
||||
{
|
||||
|
||||
//- Name of patch type (eg, "wall").
|
||||
String name ();
|
||||
|
||||
//- Name of patch type (eg, "wall").
|
||||
void name (String newName);
|
||||
|
||||
//- Display name (eg, "Wall").
|
||||
String displayName ();
|
||||
|
||||
//- Display name (eg, "Wall").
|
||||
void displayName (String newDisplayName);
|
||||
|
||||
//- Description (eg, "Solid Wall").
|
||||
String description ();
|
||||
|
||||
//- Description (eg, "Solid Wall").
|
||||
void description (String newDescription);
|
||||
} // interface IPatchDescriptorOperations
|
||||
@ -0,0 +1,15 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/IPatchPhysicalTypeDescriptor.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public interface IPatchPhysicalTypeDescriptor extends IPatchPhysicalTypeDescriptorOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
} // interface IPatchPhysicalTypeDescriptor
|
||||
@ -0,0 +1,72 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/IPatchPhysicalTypeDescriptorHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
abstract public class IPatchPhysicalTypeDescriptorHelper
|
||||
{
|
||||
private static String _id = "IDL:FoamXServer/CaseServer/IPatchPhysicalTypeDescriptor:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, FoamXServer.CaseServer.IPatchPhysicalTypeDescriptor that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static FoamXServer.CaseServer.IPatchPhysicalTypeDescriptor extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (FoamXServer.CaseServer.IPatchPhysicalTypeDescriptorHelper.id (), "IPatchPhysicalTypeDescriptor");
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static FoamXServer.CaseServer.IPatchPhysicalTypeDescriptor read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
return narrow (istream.read_Object (_IPatchPhysicalTypeDescriptorStub.class));
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.CaseServer.IPatchPhysicalTypeDescriptor value)
|
||||
{
|
||||
ostream.write_Object ((org.omg.CORBA.Object) value);
|
||||
}
|
||||
|
||||
public static FoamXServer.CaseServer.IPatchPhysicalTypeDescriptor narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof FoamXServer.CaseServer.IPatchPhysicalTypeDescriptor)
|
||||
return (FoamXServer.CaseServer.IPatchPhysicalTypeDescriptor)obj;
|
||||
else if (!obj._is_a (id ()))
|
||||
throw new org.omg.CORBA.BAD_PARAM ();
|
||||
else
|
||||
{
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
|
||||
FoamXServer.CaseServer._IPatchPhysicalTypeDescriptorStub stub = new FoamXServer.CaseServer._IPatchPhysicalTypeDescriptorStub ();
|
||||
stub._set_delegate(delegate);
|
||||
return stub;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/IPatchPhysicalTypeDescriptorHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public final class IPatchPhysicalTypeDescriptorHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public FoamXServer.CaseServer.IPatchPhysicalTypeDescriptor value = null;
|
||||
|
||||
public IPatchPhysicalTypeDescriptorHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public IPatchPhysicalTypeDescriptorHolder (FoamXServer.CaseServer.IPatchPhysicalTypeDescriptor initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = FoamXServer.CaseServer.IPatchPhysicalTypeDescriptorHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
FoamXServer.CaseServer.IPatchPhysicalTypeDescriptorHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return FoamXServer.CaseServer.IPatchPhysicalTypeDescriptorHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,31 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/IPatchPhysicalTypeDescriptorOperations.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public interface IPatchPhysicalTypeDescriptorOperations
|
||||
{
|
||||
|
||||
//- Patch physical type name (eg, "inlet").
|
||||
String name ();
|
||||
|
||||
//- Patch physical type name (eg, "inlet").
|
||||
void name (String newName);
|
||||
String displayName ();
|
||||
void displayName (String newDisplayName);
|
||||
String description ();
|
||||
void description (String newDescription);
|
||||
String patchType ();
|
||||
void patchType (String newPatchType);
|
||||
String parentType ();
|
||||
void parentType (String newParentType);
|
||||
FoamXServer.StringPair[] patchFieldTypes ();
|
||||
void patchFieldTypes (FoamXServer.StringPair[] newPatchFieldTypes);
|
||||
} // interface IPatchPhysicalTypeDescriptorOperations
|
||||
@ -0,0 +1,624 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/_IApplicationStub.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public class _IApplicationStub extends org.omg.CORBA.portable.ObjectImpl implements FoamXServer.CaseServer.IApplication
|
||||
{
|
||||
|
||||
|
||||
//- Short name for this application class.
|
||||
public String name ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_name", true);
|
||||
$in = _invoke ($out);
|
||||
String $result = $in.read_string ();
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return name ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // name
|
||||
|
||||
|
||||
//- Short name for this application class.
|
||||
public void name (String newName)
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_set_name", true);
|
||||
$out.write_string (newName);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
name (newName );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // name
|
||||
|
||||
|
||||
//- Application class description.
|
||||
public String description ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_description", true);
|
||||
$in = _invoke ($out);
|
||||
String $result = $in.read_string ();
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return description ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // description
|
||||
|
||||
|
||||
//- Application class description.
|
||||
public void description (String newDescription)
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_set_description", true);
|
||||
$out.write_string (newDescription);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
description (newDescription );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // description
|
||||
|
||||
|
||||
//- Application class category.
|
||||
public String category ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_category", true);
|
||||
$in = _invoke ($out);
|
||||
String $result = $in.read_string ();
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return category ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // category
|
||||
|
||||
|
||||
//- Application class category.
|
||||
public void category (String newCategory)
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_set_category", true);
|
||||
$out.write_string (newCategory);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
category (newCategory );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // category
|
||||
|
||||
|
||||
//- List of modules required to pre-process this application class.
|
||||
public String[] modules ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_modules", true);
|
||||
$in = _invoke ($out);
|
||||
String $result[] = FoamXServer.StringListHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return modules ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // modules
|
||||
|
||||
|
||||
//- List of modules required to pre-process this application class.
|
||||
public void modules (String[] newModules)
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_set_modules", true);
|
||||
FoamXServer.StringListHelper.write ($out, newModules);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
modules (newModules );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // modules
|
||||
|
||||
|
||||
//- System or user defined application class.
|
||||
public boolean systemClass ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_systemClass", true);
|
||||
$in = _invoke ($out);
|
||||
boolean $result = $in.read_boolean ();
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return systemClass ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // systemClass
|
||||
|
||||
|
||||
//- List of defined fields.
|
||||
public String[] fields ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_fields", true);
|
||||
$in = _invoke ($out);
|
||||
String $result[] = FoamXServer.StringListHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return fields ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // fields
|
||||
|
||||
public void getField (String fieldName, FoamXServer.CaseServer.IGeometricFieldDescriptorHolder fieldDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("getField", true);
|
||||
$out.write_string (fieldName);
|
||||
$in = _invoke ($out);
|
||||
fieldDescriptor.value = FoamXServer.CaseServer.IGeometricFieldDescriptorHelper.read ($in);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
getField (fieldName, fieldDescriptor );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // getField
|
||||
|
||||
public void findField (String fieldName, FoamXServer.CaseServer.IGeometricFieldDescriptorHolder fieldDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("findField", true);
|
||||
$out.write_string (fieldName);
|
||||
$in = _invoke ($out);
|
||||
fieldDescriptor.value = FoamXServer.CaseServer.IGeometricFieldDescriptorHelper.read ($in);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
findField (fieldName, fieldDescriptor );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // findField
|
||||
|
||||
public void addField (String fieldName, FoamXServer.CaseServer.IGeometricFieldDescriptorHolder fieldDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("addField", true);
|
||||
$out.write_string (fieldName);
|
||||
$in = _invoke ($out);
|
||||
fieldDescriptor.value = FoamXServer.CaseServer.IGeometricFieldDescriptorHelper.read ($in);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
addField (fieldName, fieldDescriptor );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // addField
|
||||
|
||||
public void deleteField (String fieldName) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("deleteField", true);
|
||||
$out.write_string (fieldName);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
deleteField (fieldName );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // deleteField
|
||||
|
||||
|
||||
// Patch physical types.
|
||||
public String[] patchPhysicalTypes ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_patchPhysicalTypes", true);
|
||||
$in = _invoke ($out);
|
||||
String $result[] = FoamXServer.StringListHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return patchPhysicalTypes ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // patchPhysicalTypes
|
||||
|
||||
|
||||
// List of defined patch physical types.
|
||||
public void getPatchPhysicalType (String patchPhysicalTypeName, FoamXServer.CaseServer.IPatchPhysicalTypeDescriptorHolder patchPhysicalTypeDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("getPatchPhysicalType", true);
|
||||
$out.write_string (patchPhysicalTypeName);
|
||||
$in = _invoke ($out);
|
||||
patchPhysicalTypeDescriptor.value = FoamXServer.CaseServer.IPatchPhysicalTypeDescriptorHelper.read ($in);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
getPatchPhysicalType (patchPhysicalTypeName, patchPhysicalTypeDescriptor );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // getPatchPhysicalType
|
||||
|
||||
public void findPatchPhysicalType (String patchPhysicalTypeName, FoamXServer.CaseServer.IPatchPhysicalTypeDescriptorHolder patchPhysicalTypeDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("findPatchPhysicalType", true);
|
||||
$out.write_string (patchPhysicalTypeName);
|
||||
$in = _invoke ($out);
|
||||
patchPhysicalTypeDescriptor.value = FoamXServer.CaseServer.IPatchPhysicalTypeDescriptorHelper.read ($in);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
findPatchPhysicalType (patchPhysicalTypeName, patchPhysicalTypeDescriptor );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // findPatchPhysicalType
|
||||
|
||||
public void addPatchPhysicalType (String patchPhysicalTypeName, FoamXServer.CaseServer.IPatchPhysicalTypeDescriptorHolder patchPhysicalTypeDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("addPatchPhysicalType", true);
|
||||
$out.write_string (patchPhysicalTypeName);
|
||||
$in = _invoke ($out);
|
||||
patchPhysicalTypeDescriptor.value = FoamXServer.CaseServer.IPatchPhysicalTypeDescriptorHelper.read ($in);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
addPatchPhysicalType (patchPhysicalTypeName, patchPhysicalTypeDescriptor );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // addPatchPhysicalType
|
||||
|
||||
public void deletePatchPhysicalType (String patchPhysicalTypeName) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("deletePatchPhysicalType", true);
|
||||
$out.write_string (patchPhysicalTypeName);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
deletePatchPhysicalType (patchPhysicalTypeName );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // deletePatchPhysicalType
|
||||
|
||||
|
||||
// Dictionaries.
|
||||
public String[] dictionaries ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_dictionaries", true);
|
||||
$in = _invoke ($out);
|
||||
String $result[] = FoamXServer.StringListHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return dictionaries ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // dictionaries
|
||||
|
||||
|
||||
// List of defined dictionaries.
|
||||
public void getDictionary (String dictName, FoamXServer.ITypeDescriptorHolder dictTypeDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("getDictionary", true);
|
||||
$out.write_string (dictName);
|
||||
$in = _invoke ($out);
|
||||
dictTypeDescriptor.value = FoamXServer.ITypeDescriptorHelper.read ($in);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
getDictionary (dictName, dictTypeDescriptor );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // getDictionary
|
||||
|
||||
public void addDictionary (String dictName, FoamXServer.ITypeDescriptorHolder dictTypeDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("addDictionary", true);
|
||||
$out.write_string (dictName);
|
||||
$in = _invoke ($out);
|
||||
dictTypeDescriptor.value = FoamXServer.ITypeDescriptorHelper.read ($in);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
addDictionary (dictName, dictTypeDescriptor );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // addDictionary
|
||||
|
||||
public void deleteDictionary (String dictName) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("deleteDictionary", true);
|
||||
$out.write_string (dictName);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
deleteDictionary (dictName );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // deleteDictionary
|
||||
|
||||
|
||||
// Validation.
|
||||
public void validate () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("validate", true);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/ValidationError:1.0"))
|
||||
throw FoamXServer.ValidationErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
validate ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // validate
|
||||
|
||||
|
||||
// Persistence.
|
||||
public void save () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("save", true);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/ValidationError:1.0"))
|
||||
throw FoamXServer.ValidationErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
save ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // save
|
||||
|
||||
// Type-specific CORBA::Object operations
|
||||
private static String[] __ids = {
|
||||
"IDL:FoamXServer/CaseServer/IApplication:1.0"};
|
||||
|
||||
public String[] _ids ()
|
||||
{
|
||||
return (String[])__ids.clone ();
|
||||
}
|
||||
|
||||
private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
|
||||
{
|
||||
String str = s.readUTF ();
|
||||
String[] args = null;
|
||||
java.util.Properties props = null;
|
||||
org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
|
||||
_set_delegate (delegate);
|
||||
}
|
||||
|
||||
private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
|
||||
{
|
||||
String[] args = null;
|
||||
java.util.Properties props = null;
|
||||
String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
|
||||
s.writeUTF (str);
|
||||
}
|
||||
} // class _IApplicationStub
|
||||
@ -0,0 +1,726 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/_ICaseServerStub.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public class _ICaseServerStub extends org.omg.CORBA.portable.ObjectImpl implements FoamXServer.CaseServer.ICaseServer
|
||||
{
|
||||
|
||||
|
||||
// Attributes.
|
||||
public boolean managed ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_managed", true);
|
||||
$in = _invoke ($out);
|
||||
boolean $result = $in.read_boolean ();
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return managed ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // managed
|
||||
|
||||
|
||||
// Attributes.
|
||||
public void managed (boolean newManaged)
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_set_managed", true);
|
||||
$out.write_boolean (newManaged);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
managed (newManaged );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // managed
|
||||
|
||||
public String caseRoot ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_caseRoot", true);
|
||||
$in = _invoke ($out);
|
||||
String $result = $in.read_string ();
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return caseRoot ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // caseRoot
|
||||
|
||||
public String caseName ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_caseName", true);
|
||||
$in = _invoke ($out);
|
||||
String $result = $in.read_string ();
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return caseName ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // caseName
|
||||
|
||||
|
||||
// Application class for this case (read only).
|
||||
public FoamXServer.CaseServer.IApplication application ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_application", true);
|
||||
$in = _invoke ($out);
|
||||
FoamXServer.CaseServer.IApplication $result = FoamXServer.CaseServer.IApplicationHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return application ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // application
|
||||
|
||||
|
||||
// Foam system properties (read only).
|
||||
public FoamXServer.CaseServer.IFoamProperties foamProperties ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_foamProperties", true);
|
||||
$in = _invoke ($out);
|
||||
FoamXServer.CaseServer.IFoamProperties $result = FoamXServer.CaseServer.IFoamPropertiesHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return foamProperties ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // foamProperties
|
||||
|
||||
|
||||
// Time-steps.
|
||||
public String[] availableTimeSteps ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_availableTimeSteps", true);
|
||||
$in = _invoke ($out);
|
||||
String $result[] = FoamXServer.StringListHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return availableTimeSteps ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // availableTimeSteps
|
||||
|
||||
|
||||
// Get current time
|
||||
public String getTime () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("getTime", true);
|
||||
$in = _invoke ($out);
|
||||
String $result = $in.read_string ();
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return getTime ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // getTime
|
||||
|
||||
|
||||
// Set time
|
||||
public void setTime (String timeName, int timeIndex) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("setTime", true);
|
||||
$out.write_string (timeName);
|
||||
$out.write_long (timeIndex);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
setTime (timeName, timeIndex );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // setTime
|
||||
|
||||
|
||||
// Mesh.
|
||||
public boolean meshDefined ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_meshDefined", true);
|
||||
$in = _invoke ($out);
|
||||
boolean $result = $in.read_boolean ();
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return meshDefined ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // meshDefined
|
||||
|
||||
public void readMesh () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("readMesh", true);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
readMesh ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // readMesh
|
||||
|
||||
public void importMesh (String hostName, String rootDir, String caseName) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("importMesh", true);
|
||||
$out.write_string (hostName);
|
||||
$out.write_string (rootDir);
|
||||
$out.write_string (caseName);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
importMesh (hostName, rootDir, caseName );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // importMesh
|
||||
|
||||
|
||||
// Field values.
|
||||
public void getFieldValues (String fieldName, FoamXServer.CaseServer.IGeometricFieldHolder fieldValues) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("getFieldValues", true);
|
||||
$out.write_string (fieldName);
|
||||
$in = _invoke ($out);
|
||||
fieldValues.value = FoamXServer.CaseServer.IGeometricFieldHelper.read ($in);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
getFieldValues (fieldName, fieldValues );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // getFieldValues
|
||||
|
||||
|
||||
// Patches.
|
||||
public String[] patchNames ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_patchNames", true);
|
||||
$in = _invoke ($out);
|
||||
String $result[] = FoamXServer.StringListHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return patchNames ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // patchNames
|
||||
|
||||
public void addPatch (String patchName, String patchPhysicalType) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("addPatch", true);
|
||||
$out.write_string (patchName);
|
||||
$out.write_string (patchPhysicalType);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
addPatch (patchName, patchPhysicalType );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // addPatch
|
||||
|
||||
public void deletePatch (String patchName) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("deletePatch", true);
|
||||
$out.write_string (patchName);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
deletePatch (patchName );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // deletePatch
|
||||
|
||||
public void deleteAllPatches () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("deleteAllPatches", true);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
deleteAllPatches ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // deleteAllPatches
|
||||
|
||||
|
||||
// Patch physical type
|
||||
public void setPatchPhysicalType (String patchName, String patchPhysicalType) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("setPatchPhysicalType", true);
|
||||
$out.write_string (patchName);
|
||||
$out.write_string (patchPhysicalType);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
setPatchPhysicalType (patchName, patchPhysicalType );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // setPatchPhysicalType
|
||||
|
||||
public void getPatchPhysicalType (String patchName, org.omg.CORBA.StringHolder patchPhysicalType) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("getPatchPhysicalType", true);
|
||||
$out.write_string (patchName);
|
||||
$in = _invoke ($out);
|
||||
patchPhysicalType.value = $in.read_string ();
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
getPatchPhysicalType (patchName, patchPhysicalType );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // getPatchPhysicalType
|
||||
|
||||
|
||||
// Dictionaries.
|
||||
public void getDictionary (String dictionaryName, boolean forceRead, FoamXServer.IDictionaryEntryHolder dictRoot) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("getDictionary", true);
|
||||
$out.write_string (dictionaryName);
|
||||
$out.write_boolean (forceRead);
|
||||
$in = _invoke ($out);
|
||||
dictRoot.value = FoamXServer.IDictionaryEntryHelper.read ($in);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
getDictionary (dictionaryName, forceRead, dictRoot );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // getDictionary
|
||||
|
||||
public void readFile (String name, org.omg.CORBA.StringHolder contents) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("readFile", true);
|
||||
$out.write_string (name);
|
||||
$in = _invoke ($out);
|
||||
contents.value = $in.read_string ();
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
readFile (name, contents );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // readFile
|
||||
|
||||
public void writeFile (String name, String contents) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("writeFile", true);
|
||||
$out.write_string (name);
|
||||
$out.write_string (contents);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
writeFile (name, contents );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // writeFile
|
||||
|
||||
|
||||
// Get modification date
|
||||
public int fileModificationDate (String fileName) throws FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("fileModificationDate", true);
|
||||
$out.write_string (fileName);
|
||||
$in = _invoke ($out);
|
||||
int $result = $in.read_long ();
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return fileModificationDate (fileName );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // fileModificationDate
|
||||
|
||||
|
||||
//- Calculation control.
|
||||
public int runCase (String arguments) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("runCase", true);
|
||||
$out.write_string (arguments);
|
||||
$in = _invoke ($out);
|
||||
int $result = $in.read_long ();
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return runCase (arguments );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // runCase
|
||||
|
||||
public void killCase () throws FoamXServer.FoamXError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("killCase", true);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
killCase ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // killCase
|
||||
|
||||
|
||||
//- Validation.
|
||||
public void validate () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("validate", true);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/ValidationError:1.0"))
|
||||
throw FoamXServer.ValidationErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
validate ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // validate
|
||||
|
||||
|
||||
// Returns true if this has been modified
|
||||
public boolean modified ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("modified", true);
|
||||
$in = _invoke ($out);
|
||||
boolean $result = $in.read_boolean ();
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return modified ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // modified
|
||||
|
||||
|
||||
//- Persistence.
|
||||
public void save () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("save", true);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/ValidationError:1.0"))
|
||||
throw FoamXServer.ValidationErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
save ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // save
|
||||
|
||||
|
||||
//- Lifetime management.
|
||||
public void close ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("close", false);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
close ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // close
|
||||
|
||||
// Type-specific CORBA::Object operations
|
||||
private static String[] __ids = {
|
||||
"IDL:FoamXServer/CaseServer/ICaseServer:1.0"};
|
||||
|
||||
public String[] _ids ()
|
||||
{
|
||||
return (String[])__ids.clone ();
|
||||
}
|
||||
|
||||
private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
|
||||
{
|
||||
String str = s.readUTF ();
|
||||
String[] args = null;
|
||||
java.util.Properties props = null;
|
||||
org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
|
||||
_set_delegate (delegate);
|
||||
}
|
||||
|
||||
private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
|
||||
{
|
||||
String[] args = null;
|
||||
java.util.Properties props = null;
|
||||
String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
|
||||
s.writeUTF (str);
|
||||
}
|
||||
} // class _ICaseServerStub
|
||||
@ -0,0 +1,662 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/_IFoamPropertiesStub.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public class _IFoamPropertiesStub extends org.omg.CORBA.portable.ObjectImpl implements FoamXServer.CaseServer.IFoamProperties
|
||||
{
|
||||
|
||||
|
||||
//- Attributes.
|
||||
public String[] availableModules ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_availableModules", true);
|
||||
$in = _invoke ($out);
|
||||
String $result[] = FoamXServer.StringListHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return availableModules ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // availableModules
|
||||
|
||||
|
||||
//- Root directories to search for cases.
|
||||
public String[] rootDirectories ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_rootDirectories", true);
|
||||
$in = _invoke ($out);
|
||||
String $result[] = FoamXServer.StringListHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return rootDirectories ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // rootDirectories
|
||||
|
||||
|
||||
//- Unexpanded form of rootDirectories.
|
||||
public String[] rawRootDirectories ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_rawRootDirectories", true);
|
||||
$in = _invoke ($out);
|
||||
String $result[] = FoamXServer.StringListHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return rawRootDirectories ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // rawRootDirectories
|
||||
|
||||
public void addRootDirectory (String rawRootDir) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("addRootDirectory", true);
|
||||
$out.write_string (rawRootDir);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
addRootDirectory (rawRootDir );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // addRootDirectory
|
||||
|
||||
public void deleteRootDirectory (String rawRootDir) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("deleteRootDirectory", true);
|
||||
$out.write_string (rawRootDir);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
deleteRootDirectory (rawRootDir );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // deleteRootDirectory
|
||||
|
||||
|
||||
// Foam types.
|
||||
public String[] foamTypes ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_foamTypes", true);
|
||||
$in = _invoke ($out);
|
||||
String $result[] = FoamXServer.StringListHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return foamTypes ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // foamTypes
|
||||
|
||||
public void getFoamType (String foamTypeName, FoamXServer.ITypeDescriptorHolder typeDesc) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("getFoamType", true);
|
||||
$out.write_string (foamTypeName);
|
||||
$in = _invoke ($out);
|
||||
typeDesc.value = FoamXServer.ITypeDescriptorHelper.read ($in);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
getFoamType (foamTypeName, typeDesc );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // getFoamType
|
||||
|
||||
|
||||
// Geometry types.
|
||||
public String[] geometryTypes ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_geometryTypes", true);
|
||||
$in = _invoke ($out);
|
||||
String $result[] = FoamXServer.StringListHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return geometryTypes ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // geometryTypes
|
||||
|
||||
public void getGeometryType (String geometryTypeName, FoamXServer.CaseServer.IGeometryDescriptorHolder geometryDesc) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("getGeometryType", true);
|
||||
$out.write_string (geometryTypeName);
|
||||
$in = _invoke ($out);
|
||||
geometryDesc.value = FoamXServer.CaseServer.IGeometryDescriptorHelper.read ($in);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
getGeometryType (geometryTypeName, geometryDesc );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // getGeometryType
|
||||
|
||||
|
||||
// Patch types.
|
||||
public String[] patchTypes ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_patchTypes", true);
|
||||
$in = _invoke ($out);
|
||||
String $result[] = FoamXServer.StringListHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return patchTypes ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // patchTypes
|
||||
|
||||
public void getPatchType (String patchTypeName, FoamXServer.CaseServer.IPatchDescriptorHolder patchDesc) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("getPatchType", true);
|
||||
$out.write_string (patchTypeName);
|
||||
$in = _invoke ($out);
|
||||
patchDesc.value = FoamXServer.CaseServer.IPatchDescriptorHelper.read ($in);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
getPatchType (patchTypeName, patchDesc );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // getPatchType
|
||||
|
||||
public void findPatchType (String patchTypeName, FoamXServer.CaseServer.IPatchDescriptorHolder patchDesc) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("findPatchType", true);
|
||||
$out.write_string (patchTypeName);
|
||||
$in = _invoke ($out);
|
||||
patchDesc.value = FoamXServer.CaseServer.IPatchDescriptorHelper.read ($in);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
findPatchType (patchTypeName, patchDesc );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // findPatchType
|
||||
|
||||
|
||||
// Patch field types.
|
||||
public String[] patchFieldTypes ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_patchFieldTypes", true);
|
||||
$in = _invoke ($out);
|
||||
String $result[] = FoamXServer.StringListHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return patchFieldTypes ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // patchFieldTypes
|
||||
|
||||
public void getPatchFieldType (String patchFieldTypeName, FoamXServer.ITypeDescriptorHolder patchFieldDesc) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("getPatchFieldType", true);
|
||||
$out.write_string (patchFieldTypeName);
|
||||
$in = _invoke ($out);
|
||||
patchFieldDesc.value = FoamXServer.ITypeDescriptorHelper.read ($in);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
getPatchFieldType (patchFieldTypeName, patchFieldDesc );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // getPatchFieldType
|
||||
|
||||
public void findPatchFieldType (String patchFieldTypeName, FoamXServer.ITypeDescriptorHolder patchFieldDesc) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("findPatchFieldType", true);
|
||||
$out.write_string (patchFieldTypeName);
|
||||
$in = _invoke ($out);
|
||||
patchFieldDesc.value = FoamXServer.ITypeDescriptorHelper.read ($in);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
findPatchFieldType (patchFieldTypeName, patchFieldDesc );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // findPatchFieldType
|
||||
|
||||
|
||||
// FOAM controlDict
|
||||
public void getFoamControlDict (FoamXServer.IDictionaryEntryHolder controlDict) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("getFoamControlDict", true);
|
||||
$in = _invoke ($out);
|
||||
controlDict.value = FoamXServer.IDictionaryEntryHelper.read ($in);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
getFoamControlDict (controlDict );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // getFoamControlDict
|
||||
|
||||
|
||||
// Application classes.
|
||||
public FoamXServer.ApplicationDescriptor[] applicationes ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_applicationes", true);
|
||||
$in = _invoke ($out);
|
||||
FoamXServer.ApplicationDescriptor $result[] = FoamXServer.ApplicationDescriptorListHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return applicationes ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // applicationes
|
||||
|
||||
public void getApplication (String appName, FoamXServer.CaseServer.IApplicationHolder app) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("getApplication", true);
|
||||
$out.write_string (appName);
|
||||
$in = _invoke ($out);
|
||||
app.value = FoamXServer.CaseServer.IApplicationHelper.read ($in);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
getApplication (appName, app );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // getApplication
|
||||
|
||||
public void addApplication (String appName, FoamXServer.CaseServer.IApplicationHolder app) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("addApplication", true);
|
||||
$out.write_string (appName);
|
||||
$in = _invoke ($out);
|
||||
app.value = FoamXServer.CaseServer.IApplicationHelper.read ($in);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
addApplication (appName, app );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // addApplication
|
||||
|
||||
public void deleteApplication (String appName) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("deleteApplication", true);
|
||||
$out.write_string (appName);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
deleteApplication (appName );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // deleteApplication
|
||||
|
||||
public void cloneApplication (String appNameSrc, String appNameDest, String appDestPath, FoamXServer.CaseServer.IApplicationHolder app) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("cloneApplication", true);
|
||||
$out.write_string (appNameSrc);
|
||||
$out.write_string (appNameDest);
|
||||
$out.write_string (appDestPath);
|
||||
$in = _invoke ($out);
|
||||
app.value = FoamXServer.CaseServer.IApplicationHelper.read ($in);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
cloneApplication (appNameSrc, appNameDest, appDestPath, app );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // cloneApplication
|
||||
|
||||
|
||||
// Foam utilities.
|
||||
public FoamXServer.ApplicationDescriptor[] utilities ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_utilities", true);
|
||||
$in = _invoke ($out);
|
||||
FoamXServer.ApplicationDescriptor $result[] = FoamXServer.ApplicationDescriptorListHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return utilities ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // utilities
|
||||
|
||||
public void getUtilityControlDict (String utilityName, String rootDir, String caseName, FoamXServer.IDictionaryEntryHolder controlDict) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("getUtilityControlDict", true);
|
||||
$out.write_string (utilityName);
|
||||
$out.write_string (rootDir);
|
||||
$out.write_string (caseName);
|
||||
$in = _invoke ($out);
|
||||
controlDict.value = FoamXServer.IDictionaryEntryHelper.read ($in);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
getUtilityControlDict (utilityName, rootDir, caseName, controlDict );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // getUtilityControlDict
|
||||
|
||||
|
||||
//- Validation.
|
||||
public void validate () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("validate", true);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/ValidationError:1.0"))
|
||||
throw FoamXServer.ValidationErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
validate ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // validate
|
||||
|
||||
|
||||
//- Persistence.
|
||||
public void saveSystemProperties () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("saveSystemProperties", true);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/ValidationError:1.0"))
|
||||
throw FoamXServer.ValidationErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
saveSystemProperties ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // saveSystemProperties
|
||||
|
||||
public void saveUserProperties () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("saveUserProperties", true);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/ValidationError:1.0"))
|
||||
throw FoamXServer.ValidationErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
saveUserProperties ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // saveUserProperties
|
||||
|
||||
// Type-specific CORBA::Object operations
|
||||
private static String[] __ids = {
|
||||
"IDL:FoamXServer/CaseServer/IFoamProperties:1.0"};
|
||||
|
||||
public String[] _ids ()
|
||||
{
|
||||
return (String[])__ids.clone ();
|
||||
}
|
||||
|
||||
private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
|
||||
{
|
||||
String str = s.readUTF ();
|
||||
String[] args = null;
|
||||
java.util.Properties props = null;
|
||||
org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
|
||||
_set_delegate (delegate);
|
||||
}
|
||||
|
||||
private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
|
||||
{
|
||||
String[] args = null;
|
||||
java.util.Properties props = null;
|
||||
String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
|
||||
s.writeUTF (str);
|
||||
}
|
||||
} // class _IFoamPropertiesStub
|
||||
@ -0,0 +1,309 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/_IGeometricFieldDescriptorStub.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public class _IGeometricFieldDescriptorStub extends org.omg.CORBA.portable.ObjectImpl implements FoamXServer.CaseServer.IGeometricFieldDescriptor
|
||||
{
|
||||
|
||||
public FoamXServer.ITypeDescriptor typeDescriptor ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_typeDescriptor", true);
|
||||
$in = _invoke ($out);
|
||||
FoamXServer.ITypeDescriptor $result = FoamXServer.ITypeDescriptorHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return typeDescriptor ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // typeDescriptor
|
||||
|
||||
public FoamXServer.ITypeDescriptor fieldTypeDescriptor ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_fieldTypeDescriptor", true);
|
||||
$in = _invoke ($out);
|
||||
FoamXServer.ITypeDescriptor $result = FoamXServer.ITypeDescriptorHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return fieldTypeDescriptor ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // fieldTypeDescriptor
|
||||
|
||||
public FoamXServer.CaseServer.IGeometryDescriptor geometryDescriptor ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_geometryDescriptor", true);
|
||||
$in = _invoke ($out);
|
||||
FoamXServer.CaseServer.IGeometryDescriptor $result = FoamXServer.CaseServer.IGeometryDescriptorHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return geometryDescriptor ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // geometryDescriptor
|
||||
|
||||
|
||||
//- Field name (eg, "p").
|
||||
public String name ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_name", true);
|
||||
$in = _invoke ($out);
|
||||
String $result = $in.read_string ();
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return name ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // name
|
||||
|
||||
|
||||
//- Field name (eg, "p").
|
||||
public void name (String newName)
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_set_name", true);
|
||||
$out.write_string (newName);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
name (newName );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // name
|
||||
|
||||
|
||||
//- Field description (eg, "Pressure").
|
||||
public String description ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_description", true);
|
||||
$in = _invoke ($out);
|
||||
String $result = $in.read_string ();
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return description ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // description
|
||||
|
||||
|
||||
//- Field description (eg, "Pressure").
|
||||
public void description (String newDescription)
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_set_description", true);
|
||||
$out.write_string (newDescription);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
description (newDescription );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // description
|
||||
|
||||
|
||||
//- Field type name (eg, "scalar").
|
||||
public String fieldTypeName ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_fieldTypeName", true);
|
||||
$in = _invoke ($out);
|
||||
String $result = $in.read_string ();
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return fieldTypeName ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // fieldTypeName
|
||||
|
||||
|
||||
//- Field type name (eg, "scalar").
|
||||
public void fieldTypeName (String newFieldTypeName)
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_set_fieldTypeName", true);
|
||||
$out.write_string (newFieldTypeName);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
fieldTypeName (newFieldTypeName );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // fieldTypeName
|
||||
|
||||
|
||||
//- Geometry type name (eg, "vol").
|
||||
public String geometryTypeName ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_geometryTypeName", true);
|
||||
$in = _invoke ($out);
|
||||
String $result = $in.read_string ();
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return geometryTypeName ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // geometryTypeName
|
||||
|
||||
|
||||
//- Geometry type name (eg, "vol").
|
||||
public void geometryTypeName (String newGeometryTypeName)
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_set_geometryTypeName", true);
|
||||
$out.write_string (newGeometryTypeName);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
geometryTypeName (newGeometryTypeName );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // geometryTypeName
|
||||
|
||||
|
||||
//- Field dimensions.
|
||||
public FoamXServer.DimensionSet dimensions ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_dimensions", true);
|
||||
$in = _invoke ($out);
|
||||
FoamXServer.DimensionSet $result = FoamXServer.DimensionSetHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return dimensions ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // dimensions
|
||||
|
||||
|
||||
//- Field dimensions.
|
||||
public void dimensions (FoamXServer.DimensionSet newDimensions)
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_set_dimensions", true);
|
||||
FoamXServer.DimensionSetHelper.write ($out, newDimensions);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
dimensions (newDimensions );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // dimensions
|
||||
|
||||
// Type-specific CORBA::Object operations
|
||||
private static String[] __ids = {
|
||||
"IDL:FoamXServer/CaseServer/IGeometricFieldDescriptor:1.0"};
|
||||
|
||||
public String[] _ids ()
|
||||
{
|
||||
return (String[])__ids.clone ();
|
||||
}
|
||||
|
||||
private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
|
||||
{
|
||||
String str = s.readUTF ();
|
||||
String[] args = null;
|
||||
java.util.Properties props = null;
|
||||
org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
|
||||
_set_delegate (delegate);
|
||||
}
|
||||
|
||||
private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
|
||||
{
|
||||
String[] args = null;
|
||||
java.util.Properties props = null;
|
||||
String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
|
||||
s.writeUTF (str);
|
||||
}
|
||||
} // class _IGeometricFieldDescriptorStub
|
||||
@ -0,0 +1,131 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/_IGeometricFieldStub.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public class _IGeometricFieldStub extends org.omg.CORBA.portable.ObjectImpl implements FoamXServer.CaseServer.IGeometricField
|
||||
{
|
||||
|
||||
public String name ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_name", true);
|
||||
$in = _invoke ($out);
|
||||
String $result = $in.read_string ();
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return name ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // name
|
||||
|
||||
public void getInternalFieldValue (FoamXServer.IDictionaryEntryHolder internalFieldValue) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("getInternalFieldValue", true);
|
||||
$in = _invoke ($out);
|
||||
internalFieldValue.value = FoamXServer.IDictionaryEntryHelper.read ($in);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
getInternalFieldValue (internalFieldValue );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // getInternalFieldValue
|
||||
|
||||
public void getPatchFieldParameters (String patchName, FoamXServer.IDictionaryEntryHolder patchFieldValue) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("getPatchFieldParameters", true);
|
||||
$out.write_string (patchName);
|
||||
$in = _invoke ($out);
|
||||
patchFieldValue.value = FoamXServer.IDictionaryEntryHelper.read ($in);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
getPatchFieldParameters (patchName, patchFieldValue );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // getPatchFieldParameters
|
||||
|
||||
|
||||
// Returns true if this has been modified
|
||||
public boolean modified ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("modified", true);
|
||||
$in = _invoke ($out);
|
||||
boolean $result = $in.read_boolean ();
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return modified ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // modified
|
||||
|
||||
// Type-specific CORBA::Object operations
|
||||
private static String[] __ids = {
|
||||
"IDL:FoamXServer/CaseServer/IGeometricField:1.0"};
|
||||
|
||||
public String[] _ids ()
|
||||
{
|
||||
return (String[])__ids.clone ();
|
||||
}
|
||||
|
||||
private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
|
||||
{
|
||||
String str = s.readUTF ();
|
||||
String[] args = null;
|
||||
java.util.Properties props = null;
|
||||
org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
|
||||
_set_delegate (delegate);
|
||||
}
|
||||
|
||||
private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
|
||||
{
|
||||
String[] args = null;
|
||||
java.util.Properties props = null;
|
||||
String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
|
||||
s.writeUTF (str);
|
||||
}
|
||||
} // class _IGeometricFieldStub
|
||||
@ -0,0 +1,168 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/_IGeometryDescriptorStub.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public class _IGeometryDescriptorStub extends org.omg.CORBA.portable.ObjectImpl implements FoamXServer.CaseServer.IGeometryDescriptor
|
||||
{
|
||||
|
||||
|
||||
//- Name of geometry type (eg, "volume").
|
||||
public String name ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_name", true);
|
||||
$in = _invoke ($out);
|
||||
String $result = $in.read_string ();
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return name ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // name
|
||||
|
||||
|
||||
//- Name of geometry type (eg, "volume").
|
||||
public void name (String newName)
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_set_name", true);
|
||||
$out.write_string (newName);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
name (newName );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // name
|
||||
|
||||
|
||||
//- Display name (eg, "Volume").
|
||||
public String displayName ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_displayName", true);
|
||||
$in = _invoke ($out);
|
||||
String $result = $in.read_string ();
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return displayName ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // displayName
|
||||
|
||||
|
||||
//- Display name (eg, "Volume").
|
||||
public void displayName (String newDisplayName)
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_set_displayName", true);
|
||||
$out.write_string (newDisplayName);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
displayName (newDisplayName );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // displayName
|
||||
|
||||
|
||||
//- Description (eg, "Finite Volume Geometry").
|
||||
public String description ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_description", true);
|
||||
$in = _invoke ($out);
|
||||
String $result = $in.read_string ();
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return description ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // description
|
||||
|
||||
|
||||
//- Description (eg, "Finite Volume Geometry").
|
||||
public void description (String newDescription)
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_set_description", true);
|
||||
$out.write_string (newDescription);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
description (newDescription );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // description
|
||||
|
||||
// Type-specific CORBA::Object operations
|
||||
private static String[] __ids = {
|
||||
"IDL:FoamXServer/CaseServer/IGeometryDescriptor:1.0"};
|
||||
|
||||
public String[] _ids ()
|
||||
{
|
||||
return (String[])__ids.clone ();
|
||||
}
|
||||
|
||||
private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
|
||||
{
|
||||
String str = s.readUTF ();
|
||||
String[] args = null;
|
||||
java.util.Properties props = null;
|
||||
org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
|
||||
_set_delegate (delegate);
|
||||
}
|
||||
|
||||
private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
|
||||
{
|
||||
String[] args = null;
|
||||
java.util.Properties props = null;
|
||||
String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
|
||||
s.writeUTF (str);
|
||||
}
|
||||
} // class _IGeometryDescriptorStub
|
||||
@ -0,0 +1,168 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/_IPatchDescriptorStub.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public class _IPatchDescriptorStub extends org.omg.CORBA.portable.ObjectImpl implements FoamXServer.CaseServer.IPatchDescriptor
|
||||
{
|
||||
|
||||
|
||||
//- Name of patch type (eg, "wall").
|
||||
public String name ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_name", true);
|
||||
$in = _invoke ($out);
|
||||
String $result = $in.read_string ();
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return name ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // name
|
||||
|
||||
|
||||
//- Name of patch type (eg, "wall").
|
||||
public void name (String newName)
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_set_name", true);
|
||||
$out.write_string (newName);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
name (newName );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // name
|
||||
|
||||
|
||||
//- Display name (eg, "Wall").
|
||||
public String displayName ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_displayName", true);
|
||||
$in = _invoke ($out);
|
||||
String $result = $in.read_string ();
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return displayName ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // displayName
|
||||
|
||||
|
||||
//- Display name (eg, "Wall").
|
||||
public void displayName (String newDisplayName)
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_set_displayName", true);
|
||||
$out.write_string (newDisplayName);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
displayName (newDisplayName );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // displayName
|
||||
|
||||
|
||||
//- Description (eg, "Solid Wall").
|
||||
public String description ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_description", true);
|
||||
$in = _invoke ($out);
|
||||
String $result = $in.read_string ();
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return description ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // description
|
||||
|
||||
|
||||
//- Description (eg, "Solid Wall").
|
||||
public void description (String newDescription)
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_set_description", true);
|
||||
$out.write_string (newDescription);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
description (newDescription );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // description
|
||||
|
||||
// Type-specific CORBA::Object operations
|
||||
private static String[] __ids = {
|
||||
"IDL:FoamXServer/CaseServer/IPatchDescriptor:1.0"};
|
||||
|
||||
public String[] _ids ()
|
||||
{
|
||||
return (String[])__ids.clone ();
|
||||
}
|
||||
|
||||
private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
|
||||
{
|
||||
String str = s.readUTF ();
|
||||
String[] args = null;
|
||||
java.util.Properties props = null;
|
||||
org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
|
||||
_set_delegate (delegate);
|
||||
}
|
||||
|
||||
private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
|
||||
{
|
||||
String[] args = null;
|
||||
java.util.Properties props = null;
|
||||
String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
|
||||
s.writeUTF (str);
|
||||
}
|
||||
} // class _IPatchDescriptorStub
|
||||
@ -0,0 +1,274 @@
|
||||
package FoamXServer.CaseServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/CaseServer/_IPatchPhysicalTypeDescriptorStub.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public class _IPatchPhysicalTypeDescriptorStub extends org.omg.CORBA.portable.ObjectImpl implements FoamXServer.CaseServer.IPatchPhysicalTypeDescriptor
|
||||
{
|
||||
|
||||
|
||||
//- Patch physical type name (eg, "inlet").
|
||||
public String name ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_name", true);
|
||||
$in = _invoke ($out);
|
||||
String $result = $in.read_string ();
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return name ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // name
|
||||
|
||||
|
||||
//- Patch physical type name (eg, "inlet").
|
||||
public void name (String newName)
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_set_name", true);
|
||||
$out.write_string (newName);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
name (newName );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // name
|
||||
|
||||
public String displayName ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_displayName", true);
|
||||
$in = _invoke ($out);
|
||||
String $result = $in.read_string ();
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return displayName ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // displayName
|
||||
|
||||
public void displayName (String newDisplayName)
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_set_displayName", true);
|
||||
$out.write_string (newDisplayName);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
displayName (newDisplayName );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // displayName
|
||||
|
||||
public String description ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_description", true);
|
||||
$in = _invoke ($out);
|
||||
String $result = $in.read_string ();
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return description ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // description
|
||||
|
||||
public void description (String newDescription)
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_set_description", true);
|
||||
$out.write_string (newDescription);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
description (newDescription );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // description
|
||||
|
||||
public String patchType ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_patchType", true);
|
||||
$in = _invoke ($out);
|
||||
String $result = $in.read_string ();
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return patchType ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // patchType
|
||||
|
||||
public void patchType (String newPatchType)
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_set_patchType", true);
|
||||
$out.write_string (newPatchType);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
patchType (newPatchType );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // patchType
|
||||
|
||||
public String parentType ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_parentType", true);
|
||||
$in = _invoke ($out);
|
||||
String $result = $in.read_string ();
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return parentType ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // parentType
|
||||
|
||||
public void parentType (String newParentType)
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_set_parentType", true);
|
||||
$out.write_string (newParentType);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
parentType (newParentType );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // parentType
|
||||
|
||||
public FoamXServer.StringPair[] patchFieldTypes ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_patchFieldTypes", true);
|
||||
$in = _invoke ($out);
|
||||
FoamXServer.StringPair $result[] = FoamXServer.StringPairListHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return patchFieldTypes ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // patchFieldTypes
|
||||
|
||||
public void patchFieldTypes (FoamXServer.StringPair[] newPatchFieldTypes)
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_set_patchFieldTypes", true);
|
||||
FoamXServer.StringPairListHelper.write ($out, newPatchFieldTypes);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
patchFieldTypes (newPatchFieldTypes );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // patchFieldTypes
|
||||
|
||||
// Type-specific CORBA::Object operations
|
||||
private static String[] __ids = {
|
||||
"IDL:FoamXServer/CaseServer/IPatchPhysicalTypeDescriptor:1.0"};
|
||||
|
||||
public String[] _ids ()
|
||||
{
|
||||
return (String[])__ids.clone ();
|
||||
}
|
||||
|
||||
private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
|
||||
{
|
||||
String str = s.readUTF ();
|
||||
String[] args = null;
|
||||
java.util.Properties props = null;
|
||||
org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
|
||||
_set_delegate (delegate);
|
||||
}
|
||||
|
||||
private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
|
||||
{
|
||||
String[] args = null;
|
||||
java.util.Properties props = null;
|
||||
String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
|
||||
s.writeUTF (str);
|
||||
}
|
||||
} // class _IPatchPhysicalTypeDescriptorStub
|
||||
@ -0,0 +1,62 @@
|
||||
package FoamXServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/DictionaryEntryListHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
abstract public class DictionaryEntryListHelper
|
||||
{
|
||||
private static String _id = "IDL:FoamXServer/DictionaryEntryList:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, FoamXServer.IDictionaryEntry[] that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static FoamXServer.IDictionaryEntry[] extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = FoamXServer.IDictionaryEntryHelper.type ();
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (FoamXServer.DictionaryEntryListHelper.id (), "DictionaryEntryList", __typeCode);
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static FoamXServer.IDictionaryEntry[] read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
FoamXServer.IDictionaryEntry value[] = null;
|
||||
int _len0 = istream.read_long ();
|
||||
value = new FoamXServer.IDictionaryEntry[_len0];
|
||||
for (int _o1 = 0;_o1 < value.length; ++_o1)
|
||||
value[_o1] = FoamXServer.IDictionaryEntryHelper.read (istream);
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.IDictionaryEntry[] value)
|
||||
{
|
||||
ostream.write_long (value.length);
|
||||
for (int _i0 = 0;_i0 < value.length; ++_i0)
|
||||
FoamXServer.IDictionaryEntryHelper.write (ostream, value[_i0]);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,39 @@
|
||||
package FoamXServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/DictionaryEntryListHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
public final class DictionaryEntryListHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public FoamXServer.IDictionaryEntry value[] = null;
|
||||
|
||||
public DictionaryEntryListHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public DictionaryEntryListHolder (FoamXServer.IDictionaryEntry[] initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = FoamXServer.DictionaryEntryListHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
FoamXServer.DictionaryEntryListHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return FoamXServer.DictionaryEntryListHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,48 @@
|
||||
package FoamXServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/DimensionSet.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
public final class DimensionSet implements org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
public double mass = (double)0;
|
||||
|
||||
// Kilogramme Kg.
|
||||
public double length = (double)0;
|
||||
|
||||
// meter m.
|
||||
public double time = (double)0;
|
||||
|
||||
// second s.
|
||||
public double temperature = (double)0;
|
||||
|
||||
// Kelvin K.
|
||||
public double moles = (double)0;
|
||||
|
||||
// mole mol.
|
||||
public double current = (double)0;
|
||||
|
||||
// Ampere Amp.
|
||||
public double luminousIntensity = (double)0;
|
||||
|
||||
public DimensionSet ()
|
||||
{
|
||||
} // ctor
|
||||
|
||||
public DimensionSet (double _mass, double _length, double _time, double _temperature, double _moles, double _current, double _luminousIntensity)
|
||||
{
|
||||
mass = _mass;
|
||||
length = _length;
|
||||
time = _time;
|
||||
temperature = _temperature;
|
||||
moles = _moles;
|
||||
current = _current;
|
||||
luminousIntensity = _luminousIntensity;
|
||||
} // ctor
|
||||
|
||||
} // class DimensionSet
|
||||
@ -0,0 +1,117 @@
|
||||
package FoamXServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/DimensionSetHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
abstract public class DimensionSetHelper
|
||||
{
|
||||
private static String _id = "IDL:FoamXServer/DimensionSet:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, FoamXServer.DimensionSet that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static FoamXServer.DimensionSet extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
private static boolean __active = false;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
synchronized (org.omg.CORBA.TypeCode.class)
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
if (__active)
|
||||
{
|
||||
return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
|
||||
}
|
||||
__active = true;
|
||||
org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [7];
|
||||
org.omg.CORBA.TypeCode _tcOf_members0 = null;
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_double);
|
||||
_members0[0] = new org.omg.CORBA.StructMember (
|
||||
"mass",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_double);
|
||||
_members0[1] = new org.omg.CORBA.StructMember (
|
||||
"length",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_double);
|
||||
_members0[2] = new org.omg.CORBA.StructMember (
|
||||
"time",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_double);
|
||||
_members0[3] = new org.omg.CORBA.StructMember (
|
||||
"temperature",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_double);
|
||||
_members0[4] = new org.omg.CORBA.StructMember (
|
||||
"moles",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_double);
|
||||
_members0[5] = new org.omg.CORBA.StructMember (
|
||||
"current",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_double);
|
||||
_members0[6] = new org.omg.CORBA.StructMember (
|
||||
"luminousIntensity",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_struct_tc (FoamXServer.DimensionSetHelper.id (), "DimensionSet", _members0);
|
||||
__active = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static FoamXServer.DimensionSet read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
FoamXServer.DimensionSet value = new FoamXServer.DimensionSet ();
|
||||
value.mass = istream.read_double ();
|
||||
value.length = istream.read_double ();
|
||||
value.time = istream.read_double ();
|
||||
value.temperature = istream.read_double ();
|
||||
value.moles = istream.read_double ();
|
||||
value.current = istream.read_double ();
|
||||
value.luminousIntensity = istream.read_double ();
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.DimensionSet value)
|
||||
{
|
||||
ostream.write_double (value.mass);
|
||||
ostream.write_double (value.length);
|
||||
ostream.write_double (value.time);
|
||||
ostream.write_double (value.temperature);
|
||||
ostream.write_double (value.moles);
|
||||
ostream.write_double (value.current);
|
||||
ostream.write_double (value.luminousIntensity);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,38 @@
|
||||
package FoamXServer;
|
||||
|
||||
/**
|
||||
* FoamXServer/DimensionSetHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
public final class DimensionSetHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public FoamXServer.DimensionSet value = null;
|
||||
|
||||
public DimensionSetHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public DimensionSetHolder (FoamXServer.DimensionSet initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = FoamXServer.DimensionSetHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
FoamXServer.DimensionSetHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return FoamXServer.DimensionSetHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package FoamXServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/DimensionSetListHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
abstract public class DimensionSetListHelper
|
||||
{
|
||||
private static String _id = "IDL:FoamXServer/DimensionSetList:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, FoamXServer.DimensionSet[] that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static FoamXServer.DimensionSet[] extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = FoamXServer.DimensionSetHelper.type ();
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (FoamXServer.DimensionSetListHelper.id (), "DimensionSetList", __typeCode);
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static FoamXServer.DimensionSet[] read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
FoamXServer.DimensionSet value[] = null;
|
||||
int _len0 = istream.read_long ();
|
||||
value = new FoamXServer.DimensionSet[_len0];
|
||||
for (int _o1 = 0;_o1 < value.length; ++_o1)
|
||||
value[_o1] = FoamXServer.DimensionSetHelper.read (istream);
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.DimensionSet[] value)
|
||||
{
|
||||
ostream.write_long (value.length);
|
||||
for (int _i0 = 0;_i0 < value.length; ++_i0)
|
||||
FoamXServer.DimensionSetHelper.write (ostream, value[_i0]);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,39 @@
|
||||
package FoamXServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/DimensionSetListHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
public final class DimensionSetListHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public FoamXServer.DimensionSet value[] = null;
|
||||
|
||||
public DimensionSetListHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public DimensionSetListHolder (FoamXServer.DimensionSet[] initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = FoamXServer.DimensionSetListHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
FoamXServer.DimensionSetListHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return FoamXServer.DimensionSetListHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,60 @@
|
||||
package FoamXServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/DoubleListHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
abstract public class DoubleListHelper
|
||||
{
|
||||
private static String _id = "IDL:FoamXServer/DoubleList:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, double[] that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static double[] extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_double);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (FoamXServer.DoubleListHelper.id (), "DoubleList", __typeCode);
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static double[] read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
double value[] = null;
|
||||
int _len0 = istream.read_long ();
|
||||
value = new double[_len0];
|
||||
istream.read_double_array (value, 0, _len0);
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, double[] value)
|
||||
{
|
||||
ostream.write_long (value.length);
|
||||
ostream.write_double_array (value, 0, value.length);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,39 @@
|
||||
package FoamXServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/DoubleListHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
public final class DoubleListHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public double value[] = null;
|
||||
|
||||
public DoubleListHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public DoubleListHolder (double[] initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = FoamXServer.DoubleListHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
FoamXServer.DoubleListHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return FoamXServer.DoubleListHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,54 @@
|
||||
package FoamXServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/ErrorCode.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
public class ErrorCode implements org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
private int __value;
|
||||
private static int __size = 9;
|
||||
private static FoamXServer.ErrorCode[] __array = new FoamXServer.ErrorCode [__size];
|
||||
|
||||
public static final int _S_OK = 0;
|
||||
public static final FoamXServer.ErrorCode S_OK = new FoamXServer.ErrorCode(_S_OK);
|
||||
public static final int _E_FAIL = 1;
|
||||
public static final FoamXServer.ErrorCode E_FAIL = new FoamXServer.ErrorCode(_E_FAIL);
|
||||
public static final int _E_FOAM = 2;
|
||||
public static final FoamXServer.ErrorCode E_FOAM = new FoamXServer.ErrorCode(_E_FOAM);
|
||||
public static final int _E_INVALID_ARG = 3;
|
||||
public static final FoamXServer.ErrorCode E_INVALID_ARG = new FoamXServer.ErrorCode(_E_INVALID_ARG);
|
||||
public static final int _E_INVALID_PTR = 4;
|
||||
public static final FoamXServer.ErrorCode E_INVALID_PTR = new FoamXServer.ErrorCode(_E_INVALID_PTR);
|
||||
public static final int _E_INVALID_REF = 5;
|
||||
public static final FoamXServer.ErrorCode E_INVALID_REF = new FoamXServer.ErrorCode(_E_INVALID_REF);
|
||||
public static final int _E_INDEX_OUT_OF_BOUNDS = 6;
|
||||
public static final FoamXServer.ErrorCode E_INDEX_OUT_OF_BOUNDS = new FoamXServer.ErrorCode(_E_INDEX_OUT_OF_BOUNDS);
|
||||
public static final int _E_UNKNOWN_NAME = 7;
|
||||
public static final FoamXServer.ErrorCode E_UNKNOWN_NAME = new FoamXServer.ErrorCode(_E_UNKNOWN_NAME);
|
||||
public static final int _E_UNEXPECTED = 8;
|
||||
public static final FoamXServer.ErrorCode E_UNEXPECTED = new FoamXServer.ErrorCode(_E_UNEXPECTED);
|
||||
|
||||
public int value ()
|
||||
{
|
||||
return __value;
|
||||
}
|
||||
|
||||
public static FoamXServer.ErrorCode from_int (int value)
|
||||
{
|
||||
if (value >= 0 && value < __size)
|
||||
return __array[value];
|
||||
else
|
||||
throw new org.omg.CORBA.BAD_PARAM ();
|
||||
}
|
||||
|
||||
protected ErrorCode (int value)
|
||||
{
|
||||
__value = value;
|
||||
__array[__value] = this;
|
||||
}
|
||||
} // class ErrorCode
|
||||
@ -0,0 +1,53 @@
|
||||
package FoamXServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/ErrorCodeHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
abstract public class ErrorCodeHelper
|
||||
{
|
||||
private static String _id = "IDL:FoamXServer/ErrorCode:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, FoamXServer.ErrorCode that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static FoamXServer.ErrorCode extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_enum_tc (FoamXServer.ErrorCodeHelper.id (), "ErrorCode", new String[] { "S_OK", "E_FAIL", "E_FOAM", "E_INVALID_ARG", "E_INVALID_PTR", "E_INVALID_REF", "E_INDEX_OUT_OF_BOUNDS", "E_UNKNOWN_NAME", "E_UNEXPECTED"} );
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static FoamXServer.ErrorCode read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
return FoamXServer.ErrorCode.from_int (istream.read_long ());
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.ErrorCode value)
|
||||
{
|
||||
ostream.write_long (value.value ());
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,38 @@
|
||||
package FoamXServer;
|
||||
|
||||
/**
|
||||
* FoamXServer/ErrorCodeHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
public final class ErrorCodeHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public FoamXServer.ErrorCode value = null;
|
||||
|
||||
public ErrorCodeHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public ErrorCodeHolder (FoamXServer.ErrorCode initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = FoamXServer.ErrorCodeHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
FoamXServer.ErrorCodeHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return FoamXServer.ErrorCodeHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,60 @@
|
||||
package FoamXServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/FloatListHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
abstract public class FloatListHelper
|
||||
{
|
||||
private static String _id = "IDL:FoamXServer/FloatList:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, float[] that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static float[] extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_float);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (FoamXServer.FloatListHelper.id (), "FloatList", __typeCode);
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static float[] read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
float value[] = null;
|
||||
int _len0 = istream.read_long ();
|
||||
value = new float[_len0];
|
||||
istream.read_float_array (value, 0, _len0);
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, float[] value)
|
||||
{
|
||||
ostream.write_long (value.length);
|
||||
ostream.write_float_array (value, 0, value.length);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,39 @@
|
||||
package FoamXServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/FloatListHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
public final class FloatListHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public float value[] = null;
|
||||
|
||||
public FloatListHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public FloatListHolder (float[] initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = FoamXServer.FloatListHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
FoamXServer.FloatListHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return FoamXServer.FloatListHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,28 @@
|
||||
package FoamXServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/FoamXAny.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
public final class FoamXAny implements org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
public FoamXServer.FoamXType type = null;
|
||||
public org.omg.CORBA.Any value = null;
|
||||
|
||||
public FoamXAny ()
|
||||
{
|
||||
} // ctor
|
||||
|
||||
public FoamXAny (FoamXServer.FoamXType _type, org.omg.CORBA.Any _value)
|
||||
{
|
||||
type = _type;
|
||||
value = _value;
|
||||
} // ctor
|
||||
|
||||
} // class FoamXAny
|
||||
@ -0,0 +1,84 @@
|
||||
package FoamXServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/FoamXAnyHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
abstract public class FoamXAnyHelper
|
||||
{
|
||||
private static String _id = "IDL:FoamXServer/FoamXAny:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, FoamXServer.FoamXAny that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static FoamXServer.FoamXAny extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
private static boolean __active = false;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
synchronized (org.omg.CORBA.TypeCode.class)
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
if (__active)
|
||||
{
|
||||
return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
|
||||
}
|
||||
__active = true;
|
||||
org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [2];
|
||||
org.omg.CORBA.TypeCode _tcOf_members0 = null;
|
||||
_tcOf_members0 = FoamXServer.FoamXTypeHelper.type ();
|
||||
_members0[0] = new org.omg.CORBA.StructMember (
|
||||
"type",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_any);
|
||||
_members0[1] = new org.omg.CORBA.StructMember (
|
||||
"value",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_struct_tc (FoamXServer.FoamXAnyHelper.id (), "FoamXAny", _members0);
|
||||
__active = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static FoamXServer.FoamXAny read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
FoamXServer.FoamXAny value = new FoamXServer.FoamXAny ();
|
||||
value.type = FoamXServer.FoamXTypeHelper.read (istream);
|
||||
value.value = istream.read_any ();
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.FoamXAny value)
|
||||
{
|
||||
FoamXServer.FoamXTypeHelper.write (ostream, value.type);
|
||||
ostream.write_any (value.value);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package FoamXServer;
|
||||
|
||||
/**
|
||||
* FoamXServer/FoamXAnyHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
public final class FoamXAnyHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public FoamXServer.FoamXAny value = null;
|
||||
|
||||
public FoamXAnyHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public FoamXAnyHolder (FoamXServer.FoamXAny initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = FoamXServer.FoamXAnyHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
FoamXServer.FoamXAnyHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return FoamXServer.FoamXAnyHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package FoamXServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/FoamXAnyListHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
abstract public class FoamXAnyListHelper
|
||||
{
|
||||
private static String _id = "IDL:FoamXServer/FoamXAnyList:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, FoamXServer.FoamXAny[] that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static FoamXServer.FoamXAny[] extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = FoamXServer.FoamXAnyHelper.type ();
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (FoamXServer.FoamXAnyListHelper.id (), "FoamXAnyList", __typeCode);
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static FoamXServer.FoamXAny[] read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
FoamXServer.FoamXAny value[] = null;
|
||||
int _len0 = istream.read_long ();
|
||||
value = new FoamXServer.FoamXAny[_len0];
|
||||
for (int _o1 = 0;_o1 < value.length; ++_o1)
|
||||
value[_o1] = FoamXServer.FoamXAnyHelper.read (istream);
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.FoamXAny[] value)
|
||||
{
|
||||
ostream.write_long (value.length);
|
||||
for (int _i0 = 0;_i0 < value.length; ++_i0)
|
||||
FoamXServer.FoamXAnyHelper.write (ostream, value[_i0]);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,39 @@
|
||||
package FoamXServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/FoamXAnyListHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
public final class FoamXAnyListHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public FoamXServer.FoamXAny value[] = null;
|
||||
|
||||
public FoamXAnyListHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public FoamXAnyListHolder (FoamXServer.FoamXAny[] initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = FoamXServer.FoamXAnyListHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
FoamXServer.FoamXAnyListHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return FoamXServer.FoamXAnyListHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,45 @@
|
||||
package FoamXServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/FoamXError.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
public final class FoamXError extends org.omg.CORBA.UserException
|
||||
{
|
||||
public FoamXServer.ErrorCode errorCode = null;
|
||||
public String errorMessage = null;
|
||||
public String methodName = null;
|
||||
public String fileName = null;
|
||||
public int lineNo = (int)0;
|
||||
|
||||
public FoamXError ()
|
||||
{
|
||||
super(FoamXErrorHelper.id());
|
||||
} // ctor
|
||||
|
||||
public FoamXError (FoamXServer.ErrorCode _errorCode, String _errorMessage, String _methodName, String _fileName, int _lineNo)
|
||||
{
|
||||
super(FoamXErrorHelper.id());
|
||||
errorCode = _errorCode;
|
||||
errorMessage = _errorMessage;
|
||||
methodName = _methodName;
|
||||
fileName = _fileName;
|
||||
lineNo = _lineNo;
|
||||
} // ctor
|
||||
|
||||
|
||||
public FoamXError (String $reason, FoamXServer.ErrorCode _errorCode, String _errorMessage, String _methodName, String _fileName, int _lineNo)
|
||||
{
|
||||
super(FoamXErrorHelper.id() + " " + $reason);
|
||||
errorCode = _errorCode;
|
||||
errorMessage = _errorMessage;
|
||||
methodName = _methodName;
|
||||
fileName = _fileName;
|
||||
lineNo = _lineNo;
|
||||
} // ctor
|
||||
|
||||
} // class FoamXError
|
||||
@ -0,0 +1,107 @@
|
||||
package FoamXServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/FoamXErrorHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
abstract public class FoamXErrorHelper
|
||||
{
|
||||
private static String _id = "IDL:FoamXServer/FoamXError:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, FoamXServer.FoamXError that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static FoamXServer.FoamXError extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
private static boolean __active = false;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
synchronized (org.omg.CORBA.TypeCode.class)
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
if (__active)
|
||||
{
|
||||
return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
|
||||
}
|
||||
__active = true;
|
||||
org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [5];
|
||||
org.omg.CORBA.TypeCode _tcOf_members0 = null;
|
||||
_tcOf_members0 = FoamXServer.ErrorCodeHelper.type ();
|
||||
_members0[0] = new org.omg.CORBA.StructMember (
|
||||
"errorCode",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0);
|
||||
_members0[1] = new org.omg.CORBA.StructMember (
|
||||
"errorMessage",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0);
|
||||
_members0[2] = new org.omg.CORBA.StructMember (
|
||||
"methodName",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0);
|
||||
_members0[3] = new org.omg.CORBA.StructMember (
|
||||
"fileName",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_long);
|
||||
_members0[4] = new org.omg.CORBA.StructMember (
|
||||
"lineNo",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (FoamXServer.FoamXErrorHelper.id (), "FoamXError", _members0);
|
||||
__active = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static FoamXServer.FoamXError read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
FoamXServer.FoamXError value = new FoamXServer.FoamXError ();
|
||||
// read and discard the repository ID
|
||||
istream.read_string ();
|
||||
value.errorCode = FoamXServer.ErrorCodeHelper.read (istream);
|
||||
value.errorMessage = istream.read_string ();
|
||||
value.methodName = istream.read_string ();
|
||||
value.fileName = istream.read_string ();
|
||||
value.lineNo = istream.read_long ();
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.FoamXError value)
|
||||
{
|
||||
// write the repository ID
|
||||
ostream.write_string (id ());
|
||||
FoamXServer.ErrorCodeHelper.write (ostream, value.errorCode);
|
||||
ostream.write_string (value.errorMessage);
|
||||
ostream.write_string (value.methodName);
|
||||
ostream.write_string (value.fileName);
|
||||
ostream.write_long (value.lineNo);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,38 @@
|
||||
package FoamXServer;
|
||||
|
||||
/**
|
||||
* FoamXServer/FoamXErrorHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
public final class FoamXErrorHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public FoamXServer.FoamXError value = null;
|
||||
|
||||
public FoamXErrorHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public FoamXErrorHolder (FoamXServer.FoamXError initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = FoamXServer.FoamXErrorHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
FoamXServer.FoamXErrorHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return FoamXServer.FoamXErrorHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,51 @@
|
||||
package FoamXServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/FoamXIOError.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
public final class FoamXIOError extends org.omg.CORBA.UserException
|
||||
{
|
||||
public String errorMessage = null;
|
||||
public String ioFileName = null;
|
||||
public int ioStartLineNo = (int)0;
|
||||
public int ioEndLineNo = (int)0;
|
||||
public String methodName = null;
|
||||
public String fileName = null;
|
||||
public int lineNo = (int)0;
|
||||
|
||||
public FoamXIOError ()
|
||||
{
|
||||
super(FoamXIOErrorHelper.id());
|
||||
} // ctor
|
||||
|
||||
public FoamXIOError (String _errorMessage, String _ioFileName, int _ioStartLineNo, int _ioEndLineNo, String _methodName, String _fileName, int _lineNo)
|
||||
{
|
||||
super(FoamXIOErrorHelper.id());
|
||||
errorMessage = _errorMessage;
|
||||
ioFileName = _ioFileName;
|
||||
ioStartLineNo = _ioStartLineNo;
|
||||
ioEndLineNo = _ioEndLineNo;
|
||||
methodName = _methodName;
|
||||
fileName = _fileName;
|
||||
lineNo = _lineNo;
|
||||
} // ctor
|
||||
|
||||
|
||||
public FoamXIOError (String $reason, String _errorMessage, String _ioFileName, int _ioStartLineNo, int _ioEndLineNo, String _methodName, String _fileName, int _lineNo)
|
||||
{
|
||||
super(FoamXIOErrorHelper.id() + " " + $reason);
|
||||
errorMessage = _errorMessage;
|
||||
ioFileName = _ioFileName;
|
||||
ioStartLineNo = _ioStartLineNo;
|
||||
ioEndLineNo = _ioEndLineNo;
|
||||
methodName = _methodName;
|
||||
fileName = _fileName;
|
||||
lineNo = _lineNo;
|
||||
} // ctor
|
||||
|
||||
} // class FoamXIOError
|
||||
@ -0,0 +1,121 @@
|
||||
package FoamXServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/FoamXIOErrorHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
abstract public class FoamXIOErrorHelper
|
||||
{
|
||||
private static String _id = "IDL:FoamXServer/FoamXIOError:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, FoamXServer.FoamXIOError that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static FoamXServer.FoamXIOError extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
private static boolean __active = false;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
synchronized (org.omg.CORBA.TypeCode.class)
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
if (__active)
|
||||
{
|
||||
return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
|
||||
}
|
||||
__active = true;
|
||||
org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [7];
|
||||
org.omg.CORBA.TypeCode _tcOf_members0 = null;
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0);
|
||||
_members0[0] = new org.omg.CORBA.StructMember (
|
||||
"errorMessage",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0);
|
||||
_members0[1] = new org.omg.CORBA.StructMember (
|
||||
"ioFileName",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_long);
|
||||
_members0[2] = new org.omg.CORBA.StructMember (
|
||||
"ioStartLineNo",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_long);
|
||||
_members0[3] = new org.omg.CORBA.StructMember (
|
||||
"ioEndLineNo",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0);
|
||||
_members0[4] = new org.omg.CORBA.StructMember (
|
||||
"methodName",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0);
|
||||
_members0[5] = new org.omg.CORBA.StructMember (
|
||||
"fileName",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_long);
|
||||
_members0[6] = new org.omg.CORBA.StructMember (
|
||||
"lineNo",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (FoamXServer.FoamXIOErrorHelper.id (), "FoamXIOError", _members0);
|
||||
__active = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static FoamXServer.FoamXIOError read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
FoamXServer.FoamXIOError value = new FoamXServer.FoamXIOError ();
|
||||
// read and discard the repository ID
|
||||
istream.read_string ();
|
||||
value.errorMessage = istream.read_string ();
|
||||
value.ioFileName = istream.read_string ();
|
||||
value.ioStartLineNo = istream.read_long ();
|
||||
value.ioEndLineNo = istream.read_long ();
|
||||
value.methodName = istream.read_string ();
|
||||
value.fileName = istream.read_string ();
|
||||
value.lineNo = istream.read_long ();
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.FoamXIOError value)
|
||||
{
|
||||
// write the repository ID
|
||||
ostream.write_string (id ());
|
||||
ostream.write_string (value.errorMessage);
|
||||
ostream.write_string (value.ioFileName);
|
||||
ostream.write_long (value.ioStartLineNo);
|
||||
ostream.write_long (value.ioEndLineNo);
|
||||
ostream.write_string (value.methodName);
|
||||
ostream.write_string (value.fileName);
|
||||
ostream.write_long (value.lineNo);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,38 @@
|
||||
package FoamXServer;
|
||||
|
||||
/**
|
||||
* FoamXServer/FoamXIOErrorHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
public final class FoamXIOErrorHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public FoamXServer.FoamXIOError value = null;
|
||||
|
||||
public FoamXIOErrorHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public FoamXIOErrorHolder (FoamXServer.FoamXIOError initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = FoamXServer.FoamXIOErrorHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
FoamXServer.FoamXIOErrorHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return FoamXServer.FoamXIOErrorHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,48 @@
|
||||
package FoamXServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/FoamXSYSError.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
public final class FoamXSYSError extends org.omg.CORBA.UserException
|
||||
{
|
||||
public FoamXServer.ErrorCode errorCode = null;
|
||||
public String errorMessage = null;
|
||||
public String hostName = null;
|
||||
public String methodName = null;
|
||||
public String fileName = null;
|
||||
public int lineNo = (int)0;
|
||||
|
||||
public FoamXSYSError ()
|
||||
{
|
||||
super(FoamXSYSErrorHelper.id());
|
||||
} // ctor
|
||||
|
||||
public FoamXSYSError (FoamXServer.ErrorCode _errorCode, String _errorMessage, String _hostName, String _methodName, String _fileName, int _lineNo)
|
||||
{
|
||||
super(FoamXSYSErrorHelper.id());
|
||||
errorCode = _errorCode;
|
||||
errorMessage = _errorMessage;
|
||||
hostName = _hostName;
|
||||
methodName = _methodName;
|
||||
fileName = _fileName;
|
||||
lineNo = _lineNo;
|
||||
} // ctor
|
||||
|
||||
|
||||
public FoamXSYSError (String $reason, FoamXServer.ErrorCode _errorCode, String _errorMessage, String _hostName, String _methodName, String _fileName, int _lineNo)
|
||||
{
|
||||
super(FoamXSYSErrorHelper.id() + " " + $reason);
|
||||
errorCode = _errorCode;
|
||||
errorMessage = _errorMessage;
|
||||
hostName = _hostName;
|
||||
methodName = _methodName;
|
||||
fileName = _fileName;
|
||||
lineNo = _lineNo;
|
||||
} // ctor
|
||||
|
||||
} // class FoamXSYSError
|
||||
@ -0,0 +1,114 @@
|
||||
package FoamXServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/FoamXSYSErrorHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
abstract public class FoamXSYSErrorHelper
|
||||
{
|
||||
private static String _id = "IDL:FoamXServer/FoamXSYSError:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, FoamXServer.FoamXSYSError that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static FoamXServer.FoamXSYSError extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
private static boolean __active = false;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
synchronized (org.omg.CORBA.TypeCode.class)
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
if (__active)
|
||||
{
|
||||
return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
|
||||
}
|
||||
__active = true;
|
||||
org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [6];
|
||||
org.omg.CORBA.TypeCode _tcOf_members0 = null;
|
||||
_tcOf_members0 = FoamXServer.ErrorCodeHelper.type ();
|
||||
_members0[0] = new org.omg.CORBA.StructMember (
|
||||
"errorCode",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0);
|
||||
_members0[1] = new org.omg.CORBA.StructMember (
|
||||
"errorMessage",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0);
|
||||
_members0[2] = new org.omg.CORBA.StructMember (
|
||||
"hostName",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0);
|
||||
_members0[3] = new org.omg.CORBA.StructMember (
|
||||
"methodName",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0);
|
||||
_members0[4] = new org.omg.CORBA.StructMember (
|
||||
"fileName",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_long);
|
||||
_members0[5] = new org.omg.CORBA.StructMember (
|
||||
"lineNo",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (FoamXServer.FoamXSYSErrorHelper.id (), "FoamXSYSError", _members0);
|
||||
__active = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static FoamXServer.FoamXSYSError read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
FoamXServer.FoamXSYSError value = new FoamXServer.FoamXSYSError ();
|
||||
// read and discard the repository ID
|
||||
istream.read_string ();
|
||||
value.errorCode = FoamXServer.ErrorCodeHelper.read (istream);
|
||||
value.errorMessage = istream.read_string ();
|
||||
value.hostName = istream.read_string ();
|
||||
value.methodName = istream.read_string ();
|
||||
value.fileName = istream.read_string ();
|
||||
value.lineNo = istream.read_long ();
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.FoamXSYSError value)
|
||||
{
|
||||
// write the repository ID
|
||||
ostream.write_string (id ());
|
||||
FoamXServer.ErrorCodeHelper.write (ostream, value.errorCode);
|
||||
ostream.write_string (value.errorMessage);
|
||||
ostream.write_string (value.hostName);
|
||||
ostream.write_string (value.methodName);
|
||||
ostream.write_string (value.fileName);
|
||||
ostream.write_long (value.lineNo);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,38 @@
|
||||
package FoamXServer;
|
||||
|
||||
/**
|
||||
* FoamXServer/FoamXSYSErrorHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
public final class FoamXSYSErrorHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public FoamXServer.FoamXSYSError value = null;
|
||||
|
||||
public FoamXSYSErrorHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public FoamXSYSErrorHolder (FoamXServer.FoamXSYSError initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = FoamXServer.FoamXSYSErrorHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
FoamXServer.FoamXSYSErrorHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return FoamXServer.FoamXSYSErrorHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,80 @@
|
||||
package FoamXServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/FoamXType.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
public class FoamXType implements org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
private int __value;
|
||||
private static int __size = 21;
|
||||
private static FoamXServer.FoamXType[] __array = new FoamXServer.FoamXType [__size];
|
||||
|
||||
public static final int _Type_Undefined = 0;
|
||||
public static final FoamXServer.FoamXType Type_Undefined = new FoamXServer.FoamXType(_Type_Undefined);
|
||||
public static final int _Type_Boolean = 1;
|
||||
public static final FoamXServer.FoamXType Type_Boolean = new FoamXServer.FoamXType(_Type_Boolean);
|
||||
public static final int _Type_Label = 2;
|
||||
public static final FoamXServer.FoamXType Type_Label = new FoamXServer.FoamXType(_Type_Label);
|
||||
public static final int _Type_Scalar = 3;
|
||||
public static final FoamXServer.FoamXType Type_Scalar = new FoamXServer.FoamXType(_Type_Scalar);
|
||||
public static final int _Type_Char = 4;
|
||||
public static final FoamXServer.FoamXType Type_Char = new FoamXServer.FoamXType(_Type_Char);
|
||||
public static final int _Type_Word = 5;
|
||||
public static final FoamXServer.FoamXType Type_Word = new FoamXServer.FoamXType(_Type_Word);
|
||||
public static final int _Type_String = 6;
|
||||
public static final FoamXServer.FoamXType Type_String = new FoamXServer.FoamXType(_Type_String);
|
||||
public static final int _Type_RootDir = 7;
|
||||
public static final FoamXServer.FoamXType Type_RootDir = new FoamXServer.FoamXType(_Type_RootDir);
|
||||
public static final int _Type_RootAndCase = 8;
|
||||
public static final FoamXServer.FoamXType Type_RootAndCase = new FoamXServer.FoamXType(_Type_RootAndCase);
|
||||
public static final int _Type_CaseName = 9;
|
||||
public static final FoamXServer.FoamXType Type_CaseName = new FoamXServer.FoamXType(_Type_CaseName);
|
||||
public static final int _Type_HostName = 10;
|
||||
public static final FoamXServer.FoamXType Type_HostName = new FoamXServer.FoamXType(_Type_HostName);
|
||||
public static final int _Type_File = 11;
|
||||
public static final FoamXServer.FoamXType Type_File = new FoamXServer.FoamXType(_Type_File);
|
||||
public static final int _Type_Directory = 12;
|
||||
public static final FoamXServer.FoamXType Type_Directory = new FoamXServer.FoamXType(_Type_Directory);
|
||||
public static final int _Type_Time = 13;
|
||||
public static final FoamXServer.FoamXType Type_Time = new FoamXServer.FoamXType(_Type_Time);
|
||||
public static final int _Type_DimensionSet = 14;
|
||||
public static final FoamXServer.FoamXType Type_DimensionSet = new FoamXServer.FoamXType(_Type_DimensionSet);
|
||||
public static final int _Type_FixedList = 15;
|
||||
public static final FoamXServer.FoamXType Type_FixedList = new FoamXServer.FoamXType(_Type_FixedList);
|
||||
public static final int _Type_List = 16;
|
||||
public static final FoamXServer.FoamXType Type_List = new FoamXServer.FoamXType(_Type_List);
|
||||
public static final int _Type_Dictionary = 17;
|
||||
public static final FoamXServer.FoamXType Type_Dictionary = new FoamXServer.FoamXType(_Type_Dictionary);
|
||||
public static final int _Type_Selection = 18;
|
||||
public static final FoamXServer.FoamXType Type_Selection = new FoamXServer.FoamXType(_Type_Selection);
|
||||
public static final int _Type_Compound = 19;
|
||||
public static final FoamXServer.FoamXType Type_Compound = new FoamXServer.FoamXType(_Type_Compound);
|
||||
public static final int _Type_Field = 20;
|
||||
public static final FoamXServer.FoamXType Type_Field = new FoamXServer.FoamXType(_Type_Field);
|
||||
|
||||
public int value ()
|
||||
{
|
||||
return __value;
|
||||
}
|
||||
|
||||
public static FoamXServer.FoamXType from_int (int value)
|
||||
{
|
||||
if (value >= 0 && value < __size)
|
||||
return __array[value];
|
||||
else
|
||||
throw new org.omg.CORBA.BAD_PARAM ();
|
||||
}
|
||||
|
||||
protected FoamXType (int value)
|
||||
{
|
||||
__value = value;
|
||||
__array[__value] = this;
|
||||
}
|
||||
} // class FoamXType
|
||||
@ -0,0 +1,55 @@
|
||||
package FoamXServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/FoamXTypeHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
abstract public class FoamXTypeHelper
|
||||
{
|
||||
private static String _id = "IDL:FoamXServer/FoamXType:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, FoamXServer.FoamXType that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static FoamXServer.FoamXType extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_enum_tc (FoamXServer.FoamXTypeHelper.id (), "FoamXType", new String[] { "Type_Undefined", "Type_Boolean", "Type_Label", "Type_Scalar", "Type_Char", "Type_Word", "Type_String", "Type_RootDir", "Type_RootAndCase", "Type_CaseName", "Type_HostName", "Type_File", "Type_Directory", "Type_Time", "Type_DimensionSet", "Type_FixedList", "Type_List", "Type_Dictionary", "Type_Selection", "Type_Compound", "Type_Field"} );
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static FoamXServer.FoamXType read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
return FoamXServer.FoamXType.from_int (istream.read_long ());
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.FoamXType value)
|
||||
{
|
||||
ostream.write_long (value.value ());
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package FoamXServer;
|
||||
|
||||
/**
|
||||
* FoamXServer/FoamXTypeHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
public final class FoamXTypeHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public FoamXServer.FoamXType value = null;
|
||||
|
||||
public FoamXTypeHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public FoamXTypeHolder (FoamXServer.FoamXType initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = FoamXServer.FoamXTypeHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
FoamXServer.FoamXTypeHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return FoamXServer.FoamXTypeHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,15 @@
|
||||
package FoamXServer.HostBrowser;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/HostBrowser/IHostBrowser.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public interface IHostBrowser extends IHostBrowserOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
} // interface IHostBrowser
|
||||
@ -0,0 +1,72 @@
|
||||
package FoamXServer.HostBrowser;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/HostBrowser/IHostBrowserHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
abstract public class IHostBrowserHelper
|
||||
{
|
||||
private static String _id = "IDL:FoamXServer/HostBrowser/IHostBrowser:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, FoamXServer.HostBrowser.IHostBrowser that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static FoamXServer.HostBrowser.IHostBrowser extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (FoamXServer.HostBrowser.IHostBrowserHelper.id (), "IHostBrowser");
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static FoamXServer.HostBrowser.IHostBrowser read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
return narrow (istream.read_Object (_IHostBrowserStub.class));
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.HostBrowser.IHostBrowser value)
|
||||
{
|
||||
ostream.write_Object ((org.omg.CORBA.Object) value);
|
||||
}
|
||||
|
||||
public static FoamXServer.HostBrowser.IHostBrowser narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof FoamXServer.HostBrowser.IHostBrowser)
|
||||
return (FoamXServer.HostBrowser.IHostBrowser)obj;
|
||||
else if (!obj._is_a (id ()))
|
||||
throw new org.omg.CORBA.BAD_PARAM ();
|
||||
else
|
||||
{
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
|
||||
FoamXServer.HostBrowser._IHostBrowserStub stub = new FoamXServer.HostBrowser._IHostBrowserStub ();
|
||||
stub._set_delegate(delegate);
|
||||
return stub;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package FoamXServer.HostBrowser;
|
||||
|
||||
/**
|
||||
* FoamXServer/HostBrowser/IHostBrowserHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public final class IHostBrowserHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public FoamXServer.HostBrowser.IHostBrowser value = null;
|
||||
|
||||
public IHostBrowserHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public IHostBrowserHolder (FoamXServer.HostBrowser.IHostBrowser initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = FoamXServer.HostBrowser.IHostBrowserHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
FoamXServer.HostBrowser.IHostBrowserHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return FoamXServer.HostBrowser.IHostBrowserHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,31 @@
|
||||
package FoamXServer.HostBrowser;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/HostBrowser/IHostBrowserOperations.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public interface IHostBrowserOperations
|
||||
{
|
||||
FoamXServer.HostDescriptor[] hosts ();
|
||||
void refreshHostList () throws FoamXServer.FoamXError;
|
||||
boolean isHostAlive (String hostName) throws FoamXServer.FoamXError;
|
||||
void hostIsAlive (String hostName) throws FoamXServer.FoamXError;
|
||||
void hostIsDead (String hostName) throws FoamXServer.FoamXError;
|
||||
void openCaseBrowser (String hostName) throws FoamXServer.FoamXError, FoamXServer.FoamXSYSError;
|
||||
boolean getCaseBrowserReference (String hostName, FoamXServer.CaseBrowser.ICaseBrowserHolder browserObj) throws FoamXServer.FoamXError, FoamXServer.FoamXSYSError;
|
||||
|
||||
// Validation.
|
||||
void validate () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError;
|
||||
|
||||
// Persistence.
|
||||
void save () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError;
|
||||
|
||||
// Lifetime management.
|
||||
void close ();
|
||||
} // interface IHostBrowserOperations
|
||||
@ -0,0 +1,273 @@
|
||||
package FoamXServer.HostBrowser;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/HostBrowser/_IHostBrowserStub.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public class _IHostBrowserStub extends org.omg.CORBA.portable.ObjectImpl implements FoamXServer.HostBrowser.IHostBrowser
|
||||
{
|
||||
|
||||
public FoamXServer.HostDescriptor[] hosts ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("_get_hosts", true);
|
||||
$in = _invoke ($out);
|
||||
FoamXServer.HostDescriptor $result[] = FoamXServer.HostDescriptorListHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return hosts ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // hosts
|
||||
|
||||
public void refreshHostList () throws FoamXServer.FoamXError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("refreshHostList", true);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
refreshHostList ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // refreshHostList
|
||||
|
||||
public boolean isHostAlive (String hostName) throws FoamXServer.FoamXError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("isHostAlive", true);
|
||||
$out.write_string (hostName);
|
||||
$in = _invoke ($out);
|
||||
boolean $result = $in.read_boolean ();
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return isHostAlive (hostName );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // isHostAlive
|
||||
|
||||
public void hostIsAlive (String hostName) throws FoamXServer.FoamXError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("hostIsAlive", true);
|
||||
$out.write_string (hostName);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
hostIsAlive (hostName );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // hostIsAlive
|
||||
|
||||
public void hostIsDead (String hostName) throws FoamXServer.FoamXError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("hostIsDead", true);
|
||||
$out.write_string (hostName);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
hostIsDead (hostName );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // hostIsDead
|
||||
|
||||
public void openCaseBrowser (String hostName) throws FoamXServer.FoamXError, FoamXServer.FoamXSYSError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("openCaseBrowser", true);
|
||||
$out.write_string (hostName);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXSYSError:1.0"))
|
||||
throw FoamXServer.FoamXSYSErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
openCaseBrowser (hostName );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // openCaseBrowser
|
||||
|
||||
public boolean getCaseBrowserReference (String hostName, FoamXServer.CaseBrowser.ICaseBrowserHolder browserObj) throws FoamXServer.FoamXError, FoamXServer.FoamXSYSError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("getCaseBrowserReference", true);
|
||||
$out.write_string (hostName);
|
||||
$in = _invoke ($out);
|
||||
boolean $result = $in.read_boolean ();
|
||||
browserObj.value = FoamXServer.CaseBrowser.ICaseBrowserHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXSYSError:1.0"))
|
||||
throw FoamXServer.FoamXSYSErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return getCaseBrowserReference (hostName, browserObj );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // getCaseBrowserReference
|
||||
|
||||
|
||||
// Validation.
|
||||
public void validate () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("validate", true);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/ValidationError:1.0"))
|
||||
throw FoamXServer.ValidationErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
validate ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // validate
|
||||
|
||||
|
||||
// Persistence.
|
||||
public void save () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("save", true);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
||||
throw FoamXServer.FoamXErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
||||
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
||||
else if (_id.equals ("IDL:FoamXServer/ValidationError:1.0"))
|
||||
throw FoamXServer.ValidationErrorHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
save ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // save
|
||||
|
||||
|
||||
// Lifetime management.
|
||||
public void close ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("close", false);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
close ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // close
|
||||
|
||||
// Type-specific CORBA::Object operations
|
||||
private static String[] __ids = {
|
||||
"IDL:FoamXServer/HostBrowser/IHostBrowser:1.0"};
|
||||
|
||||
public String[] _ids ()
|
||||
{
|
||||
return (String[])__ids.clone ();
|
||||
}
|
||||
|
||||
private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
|
||||
{
|
||||
String str = s.readUTF ();
|
||||
String[] args = null;
|
||||
java.util.Properties props = null;
|
||||
org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
|
||||
_set_delegate (delegate);
|
||||
}
|
||||
|
||||
private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
|
||||
{
|
||||
String[] args = null;
|
||||
java.util.Properties props = null;
|
||||
String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
|
||||
s.writeUTF (str);
|
||||
}
|
||||
} // class _IHostBrowserStub
|
||||
@ -0,0 +1,28 @@
|
||||
package FoamXServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/HostDescriptor.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// Host descriptor structure.
|
||||
public final class HostDescriptor implements org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
public String name = null;
|
||||
public boolean alive = false;
|
||||
|
||||
public HostDescriptor ()
|
||||
{
|
||||
} // ctor
|
||||
|
||||
public HostDescriptor (String _name, boolean _alive)
|
||||
{
|
||||
name = _name;
|
||||
alive = _alive;
|
||||
} // ctor
|
||||
|
||||
} // class HostDescriptor
|
||||
@ -0,0 +1,84 @@
|
||||
package FoamXServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/HostDescriptorHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// Host descriptor structure.
|
||||
abstract public class HostDescriptorHelper
|
||||
{
|
||||
private static String _id = "IDL:FoamXServer/HostDescriptor:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, FoamXServer.HostDescriptor that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static FoamXServer.HostDescriptor extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
private static boolean __active = false;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
synchronized (org.omg.CORBA.TypeCode.class)
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
if (__active)
|
||||
{
|
||||
return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
|
||||
}
|
||||
__active = true;
|
||||
org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [2];
|
||||
org.omg.CORBA.TypeCode _tcOf_members0 = null;
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0);
|
||||
_members0[0] = new org.omg.CORBA.StructMember (
|
||||
"name",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_boolean);
|
||||
_members0[1] = new org.omg.CORBA.StructMember (
|
||||
"alive",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_struct_tc (FoamXServer.HostDescriptorHelper.id (), "HostDescriptor", _members0);
|
||||
__active = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static FoamXServer.HostDescriptor read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
FoamXServer.HostDescriptor value = new FoamXServer.HostDescriptor ();
|
||||
value.name = istream.read_string ();
|
||||
value.alive = istream.read_boolean ();
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.HostDescriptor value)
|
||||
{
|
||||
ostream.write_string (value.name);
|
||||
ostream.write_boolean (value.alive);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package FoamXServer;
|
||||
|
||||
/**
|
||||
* FoamXServer/HostDescriptorHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
|
||||
// Host descriptor structure.
|
||||
public final class HostDescriptorHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public FoamXServer.HostDescriptor value = null;
|
||||
|
||||
public HostDescriptorHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public HostDescriptorHolder (FoamXServer.HostDescriptor initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = FoamXServer.HostDescriptorHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
FoamXServer.HostDescriptorHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return FoamXServer.HostDescriptorHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package FoamXServer;
|
||||
|
||||
|
||||
/**
|
||||
* FoamXServer/HostDescriptorListHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
||||
* from FoamX.idl
|
||||
* 02 April 2007 09:53:40 o'clock BST
|
||||
*/
|
||||
|
||||
abstract public class HostDescriptorListHelper
|
||||
{
|
||||
private static String _id = "IDL:FoamXServer/HostDescriptorList:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, FoamXServer.HostDescriptor[] that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static FoamXServer.HostDescriptor[] extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = FoamXServer.HostDescriptorHelper.type ();
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (FoamXServer.HostDescriptorListHelper.id (), "HostDescriptorList", __typeCode);
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static FoamXServer.HostDescriptor[] read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
FoamXServer.HostDescriptor value[] = null;
|
||||
int _len0 = istream.read_long ();
|
||||
value = new FoamXServer.HostDescriptor[_len0];
|
||||
for (int _o1 = 0;_o1 < value.length; ++_o1)
|
||||
value[_o1] = FoamXServer.HostDescriptorHelper.read (istream);
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, FoamXServer.HostDescriptor[] value)
|
||||
{
|
||||
ostream.write_long (value.length);
|
||||
for (int _i0 = 0;_i0 < value.length; ++_i0)
|
||||
FoamXServer.HostDescriptorHelper.write (ostream, value[_i0]);
|
||||
}
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user