cz.cuni.amis.nb.pogamut.unreal.timeline.records
Class TLFolder

Package class diagram package TLFolder
java.lang.Object
  extended by cz.cuni.amis.nb.pogamut.unreal.timeline.records.TLFolder
All Implemented Interfaces:
Serializable

public class TLFolder
extends Object
implements Serializable

This class is used for storing introspectable variables during some period of time. Values are stored as pairs of time,value. Values are taken from Folder when user calls method TLFolder.update(long timestamp), it doesn't refresh automaticly. TLFolder can contain properties and subfolder. Everything is updated recursively. TLFolder can be created either by mirroring existing Folder or by creating an empty TLFolder and populating it with properties and subfolders.

Author:
Honza
See Also:
TLProperty, Folder, Serialized Form

Field Summary
protected  String name
          Name of the storage folder
 LinkedList<TLProperty> properties
          List of folders that are in this folder
 LinkedList<TLFolder> subfolders
           
 
Constructor Summary
TLFolder(cz.cuni.amis.introspection.Folder folder)
          Create a new folder for storing pairs (timestamp, value).
TLFolder(String name)
          Create an empty folder with name.
 
Method Summary
 void addFolder(TLFolder newSubfolder)
          Add subfolder to the folder.
 void addProperty(TLProperty newProperty)
          Add property to the folder
 TLFolder findFolder(String name)
          Find if we have subfolder with specified name and return it.
 TLProperty findProperty(String name)
          Find if we have property with specified name in properties and return it.
 String getName()
          Return name of the folder.
 List<TLProperty> getProperties()
           
 List<TLFolder> getSubfolders()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected String name
Name of the storage folder


properties

public LinkedList<TLProperty> properties
List of folders that are in this folder


subfolders

public LinkedList<TLFolder> subfolders
Constructor Detail

TLFolder

public TLFolder(cz.cuni.amis.introspection.Folder folder)
         throws cz.cuni.amis.introspection.IntrospectionException
Create a new folder for storing pairs (timestamp, value). Create recurcively subfolders from passed folder (basically mirror) the folder.

Parameters:
folder - folder we want to mirror.
Throws:
cz.cuni.amis.introspection.IntrospectionException

TLFolder

public TLFolder(String name)
Create an empty folder with name.

Parameters:
name -
Method Detail

addFolder

public void addFolder(TLFolder newSubfolder)
Add subfolder to the folder.

Parameters:
newSubfolder -

addProperty

public void addProperty(TLProperty newProperty)
Add property to the folder

Parameters:
newProperty -

findFolder

public TLFolder findFolder(String name)
Find if we have subfolder with specified name and return it.

Parameters:
name - name of the subfolder we are searching for
Returns:
null if no such subfolder found

findProperty

public TLProperty findProperty(String name)
Find if we have property with specified name in properties and return it.

Parameters:
name - name of the property we are searching for
Returns:
null if no such property found

getName

public String getName()
Return name of the folder.

Returns:

getProperties

public List<TLProperty> getProperties()
Returns:
the properties

getSubfolders

public List<TLFolder> getSubfolders()
Returns:
the subfolders


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