MathLinkFactory Class

MathLinkFactory is the class that is used to construct objects of the various link interfaces (IKernelLink, IMathLink, and ILoopbackLink).

Definition

Namespace: Wolfram.NETLink
Assembly: Wolfram.NETLink (in Wolfram.NETLink.dll) Version: 2.0.0.0
C#
public class MathLinkFactory
Inheritance
Object    MathLinkFactory

Remarks

Programmers do not know, nor do they need to know, the names of the actual classes that implement the various link interfaces. They never call a constructor to create a link class. Instead, so-called "factory" methods are provided by the MathLinkFactory class to create the actual objects used.

Most programmers will use CreateKernelLink instead of CreateMathLink.

These methods correspond to calling one of the MLOpen functions in the C-language MathLink API.

Constructors

MathLinkFactoryInitializes a new instance of the MathLinkFactory class

Methods

CreateKernelLink Launches the default Wolfram Language kernel and returns a link to it.
CreateKernelLink(IMathLink) Creates an IKernelLink from an IMathLink.
CreateKernelLink(String) Creates a link to a Wolfram Language kernel based on MathLink/WSTP parameters supplied as a single string.
CreateKernelLink(String) Creates a link to a Wolfram Language kernel based on MathLink/WSTP parameters supplied as an argv-type array of strings.
CreateLoopbackLink Creates an ILoopbackLink, a special type of link that is written to and read by the same program.
CreateMathLink Launches the default Wolfram Language kernel and returns an IMathLink link to it.
CreateMathLink(String) Creates a link based on MathLink/WSTP parameters supplied as a single string.
CreateMathLink(String) Creates a link based on MathLink/WSTP parameters supplied as an argv-type array of strings.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also