banshee.lang
Class Action

java.lang.Object
  |
  +--asgaard.skid.SkidBean
        |
        +--banshee.lang.Entity
              |
              +--banshee.lang.Action
Direct Known Subclasses:
Entry

public class Action
extends Entity

This class holds a generic workout-parameter based aproac of an elementar action in sports. This is e.g. "running 1 hour with heart-frequence of 140". Therefor a Template is used, which holds all default-settings for a typical action (e.g. running) in a individual configuration.

See Also:
asgaard.banshee.lang.Template, Serialized Form

Field Summary
protected  java.lang.Object[] defs
          List with defaults got from the template (as well as the items)
 
Fields inherited from class banshee.lang.Entity
items, values
 
Fields inherited from class asgaard.skid.SkidBean
broker, debug, history_policy, LAST_METHOD
 
Constructor Summary
Action()
          Instanciates an Entry, setting the defaults and item-List from the template.
Action(Template template)
          Instanciates a new Entry
 
Method Summary
 Entity getTemplate()
          Returns the Template used by this Action
 java.lang.String toString()
           
 
Methods inherited from class banshee.lang.Entity
getName, item, length, setName
 
Methods inherited from class asgaard.skid.SkidBean
addEvent, cloneBean, flush, getAge, getBeanType, getBroker, getChangeHistory, getClassKey, getCreated, getEvent, getFilter, getIdentifier, getKey, getLink, getMethods, getModified, getObject, getUpdatePolicy, init, invoke, isChanged, isNew, isReadOnly, modify, putLink, setAge, setObject, suscribeEvent, undo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

defs

protected transient java.lang.Object[] defs
List with defaults got from the template (as well as the items)
Constructor Detail

Action

public Action()
       throws java.lang.Exception
Instanciates an Entry, setting the defaults and item-List from the template. Do not use it to create a new Entry - you need to distinguish an template.
Throws:
java.lang.Exception - if there is no known template.

Action

public Action(Template template)
       throws java.lang.Exception
Instanciates a new Entry
Parameters:
template - the used template for this entry
Throws:
java.lang.Exception -  
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getTemplate

public Entity getTemplate()
Returns the Template used by this Action
Overrides:
getTemplate in class Entity
See Also:
asgaard.banshee.lang.Template