|
ensembl-hive
2.7.0
|
Inheritance diagram for Bio::EnsEMBL::IdMapping::Serialisable:Public Member Functions | |
| public Bio::EnsEMBL::IdMapping::Serialisable | new () |
| public String | write_to_file () |
| public Bio::EnsEMBL::IdMapping::Serialisable | read_from_file () |
| public String | dump_path () |
| public String | cache_file_name () |
| public String | cache_file () |
| public Boolean | loaded () |
This is the base class for serialisable objects used by the stable Id mapping. It's essentially an OO wrapper for Storable, providing a method to store (write_to_file(()) and one to retrieve (read_from_file()) serialised objects. This class is not instantiated itself, but rather extended by implementing classes.
Definition at line 45 of file Serialisable.pm.
| public String Bio::EnsEMBL::IdMapping::Serialisable::cache_file | ( | ) |
Example :
Description : Returns the path and name of the serialised object file.
Return type : String
Exceptions : none
Caller : general
Status : At Risk
: under development
Code:
| public String Bio::EnsEMBL::IdMapping::Serialisable::cache_file_name | ( | ) |
Arg[1] : String - file name for serialisation Example :
Description : Getter/setter for the file name for serialisation.
Return type : String
Exceptions : none
Caller : general
Status : At Risk
: under development
Code:
| public String Bio::EnsEMBL::IdMapping::Serialisable::dump_path | ( | ) |
Arg[1] : String - dump path for serialisation Example :
Description : Getter/setter for the dump path for serialisation.
Return type : String
Exceptions : none
Caller : general
Status : At Risk
: under development
Code:
| public Boolean Bio::EnsEMBL::IdMapping::Serialisable::loaded | ( | ) |
Arg[1] : Boolean - "loaded" status Example :
Description : Indicates whether a given object was loaded from its serialised
state on disk.
Return type : Boolean - TRUE if loaded from disk, FALSE otherwise
Exceptions : none
Caller : general
Status : At Risk
: under development
Code:
| public Bio::EnsEMBL::IdMapping::Serialisable Bio::EnsEMBL::IdMapping::Serialisable::new | ( | ) |
Arg [DUMP_PATH] : String - path for object serialisation
Arg [CACHE_FILE] : String - filename of serialised object
Arg [AUTO_LOAD] : Boolean - determines whether object should be automatically
loaded on instantiation
Description : Constructor.
Return type : Bio::EnsEMBL::IdMapping::Serialisable implementing object
Exceptions : thrown on missing argument
Caller : implementing subclass
Status : At Risk
: under development
Code:
| public Bio::EnsEMBL::IdMapping::Serialisable Bio::EnsEMBL::IdMapping::Serialisable::read_from_file | ( | ) |
Example :
Description : Reads a serialised object from file (determined by
$self->cache_file).
Return type : Bio::EnsEMBL::IdMapping::Serialisable implementing object
Exceptions : thrown on I/O errors
Caller : general
Status : At Risk
: under development
Code:
| public String Bio::EnsEMBL::IdMapping::Serialisable::write_to_file | ( | ) |
Example :
Description : Serialises an object to a file (determined by
$self->cache_file).
Return type : String - size of serialisation file
Exceptions : thrown on I/O errors
Caller : general
Status : At Risk
: under development
Code: