6 Generated Functors | BRITNeY Suite |
Functors Generated by the RMI-Compiler | Help |
GetString
, the following 6 functors are generated:
functor GetStringRemoteObject(val host: string val port: int val object: string) functor GetStringRemote(val host: string val port: int) functor GetStringRemoteInstance(val host: string val port: int val name: string) functor GetStringObject(val object: string) functor GetString() functor GetStringInstance(val name: string)
For the impatient reader, just skip the rest and always use the last functor, supplying it with a meaningful name.
The functors can be divided up into 3 functors taking a host and a port as arguments (the ones with "Remote" in the name), and 3 functors that takes neither host nor port as argument (the ones without Remote in the name).
The 3 functors that take no host or port assume that BRITNeY is running at the same computer as CPN Tools, and that it is using the standard port. Often these simpler functors will be sufficient, but if BRITNeY is running on either a non-standard port or another computer, you will need to use the Remote-functor corresponding to the desired functor.
In the following, we will only describe the functors that take no host/port as argument.
This in the most general of the functors. The argument is an object reference, which has to be obtained in some way.
This will refer to a special preinstalled object. It is only used for bootstrapping the connection between BRITNeY and CPN Tools, and should only be used with AnimationModel
.
This functor will create a new instance of the desired class. The parameter is a name that, depending on the Java implementation, is shown to the user to identify the object. Unless you have very specific needs, this (or the Remote variant) is the functor you should use.