Package oms3
Class Compound
- java.lang.Object
-
- oms3.Compound
-
- Direct Known Subclasses:
Conditional
public class Compound extends Object
Abstract Compound Command.- Version:
- $Id$
- Author:
- od
-
-
Constructor Summary
Constructors Constructor Description Compound()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddListener(Notification.Listener l)Add a ExecutionListener that tracks executionprotected voidcheck()Check for valid internals within the compoundvoidconnect(Object from, String from_out, Object... tos)Deprecated.voidconnect(Object from, String from_out, Object to, String to_in)Deprecated.voidexecute()voidfeedback(Object from, String from_out, Object... tos)Feedback connection between two components.voidfeedback(Object from, String from_out, Object to, String to_in)Feedback connection between two components.voidfield2in(Object o, String field, Object to)Maps an object's field to a component's In field with the same namevoidfield2in(Object o, String field, Object to, String to_in)Maps a object's field to an In fieldvoidfield2inout(Object o, String field, Object comp)Maps a field to an In and Out fieldvoidfield2inout(Object o, String field, Object comp, String inout)Maps a field to an In and Out fieldvoidfinalizeComponents()voidin2in(String in, Object... to)Maps a compound input to an internal simple input field.voidin2in(String in, Object to, String to_in)Maps a Compound Input field to a internal simple input field.voidinitializeComponents()protected voidinternalExec()Internal execution.voidmapIn(String in, Object... to)Deprecated.voidmapIn(String in, Object to, String to_in)Deprecated.voidmapInField(Object o, String out, Object from)Deprecated.voidmapInField(Object o, String out, Object from, String from_out)Deprecated.voidmapOut(String out, Object from)Deprecated.voidmapOut(String out, Object from, String from_out)Deprecated.voidmapOutField(Object o, String out, Object from)Deprecated.voidmapOutField(Object o, String out, Object from, String from_out)Deprecated.voidout2field(Object from, String from_out, Object o)Maps a component Out field to an object's field.voidout2field(Object from, String from_out, Object o, String field)Maps a component's Out field to an object field.voidout2in(Object from, String from_out, Object... tos)Connects field1 of cmd1 with the same named fields in cmdsvoidout2in(Object from, String from_out, Object to, String to_in)Connects two internal components with respect to their fields.voidout2infb(Object from, String from_out, Object to, String to_in)Connects two internal components with respect to their fields.voidout2out(String out, Object to)Map output maps a compound output to an internal simple output field.voidout2out(String out, Object to, String to_out)Maps a Compound Output field to a internal simple output field.static voidreload()voidremoveListerer(Notification.Listener l)Remove a ExecutionListener that tracks executionstatic voidshutdown()Shutting down the execution servicevoidval2in(boolean val, Object to, String field)voidval2in(byte val, Object to, String field)voidval2in(char val, Object to, String field)voidval2in(double val, Object to, String field)voidval2in(float val, Object to, String field)voidval2in(int val, Object to, String field)voidval2in(long val, Object to, String field)voidval2in(short val, Object to, String field)voidval2in(Object val, Object to, String field)
-
-
-
Method Detail
-
initializeComponents
public void initializeComponents()
-
finalizeComponents
public void finalizeComponents()
-
execute
public void execute() throws ComponentException- Throws:
ComponentException
-
shutdown
public static void shutdown()
Shutting down the execution service
-
reload
public static void reload()
-
out2infb
public void out2infb(Object from, String from_out, Object to, String to_in)
Connects two internal components with respect to their fields. from/@Out -> to/@In- Parameters:
from- command object 1from_out- output field of cmd1to- command object 2to_in- input field of cmd2
-
out2in
public void out2in(Object from, String from_out, Object to, String to_in)
Connects two internal components with respect to their fields. from/@Out -> to/@In- Parameters:
from- command object 1from_out- output field of cmd1to- command opbject 2to_in- input field of cmd2
-
out2in
public void out2in(Object from, String from_out, Object... tos)
Connects field1 of cmd1 with the same named fields in cmds- Parameters:
from- component1from_out- fieldtos- other components
-
feedback
public void feedback(Object from, String from_out, Object to, String to_in)
Feedback connection between two components.- Parameters:
from- the src componentfrom_out- output fieldto- dest componentto_in- in field
-
feedback
public void feedback(Object from, String from_out, Object... tos)
Feedback connection between two components.- Parameters:
from-from_out-tos-
-
in2in
public void in2in(String in, Object to, String to_in)
Maps a Compound Input field to a internal simple input field.- Parameters:
in- Compound input field.to- internal Componentto_in- Input field of the internal component
-
in2in
public void in2in(String in, Object... to)
Maps a compound input to an internal simple input field. Both fields have the same name.- Parameters:
in- the name of the fieldto- the commands to map to
-
field2inout
public void field2inout(Object o, String field, Object comp, String inout)
Maps a field to an In and Out field- Parameters:
o- the objectfield- the field namecomp- the componentinout- the field tagged with In and Out
-
field2inout
public void field2inout(Object o, String field, Object comp)
Maps a field to an In and Out field- Parameters:
o- the objectfield- the field namecomp- the component
-
field2in
public void field2in(Object o, String field, Object to, String to_in)
Maps a object's field to an In field- Parameters:
o- the objectfield- the field nameto- the componentto_in- the In field.
-
field2in
public void field2in(Object o, String field, Object to)
Maps an object's field to a component's In field with the same name- Parameters:
o- the objectfield- the field nameto- the component.
-
out2field
public void out2field(Object from, String from_out, Object o, String field)
Maps a component's Out field to an object field.- Parameters:
from- the componentfrom_out- the component's out fieldo- the objectfield- the object's field
-
out2field
public void out2field(Object from, String from_out, Object o)
Maps a component Out field to an object's field. Both field have the same name.- Parameters:
from- the componentfrom_out- the component's Out field.o- the object
-
out2out
public void out2out(String out, Object to, String to_out)
Maps a Compound Output field to a internal simple output field.- Parameters:
out- Compount output field.to- internal Componentto_out- output field of the internal component
-
out2out
public void out2out(String out, Object to)
Map output maps a compound output to an internal simple output field. Both fields have the same name.- Parameters:
out- tha name of the fieldto- the component source.
-
connect
@Deprecated public void connect(Object from, String from_out, Object to, String to_in)
Deprecated.
-
connect
@Deprecated public void connect(Object from, String from_out, Object... tos)
Deprecated.
-
mapIn
@Deprecated public void mapIn(String in, Object to, String to_in)
Deprecated.
-
mapIn
@Deprecated public void mapIn(String in, Object... to)
Deprecated.
-
mapInField
@Deprecated public void mapInField(Object o, String out, Object from, String from_out)
Deprecated.
-
mapInField
@Deprecated public void mapInField(Object o, String out, Object from)
Deprecated.
-
mapOutField
@Deprecated public void mapOutField(Object o, String out, Object from, String from_out)
Deprecated.
-
mapOutField
@Deprecated public void mapOutField(Object o, String out, Object from)
Deprecated.
-
mapOut
@Deprecated public void mapOut(String out, Object from, String from_out)
Deprecated.
-
mapOut
@Deprecated public void mapOut(String out, Object from)
Deprecated.
-
check
protected void check()
Check for valid internals within the compound
-
internalExec
protected void internalExec() throws ComponentExceptionInternal execution.- Throws:
ComponentException
-
addListener
public void addListener(Notification.Listener l)
Add a ExecutionListener that tracks execution- Parameters:
l- the Listener to add
-
removeListerer
public void removeListerer(Notification.Listener l)
Remove a ExecutionListener that tracks execution- Parameters:
l- the Listener to remove
-
-