BakeoutController-Basic  0.1
A Controller for the Omicron vacuum chamber
Public Member Functions | List of all members
kernel.ApplicationKernelFactory Class Reference
Inheritance diagram for kernel.ApplicationKernelFactory:
Inheritance graph
[legend]
Collaboration diagram for kernel.ApplicationKernelFactory:
Collaboration graph
[legend]

Public Member Functions

void setPortDriver (PortDriver newPortDriver)
 
kernel.Kernel getKernelInstance () throws UnableToCreateKernelException
 
Boolean canKernelBeStarted ()
 

Detailed Description

Implements methods for bootstrapping the hardware kernel

Definition at line 13 of file ApplicationKernelFactory.java.

Member Function Documentation

Boolean kernel.ApplicationKernelFactory.canKernelBeStarted ( )
Returns
True if the kernel can be started, otherwise false

Implements kernel.KernelFactory.

Definition at line 79 of file ApplicationKernelFactory.java.

79  {
80  if (!hasPortDriver){
81  return Boolean.FALSE;
82  } else {
83  return Boolean.TRUE;
84  }
85  }
kernel.Kernel kernel.ApplicationKernelFactory.getKernelInstance ( ) throws UnableToCreateKernelException

If the kernel already exists, returns the current Kernel installation . If the kernel has not been instantiated, create the kernel and return it.

Returns
The kernel
Exceptions
UnableToCreateKernelExceptionIf the kernel cannot be created

Implements kernel.KernelFactory.

Definition at line 62 of file ApplicationKernelFactory.java.

63  {
64  if (!canKernelBeStarted()){
65  throw new UnableToCreateKernelException("Cannot create kernel. " +
66  "Parameter missing");
67  }
68  if (!doesKernelExist){
69  createKernel();
70  }
71  return this.kernelInstance;
72  }
void kernel.ApplicationKernelFactory.setPortDriver ( PortDriver  newPortDriver)
Parameters
newPortDriverThe port driver to use in the Kernel

Implements kernel.KernelFactory.

Definition at line 46 of file ApplicationKernelFactory.java.

46  {
47  log.debug("Setting port driver to {}", newPortDriver.toString());
48 
49  this.portDriver = newPortDriver;
50  this.hasPortDriver = Boolean.TRUE;
51  }

The documentation for this class was generated from the following file:
Git Repo