uk.ac.ebi.biomodels.ws
Class SimpleModel

java.lang.Object
  extended by uk.ac.ebi.biomodels.ws.SimpleModel

public class SimpleModel
extends java.lang.Object

Simple model class with basic model information.

Version:
20120417
Author:
Camille Laibe, Chen Li

Constructor Summary
SimpleModel(java.lang.String id, java.lang.String name)
          Constructor (builds a partial object).
SimpleModel(java.lang.String id, java.lang.String submissionId, java.lang.String name, java.util.List<java.lang.String> encoders, java.lang.String publicationId, java.util.List<java.lang.String> authors, java.lang.String lastModificationDate)
          Constructor (builds a complete object).
 
Method Summary
 boolean equals(java.lang.Object obj)
          Indicates whether some other object is "equal to" this one.
 java.util.List<java.lang.String> getAuthors()
          Get names of the authors of the publication
 java.util.List<java.lang.String> getEncoders()
          Get the names of the encoders of the model.
 java.lang.String getId()
          Get model identifier (of the form "BIOMD" followed by 10 digits).
 java.util.Date getLastModificationDate()
          Get the date of last modification
 java.lang.String getLastModificationDateStr()
          Get the date of last modification, in a human readable form.
 java.lang.String getName()
          Get the model name
 java.lang.String getPublicationId()
          Get the publication identifier
 java.lang.String getSubmissionId()
          Get submission identifier (of the form "MODEL" followed by 10 digits).
 int hashCode()
          Returns a hash code value for this object.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleModel

public SimpleModel(java.lang.String id,
                   java.lang.String name)
Constructor (builds a partial object).

Parameters:
id - model identifier
name - model name

SimpleModel

public SimpleModel(java.lang.String id,
                   java.lang.String submissionId,
                   java.lang.String name,
                   java.util.List<java.lang.String> encoders,
                   java.lang.String publicationId,
                   java.util.List<java.lang.String> authors,
                   java.lang.String lastModificationDate)
Constructor (builds a complete object).

Parameters:
id - model identifier (e.g. BIOMD0000000300)
submissionId - submission identifier (e.g. MODEL1008170000)
name - model name
encoders - list of the model's encoders
publicationId - identifier of the associated publication (PMID, DOI or URL)
authors - list of the publication's authors
lastModificationDate - date of last modification (expressed according to ISO 8601, e.g. "2012-01-19T19:22:15+00:00")
Method Detail

hashCode

public int hashCode()
Returns a hash code value for this object. Generated by Eclipse.

Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

equals

public boolean equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. Partially generated by Eclipse.

Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

getId

public java.lang.String getId()
Get model identifier (of the form "BIOMD" followed by 10 digits).

Returns:
model identifier

getName

public java.lang.String getName()
Get the model name

Returns:
model name

getPublicationId

public java.lang.String getPublicationId()
Get the publication identifier

Returns:
publication identifier

getLastModificationDate

public java.util.Date getLastModificationDate()
Get the date of last modification

Returns:
date of last modification

getLastModificationDateStr

public java.lang.String getLastModificationDateStr()
Get the date of last modification, in a human readable form.

Returns:
date of last modification

getSubmissionId

public java.lang.String getSubmissionId()
Get submission identifier (of the form "MODEL" followed by 10 digits).

Returns:
the submissionId

getAuthors

public java.util.List<java.lang.String> getAuthors()
Get names of the authors of the publication

Returns:
the authors

getEncoders

public java.util.List<java.lang.String> getEncoders()
Get the names of the encoders of the model.

Returns:
the encoders


Copyright © 2007-2012 BioModels.net
Last modified: 2012-04-23T10:20:37+0000