|
![]() Quark Platform Documentation Version 1.7.0_0 Business Objects |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openquark.cal.machine.ProgramManager
public abstract class ProgramManager
This is the ProgramManager class. This is a factory class used to create a machine specific ProgramModifier, EntryPointGenerator or TypeCheckerImpl.
Created: Feb 19, 2003 at 12:15:13 PM
| Field Summary | |
|---|---|
protected ResourceAccess |
resourceAccess
Provides access to the resources of the current environment (e.g. from the workspace, or from Eclipse). |
protected org.openquark.cal.machine.Program |
theProgram
The copy of the machine specific program. |
| Constructor Summary | |
|---|---|
protected |
ProgramManager(org.openquark.cal.machine.Program program,
ResourceAccess resourceAccess)
Protected constructor for this abstract ProgramManager class. |
| Method Summary | |
|---|---|
boolean |
containsModule(ModuleName moduleName)
Returns true iff the specified module is in the Program instance encapsulated by this ProgramManager. |
org.openquark.cal.machine.MachineFunction |
getMachineFunction(QualifiedName functionName)
Retrieves the specified machine function. |
abstract MachineStatistics |
getMachineStatistics()
|
abstract MachineStatistics |
getMachineStatisticsForModule(ModuleName moduleName)
|
abstract MachineType |
getMachineType()
Returns the machine type associated with this ProgramManager. |
org.openquark.cal.machine.Module |
getModule(ModuleName name)
Gets the module with a given moduleName. |
ModuleName[] |
getModuleNames()
Returns the names of the modules contained by the Program instance encapsulated by this ProgramManager. |
List<org.openquark.cal.machine.Module> |
getModules()
Return a list of Module object for modules contained the Program instance encapsulated by this ProgramManager. |
ModuleTypeInfo |
getModuleTypeInfo(ModuleName moduleName)
Returns the type info for the specified module. |
int |
getNFunctionsInModule(ModuleName moduleName)
Returns the number of functions in the specified module. |
static ProgramManager |
getProgramManager(MachineType machineType,
org.openquark.cal.machine.ProgramResourceRepository.Provider resourceRepositoryProvider,
ResourceAccess resourceAccess)
Factory method for a workspace manager. |
static ProgramManager |
getProgramManager(org.openquark.cal.machine.ProgramResourceRepository.Provider resourceRepositoryProvider,
ResourceAccess resourceAccess)
Factory method for a workspace manager. |
abstract org.openquark.cal.machine.ProgramResourceRepository |
getProgramResourceRepository()
|
Set<ModuleName> |
getSetOfDependentModuleNames(ModuleName dependeeModulename,
boolean returnEmptySetIfNonexistent)
Generates a list of all modules that depend on the named module either directly or indirectly. |
abstract EntryPointGenerator |
makeEntryPointGenerator()
Factory method for creating a machine-specific EntryPointGenerator. |
abstract ExecutionContext |
makeExecutionContext(ExecutionContextProperties properties)
Factory method for creating a machine-specific execution context. |
abstract CALExecutor |
makeExecutor(ExecutionContext context)
Factory method for creating a machine-specific executor. |
abstract ProgramModifier |
makeProgramModifier()
Factory method for creating a machine-specific ProgramModifier. |
abstract TypeCheckerImpl |
makeTypeCheckerImpl()
Factory method for creating a machine-specific TypeCheckerImpl. |
void |
resetCachedResults(ExecutionContext context)
Discards any cached (memoized) results in this program. |
void |
resetCachedResults(ModuleName moduleName,
ExecutionContext context)
Discards any cached (memoized) results in the named module and any dependent modules. |
void |
resetMachineState(ExecutionContext context)
Discards the machine state, including any cached (memoized) results in this program. |
void |
resetMachineState(ModuleName moduleName,
ExecutionContext context)
Discards the machine state, including any cached (memoized) results in the named module and any dependent modules. |
void |
useOptimizer(boolean useOptimizer)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.openquark.cal.machine.Program theProgram
protected final ResourceAccess resourceAccess
| Constructor Detail |
|---|
protected ProgramManager(org.openquark.cal.machine.Program program,
ResourceAccess resourceAccess)
program - the Program object to be encapsulated by this ProgramManager
instance.resourceAccess - the ResourceAccess instance to provide access to the resources of the current
environment (e.g. from the workspace, or from Eclipse).| Method Detail |
|---|
public static ProgramManager getProgramManager(org.openquark.cal.machine.ProgramResourceRepository.Provider resourceRepositoryProvider,
ResourceAccess resourceAccess)
resourceAccess - the ResourceAccess instance to provide access to the resources of the current
environment (e.g. from the workspace, or from Eclipse).
public static ProgramManager getProgramManager(MachineType machineType,
org.openquark.cal.machine.ProgramResourceRepository.Provider resourceRepositoryProvider,
ResourceAccess resourceAccess)
machineType - the machine type.resourceAccess - the ResourceAccess instance to provide access to the resources of the current
environment (e.g. from the workspace, or from Eclipse).public abstract MachineType getMachineType()
public abstract ProgramModifier makeProgramModifier()
public abstract EntryPointGenerator makeEntryPointGenerator()
public abstract TypeCheckerImpl makeTypeCheckerImpl()
public abstract ExecutionContext makeExecutionContext(ExecutionContextProperties properties)
properties - the ExecutionContextProperties instance encapsulating an immutable map of key-value pairs which is exposed
as system properties from within CAL.
public abstract CALExecutor makeExecutor(ExecutionContext context)
context - the execution context to be used by the executor.
public void resetCachedResults(ExecutionContext context)
context - the context with which the cached results are associated.
public void resetCachedResults(ModuleName moduleName,
ExecutionContext context)
moduleName - the name of the module whose cached results, and whose
dependents' cached results, are to be discarded.context - the context with which the cached results are associated.public void resetMachineState(ExecutionContext context)
context - the context with which the machine state is associated.
public void resetMachineState(ModuleName moduleName,
ExecutionContext context)
moduleName - the name of the module whose machine state, and whose
dependents' machine state, are to be discarded.context - the context with which the machine state associated.public boolean containsModule(ModuleName moduleName)
moduleName - the name of the module to check.
public ModuleName[] getModuleNames()
public List<org.openquark.cal.machine.Module> getModules()
public org.openquark.cal.machine.Module getModule(ModuleName name)
name - the module name
public Set<ModuleName> getSetOfDependentModuleNames(ModuleName dependeeModulename,
boolean returnEmptySetIfNonexistent)
dependeeModulename - the name of the dependee module.returnEmptySetIfNonexistent - if true, this method returns an empty list if the module is
not in the program. Otherwise it returns null in such a case.
public ModuleTypeInfo getModuleTypeInfo(ModuleName moduleName)
moduleName - the name of the module whose type info is requested.
public int getNFunctionsInModule(ModuleName moduleName)
moduleName - the name of the module.
public org.openquark.cal.machine.MachineFunction getMachineFunction(QualifiedName functionName)
throws org.openquark.cal.machine.Program.ProgramException
functionName - the qualified name of the function.
org.openquark.cal.machine.Program.ProgramException - if the program does not contain the module for the function.public void useOptimizer(boolean useOptimizer)
useOptimizer - True iff the CAL based optimizer should be used during compilation.public abstract org.openquark.cal.machine.ProgramResourceRepository getProgramResourceRepository()
public abstract MachineStatistics getMachineStatistics()
public abstract MachineStatistics getMachineStatisticsForModule(ModuleName moduleName)
moduleName -
|
![]() Quark Platform Documentation Version 1.7.0_0 Business Objects |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||