classVersion             package:Biobase             R Documentation

_R_e_t_r_i_e_v_e _i_n_f_o_r_m_a_t_i_o_n _a_b_o_u_t _v_e_r_s_i_o_n_e_d _c_l_a_s_s_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     These generic functions return version information for classes
     derived from 'Versioned-class', or 'VersionsNull-class' for
     unversioned objects. The version information is an object of
     'Versions-class'.

     By default, 'classVersion' has the following behaviors:

     '_c_l_a_s_s_V_e_r_s_i_o_n(_V_e_r_s_i_o_n_e_d-_i_n_s_t_a_n_c_e)' Returns a 'Versions-class'
          object obtaine from the object.

     '_c_l_a_s_s_V_e_r_s_i_o_n{"_c_l_a_s_s"}' Consults the definition of 'class' and
          return the current version information, if available.

     '_c_l_a_s_s_V_e_r_s_i_o_n(_A_N_Y)' Return a 'VersionsNull-class' object to
          indicate no version information available.

     By default, the 'classVersion<-' method has the following
     behavior:

     '_c_l_a_s_s_V_e_r_s_i_o_n(_V_e_r_s_i_o_n_e_d-_i_n_s_t_a_n_c_e)["_i_d"] <- _v_a_l_u_e' Assign (update
          or add) 'value' to 'Versions-instance'. 'value' is coerced to
          a valid version description. see 'Versions-class' for
          additional access methods.

_U_s_a_g_e:

     classVersion(object)
     classVersion(object) <- value

_A_r_g_u_m_e_n_t_s:

  object: Object whose version is to be determined, as described above.

   value: 'Version-class' object to assign to object of
          'Versioned-class' object.

_V_a_l_u_e:

     'classVersion' returns an instance of 'Versions-class'

_A_u_t_h_o_r(_s):

     Biocore team

_S_e_e _A_l_s_o:

     'Versions-class'

_E_x_a_m_p_l_e_s:

     obj <- new("VersionedBiobase")

     classVersion(obj)
     classVersion(obj)["Biobase"]
     classVersion(1:10) # no version
     classVersion("ExpressionSet") # consult ExpressionSet prototype

     classVersion(obj)["MyVersion"] <- "1.0.0"
     classVersion(obj)

