Package jmri.jmrit.logixng
Interface FemaleGenericExpressionSocket
- All Superinterfaces:
Base,FemaleSocket,PropertyChangeProvider
- All Known Implementing Classes:
DefaultFemaleGenericExpressionSocket
A generic female socket
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface jmri.jmrit.logixng.Base
Base.PrintTreeSettings, Base.RunnableWithBase, Base.RunnableWithBaseThrowException -
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_DISCONNECTED -
Method Summary
Modifier and TypeMethodDescriptionEvaluate this expression.Get the current active socket.Get the type of the socket.voidSet the type of the socket.Methods 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, isEnabled, isSocketOperationAllowed, printTree, printTree, printTree, printTree, printTree, registerListeners, setComment, setParent, setParentForAllChildren, setUserName, unregisterListeners, updateListenerRef, vetoableChangeMethods inherited from interface jmri.jmrit.logixng.FemaleSocket
canDisconnect, connect, disconnect, doSocketOperation, getConnectableClasses, getConnectedSocket, getEnableListeners, getName, isAncestor, isCompatible, isConnected, isSocketOperationAllowed, setEnableListeners, setName, setName, setup, validateName, validateNameMethods inherited from interface jmri.beans.PropertyChangeProvider
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
-
Method Details
-
getCurrentActiveSocket
Get the current active socket.- Returns:
- the currently active socket or null if no socket is active
-
setSocketType
void setSocketType(FemaleGenericExpressionSocket.SocketType socketType) throws SocketAlreadyConnectedException Set the type of the socket.- Parameters:
socketType- the type of socket.- Throws:
SocketAlreadyConnectedException- if the socket is already connected and if the new type doesn't match the currently connected socket.
-
getSocketType
Get the type of the socket.- Returns:
- the type of socket
-
evaluateGeneric
Evaluate this expression.This method validates the expression without doing any convertation of the return value.
The parameter isCompleted is used if the expression should be evaluated more than once. For example, the Count expression is not completed until its child expression has been true and false a number of times.
- Returns:
- the result of the evaluation. This is of the same class as parentValue.
- Throws:
JmriException- when an exception occurs
-