biocell
Class GlobalState

java.lang.Object
  extended by java.lang.Thread
      extended by biocell.BioThread
          extended by biocell.GlobalState
All Implemented Interfaces:
java.lang.Runnable

public class GlobalState
extends BioThread

Author:
nabhoth The Energy based managment system facility. It accepts moods as representations of the BioModules such as BioThread or BioCell

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
static java.util.Vector currentMoods
          Comment for currentMoods
static DynamicMood globalMood
          Comment for globalMood
static java.util.Vector moods
          Comment for moods
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
GlobalState()
           
 
Method Summary
static void addCurrentMood(DynamicMood d)
           
static void delCurrentMood(DynamicMood d)
           
static void generateMoods()
          generates moods from the default file
 java.util.Vector getClassesAttributes()
           
static java.util.Vector getCurrentMoods()
           
static double getFood()
           
static DynamicMood getGlobalMood()
           
static java.util.Vector getMoods()
           
static void iniMainMood()
          initialize the global mood - the mood mnager
static void modified()
           
 void setClassesAttributes(java.util.Vector classesAttributes)
           
static void setCurrentMoods(java.util.Vector currentMoods)
           
static void setGlobalMood(DynamicMood globalMood)
           
static void setMoods(java.util.Vector moods)
           
static void setTemplateMood(java.lang.String name)
           
 void unregister(DynamicMood o)
           
static void update()
           
 
Methods inherited from class biocell.BioThread
getCurrentmood, getMoodParam, getstate, setMood, stepEnergy
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

moods

public static java.util.Vector moods
Comment for moods


globalMood

public static DynamicMood globalMood
Comment for globalMood


currentMoods

public static java.util.Vector currentMoods
Comment for currentMoods

Constructor Detail

GlobalState

public GlobalState()
Method Detail

modified

public static void modified()

generateMoods

public static void generateMoods()
generates moods from the default file


iniMainMood

public static void iniMainMood()
initialize the global mood - the mood mnager


unregister

public void unregister(DynamicMood o)
Parameters:
o - - remove object to the energy based managment system.

setTemplateMood

public static void setTemplateMood(java.lang.String name)
Parameters:
name - - generate single template mood

update

public static void update()

getCurrentMoods

public static java.util.Vector getCurrentMoods()
Returns:
Returns the currentMoods.

setCurrentMoods

public static void setCurrentMoods(java.util.Vector currentMoods)
Parameters:
currentMoods - The currentMoods to set.

getGlobalMood

public static DynamicMood getGlobalMood()
Returns:
Returns the globalMood.

setGlobalMood

public static void setGlobalMood(DynamicMood globalMood)
Parameters:
globalMood - The globalMood to set.

getFood

public static double getFood()
Returns:

getMoods

public static java.util.Vector getMoods()
Returns:
Returns the moods.

setMoods

public static void setMoods(java.util.Vector moods)
Parameters:
moods - The moods to set.

getClassesAttributes

public java.util.Vector getClassesAttributes()
Returns:
Returns the classesAttributes.

addCurrentMood

public static void addCurrentMood(DynamicMood d)

delCurrentMood

public static void delCurrentMood(DynamicMood d)

setClassesAttributes

public void setClassesAttributes(java.util.Vector classesAttributes)
Parameters:
classesAttributes - The classesAttributes to set.