Android Mobile Physical Therapy Exercise Documenter

com.communipatient.amptedapp.data
Class Exercise

java.lang.Object
  extended by com.communipatient.amptedapp.data.Exercise
All Implemented Interfaces:
java.io.Serializable

public class Exercise
extends java.lang.Object
implements java.io.Serializable

The representation of an exercise.

See Also:
Serialized Form

Field Summary
protected  java.lang.String description
          The description of the exercise.
protected  java.util.List<Feedback> feedback
          The patient feedback.
protected  java.lang.String frequency
          The frequency that the exercise needs to be performed.
protected  int id
          The identifier for the exercise.
protected  java.util.ArrayList<ExerciseImage> images
          The list of images for the exercise.
protected  java.util.ArrayList<ExerciseModifier> modifiers
          The list of modifiers for the exercise.
protected  java.lang.String name
          The name of the exercise.
protected  java.lang.String notes
          The PT's notes for the exercise.
protected  Parameters parameters
          The parameters for the exercise.
private static long serialVersionUID
          The serial version UID.
protected  java.lang.String thumbimage
          The url that specifies the thumbnail.
protected  java.lang.String video
          The video identifier.
 
Constructor Summary
Exercise()
          Initializes a new instance of an Exercise with all values set to blank.
 
Method Summary
 java.lang.String getDescription()
          Gets the description of the exercise.
 java.util.List<Feedback> getFeedback()
          Gets the patient feedback.
 java.lang.String getFrequency()
          Gets the frequency of the exercise.
 int getId()
          Gets the identifier.
 ExerciseImage getImageByType(java.lang.String type)
          Get an image specified by the type.
 java.util.ArrayList<ExerciseImage> getImages()
          Gets the images for the exercise.
 java.util.ArrayList<ExerciseModifier> getModifiers()
          Gets the modifiers for the exercise.
 java.lang.String getName()
          Gets the name of the exercise.
 java.lang.String getNotes()
          Gets the PT's notes.
 Parameters getParameters()
          Gets the parameters for the exercise.
 java.lang.String getThumbimage()
          Gets the thumbimage of the exercise.
 java.lang.String getVideo()
          Gets the video identifier.
 boolean hasSeries()
          Tests if the exercise has a series of images.
 void setDescription(java.lang.String description)
          Sets the description of the exercise.
 void setFrequency(java.lang.String frequency)
          Sets the frequency of the exercise.
 void setId(int id)
          Sets the identifier.
 void setName(java.lang.String name)
          Sets the name of the exercise.
 void setNotes(java.lang.String notes)
          Sets the PT's notes.
 void setThumbimage(java.lang.String thumbimage)
          Sets the thumbimage of the exercise.
 void setVideo(java.lang.String video)
          Sets the video identifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
The serial version UID.

See Also:
Constant Field Values

id

protected int id
The identifier for the exercise.


name

protected java.lang.String name
The name of the exercise.


description

protected java.lang.String description
The description of the exercise.


video

protected java.lang.String video
The video identifier.


thumbimage

protected java.lang.String thumbimage
The url that specifies the thumbnail.


images

protected java.util.ArrayList<ExerciseImage> images
The list of images for the exercise.


modifiers

protected java.util.ArrayList<ExerciseModifier> modifiers
The list of modifiers for the exercise.


frequency

protected java.lang.String frequency
The frequency that the exercise needs to be performed.


parameters

protected Parameters parameters
The parameters for the exercise.


notes

protected java.lang.String notes
The PT's notes for the exercise.


feedback

protected java.util.List<Feedback> feedback
The patient feedback.

Constructor Detail

Exercise

public Exercise()
Initializes a new instance of an Exercise with all values set to blank.

Method Detail

getId

public int getId()
Gets the identifier.

Returns:
The identifier.

setId

public void setId(int id)
Sets the identifier.

Parameters:
id - The identifier to set.

getName

public java.lang.String getName()
Gets the name of the exercise.

Returns:
The name of the exercise.

setName

public void setName(java.lang.String name)
Sets the name of the exercise.

Parameters:
name - The name of the exercise to set.

getDescription

public java.lang.String getDescription()
Gets the description of the exercise.

Returns:
The description of the exercise.

setDescription

public void setDescription(java.lang.String description)
Sets the description of the exercise.

Parameters:
description - The description of the exercise to set.

getVideo

public java.lang.String getVideo()
Gets the video identifier.

Returns:
The video identifier.

setVideo

public void setVideo(java.lang.String video)
Sets the video identifier.

Parameters:
video - The video identifier to set.

getThumbimage

public java.lang.String getThumbimage()
Gets the thumbimage of the exercise.

Returns:
the thumbimage The thumbimage of the exercise.

setThumbimage

public void setThumbimage(java.lang.String thumbimage)
Sets the thumbimage of the exercise.

Parameters:
thumbimage - The thumbimage of the exercise to set.

getImages

public java.util.ArrayList<ExerciseImage> getImages()
Gets the images for the exercise.

Returns:
The images for the exercise.

getModifiers

public java.util.ArrayList<ExerciseModifier> getModifiers()
Gets the modifiers for the exercise.

Returns:
The modifiers for the exercise.

getFrequency

public java.lang.String getFrequency()
Gets the frequency of the exercise.

Returns:
The frequency of the exercise.

setFrequency

public void setFrequency(java.lang.String frequency)
Sets the frequency of the exercise.

Parameters:
frequency - The frequency to set.

getParameters

public Parameters getParameters()
Gets the parameters for the exercise.

Returns:
The parameters for the exercise.

getNotes

public java.lang.String getNotes()
Gets the PT's notes.

Returns:
The notes for this exercise.

setNotes

public void setNotes(java.lang.String notes)
Sets the PT's notes.

Parameters:
notes - The notes to set.

getFeedback

public java.util.List<Feedback> getFeedback()
Gets the patient feedback.

Returns:
The feedback.

hasSeries

public boolean hasSeries()
Tests if the exercise has a series of images.

Returns:
True if a series is present; otherwise false.

getImageByType

public ExerciseImage getImageByType(java.lang.String type)
Get an image specified by the type.

Parameters:
type - The type.
Returns:
The ExerciseImage.

Revision: 109 Generated on Sat Dec 10 07:00:03 UTC 2011