cz.cuni.amis.nb.pogamut.unreal.services
Class PogamutEnvironmentService

Package class diagram package PogamutEnvironmentService
java.lang.Object
  extended by cz.cuni.amis.nb.pogamut.unreal.services.PogamutEnvironmentService
All Implemented Interfaces:
IPogamutEnvironments

public final class PogamutEnvironmentService
extends Object
implements IPogamutEnvironments

This is a service for all environments and their selections in the Pogamut. TODO: Maybe use Adapter pattern and encapsulate Server and timeline to one interface

Author:
Honza

Constructor Summary
PogamutEnvironmentService()
           
 
Method Summary
 boolean addEnvironment(Object environment)
          Add environment to register of environments and initialize its selection
 EnvironmentSelection getEnvironmentSelection(Object environment)
          Get selection object for some environment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PogamutEnvironmentService

public PogamutEnvironmentService()
Method Detail

getEnvironmentSelection

public EnvironmentSelection getEnvironmentSelection(Object environment)
Description copied from interface: IPogamutEnvironments
Get selection object for some environment.

If environment wasn't known in the register, add it and create new selection object for it.

Specified by:
getEnvironmentSelection in interface IPogamutEnvironments
Parameters:
environment - Environment we want selection for, e.g. UT2004Map
Returns:
selection object for passed timeline.

addEnvironment

public boolean addEnvironment(Object environment)
Description copied from interface: IPogamutEnvironments
Add environment to register of environments and initialize its selection

Specified by:
addEnvironment in interface IPogamutEnvironments


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.