Package jmri.jmrit.logixng
Interface ConditionalNG
- All Superinterfaces:
Base,Comparable<NamedBean>,NamedBean,PropertyChangeProvider
- All Known Implementing Classes:
DefaultConditionalNG
ConditionalNG.
-
Nested Class Summary
Nested classes/interfaces inherited from interface jmri.jmrit.logixng.Base
Base.PrintTreeSettings, Base.RunnableWithBase, Base.RunnableWithBaseThrowExceptionNested classes/interfaces inherited from interface jmri.NamedBean
NamedBean.BadNameException, NamedBean.BadSystemNameException, NamedBean.BadUserNameException, NamedBean.DisplayOptions, NamedBean.DuplicateSystemNameException -
Field Summary
Fields inherited from interface jmri.jmrit.logixng.Base
PRINT_LINE_NUMBERS_FORMAT, PROPERTY_CHILD_COUNT, PROPERTY_CHILD_REORDER, PROPERTY_LAST_RESULT_CHANGED, PROPERTY_SOCKET_CONNECTED, PROPERTY_SOCKET_DISCONNECTED, SEPARATOR, SOCKET_CONNECTED, SOCKET_DISCONNECTEDFields inherited from interface jmri.NamedBean
DISPLAY_NAME_FORMAT, INCONSISTENT, PROPERTY_COMMENT, PROPERTY_ENABLED, PROPERTY_KNOWN_STATE, PROPERTY_STATE, PROPERTY_USERNAME, QUOTED_NAME_FORMAT, UNKNOWN -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Execute the ConditionalNG.voidexecute(boolean allowRunDelayed) Execute the ConditionalNG.voidexecute(FemaleDigitalActionSocket socket) Execute the female socket.Get the thread that this conditionalNG executes on.Get the female socket of this ConditionalNG.booleanGet whenether execute() should run on the LogixNG thread at once or should dispatch the call until later.getStack()Get the stackintGet the thread id that this conditionalNG should execute on when JMRI starts next time.Get the current symbol tablebooleanDetermines whether this ConditionalNG is enabled.booleanDetermines whenether this ConditionalNG should be executed at startup or at panel load.booleanAre listeners registered?voidsetCurrentConditionalNG(ConditionalNG conditionalNG) Set the current ConditionalNG.voidsetEnabled(boolean enable) Set whenether this ConditionalNG is enabled or disabled.voidsetExecuteAtStartup(boolean value) Set whenether this ConditionalNG should be executed at startup or at panel load.voidsetRunDelayed(boolean value) Set whenether execute() should run on the LogixNG thread at once or should dispatch the call until later.voidsetSocketSystemName(String systemName) voidsetStartupThreadId(int threadId) Set the thread id that this conditionalNG should execute on when JMRI starts next time.voidsetSymbolTable(SymbolTable symbolTable) Set the current symbol tableMethods inherited from interface jmri.jmrit.logixng.Base
addPropertyChangeListener, addPropertyChangeListener, deepCopyChildren, dispose, doSocketOperation, existsInTree, forEntireTree, forEntireTreeWithException, getCategory, getChild, getChildCount, getComment, getConditionalNG, getDeepCopy, getListenerRef, getListenerRefs, getListenerRefsIncludingChildren, getLogixNG, getLongDescription, getLongDescription, getModule, getNumPropertyChangeListeners, getParent, getPropertyChangeListenersByReference, getRoot, getShortDescription, getShortDescription, getSystemName, getUsageDetail, getUsageTree, getUserName, hasChild, isActive, isSocketOperationAllowed, printTree, printTree, printTree, printTree, printTree, registerListeners, setComment, setParent, setParentForAllChildren, setup, setUserName, unregisterListeners, updateListenerRef, vetoableChangeMethods inherited from interface jmri.NamedBean
addPropertyChangeListener, addPropertyChangeListener, compareSystemNameSuffix, compareTo, describeState, dispose, getBeanType, getComment, getDisplayName, getDisplayName, getListenerRef, getListenerRefs, getNumPropertyChangeListeners, getProperty, getPropertyChangeListenersByReference, getPropertyKeys, getRecommendedToolTip, getState, getSystemName, getUsageReport, getUserName, removeProperty, setComment, setProperty, setState, setUserName, toString, updateListenerRef, vetoableChangeMethods inherited from interface jmri.beans.PropertyChangeProvider
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
-
Method Details
-
getCurrentThread
Get the thread that this conditionalNG executes on.- Returns:
- the thread
-
getStartupThreadId
int getStartupThreadId()Get the thread id that this conditionalNG should execute on when JMRI starts next time. It's not currently possible to move a ConditionalNG from one thread to another without restarting JMRI.- Returns:
- the thread ID
-
setStartupThreadId
Set the thread id that this conditionalNG should execute on when JMRI starts next time. It's not currently possible to move a ConditionalNG from one thread to another without restarting JMRI.- Parameters:
threadId- the thread ID
-
getFemaleSocket
Get the female socket of this ConditionalNG.- Returns:
- the female socket
-
setSocketSystemName
-
getSocketSystemName
-
setEnabled
Set whenether this ConditionalNG is enabled or disabled.This method must call registerListeners() / unregisterListeners().
- Parameters:
enable- true if this ConditionalNG should be enabled, false otherwise
-
isEnabled
boolean isEnabled()Determines whether this ConditionalNG is enabled. -
setExecuteAtStartup
Set whenether this ConditionalNG should be executed at startup or at panel load.- Parameters:
value- true if this ConditionalNG should be executed at startup or at panel load.
-
isExecuteAtStartup
boolean isExecuteAtStartup()Determines whenether this ConditionalNG should be executed at startup or at panel load.- Returns:
- true if this ConditionalNG should be executed at startup or at panel load.
-
setRunDelayed
Set whenether execute() should run on the LogixNG thread at once or should dispatch the call until later. Most tests turns off the delay to simplify the tests.- Parameters:
value- true if execute() should run on LogixNG thread delayed, false otherwise.
-
getRunDelayed
boolean getRunDelayed()Get whenether execute() should run on the LogixNG thread at once or should dispatch the call until later. Most tests turns off the delay to simplify the tests.- Returns:
- true if execute() should run on LogixNG thread delayed, false otherwise.
-
execute
void execute()Execute the ConditionalNG. -
execute
Execute the ConditionalNG.- Parameters:
allowRunDelayed- true if it's ok to run delayed, false otherwise
-
execute
Execute the female socket.- Parameters:
socket- the female socket
-
isListenersRegistered
boolean isListenersRegistered()Are listeners registered?- Returns:
- true if listeners are registered, otherwise return false
-
getStack
Get the stack- Returns:
- the stack
-
getSymbolTable
Get the current symbol table- Returns:
- the symbol table
-
setSymbolTable
Set the current symbol table- Parameters:
symbolTable- the symbol table
-
setCurrentConditionalNG
Set the current ConditionalNG.- Parameters:
conditionalNG- the current ConditionalNG
-