public class ExcitationUtils
extends java.lang.Object
Constructor and Description |
---|
ExcitationUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
addAncestorAsSource(ExcitationComponent ecomp,
int height)
Look for the first ancestor of an ExcitationComponent, up to
a prescribed height, that happens to also be an ExcitationComponent.
|
static double |
combine(double e,
ExcitationSourceList sources,
ExcitationComponent.CombinationRule rule) |
static double |
combineWithAncestor(ExcitationComponent ecomp,
ExcitationSourceList sources,
int height,
ExcitationComponent.CombinationRule rule) |
static double |
getAncestorNetExcitation(ModelComponent comp,
int height) |
static double |
getGain(ExcitationSourceList sources,
ExcitationComponent ex) |
static java.util.ArrayList<ExcitationComponent> |
postscanSources(java.util.Deque<ScanToken> tokens,
CompositeComponent ancestor) |
static void |
removeAncestorAsSource(ExcitationComponent ecomp,
int height)
Look for the first ancestor of an ExcitationComponent, up to
a prescribed height, that happens to also be an ExcitationComponent.
|
static ExcitationSourceList |
scan(ReaderTokenizer rtok,
java.lang.String name,
java.util.Deque<ScanToken> tokens) |
static boolean |
setGain(ExcitationSourceList sources,
ExcitationComponent ex,
double gain) |
static ExcitationSourceList |
updateReferences(ModelComponent host,
ExcitationSourceList sources,
boolean undo,
java.util.Deque<java.lang.Object> undoInfo) |
static void |
writeSources(java.io.PrintWriter pw,
java.lang.String name,
java.util.Collection<ExcitationComponent> sources,
CompositeComponent ancestor) |
public static double getAncestorNetExcitation(ModelComponent comp, int height)
public static double combineWithAncestor(ExcitationComponent ecomp, ExcitationSourceList sources, int height, ExcitationComponent.CombinationRule rule)
public static double combine(double e, ExcitationSourceList sources, ExcitationComponent.CombinationRule rule)
public static void addAncestorAsSource(ExcitationComponent ecomp, int height)
ecomp
- Component for which ancestors should be checkedheight
- Maximum ancestor height (1 = parent, 2 = grandparent, etc.)public static void removeAncestorAsSource(ExcitationComponent ecomp, int height)
ecomp
- Component for which ancestors should be checkedheight
- Maximum ancestor height (1 = parent, 2 = grandparent, etc.)public static void writeSources(java.io.PrintWriter pw, java.lang.String name, java.util.Collection<ExcitationComponent> sources, CompositeComponent ancestor) throws java.io.IOException
java.io.IOException
public static java.util.ArrayList<ExcitationComponent> postscanSources(java.util.Deque<ScanToken> tokens, CompositeComponent ancestor) throws java.io.IOException
java.io.IOException
public static double getGain(ExcitationSourceList sources, ExcitationComponent ex)
public static boolean setGain(ExcitationSourceList sources, ExcitationComponent ex, double gain)
public static ExcitationSourceList scan(ReaderTokenizer rtok, java.lang.String name, java.util.Deque<ScanToken> tokens) throws java.io.IOException
java.io.IOException
public static ExcitationSourceList updateReferences(ModelComponent host, ExcitationSourceList sources, boolean undo, java.util.Deque<java.lang.Object> undoInfo)