Title: Intermediator-class
Description: This class offers service to the user-interface through the DataStructure-interface.
Copyright: Copyright (c) 2006 CONCEPT-lisenssi Tekijänoikeus (c) 2006, Pekka Kuuva, Tatu Repo, Pasi Saari, Anna Seppänen. Kaikki oikeudet pidätetään. Tämän ohjelmiston levittäminen ja käyttö lähdekoodina ja binäärinä, muutettuna tai muuttamattomana, on sallittu edellyttäen, että seuraavat ehdot täytetään: 1. OHJELMISTON LEVITTÄMINEN Lähdekoodikopioissa, dokumentaatiossa ja muussa ohjelmiston mukana tulevassa aineistossa on oltava tämä lisenssi kokonaisuudessaan. 1.2. VIENTIRAJOITUKSET Ohjelmistoa tai sen osia ei saa viedä Amerikan Yhdysvaltoihin ilman tekijöiden erillistä suostumusta. 2. OHJELMISTON KÄYTTÖ (EULA) 2.1 KÄYTTÖEHDOT Ohjelmiston käyttäjän tulee joskus suorittaa vähintään yksi seuraavista toimista: a) Tarjota omalla kustannuksellaan olut tasokkaassa ravintolassa, pubissa tai muussa vastaavassa anniskelua harjoittavassa liikkeessä kullekin tekijöistä, sekä ilmoittaa tästä tarjouksesta. b) Tarjota tekijöille omalla kustannuksellaan pääsy tapahtumaan, jonka yhteydessä sovellusta on käytetty, ja ilmoittaa tästä tarjouksesta tekijöille. Ilmoittamisella tarkoitetaan vähintään viikkoa ennen tarjouk- sen täytäntöönpanoa tekijöille lähetettyä sähköpostia, jossa ilmoitetaan ohjelmiston käyttäjän nimi ja yhteystiedot sekä tarjous ja sen ajankohta. Jos käyttöehdot eivät ole täyttyneet, ohjelmistoa ei saa käyttää. 2.1. TAKUU Tekijänoikeuden haltijat ja ohjelmiston kehittäjät tarjoavat tämän ohjelmiston "sellaisena kuin se on". Sovellukselle ei myönnetä minkäänlaista takuuta kaupallisesti hyväksyttävästä laadusta eikä sen taata soveltuvan mihinkään tarkoitukseen. 2.2. VASTUUNRAJOITUS Tekijänoikeuden haltija ja ohjelmiston kehittäjät eivät ole missään tilanteessa vastuussa suorista, epäsuorista, yleisistä, erityisistä, satunnaisista tai seurauksellisista vahingoista (sisältäen, muttei tyhjentävästi, korvaavan tuotteen tai palvelun hankinnan, käyttömahdollisuuden, tiedon tai voittojen menetykset, tai liiketoiminnan keskeytymisen), jotka aiheutuvat miten tahansa ja millä tahansa vahingonkorvausoikeudellisella perusteella mukaanlukien sopimusvastuu, ankara vastuu ja sopimuksen ulkoinen vastuu (huolimattomuus tai muu), vaikka kyseisten vahinkojen mahdollisuudesta olisi kerrottu.
Method Detail |
public java.util.Vector getKeywords(concept.structure.Topic topic)
topic
- Topic The given topicpublic java.util.Vector getAllSessions()
public java.util.Vector getTopics()
public java.util.Vector getBlockTypes()
public java.util.Vector getSessionAndPresentationTypes()
public int getDayCount()
public java.util.Vector getHalls(int day)
day
- int the day indexpublic java.util.Vector getAllHalls()
public java.util.Vector getBlocks(int day)
day
- int The index of the given daypublic java.util.Vector getSessions(int day)
day
- int The given day indexpublic concept.structure.Block addBlock(long start, long end, concept.structure.BlockType type)
start
- long The starting time of the blockend
- long The ending time of the blocktype
- BlockType The type of the blockpublic concept.structure.Session newSession(java.lang.String abbrv, java.lang.String title, concept.structure.Topic topic, concept.structure.Type type, concept.structure.Presenter cman1, concept.structure.Presenter cman2)
abbrv
- String Abbreviation of the sessiontitle
- String Title of the sessiontopic
- Topic Topic of the sessiontype
- Type Type of the sessioncman1
- Presenter The first chairman of the sessioncman2
- Presenter The second chairman of the sessionpublic java.util.Vector updateSessionData(concept.structure.Session s, java.lang.String abbrv, java.lang.String title, concept.structure.Topic topic, concept.structure.Type type, concept.structure.Presenter cman1, concept.structure.Presenter cman2, boolean ready)
s
- Session The session to be updated.abbrv
- String Abbreviation of the session.title
- String Title of the session.topic
- Topic Topic of the session.type
- Type Type of the session.cman1
- Presenter The first chairman of the session.cman2
- Presenter The second chairman of the session.ready
- boolean The ready-flag of the session.public java.util.Vector setChairman(concept.structure.Session session, concept.structure.Presenter presenter, int orderNumber)
session
- Session The given sessionpresenter
- Presenter The given chairmanorderNumber
- int The order number of the chairman in the session.public java.util.Vector getChairmenByTopic(concept.structure.Topic topic)
topic
- Topic The given topic.public java.util.Vector addPresentation(concept.structure.Session session, concept.structure.Presentation presentation)
session
- Session The given session.presentation
- Presentation The given presentation.public long getDayBegin(int index)
index
- int The given index.public boolean removePresentationFromSession(concept.structure.Session session, concept.structure.Presentation presentation)
session
- Session The given session.presentation
- Presentation The given presentation.public java.util.Vector scheduleSession(concept.structure.Session session, concept.structure.Hall hall, concept.structure.Block block)
session
- Session The given session.hall
- Hall The given hall.block
- Block The given block.public java.util.Vector getRestrictions(concept.structure.Presentation presentation)
presentation
- Presentation The given presentation.public java.util.Vector swapSessions(concept.structure.Session session1, concept.structure.Session session2)
session1
- Session A given session.session2
- Session The other given session.public boolean removeScheduleData(concept.structure.Session session)
session
- Session The given session.public java.util.Vector replacePresentationInSession(concept.structure.Presentation presentation, int newPlacement)
presentation
- Presentation The given presentation.newPlacement
- int The new placement.public boolean removeBlock(concept.structure.Block block)
block
- Block The given block.public boolean removeHallFromDay(concept.structure.Hall hall, long day)
hall
- Hall The given hall.day
- long The first millisecond of the given day.public boolean deleteSession(concept.structure.Session s)
s
- Session the given session.public java.util.Vector searchSessions(java.lang.String abbrv, java.lang.String title, concept.structure.Topic topic, concept.structure.Type type, concept.structure.Presenter cman, boolean isReady, boolean notReady, boolean hasRestrictions, boolean noRestrictions, boolean isScheduled, boolean notScheduled)
abbrv
- String The abbreviation of the session.title
- String The title of the session.topic
- Topic The topic of the session.type
- Type The type of the session.cman
- Presenter The first chairman of the session.isReady
- boolean A boolean describing whether the session is ready.notReady
- boolean A boolean describing whether the session is not ready.hasRestrictions
- boolean A boolean describing whether the session has restrictions.noRestrictions
- boolean A boolean describing whether the session has no restrictions.isScheduled
- boolean A boolean describing whether the session is scheduled.notScheduled
- boolean A boolean describing whether the session is not scheduled.public java.util.Vector searchPresentations(java.lang.String title, concept.structure.Topic topic, concept.structure.Type type, java.lang.String presenter, java.lang.String keyword1, java.lang.String keyword2, java.lang.String keyword3, int grade, boolean isRegistered, boolean notRegistered, boolean isPlaced, boolean notPlaced, boolean hasRestrictions, boolean noRestrictions)
title
- String The title of the presentation.topic
- Topic The topic of the presentation.type
- Type The type of the presentation.presenter
- String The first presenter of the presentation.keyword1
- String The first keyword of the presentation.keyword2
- String The second keyword of the presentation.keyword3
- String The third keyword of the presentation.grade
- int The grade of the presentation.isRegistered
- boolean A boolean describing whether the first presenter of the presentation is registered.notRegistered
- boolean A boolean describing whether the first presenter of the presentation is not registered.isPlaced
- boolean A boolean describing whether the presentation is placed in the schedule.notPlaced
- boolean A boolean describing whether the presentation is placed in the schedule.hasRestrictions
- boolean A boolean describing whether the presentation has any accumulated or distinctive restrictions.noRestrictions
- boolean A boolean describing whether the presentation has no accumulated or distinctive restrictions.public boolean addHallToDay(concept.structure.Hall hall, long day)
hall
- Hall The given hall.day
- long The first millisecond of the given day.public java.util.Vector updateBlock(concept.structure.Block block, long begin, long end, concept.structure.BlockType type)
block
- Block The given block.begin
- long The given starttime in milliseconds.end
- long The given endtime in milliseconds.type
- BlockType The given type.public java.util.Vector detectAllConflicts()