All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class improv.actor.behavior.Behavior
java.lang.Object
   |
   +----improv.actor.behavior.Behavior
  -  public abstract class Behavior
  
-  extends Object
  
-  implements PropertyContainer
   
This is the superclass of State and Sequence, and defines a set of methods for getting and setting vatiables
	common to both classes.
    -  See Also:
    
 -  State, Sequence
 
  
  -  
	Behavior()
   -  
 
  
  -  
	addProperty(ImprovProperty)
   -  Used to add a property to the behavior.
  
 -  
	elapsedTimeSinceClockStart()
   -  
  
 -  
	elapsedTimeSinceStart()
   -  
  
 -  
	getClockStart()
   -  
  
 -  
	getDuration()
   -  
  
 -  
	getLayer()
   -  	
  
 -  
	getName()
   -  
  
 -  
	getProperty(String)
   -  
  
 -  
	getStartTime()
   -  
  
 -  
	getTimeScale()
   -  
  
 -  
	getTimeScale(double)
   -  
  
 -  
	getWeight()
   -  
  
 -  
	hasLocalClock()
   -  
  
 -  
	isMomentary()
   -  
  
 -  
	setCurrentDuration(double)
   -  This is used to temporarily override the value of the behaviors duration field.
  
 -  
	setCurrentMomentary(boolean)
   -  This is used to temporarily override the value of the behavior's momentary flag.
  
 -  
	setDuration(double)
   -  
  
 -  
	setLocalClock(boolean)
   -  
  
 -  
	setMomentary(boolean)
   -  Sets the value of the momentary flag.
  
 -  
	setName(String)
   -  	
  
 -  
	setWeight(double)
   -  
 
  
Behavior
 public Behavior()
  
getName
 public final String getName()
  
    -  Returns:
    
 -  the name of the Behavior
  
 
 
setName
 public final void setName(String name)
  
    -  Parameters:
    
 -  name - the name of the behavior
  
 
 
getLayer
 public Layer getLayer()
  
    -  Returns:
    
 -  this Behavior's Layer.
  
 
 
hasLocalClock
 public final boolean hasLocalClock()
setLocalClock
 public final void setLocalClock(boolean b)
  
    -  Parameters:
    
 -  localClock - the value of the local clock flag.
  
 
 
getStartTime
 public final double getStartTime()
  
    -  Returns:
    
 -  the start time in seconds for the behavior.
  
 
 
getClockStart
 public final double getClockStart()
  
    -  Returns:
    
 -  the start time in seconds for the behavior clock.  If the Behavior is running on a local clock then
this will be the same as the start time for the behavior, otherwise this is start time of the last
behavior in this layer with a local clock.
  
 
 
elapsedTimeSinceStart
 public final double elapsedTimeSinceStart()
  
    -  Returns:
    
 -  the elapsed time in seconds since the start of the behavior.
  
 
 
elapsedTimeSinceClockStart
 public final double elapsedTimeSinceClockStart()
  
    -  Returns:
    
 -  the elapsed time in seconds since the start of the behavior clock.
  
 
 
getWeight
 public final double getWeight()
  
    -  Returns:
    
 -  the current weight of the behavior
  
 
 
setWeight
 public final void setWeight(double weight)
  
    -  Parameters:
    
 -  weight - the current weight of the behavior
  
 
 
getDuration
 public final double getDuration()
  
    -  Returns:
    
 -  the current duration of the behavior
  
 
 
setDuration
 public final void setDuration(double duration)
  
    -  Parameters:
    
 -  duration - the current duration of the behavior
  
 
 
setCurrentDuration
 public final void setCurrentDuration(double duration)
  -  This is used to temporarily override the value of the behaviors duration field. This temporary value lasts until
this behavior is no longer active and then @return to the value set using the setDuration() method.
 
isMomentary
 public final boolean isMomentary()
  
    -  Returns:
    
 -  the value of the momentary flag.
  
 
 
setMomentary
 public final void setMomentary(boolean momentary)
  -  Sets the value of the momentary flag. The momentary flag is used for behaviors that temporarily override other behaviors.
When this flag is set to true, the behavior active immediately prior to this behavior will be reactivated at the end of
this behavior's duration.
 
setCurrentMomentary
 public final void setCurrentMomentary(boolean b)
  -  This is used to temporarily override the value of the behavior's momentary flag. This temporary value lasts until
this behavior is no longer active and then @return to the value set using the setMomentary() method.
 
getTimeScale
 public final double getTimeScale(double time)
  
    -  Returns:
    
 -  the current time scale, which is either the value of the time scale field or the current value
returned by the time scale curve.
  
 
 
getTimeScale
 public final double getTimeScale()
  
    -  Returns:
    
 -  the current time scale, which is either the value of the time scale field or the current value
returned by the time scale curve at time 0.
  
 
 
getProperty
 public final ImprovProperty getProperty(String propertyName)
  
    -  Returns:
    
 -  the behavior's property given the property name.  @return null if no property exists by this name.
  
 
 
addProperty
 public final void addProperty(ImprovProperty i)
  -  Used to add a property to the behavior.  Will override any previous property with the same name.
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index