|
|||||||||
| Home >> All >> org >> modama >> framework >> [ operations overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.modama.framework.operations
Class Abstracton2InputOperation

java.lang.Objectorg.modama.ModelStates
org.modama.Model
org.modama.framework.AbstractFrameworkModel
org.modama.framework.operations.AbstractOperation
org.modama.framework.operations.Abstracton2InputOperation
- All Implemented Interfaces:
- java.util.EventListener, java.beans.PropertyChangeListener
- public abstract class Abstracton2InputOperation
- extends AbstractOperation
a baseclass for operation on exactly two inputs, it asumes that the order of the 2 inputs doesnt matter depending on the types of the input the output changes slightly: Ne -> NumberEntity Ie -> ImageEntity Nl -> NumberList Il -> ImageList - the input order doesnt matter, so their are 14 possiblities) Input Output Ne an Entity with the same data Ie an Entity with the same data Il a new Ie output = calc( ... calc( calc( calc( Il[0], Il[1] ), Il[2] ), Il[3] ) ... ) Nl a new Ne output = calc( ... calc( calc( calc( Nl[0], Nl[1] ), Nl[2] ), Nl[3] ) ... ) Ne Ne a new Ne output = calc( Ne, Ne ) Ne Nl a new Nl with the size of the input Nl, every number of the List is combined with the Ne output[i] = calc( Ne, Nl[i] ) Nl Nl a new Nl with the size of the bigger input list if( i inrange of both Nl ) output[i] = calc( Nl[i], Nl[i] ) else output[i] = Nl[i] // the bigger Nl Ie Ie a new Ie output = calc( Ie, Ie ) Ie Il a new Il with the size of the input Il output[i] = cals( Ie, Il[i] ) Il Il a new Il with the size of the bigger inputlist if( i inrange of both Il ) output[i] = calc( Il[i], Il[i] ) else output[i] = Il[i] // the bigger Il Ne Ie a new Ie output = calc( Ne, Ie ) Ne Il a new Il, same size as inputlist output[i] = calc( Ne, Il[i] ) Nl Ie not defined Nl Il a new Il, same size as the input Il if( Nl[i] defined ) output[i] = calc( Nl[i], Il[i] ) else output[i] = Il[i]
| Nested Class Summary | |
class |
Abstracton2InputOperation.IeIeCalculator
calculator for 2 images |
class |
Abstracton2InputOperation.IeIlCalculator
calculator for an image and an imagelist |
class |
Abstracton2InputOperation.IlIlCalculator
calculator for 2 imagelists |
class |
Abstracton2InputOperation.NeIeCalculator
calculator for 1 image and 1 number |
class |
Abstracton2InputOperation.NeIlCalculator
calculator for a number and an imagelist |
class |
Abstracton2InputOperation.NeNeCalculator
calculator for 2 numbers |
class |
Abstracton2InputOperation.NeNlCalculator
calculator for a number and a numberlist |
class |
Abstracton2InputOperation.NlIlCalculator
calculator for a numberlist and an imagelist |
class |
Abstracton2InputOperation.NlNlCalculator
calculator for 2 numberlists |
class |
Abstracton2InputOperation.SingleImageListCalculator
calculator for a single imagelist |
class |
Abstracton2InputOperation.SingleInputCalculator
Calculator for a single image or number as input, does nothing |
class |
Abstracton2InputOperation.SingleNumberListCalculator
calculator for a single numberlist |
| Nested classes inherited from class org.modama.framework.operations.AbstractOperation |
AbstractOperation.Calculator |
| Field Summary | |
(package private) Abstracton2InputOperation.IeIeCalculator |
iiCalculator
Image Image calculator |
(package private) Abstracton2InputOperation.NeIeCalculator |
niCalculator
Number Image calculator |
(package private) Abstracton2InputOperation.NeNeCalculator |
nnCalculator
Number Number calculator |
| Fields inherited from class org.modama.framework.operations.AbstractOperation |
active, availabeCalculators, calculator, EVENT_CONNECT, EVENT_DISCONNECT, EVENT_EXECUTION_FINISHED, EVENT_EXECUTION_STARTED, input, logger, output, resultingClass |
| Fields inherited from class org.modama.framework.AbstractFrameworkModel |
name, PROP_NAME |
| Fields inherited from class org.modama.Model |
changeAgent, EVENT_FIRED, state |
| Fields inherited from class org.modama.ModelStates |
CREATED, DELETED, MODIFIED, SAVED |
| Constructor Summary | |
Abstracton2InputOperation()
|
|
| Method Summary | |
boolean |
accept(org.modama.framework.entities.AbstractEntity entity)
accepts a maximum of 2 inputs, the only combination not allowed is NumberList ImageEntity |
boolean |
canExecute()
|
protected java.lang.Object |
getObjectFromInput(java.lang.Class type)
helper to get the object of given type from the input |
| Methods inherited from class org.modama.framework.operations.AbstractOperation |
calculate, create, createOutputEntity, delete, execute, fillAvailabeCalculatorsArray, getInputCount, getInputs, getOutput, isActive, load, Output, propertyChange, put, remove, removeAll, removeAllInput, save, searchCalculator, setActive, setOutput, toString |
| Methods inherited from class org.modama.framework.AbstractFrameworkModel |
getName, setName |
| Methods inherited from class org.modama.Model |
addPropertyChangeListener, addPropertyChangeListener, fire, fire, fire, getState, removePropertyChangeListener, removePropertyChangeListener, setState |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
iiCalculator
Abstracton2InputOperation.IeIeCalculator iiCalculator
- Image Image calculator
nnCalculator
Abstracton2InputOperation.NeNeCalculator nnCalculator
- Number Number calculator
niCalculator
Abstracton2InputOperation.NeIeCalculator niCalculator
- Number Image calculator
| Constructor Detail |
Abstracton2InputOperation
public Abstracton2InputOperation()
| Method Detail |
accept
public boolean accept(org.modama.framework.entities.AbstractEntity entity)
- accepts a maximum of 2 inputs, the only combination not allowed is NumberList ImageEntity
- Specified by:
acceptin classAbstractOperation
getObjectFromInput
protected java.lang.Object getObjectFromInput(java.lang.Class type)
- helper to get the object of given type from the input
canExecute
public boolean canExecute()
- Specified by:
canExecutein classAbstractOperation
|
|||||||||
| Home >> All >> org >> modama >> framework >> [ operations overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC