Class ModelInfo

    • Field Detail

      • name

        protected java.lang.String name
        The name.
      • instancename

        protected java.lang.String instancename
        Default instance name.
      • packagename

        protected java.lang.String packagename
        The package.
      • predecessors

        protected java.lang.String[] predecessors
        The predecessors.
      • successors

        protected java.lang.String[] successors
        The predecessors.
      • imports

        protected java.util.List<java.lang.String> imports
        The imports.
      • allimports

        protected java.lang.String[] allimports
        All imports (cached for speed).
      • configurations

        protected java.util.List<ConfigurationInfo> configurations
        The configurations.
      • arguments

        protected java.util.List<IArgument> arguments
        The arguments.
      • results

        protected java.util.List<IArgument> results
        The results.
      • startable

        protected boolean startable
        Flag if startable.
      • filename

        protected java.lang.String filename
        The filename.
      • type

        protected java.lang.String type
        The type.
      • fullname

        protected java.lang.String fullname
        The full name (cached for speed).
      • properties

        protected java.util.Map<java.lang.String,​java.lang.Object> properties
        The properties.
      • nfproperties

        protected java.util.List<NFPropertyInfo> nfproperties
        The nf properties.
      • classloader

        protected java.lang.ClassLoader classloader
        The classloader.
      • requiredservices

        protected java.util.Map<java.lang.String,​RequiredServiceInfo> requiredservices
        The required services.
      • providedservices

        protected java.util.List<ProvidedServiceInfo> providedservices
        The provided services.
      • subcomponents

        protected java.util.List<SubcomponentTypeInfo> subcomponents
        The subcomponent types.
      • breakpoints

        protected java.lang.String[] breakpoints
        The breakpoints.
      • rawmodel

        protected java.lang.Object rawmodel
        The raw model.
      • namehint

        protected java.lang.String namehint
        The name hint for instances of this model.
    • Method Detail

      • getName

        public java.lang.String getName()
        Get the name.
        Specified by:
        getName in interface IModelInfo
        Returns:
        The name.
      • getInstanceName

        public java.lang.String getInstanceName()
        Get the default instance name.
        Specified by:
        getInstanceName in interface IModelInfo
        Returns:
        The instance name.
      • getPredecessors

        public java.lang.String[] getPredecessors()
        Get required predecessors (dependencies).
        Specified by:
        getPredecessors in interface IModelInfo
      • getSuccessors

        public java.lang.String[] getSuccessors()
        Get declared successors (dependencies).
        Specified by:
        getSuccessors in interface IModelInfo
      • getPackage

        public java.lang.String getPackage()
        Get the package name.
        Specified by:
        getPackage in interface IModelInfo
        Returns:
        The package name.
      • getFullName

        public java.lang.String getFullName()
        Get the full model name (package.name)
        Specified by:
        getFullName in interface IModelInfo
        Returns:
        The full name.
      • getImports

        public java.lang.String[] getImports()
        Get the imports.
        Specified by:
        getImports in interface IModelInfo
        Returns:
        The imports.
      • getAllImports

        public java.lang.String[] getAllImports()
        Get the imports including the package.
        Specified by:
        getAllImports in interface IModelInfo
        Returns:
        The imports.
      • addImport

        public void addImport​(java.lang.String imp)
        Add an import statement.
      • getConfigurationNames

        public java.lang.String[] getConfigurationNames()
        Get the configurations.
        Specified by:
        getConfigurationNames in interface IModelInfo
        Returns:
        The configuration.
      • getArgument

        public IArgument getArgument​(java.lang.String name)
        Get an argument per name.
        Specified by:
        getArgument in interface IModelInfo
        Parameters:
        name - The name.
        Returns:
        The argument.
      • getResult

        public IArgument getResult​(java.lang.String name)
        Get a result per name.
        Specified by:
        getResult in interface IModelInfo
        Parameters:
        name - The name.
        Returns:
        The result.
      • isStartable

        public boolean isStartable()
        Is the model startable.
        Specified by:
        isStartable in interface IModelInfo
        Returns:
        True, if startable.
      • getType

        public java.lang.String getType()
        Get the model type.
        Specified by:
        getType in interface IModelInfo
        Returns:
        The model type (kernel specific).
      • getFilename

        public java.lang.String getFilename()
        Get the filename.
        Specified by:
        getFilename in interface IModelInfo
        Returns:
        The filename.
      • getProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getProperties()
        Get the properties. Arbitrary properties that can e.g. be used to define model-specific settings to configure tools.
        Specified by:
        getProperties in interface IModelInfo
        Returns:
        The properties.
      • getProperty

        public java.lang.Object getProperty​(java.lang.String name,
                                            java.lang.ClassLoader cl)
        Get a parsed property. Unlike raw properties, which may be parsed or unparsed, this method always returns parsed property values.
        Specified by:
        getProperty in interface IModelInfo
        Parameters:
        name - The property name.
        Returns:
        The property value or null if property not defined.
      • getClassLoader

        public java.lang.ClassLoader getClassLoader()
        Return the class loader corresponding to the model.
        Returns:
        The class loader corresponding to the model.
      • setNFProperties

        public void setNFProperties​(java.util.List<NFPropertyInfo> nfproperties)
        Set the nfproperties.
        Parameters:
        nfproperties - The nfproperties to set.
      • addNFProperty

        public void addNFProperty​(NFPropertyInfo pi)
        Add a non functional property.
      • setName

        public void setName​(java.lang.String name)
        Set the name.
        Parameters:
        name - The name to set.
      • setInstanceName

        public void setInstanceName​(java.lang.String instancename)
        Set the default instance name.
        Parameters:
        instancename - The instance name.
      • addPredecessors

        public void addPredecessors​(java.lang.String[] predecessors)
        Adds required predecessors (dependencies).
      • setPredecessors

        public void setPredecessors​(java.lang.String[] predecessors)
        Set required predecessors (dependencies).
      • addSuccessors

        public void addSuccessors​(java.lang.String[] successors)
        Adds required predecessors (dependencies).
      • setSuccessors

        public void setSuccessors​(java.lang.String[] successors)
        Set declared successors (dependencies).
      • setPackage

        public void setPackage​(java.lang.String packagename)
        Set the packagename.
        Parameters:
        packagename - The packagename to set.
      • setReport

        public void setReport​(IErrorReport report)
        Set the report.
        Parameters:
        report - The report to set.
      • setImports

        public void setImports​(java.lang.String[] imports)
        Set the imports.
        Parameters:
        imports - The imports to set.
      • setConfigurations

        public void setConfigurations​(ConfigurationInfo[] configurations)
        Set the configurations.
        Parameters:
        configurations - The configurations to set.
      • addConfiguration

        public void addConfiguration​(ConfigurationInfo configuration)
        Add a configuration.
        Parameters:
        configuration - The configuration.
      • setArguments

        public void setArguments​(IArgument[] arguments)
        Set the arguments.
        Parameters:
        arguments - The arguments to set.
      • addArgument

        public void addArgument​(IArgument argument)
        Add an argument.
        Parameters:
        argument - The argument.
      • setResults

        public void setResults​(IArgument[] results)
        Set the results.
        Parameters:
        results - The results to set.
      • addResult

        public void addResult​(IArgument result)
        Add a result.
        Parameters:
        result - The result.
      • setStartable

        public void setStartable​(boolean startable)
        Set the startable.
        Parameters:
        startable - The startable to set.
      • setFilename

        public void setFilename​(java.lang.String filename)
        Set the filename.
        Parameters:
        filename - The filename to set.
      • setType

        public void setType​(java.lang.String type)
        Set the component type.
        Parameters:
        type - The component type to set.
      • setProperties

        public void setProperties​(java.util.Map<java.lang.String,​java.lang.Object> properties)
        Set the properties.
        Parameters:
        properties - The properties to set.
      • addProperty

        public void addProperty​(java.lang.String name,
                                java.lang.Object value)
        Add a property.
      • setClassloader

        public void setClassloader​(java.lang.ClassLoader classloader)
        Set the classloader.
        Parameters:
        classloader - The classloader to set.
      • setResourceIdentifier

        public void setResourceIdentifier​(IResourceIdentifier rid)
        Set the resource identifier.
        Parameters:
        rid - The resource identifier to set.
      • setRequiredServices

        public void setRequiredServices​(RequiredServiceInfo[] requiredservices)
        Set the required services.
        Parameters:
        required - services The required services to set.
      • addRequiredService

        public void addRequiredService​(RequiredServiceInfo requiredservice)
        Add a required service.
        Parameters:
        requiredservice - The required service.
      • removeRequiredService

        public void removeRequiredService​(RequiredServiceInfo requiredservice)
        Remove a required service.
        Parameters:
        requiredservice - The required service.
      • setProvidedServices

        public void setProvidedServices​(ProvidedServiceInfo[] providedservices)
        Set the provided services.
        Parameters:
        provided - services The provided services to set.
      • addProvidedService

        public void addProvidedService​(ProvidedServiceInfo providedservice)
        Add a provided service.
        Parameters:
        providedservice - The provided service.
      • removeProvidedService

        public void removeProvidedService​(ProvidedServiceInfo providedservice)
        Remove a provided service.
        Parameters:
        providedservice - The provided service.
      • getSynchronous

        public java.lang.Boolean getSynchronous​(java.lang.String configname)
        Get the synchronous flag.
        Specified by:
        getSynchronous in interface IModelInfo
        Parameters:
        synchronous - The synchronous.
        Returns:
        The synchronous flag value.
      • getSuspend

        public java.lang.Boolean getSuspend​(java.lang.String configname)
        Get the suspend flag.
        Specified by:
        getSuspend in interface IModelInfo
        Parameters:
        configname - The configname.
        Returns:
        The suspend flag value.
      • getKeepalive

        public java.lang.Boolean getKeepalive​(java.lang.String configname)
        Get the keepalive flag.
        Specified by:
        getKeepalive in interface IModelInfo
        Parameters:
        configname - The configname.
        Returns:
        The keepalive flag value.
      • setSubcomponentTypes

        public void setSubcomponentTypes​(SubcomponentTypeInfo[] subcomponents)
        Set the subcomponent types.
      • addSubcomponentType

        public void addSubcomponentType​(SubcomponentTypeInfo subcomponent)
        Add a subcomponent type.
        Parameters:
        subcomponent - The subcomponent type.
      • getBreakpoints

        public java.lang.String[] getBreakpoints()
        Get the possible breakpoint places in that model.
        Specified by:
        getBreakpoints in interface IModelInfo
        Returns:
        The breakpoints.
      • setBreakpoints

        public void setBreakpoints​(java.lang.String[] breakpoints)
        Set the breakpoints.
        Parameters:
        breakpoints - The breakpoints to set.
      • checkName

        public boolean checkName()
        Check if the specified name matches the file name.
      • checkPackage

        public boolean checkPackage()
        Check if the specified package matches the file name.
      • getRawModel

        public java.lang.Object getRawModel()
        Get the kernel-specific model.
        Specified by:
        getRawModel in interface IModelInfo
        Returns:
        The kernel-specific model when loaded locally, null for remote models.
      • internalSetRawModel

        public void internalSetRawModel​(java.lang.Object rawmodel)
        Set the kernel-specific model.
        Parameters:
        rawmodel - The kernel-specific model when loaded locally, null for remote models.
      • setFeatures

        public void setFeatures​(IComponentFeatureFactory[] features)
        The features to set.
        Parameters:
        features - The features to set
      • getNameHint

        public java.lang.String getNameHint()
        Get the namehint.
        Specified by:
        getNameHint in interface IModelInfo
        Returns:
        the namehint
      • setNameHint

        public void setNameHint​(java.lang.String namehint)
        Set the namehint.
        Parameters:
        namehint - The namehint to set