Product Domain Class
General Description
Products are the main trade objective: they can be bought and sold.
Every product represents the energy for a specified timeslot. You need to hold a certain amount of energy to fulfill your supply/demand needsDomain Properties
A Product
domain class possesses the following properties:Long serverId
Competition competition
String name
Boolean enabled
Date startDateTime
Date endDateTime
Long serialNumber
Boolean current
ActionType action = ( Started | Stopped )
Property Descriptions
- serverId: unique identifier of the entity assigned by the server
- competition: associates the Product with a certain competition instance
- name: name of the product, naturally a description of the timeslot
- enabled: indicates if the Product can be traded or not
- startDateTime: start point of a timeslot which is represented by the product
- endDateTime: end point of a timeslot which is represented by the product
- serialNumber: identifier of a Product: facilitates the understanding of the order of timeslots (products)
- Boolean current: indicates if the product represents the current timeslot (= current game time)
- ActionType action: indicates the current state of a Product managed by the server:
Started: Product is set enabled
Stopped: Product is set disabled