features Description and example of generation of ExternalInterface
Classes with the stereotype ExternalInterface is just a indication that you will need to generate inheritance interface for the class which will inherit from this interface.
an Example of using the class with the stereotype ExternalInterface
Let the project CatInterface
declared interface Koshka
And in another project TestExtInterface
structure of the species
If the project that contains the ExternalInterface to generate the objects in the class СиамскаяКошка
will be a string of the form
public class СиамскаяКошка : ICSSoft.STORMNET.DataObject, IКошка
However, the project will fail to compile, because it does not specify where the interface IКошка
. To fix this, you need to:
1.Add reference in the project to build CatInterface(Objects).dll
.
2.In the code of the feature class to add the Directive:
namespace IIS.TestExtInterface
{
//...
// *** Start programmer edit section *** (Using statements)
using IIS.CatInterface;
// *** End programmer edit section *** (Using statements)
//...
public class СиамскаяКошка : ICSSoft.STORMNET.DataObject, IКошка
{
//...
}
}
3.Implement the methods of the interface IКошка
.