Package it.unibo.ds.chainvote.facade
Interface ElectionFacade
- All Known Implementing Classes:
ElectionFacadeImpl
public interface ElectionFacade
An interface modeling the
Election serialization.-
Method Summary
Modifier and TypeMethodDescriptiondoubleReturn theElectionFacade's affluence.Return theElectionFacade's endLocalDateTime.getGoal()Return theElectionFacade's goal.getId()Return theElectionFacade's electionId.Allows access toMaprepresenting results of theElection.Return theElectionFacade's startLocalDateTime.Return theElectionStatusof theElectionFacade.
-
Method Details
-
getStatus
ElectionStatus getStatus()Return theElectionStatusof theElectionFacade.- Returns:
- the
ElectionStatus.
-
getId
String getId()Return theElectionFacade's electionId.- Returns:
- the
ElectionFacadeid.
-
getGoal
String getGoal()Return theElectionFacade's goal.- Returns:
- the
ElectionFacadegoal.
-
getStartDate
LocalDateTime getStartDate()Return theElectionFacade's startLocalDateTime.- Returns:
- the
ElectionFacadestart date.
-
getEndDate
LocalDateTime getEndDate()Return theElectionFacade's endLocalDateTime.- Returns:
- the
ElectionFacadeend date.
-
getAffluence
double getAffluence()Return theElectionFacade's affluence.- Returns:
- the
ElectionFacadeaffluence.
-
getResults
Allows access toMaprepresenting results of theElection.- Returns:
- the
Maprepresenting the results.
-