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)

