Create()

Create an instance of a an Open GENIE object of the specified class

CREATE() [class=String] Create a single instance of the specified class.

example:

	# Add a focus method to a Triple axis workspace class
	>> Subclass(class="Triple_axis", superclass="Structure", &
	   comment="TA class comment", names="f1 f2 f3")
	>> ta_spec = Create("Triple_axis")	# create a spectrum
	>> ta_spec.f1 = 23.5
	>> Printn ta_spec
	  Triple_axis [TA class comment]
	  (
	    f2 = _
	    f3 = _
	    f1 = 23.5
	  )

Note: Default initialisation values may be set for the class if required.

Create()

This is the way in which Open GENIE allows creation of individual instances of a workspace class.  The return value of the Create() command is an instance of the particular workspace type specified.  Note that the workspace inherits any fields already defined in superclasses of the workspace type.

If the workspace class has default values, these are assigned to the fields of the class on creation, otherwise the fields are set to the undefined value ("_").

Parameters:

Class (String) [ default = Workspace ]

The name of the class from which to create the object instance.  If no class name is given, the command is equivalent to the Fields() command which creates a new empty workspace with no default field names.

RESULT = (Generic)

An new object of the class specified, possibly with initialised fields.