Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fltrail
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fides
fltrail
Commits
bcc6cdaa
Commit
bcc6cdaa
authored
6 years ago
by
Ludwig Weihmann
Browse files
Options
Downloads
Plain Diff
Merge branch 'lk-add-interfaces' into development_master
parents
861a25af
da708d27
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gemeinsamforschen/src/main/java/unipotsdam/gf/interfaces/IContributionReview.java
+84
-0
84 additions, 0 deletions
...in/java/unipotsdam/gf/interfaces/IContributionReview.java
with
84 additions
and
0 deletions
gemeinsamforschen/src/main/java/unipotsdam/gf/interfaces/IContributionReview.java
0 → 100644
+
84
−
0
View file @
bcc6cdaa
package
unipotsdam.gf.interfaces
;
/**
* Interface that defines a review for a students/groups contribution
*
* A review contains a feedback text and several scales which can be rated
* It can also be exported to certain formats.
*/
public
interface
IContributionReview
{
/**
* sets the reviews feedbackText.
*
* @param feedbackText
*/
void
setFeedbackText
(
String
feedbackText
);
/**
* returns the reviews feedbackText.
*
* @return feedbackText
*/
String
getFeedbackText
();
/**
* adds a rating scale to the review. The scales name and the maximum value
* that can be selected must be provided. The function returns an ID by
* which the scale can be accessed.
*
* TODO: maybe address scales by their name instead?
*
* @param description
* @param maxValue
* @return scaleID
*/
int
addRatingScale
(
String
description
,
int
maxValue
);
/**
* removes an existing scale from the review. The scale must be addressed by
* a scaleID that was returned when it was created.
*
* TODO: maybe not necessary anyway?
*
* @param scaleID
*/
void
removeRatingScale
(
int
scaleID
);
/**
* sets the rating of an existing scale. Will throw an
* IllegalArgumentException if the rating is higher than possible.
*
* @param scaleID
* @param rating
*/
void
setRatingForScale
(
int
scaleID
,
int
rating
)
throws
IllegalArgumentException
;
/**
* returns the rating of an existing scale, addressed by it's scaleID.
*
* @param scaleID
* @return rating
*/
int
getRatingOfScale
(
int
scaleID
);
/**
* exports (or rather serializes) the review as an object so that it can be
* used by other applications.
*
* TODO: think of exportTypes
* @param exportType
* @return this object in another format
*/
String
exportAs
(
String
exportType
);
/**
* override for toString. Might just call .exportAs() internally
* @return this objects String representation. Maybe not necessary, but nice
* for sure.
*/
@Override
String
toString
();
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment