net.sourceforge.nite.nom.nomwrite.impl
Class NOMFile

java.lang.Object
  extended by net.sourceforge.nite.nom.nomwrite.impl.NOMFile

public class NOMFile
extends java.lang.Object

NOMFile is an attempt to take the file and directory naming approach out of NOMCorpus and into a coherent package.

Author:
Jonathan Kilgour

Constructor Summary
NOMFile(NMetaData m, NCoding c, NObservation o, NAgent a)
           
NOMFile(NMetaData m, java.lang.String fn)
          Make a new NOM file from a file or colour name
 
Method Summary
 NAgent getAgent()
           
 java.util.List getChildCodingFilenames(NCoding child)
          return the list of file names that could be children of this element.
 NCoding getCoding()
           
 java.lang.String getCodingFilename(NCoding other)
          return the list of file names that could be children of this element.
 java.lang.String getColour()
           
 java.lang.String getFilename()
           
 java.lang.String getFullFilename()
           
 NObservation getObservation()
           
 java.lang.String getParentCodingFilenames(NCoding parent)
          return the list of file names that could be children of this element.
 int getType()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NOMFile

public NOMFile(NMetaData m,
               NCoding c,
               NObservation o,
               NAgent a)

NOMFile

public NOMFile(NMetaData m,
               java.lang.String fn)
Make a new NOM file from a file or colour name

Method Detail

getCoding

public NCoding getCoding()

getObservation

public NObservation getObservation()

getAgent

public NAgent getAgent()

getType

public int getType()

getColour

public java.lang.String getColour()

getFilename

public java.lang.String getFilename()

getFullFilename

public java.lang.String getFullFilename()

getChildCodingFilenames

public java.util.List getChildCodingFilenames(NCoding child)
return the list of file names that could be children of this element. Note that the only time this list is not a singleton is when we are in an interaction coding and the child layer is an agent coding.


getParentCodingFilenames

public java.lang.String getParentCodingFilenames(NCoding parent)
return the list of file names that could be children of this element. Note that the only time this list is not a singleton is when we are in an interaction coding and the child layer is an agent coding.


getCodingFilename

public java.lang.String getCodingFilename(NCoding other)
return the list of file names that could be children of this element. Note that the only time this list is not a singleton is when we are in an interaction coding and the child layer is an agent coding.