Class _MxVisit

java.lang.Object
uk.ac.gda.mx.daq.visit._MxVisit
All Implemented Interfaces:
MxVisit

public class _MxVisit extends Object implements MxVisit
  • Constructor Details

    • _MxVisit

      public _MxVisit()
  • Method Details

    • parse

      public static MxVisit parse(String visitString)
    • getAdapter

      public Object getAdapter(Class<?> adapter)
      Specified by:
      getAdapter in interface MxVisit
      Parameters:
      adapter - the adapter class to look up
      Returns:
      an object that can be cast to the given class, or null if this object does not have an adapter for the given class
    • getBeamline

      public String getBeamline()
      Specified by:
      getBeamline in interface MxVisit
      Returns:
      Returns the beamline name.
    • getMxCode

      public MxVisit.MxCode getMxCode()
      Specified by:
      getMxCode in interface MxVisit
      Returns:
      Returns the proposalCode as an enumeration type specified in the MxVisit interface.
    • getProposalCode

      public String getProposalCode()
      Specified by:
      getProposalCode in interface MxVisit
      Returns:
      Returns the proposalCode.
    • getProposalId

      public Integer getProposalId()
      Specified by:
      getProposalId in interface MxVisit
      Returns:
      Returns the ISPyB-specific proposalId.
    • getProposalNumber

      public Integer getProposalNumber()
      Specified by:
      getProposalNumber in interface MxVisit
      Returns:
      Returns the proposalNumber.
    • getProposalTitle

      public String getProposalTitle()
      Specified by:
      getProposalTitle in interface MxVisit
      Returns:
      Returns the proposalTitle.
    • getSessionId

      public Integer getSessionId()
      Specified by:
      getSessionId in interface MxVisit
      Returns:
      Returns the ISPyB-specific sessionId.
    • getVisitNumber

      public Integer getVisitNumber()
      Specified by:
      getVisitNumber in interface MxVisit
      Returns:
      Returns the visitNumber.
    • getVisitString

      public String getVisitString()
      Specified by:
      getVisitString in interface MxVisit
      Returns:
      Returns the visitString.
    • setBeamline

      public void setBeamline(String beamlineName)
      Specified by:
      setBeamline in interface MxVisit
      Parameters:
      beamlineName - The beamline name to set.
    • setProposalCode

      public void setProposalCode(String proposalCode)
      Specified by:
      setProposalCode in interface MxVisit
      Parameters:
      proposalCode - The proposalCode to set.
    • setProposalId

      public void setProposalId(Integer proposalId)
      Specified by:
      setProposalId in interface MxVisit
      Parameters:
      proposalId - The ISPyB-specific proposalId to set.
    • setProposalNumber

      public void setProposalNumber(Integer proposalNumber)
      Specified by:
      setProposalNumber in interface MxVisit
      Parameters:
      proposalNumber - The proposalNumber to set.
    • setProposalTitle

      public void setProposalTitle(String proposalTitle)
      Specified by:
      setProposalTitle in interface MxVisit
      Parameters:
      proposalTitle - The proposalTitle to set.
    • setSessionId

      public void setSessionId(Integer sessionId)
      Specified by:
      setSessionId in interface MxVisit
      Parameters:
      sessionId - The ISPyB-specific sessionId to set.
    • setVisitNumber

      public void setVisitNumber(Integer visitNumber)
      Specified by:
      setVisitNumber in interface MxVisit
      Parameters:
      visitNumber - The visitNumber to set.